build: bump @actions/cache version (#128)
* bump @actions/cache version * fix runtime error
This commit is contained in:
1 parent
54cb141c5c
commit
85cb7f6e7e
4 files changed
+173
-98
No files matched your search
+43
-38
@@ -1,50 +1,55 @@
|
||||
var ev=Object.create;var js=Object.defineProperty;var tv=Object.getOwnPropertyDescriptor;var av=Object.getOwnPropertyNames;var iv=Object.getPrototypeOf,rv=Object.prototype.hasOwnProperty;var fe=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kd=(t,e)=>{for(var a in e)js(t,a,{get:e[a],enumerable:!0})},i0=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of av(e))!rv.call(t,r)&&r!==a&&js(t,r,{get:()=>e[r],enumerable:!(i=tv(e,r))||i.enumerable});return t};var Ja=(t,e,a)=>(a=t!=null?ev(iv(t)):{},i0(e||!t||!t.__esModule?js(a,"default",{value:t,enumerable:!0}):a,t)),gn=t=>i0(js({},"__esModule",{value:!0}),t);var ks=T(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.toCommandProperties=mr.toCommandValue=void 0;function nv(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}mr.toCommandValue=nv;function sv(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}mr.toCommandProperties=sv});var o0=T(Ut=>{"use strict";var ov=Ut&&Ut.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),pv=Ut&&Ut.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dv=Ut&&Ut.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&ov(e,t,a);return pv(e,t),e};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.issue=Ut.issueCommand=void 0;var lv=dv(require("os")),n0=ks();function s0(t,e,a){let i=new Hd(t,e,a);process.stdout.write(i.toString()+lv.EOL)}Ut.issueCommand=s0;function cv(t,e=""){s0(t,{},e)}Ut.issue=cv;var r0="::",Hd=class{constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=r0+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${uv(r)}`)}}return e+=`${r0}${mv(this.message)}`,e}};function mv(t){return n0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function uv(t){return n0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function yn(){return Hs>Us.length-16&&(p0.default.randomFillSync(Us),Hs=0),Us.slice(Hs,Hs+=16)}var p0,Us,Hs,Ud=fe(()=>{p0=Ja(require("crypto")),Us=new Uint8Array(256),Hs=Us.length});var d0,l0=fe(()=>{d0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function fv(t){return typeof t=="string"&&d0.test(t)}var Za,vn=fe(()=>{l0();Za=fv});function hv(t,e=0){let a=(ut[t[e+0]]+ut[t[e+1]]+ut[t[e+2]]+ut[t[e+3]]+"-"+ut[t[e+4]]+ut[t[e+5]]+"-"+ut[t[e+6]]+ut[t[e+7]]+"-"+ut[t[e+8]]+ut[t[e+9]]+"-"+ut[t[e+10]]+ut[t[e+11]]+ut[t[e+12]]+ut[t[e+13]]+ut[t[e+14]]+ut[t[e+15]]).toLowerCase();if(!Za(a))throw TypeError("Stringified UUID is invalid");return a}var ut,ei,xn=fe(()=>{vn();ut=[];for(let t=0;t<256;++t)ut.push((t+256).toString(16).substr(1));ei=hv});function gv(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||c0,s=t.clockseq!==void 0?t.clockseq:Fd;if(n==null||s==null){let m=t.random||(t.rng||yn)();n==null&&(n=c0=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=Fd=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:$d+1,d=o-Vd+(p-$d)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Vd)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Vd=o,$d=p,Fd=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||ei(r)}var c0,Fd,Vd,$d,m0,u0=fe(()=>{Ud();xn();Vd=0,$d=0;m0=gv});function yv(t){if(!Za(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Fs,Gd=fe(()=>{vn();Fs=yv});function vv(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Vs(t,e,a){function i(r,n,s,o){if(typeof r=="string"&&(r=vv(r)),typeof n=="string"&&(n=Fs(n)),n.length!==16)throw TypeError("Namespace must be aLine truncated
|
||||
`,c.message,c.stack);var m=new Error("tunneling socket could not be established, cause="+c.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}};Da.prototype.removeSocket=function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function j0(t,e){var a=this;Da.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Qd({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=Av.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}function k0(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}function Qd(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var o=r[n];i[o]!==void 0&&(t[o]=i[o])}}return t}var ti;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ti=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:ti=function(){};fr.debug=ti});var Yd=T((kA,U0)=>{U0.exports=H0()});var bn=T(Se=>{"use strict";var Hv=Se&&Se.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Uv=Se&&Se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qs=Se&&Se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Hv(e,t,a);return Uv(e,t),e},$e=Se&&Se.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Se,"__esModule",{value:!0});Se.HttpClient=Se.isHttps=Se.HttpClientResponse=Se.HttpClientError=Se.getProxyUrl=Se.MediaTypes=Se.Headers=Se.HttpCodes=void 0;var $s=Qs(require("http")),Jd=Qs(require("https")),F0=Qs(M0()),Gs=Qs(Yd()),aa;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(aa=Se.HttpCodes||(Se.HttpCodes={}));var Nt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Nt=Se.Headers||(Se.Headers={}));var ai;(function(t){t.ApplicationJson="application/json"})(ai=Se.MediaTypes||(Se.MediaTypes={}));function Fv(t){let e=F0.getProxyUrl(new URL(t));return e?e.href:""}Se.getProxyUrl=Fv;var Vv=[aa.MovedPermanently,aa.ResourceMoved,aa.SeeOther,aa.TemporaryRedirect,aa.PermanentRedirect],$v=[aa.BadGateway,aa.ServiceUnavailable,aa.GatewayTimeout],Gv=["OPTIONS","GET","DELETE","HEAD"],Xv=10,Kv=5,Ks=class t extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Se.HttpClientError=Ks;var Ws=class{constructor(e){this.message=e}readBody(){return $e(this,void 0,void 0,function*(){return new Promise(e=>$e(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return $e(this,void 0,void 0,function*(){return new Promise(e=>$e(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Se.HttpClientResponse=Ws;function Wv(t){return new URL(t).protocol==="https:"}Se.isHttps=Wv;var Zd=class{constructor(e,a,i){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=a||[],this.requestOptions=i,i&&(i.ignoreSslError!=null&&(this._ignoreSslError=i.ignoreSslError),this._socketTimeout=i.socketTimeout,i.allow
Line truncated
|
||||
var Aw=Object.create;var Ds=Object.defineProperty;var Mw=Object.getOwnPropertyDescriptor;var qw=Object.getOwnPropertyNames;var zw=Object.getPrototypeOf,Lw=Object.prototype.hasOwnProperty;var o=(t,e)=>Ds(t,"name",{value:e,configurable:!0});var Bt=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bh=(t,e)=>{for(var a in e)Ds(t,a,{get:e[a],enumerable:!0})},xh=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of qw(e))!Lw.call(t,r)&&r!==a&&Ds(t,r,{get:()=>e[r],enumerable:!(i=Mw(e,r))||i.enumerable});return t};var Is=(t,e,a)=>(a=t!=null?Aw(zw(t)):{},xh(e||!t||!t.__esModule?Ds(a,"default",{value:t,enumerable:!0}):a,t)),cp=t=>xh(Ds({},"__esModule",{value:!0}),t);var mp=T(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.toCommandProperties=Jr.toCommandValue=void 0;function kw(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(kw,"toCommandValue");Jr.toCommandValue=kw;function jw(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(jw,"toCommandProperties");Jr.toCommandProperties=jw});var Sh=T(la=>{"use strict";var Uw=la&&la.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Hw=la&&la.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fw=la&&la.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Uw(e,t,a);return Hw(e,t),e};Object.defineProperty(la,"__esModule",{value:!0});la.issue=la.issueCommand=void 0;var Vw=Fw(require("os")),Nh=mp();function _h(t,e,a){let i=new em(t,e,a);process.stdout.write(i.toString()+Vw.EOL)}o(_h,"issueCommand");la.issueCommand=_h;function $w(t,e=""){_h(t,{},e)}o($w,"issue");la.issue=$w;var wh="::",em=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=wh+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${Xw(r)}`)}}return e+=`${wh}${Gw(this.message)}`,e}};function Gw(t){return(0,Nh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Gw,"escapeData");function Xw(t){return(0,Nh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Xw,"escapeProperty")});var Th=T(ca=>{"use strict";var Ww=ca&&ca.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Kw=ca&&ca.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),am=ca&&ca.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Ww(e,t,a);return Kw(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.prepareKeyValueMessage=ca.issueFileCommand=void 0;var Yw=am(require("crypto")),Eh=am(require("fs")),tm=am(require("os")),Ch=mp();function Qw(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Eh.existsSync(a))throw new Error(`Missing file at path: ${a}`);Eh.appendFileSync(a,`${(0,Ch.toCommandValue)(e)}${tm.EOL}`,{encoding:"utf8"})}o(Qw,"issueFileCommand");ca.issueFileCommand=Qw;function Jw(t,e){let a=`ghadelimiter_${Yw.randomUUID()}`,i=(0,Ch.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${tm.EOL}${i}${tm.EOL}${a}`}o(Jw,"prepareKeyValueMessage");ca.prepareKeyValueMessage=Jw});var Ph=T(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.checkBypass=Zr.getProxyUrl=void 0;function Zw(t){let e=t.protocol==="https:";if(Oh(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(Zw,"getProxyUrl");Zr.getProxyUrl=Zw;function Oh(t){if(!t.hostname)return!1;let e=t.hostname;if(eN(e))return!0;let a=process.env.no_proxy||proLine truncated
|
||||
`,m.message,m.stack);var u=new Error("tunneling socket could not be established, cause="+m.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(r)}o(c,"onError")},"createSocket");di.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function Dh(t,e){var a=this;di.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=rm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=tN.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(Dh,"createSecureSocket");function Ih(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(Ih,"toOptions");function rm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(rm,"mergeOptions");var Bi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Bi=o(function(){},"debug");en.debug=Bi});var nm=T((cj,Ah)=>{Ah.exports=Bh()});var tn=T(Te=>{"use strict";var pN=Te&&Te.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),dN=Te&&Te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vp=Te&&Te.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&pN(e,t,a);return dN(e,t),e},tt=Te&&Te.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Te,"__esModule",{value:!0});Te.HttpClient=Te.isHttps=Te.HttpClientResponse=Te.HttpClientError=Te.getProxyUrl=Te.MediaTypes=Te.Headers=Te.HttpCodes=void 0;var up=vp(require("http")),sm=vp(require("https")),Mh=vp(Ph()),fp=vp(nm()),Pa;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Pa=Te.HttpCodes||(Te.HttpCodes={}));var qt;(function(t){t.Accept="accept",t.ContentType="content-type"})(qt=Te.Headers||(Te.Headers={}));var Ai;(function(t){t.ApplicationJson="application/json"})(Ai=Te.MediaTypes||(Te.MediaTypes={}));function lN(t){let e=Mh.getProxyUrl(new URL(t));return e?e.href:""}o(lN,"getProxyUrl");Te.getProxyUrl=lN;var cN=[Pa.MovedPermanently,Pa.ResourceMoved,Pa.SeeOther,Pa.TemporaryRedirect,Pa.PermanentRedirect],mN=[Pa.BadGateway,Pa.ServiceUnavailable,Pa.GatewayTimeout],uN=["OPTIONS","GET","DELETE","HEAD"],fN=10,hN=5,gp=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Te.HttpClientError=gp;var yp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return tt(this,void 0,void 0,function*(){return new Promise(e=>tt(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return tt(this,void 0,void 0,function*(){return new Promise(e=>tt(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Te.HttpClientResponse=yp;function gN(t){return new URL(t).protocol==="https:"}o(gN,"isHttps");Te.isHttps=gN;var om=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1
Line truncated
|
||||
|
||||
Error Code : ${s.statusCode}
|
||||
|
||||
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return V0(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}$0.debug(`ID token url is ${a}`);let i=yield t.getCall(a);return $0.setSecret(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};hr.OidcClient=nl});var dl=T(Et=>{"use strict";var sl=Et&&Et.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Et,"__esModule",{value:!0});Et.summary=Et.markdownSummary=Et.SUMMARY_DOCS_URL=Et.SUMMARY_ENV_VAR=void 0;var Jv=require("os"),ol=require("fs"),{access:Zv,appendFile:ex,writeFile:tx}=ol.promises;Et.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Et.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var pl=class{constructor(){this._buffer=""}filePath(){return sl(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Et.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Et.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Zv(e,ol.constants.R_OK|ol.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return sl(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?tx:ex)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return sl(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(Jv.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:p,colspan:d,rowspan:l}=s,c=o?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),l&&{rowspan:l});return this.wrap(c,p,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(o).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},X0=new pl;Et.markdownSummary=X0;Et.summary=X0});var K0=T(Ct=>{"use strict";var ax=Ct&&Ct.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),ix=Ct&&Ct.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),rx=Ct&&Ct.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&ax(e,t,a);return ix(e,t),e};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.toPlatformPath=Ct.toWin32Path=Ct.toPosixPath=void 0;var nx=rx(require("path"));function sx(t){return t.replace(/[\\]/g,"/")}Ct.toPosixPath=sx;function ox(t){return t.replace(/[/]/g,"\\")}Ct.toWin32Path=ox;function px(t){return t.replace(/[/\\]/g,nx.sep)}Ct.toPlatformPath=px});var ia=T(J=>{"use strict";var dx=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),lx=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),W0=J&&JLine truncated
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}J.getMultilineInput=gx;function yx(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=ll(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}J.getBooleanInput=yx;function vx(t,e){if(process.env.GITHUB_OUTPUT||"")return zi.issueFileCommand("OUTPUT",zi.prepareKeyValueMessage(t,e));process.stdout.write(Y0.EOL),Vt.issueCommand("set-output",{name:t},gr.toCommandValue(e))}J.setOutput=vx;function xx(t){Vt.issue("echo",t?"on":"off")}J.setCommandEcho=xx;function bx(t){process.exitCode=J0.Failure,Z0(t)}J.setFailed=bx;function Nx(){return process.env.RUNNER_DEBUG==="1"}J.isDebug=Nx;function wx(t){Vt.issueCommand("debug",{},t)}J.debug=wx;function Z0(t,e={}){Vt.issueCommand("error",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.error=Z0;function _x(t,e={}){Vt.issueCommand("warning",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.warning=_x;function Sx(t,e={}){Vt.issueCommand("notice",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.notice=Sx;function Ex(t){process.stdout.write(t+Y0.EOL)}J.info=Ex;function e2(t){Vt.issue("group",t)}J.startGroup=e2;function t2(){Vt.issue("endgroup")}J.endGroup=t2;function Cx(t,e){return Q0(this,void 0,void 0,function*(){e2(t);let a;try{a=yield e()}finally{t2()}return a})}J.group=Cx;function Tx(t,e){if(process.env.GITHUB_STATE||"")return zi.issueFileCommand("STATE",zi.prepareKeyValueMessage(t,e));Vt.issueCommand("save-state",{name:t},gr.toCommandValue(e))}J.saveState=Tx;function Px(t){return process.env[`STATE_${t}`]||""}J.getState=Px;function Ox(t){return Q0(this,void 0,void 0,function*(){return yield mx.OidcClient.getIDToken(t)})}J.getIDToken=Ox;var Rx=dl();Object.defineProperty(J,"summary",{enumerable:!0,get:function(){return Rx.summary}});var Dx=dl();Object.defineProperty(J,"markdownSummary",{enumerable:!0,get:function(){return Dx.markdownSummary}});var cl=K0();Object.defineProperty(J,"toPosixPath",{enumerable:!0,get:function(){return cl.toPosixPath}});Object.defineProperty(J,"toWin32Path",{enumerable:!0,get:function(){return cl.toWin32Path}});Object.defineProperty(J,"toPlatformPath",{enumerable:!0,get:function(){return cl.toPlatformPath}})});var ul=T(Q=>{"use strict";var Ix=Q&&Q.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Bx=Q&&Q.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i2=Q&&Q.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Ix(e,t,a);return Bx(e,t),e},ml=Q&&Q.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})},Tt;Object.defineProperty(Q,"__esModule",{value:!0});Q.getCmdPath=Q.tryGetExecutablePath=Q.isRooted=Q.isDirectory=Q.exists=Q.READONLY=Q.UV_FS_O_EXLOCK=Q.IS_WINDOWS=Q.unlink=Q.symlink=Q.stat=Q.rmdir=Q.rm=Q.rename=Q.readlink=Q.readdir=Q.open=Q.mkdir=Q.lstat=Q.copyFile=Q.chmod=void 0;var r2=i2(require("fs")),Ys=i2(require("path"));Tt=r2.promises,Q.chmod=Tt.chmod,Q.copyFile=Tt.copyFile,Q.lstat=Tt.lstat,Q.mkdir=Tt.mkdir,Q.open=Tt.open,Q.readdir=Tt.readdir,Q.readlink=Tt.readlink,Q.rename=Tt.rename,Q.rm=Tt.rm,Q.rmdir=Tt.rmdir,Q.stat=Tt.stat,Q.symlink=Tt.symlink,Q.unlink=Tt.unlink;Q.IS_WINDOWS=process.platform==="win32";Q.UV_FS_O_EXLOCK=268435456;Q.READONLY=r2.constants.O_RDONLY;function Ax(t){return ml(this,void 0,void 0,function*(){try{yield Q.stat(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}Q.exists=Ax;function zx(t,e=!1){return ml(this,void 0,void 0,function*(){return(e?yield Q.stat(t):yield Q.lstat(t)).isDirectory()})}Q.isDirectory=zx;function qx(t){if(t=Lx(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Q.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}Q.isRooted=qx;function Mx(t,e){return ml(this,void 0,void 0,function*(){let a;try{a=yield Q.stat(t)}catch(r){r.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${r}`)}if(a&&a.isFile()){if(Q.IS_WINDOWS){let r=Ys.extname(t).toUpperCase();if(e.some(n=>n.toUpperCase()===r))return t}else if(a2(a))return t}let i=t;for(let r of e){t=i+r,a=void 0;try{a=yield Q.stat(t)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}if(a&&a.isFile()){if(Q.IS_WINDOWS){try{let n=Ys.dirname(t),s=Ys.basename(t).toUpperCase();for(let o of yield Q.readdir(n))if(s===o.toUpperCase()){t=Ys.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else if(a2(a))return t}}return""})}Q.tryGetExecutablePath=Mx;function Lx(t){return t=t||"",Q.IS_WINLine truncated
|
||||
%s`,f,f,R,i);var w=R.type==="*"?Sl:R.type==="?"?_l:"\\"+R.type;r=!0,i=i.slice(0,R.reStart)+w+"\\("+f}h(),n&&(i+="\\\\");var C=!1;switch(i.charAt(0)){case"[":case".":case"(":C=!0}for(var N=o.length-1;N>-1;N--){var D=o[N],_=i.slice(0,D.reStart),O=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);B+=j;var re=_.split("(").length-1,ce=j;for(v=0;v<re;v++)ce=ce.replace(/\)[+*?]?/,"");j=ce;var W="";j===""&&e!==ro&&(W="$");var Ve=_+O+j+W+B;i=Ve}if(i!==""&&r&&(i="(?=.)"+i),C&&(i=m+i),e===ro)return[i,r];if(!r)return Hb(t);var le=a.nocase?"i":"";try{var ta=new RegExp("^"+i+"$",le)}catch{return new RegExp("$.")}return ta._glob=t,ta._src=i,ta}zt.makeRe=function(t,e){return new ft(t,e||{}).makeRe()};ft.prototype.makeRe=kb;function kb(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Sl:e.dot?Ib:Bb,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===El?a:typeof s=="string"?Ub(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}zt.match=function(t,e,a){a=a||{};var i=new ft(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};ft.prototype.match=function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;_n.sep!=="/"&&(e=e.split(_n.sep).join("/")),e=e.split(k2),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var o=r[s],p=e;i.matchBase&&o.length===1&&(p=[n]);var d=this.matchOne(p,o,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};ft.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,o=e.length;r<s&&n<o;r++,n++){this.debug("matchOne loop");var p=e[n],d=t[r];if(this.debug(e,p,d),p===!1)return!1;if(p===El){this.debug("GLOBSTAR",[e,p,d]);var l=r,c=n+1;if(c===o){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;l<s;){var m=t[l];if(this.debug(`
|
||||
globstar while`,t,l,e,c,m),this.matchOne(t.slice(l),e.slice(c),a))return this.debug("globstar found match!",l,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,l,e,c);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,l,e,c),l===s))}var u;if(typeof p=="string"?(u=d===p,this.debug("string match",p,d,u)):(u=d.match(p),this.debug("pattern match",p,d,u)),!u)return!1}if(r===s&&n===o)return!0;if(r===s)return a;if(n===o)return r===s-1&&t[r]==="";throw new Error("wtf?")};function Hb(t){return t.replace(/\\(.)/g,"$1")}function Ub(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var $2=T($t=>{"use strict";var Fb=$t&&$t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Vb=$t&&$t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),V2=$t&&$t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Fb(e,t,a);return Vb(e,t),e},$b=$t&&$t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($t,"__esModule",{value:!0});$t.Path=void 0;var Sn=V2(require("path")),si=V2(ao()),En=$b(require("assert")),Gb=process.platform==="win32",Cl=class{constructor(e){if(this.segments=[],typeof e=="string")if(En.default(e,"Parameter 'itemPath' must not be empty"),e=si.safeTrimTrailingSeparator(e),!si.hasRoot(e))this.segments=e.split(Sn.sep);else{let a=e,i=si.dirname(a);for(;i!==a;){let r=Sn.basename(a);this.segments.unshift(r),a=i,i=si.dirname(a)}this.segments.unshift(a)}else{En.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];En.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=si.normalizeSeparators(e[a]),a===0&&si.hasRoot(i)?(i=si.safeTrimTrailingSeparator(i),En.default(i===si.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(En.default(!i.includes(Sn.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Sn.sep)||Gb&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Sn.sep,e+=this.segments[i];return e}};$t.Path=Cl});var G2=T(Gt=>{"use strict";var Xb=Gt&&Gt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Kb=Gt&&Gt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ol=Gt&&Gt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Xb(e,t,a);return Kb(e,t),e},Wb=Gt&&Gt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Pattern=void 0;var Qb=Ol(require("os")),Cn=Ol(require("path")),Dt=Ol(ao()),Mi=Wb(require("assert")),Yb=F2(),Tl=io(),so=$2(),Ia=process.platform==="win32",Pl=class t{constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Mi.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Mi.default(d&&Dt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new so.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new so.Path(n).segments,this.trailingSeparator=Dt.normalizeSeparators(n).endsWith(Cn.sep),n=Dt.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new so.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),Ia?"i":""),this.isImplicitPattern=a;let p={dot:!0,nobrace:!0,nocase:Ia,nocomment:!0,noext:!0,nonegate:!0};n=Ia?n.replace(/\\/g,"/"):n,this.minimatch=new Yb.Minimatch(n,p)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Dt.normalizeSeparators(e),!e.endsWith(Cn.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Cn.sep}`)):e=Dt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Tl.MatchKind.Directory:Tl.MatchKind.All:Tl.MatchKind.None}partialMatch(e){return e=Dt.safeTrimTrailingSeparator(e),Dt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ia?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ia?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){Mi.default(e,"pattern cannot be empty");let i=new so.Path(e).segments.map(r=>t.getLiteral(r));if(Mi.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Mi.default(!Dt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Dt.normalizeSeparators(e),e==="."||e.startsWith(`.${Cn.sep}`))e=t.globEscape(process.cwd())+e.
Line truncated
|
||||
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return qh(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,zh.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,zh.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};an.OidcClient=mm});var gm=T(Ht=>{"use strict";var um=Ht&&Ht.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.summary=Ht.markdownSummary=Ht.SUMMARY_DOCS_URL=Ht.SUMMARY_ENV_VAR=void 0;var bN=require("os"),fm=require("fs"),{access:xN,appendFile:wN,writeFile:NN}=fm.promises;Ht.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Ht.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var hm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return um(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Ht.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Ht.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield xN(e,fm.constants.R_OK|fm.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return um(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?NN:wN)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return um(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(bN.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:d,colspan:l,rowspan:c}=s,m=p?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),c&&{rowspan:c});return this.wrap(m,d,u)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},kh=new hm;Ht.markdownSummary=kh;Ht.summary=kh});var jh=T(Ft=>{"use strict";var _N=Ft&&Ft.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),SN=Ft&&Ft.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),EN=Ft&&Ft.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&_N(e,t,a);return SN(e,t),e};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.toPlatformPath=Ft.toWin32Path=Ft.toPosixPath=void 0;var CN=EN(require("path"));function TN(t){return t.replace(/[\\]/g,"/")}o(TN,"toPosixPath");Ft.toPosixPath=TN;function ON(t){return t.replace(/[/]/g,"\\")}o(ON,"toWin32Path");Ft.toWin32Path=ON;function PN(t){return t.replace(/[/\\]/g,CN.sep)}o(PN,"toPlatformPath");Ft.toPlatformPath=PN});var vm=T(J=>{"use strict";var RN=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
|
||||
`);return{name:e,version:a}}),"getLinuxInfo");fe.platform=r6.default.platform();fe.arch=r6.default.arch();fe.isWindows=fe.platform==="win32";fe.isMacOS=fe.platform==="darwin";fe.isLinux=fe.platform==="linux";function p_(){return Cp(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield fe.isWindows?n_():fe.isMacOS?s_():o_()),{platform:fe.platform,arch:fe.arch,isWindows:fe.isWindows,isMacOS:fe.isMacOS,isLinux:fe.isLinux})})}o(p_,"getDetails");fe.getDetails=p_});var Ut=T(X=>{"use strict";var d_=X&&X.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),l_=X&&X.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_m=X&&X.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&d_(e,t,a);return l_(e,t),e},s6=X&&X.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(X,"__esModule",{value:!0});X.platform=X.toPlatformPath=X.toWin32Path=X.toPosixPath=X.markdownSummary=X.summary=X.getIDToken=X.getState=X.saveState=X.group=X.endGroup=X.startGroup=X.info=X.notice=X.warning=X.error=X.debug=X.isDebug=X.setFailed=X.setCommandEcho=X.setOutput=X.getBooleanInput=X.getMultilineInput=X.getInput=X.addPath=X.setSecret=X.exportVariable=X.ExitCode=void 0;var ma=Sh(),gr=Th(),nn=mp(),o6=_m(require("os")),c_=_m(require("path")),m_=Lh(),Nm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Nm||(X.ExitCode=Nm={}));function u_(t,e){let a=(0,nn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,gr.issueFileCommand)("ENV",(0,gr.prepareKeyValueMessage)(t,e));(0,ma.issueCommand)("set-env",{name:t},a)}o(u_,"exportVariable");X.exportVariable=u_;function f_(t){(0,ma.issueCommand)("add-mask",{},t)}o(f_,"setSecret");X.setSecret=f_;function h_(t){process.env.GITHUB_PATH||""?(0,gr.issueFileCommand)("PATH",t):(0,ma.issueCommand)("add-path",{},t),process.env.PATH=`${t}${c_.delimiter}${process.env.PATH}`}o(h_,"addPath");X.addPath=h_;function Sm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(Sm,"getInput");X.getInput=Sm;function g_(t,e){let a=Sm(t,e).split(`
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(g_,"getMultilineInput");X.getMultilineInput=g_;function y_(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Sm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(y_,"getBooleanInput");X.getBooleanInput=y_;function v_(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,gr.issueFileCommand)("OUTPUT",(0,gr.prepareKeyValueMessage)(t,e));process.stdout.write(o6.EOL),(0,ma.issueCommand)("set-output",{name:t},(0,nn.toCommandValue)(e))}o(v_,"setOutput");X.setOutput=v_;function b_(t){(0,ma.issue)("echo",t?"on":"off")}o(b_,"setCommandEcho");X.setCommandEcho=b_;function x_(t){process.exitCode=Nm.Failure,p6(t)}o(x_,"setFailed");X.setFailed=x_;function w_(){return process.env.RUNNER_DEBUG==="1"}o(w_,"isDebug");X.isDebug=w_;function N_(t){(0,ma.issueCommand)("debug",{},t)}o(N_,"debug");X.debug=N_;function p6(t,e={}){(0,ma.issueCommand)("error",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(p6,"error");X.error=p6;function __(t,e={}){(0,ma.issueCommand)("warning",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(__,"warning");X.warning=__;function S_(t,e={}){(0,ma.issueCommand)("notice",(0,nn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(S_,"notice");X.notice=S_;function E_(t){process.stdout.write(t+o6.EOL)}o(E_,"info");X.info=E_;function d6(t){(0,ma.issue)("group",t)}o(d6,"startGroup");X.startGroup=d6;function l6(){(0,ma.issue)("endgroup")}o(l6,"endGroup");X.endGroup=l6;function C_(t,e){return s6(this,void 0,void 0,function*(){d6(t);let a;try{a=yield e()}finally{l6()}return a})}o(C_,"group");X.group=C_;function T_(t,e){if(process.env.GITHUB_STATE||"")return(0,gr.issueFileCommand)("STATE",(0,gr.prepareKeyValueMessage)(t,e));(0,ma.issueCommand)("save-state",{name:t},(0,nn.toCommandValue)(e))}o(T_,"saveState");X.saveState=T_;function O_(t){return process.env[`STATE_${t}`]||""}o(O_,"getState");X.getState=O_;function P_(t){return s6(this,void 0,void 0,function*(){return yield m_.OidcClient.getIDToken(t)})}o(P_,"getIDToken");X.getIDToken=P_;var R_=gm();Object.defineProperty(X,"summary",{enumerable:!0,get:function(){return R_.summary}});var D_=gm();Object.defineProperty(X,"markdownSummary",{enumerable:!0,get:function(){return D_.markdownSummary}});var Em=jh();Object.defineProperty(X,"toPosixPath",{enumerable:!0,get:function(){return Em.toPosixPath}});Object.defineProperty(X,"toWin32Path",{enumerable:!0,get:function(){return Em.toWin32Path}});Object.defineProperty(X,"toPlatformPath",{enumerable:!0,get:function(){return Em.toPlatformPath}});X.platform=_m(n6())});var c6=T($a=>{"use strict";var I_=$a&&$a.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),B_=$a&&$a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),A_=$a&&$a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&I_(e,t,a);return B_(e,t),e};Object.defineProperty($a,"__esModule",{value:!0});$a.getOptions=void 0;var Cm=A_(Ut());function M_(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Cm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Cm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Cm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(M_,"getOptions");$a.getOptions=M_});var Op=T(He=>{"use strict";var q_=He&&He.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),z_=He&&He.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),L_=He&&He.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&q_(e,t,a);return z_(e,t),e},k_=He&&He.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(He,"__esModule",{value:!0});He.safeTrimTrailingSeparator=He.normalizeSeparators=He.hasRoot=He.hasAbsoluteRoot=He.ensureAbsoluteRoot=He.dirname=void 0;var Tp=L_(require("path")),yr=k_(require("assert")),qi=process.platform==="win32";function j_(t){if(t=Om(t),qi&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Tp.dirname(t);return qi&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Om(e)),e}o(j_,"dirname");He.dirname=j_;function U_(t,e){if(yr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),yr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Tm(e))return e;if(qi){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
|
||||
%s`,g,g,D,i);var _=D.type==="*"?Im:D.type==="?"?Dm:"\\"+D.type;r=!0,i=i.slice(0,D.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var I=p[N],E=i.slice(0,I.reStart),R=i.slice(I.reStart,I.reEnd-8),A=i.slice(I.reEnd-8,I.reEnd),j=i.slice(I.reEnd);A+=j;var oe=E.split("(").length-1,he=j;for(b=0;b<oe;b++)he=he.replace(/\)[+*?]?/,"");j=he;var Q="";j===""&&e!==Rp&&(Q="$");var et=E+R+j+Q+A;i=et}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=u+i),e===Rp)return[i,r];if(!r)return gS(t);var ue=a.nocase?"i":"";try{var Oa=new RegExp("^"+i+"$",ue)}catch{return new RegExp("$.")}return Oa._glob=t,Oa._src=i,Oa}o(fS,"parse");aa.makeRe=function(t,e){return new Ot(t,e||{}).makeRe()};Ot.prototype.makeRe=hS;function hS(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Im:e.dot?oS:pS,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Bm?a:typeof s=="string"?yS(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(hS,"makeRe");aa.match=function(t,e,a){a=a||{};var i=new Ot(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Ot.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;Ms.sep!=="/"&&(e=e.split(Ms.sep).join("/")),e=e.split(I6),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],d=e;i.matchBase&&p.length===1&&(d=[n]);var l=this.matchOne(d,p,a);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Ot.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var d=e[n],l=t[r];if(this.debug(e,d,l),d===!1)return!1;if(d===Bm){this.debug("GLOBSTAR",[e,d,l]);var c=r,m=n+1;if(m===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var u=t[c];if(this.debug(`
|
||||
globstar while`,t,c,e,m,u),this.matchOne(t.slice(c),e.slice(m),a))return this.debug("globstar found match!",c,s,u),!0;if(u==="."||u===".."||!i.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,c,e,m);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,c,e,m),c===s))}var f;if(typeof d=="string"?(f=l===d,this.debug("string match",d,l,f)):(f=l.match(d),this.debug("pattern match",d,l,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function gS(t){return t.replace(/\\(.)/g,"$1")}o(gS,"globUnescape");function yS(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(yS,"regExpEscape")});var z6=T(ua=>{"use strict";var vS=ua&&ua.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),bS=ua&&ua.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),q6=ua&&ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&vS(e,t,a);return bS(e,t),e},xS=ua&&ua.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.Path=void 0;var qs=q6(require("path")),Li=q6(Op()),zs=xS(require("assert")),wS=process.platform==="win32",Am=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(zs.default(e,"Parameter 'itemPath' must not be empty"),e=Li.safeTrimTrailingSeparator(e),!Li.hasRoot(e))this.segments=e.split(qs.sep);else{let a=e,i=Li.dirname(a);for(;i!==a;){let r=qs.basename(a);this.segments.unshift(r),a=i,i=Li.dirname(a)}this.segments.unshift(a)}else{zs.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];zs.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Li.normalizeSeparators(e[a]),a===0&&Li.hasRoot(i)?(i=Li.safeTrimTrailingSeparator(i),zs.default(i===Li.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(zs.default(!i.includes(qs.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(qs.sep)||wS&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=qs.sep,e+=this.segments[i];return e}};ua.Path=Am});var L6=T(fa=>{"use strict";var NS=fa&&fa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_S=fa&&fa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zm=fa&&fa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&NS(e,t,a);return _S(e,t),e},SS=fa&&fa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fa,"__esModule",{value:!0});fa.Pattern=void 0;var ES=zm(require("os")),Ls=zm(require("path")),Wt=zm(Op()),vr=SS(require("assert")),CS=M6(),Mm=Pp(),Ip=z6(),li=process.platform==="win32",qm=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],vr.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);vr.default(l&&Wt.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new Ip.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new Ip.Path(n).segments,this.trailingSeparator=Wt.normalizeSeparators(n).endsWith(Ls.sep),n=Wt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new Ip.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),li?"i":""),this.isImplicitPattern=a;let d={dot:!0,nobrace:!0,nocase:li,nocomment:!0,noext:!0,nonegate:!0};n=li?n.replace(/\\/g,"/"):n,this.minimatch=new CS.Minimatch(n,d)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Wt.normalizeSeparators(e),!e.endsWith(Ls.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Ls.sep}`)):e=Wt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Mm.MatchKind.Directory:Mm.MatchKind.All:Mm.MatchKind.None}partialMatch(e){return e=Wt.safeTrimTrailingSeparator(e),Wt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(li?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(li?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){vr.default(e,"pattern cannot be empty");let i=new Ip.Path(e).segments.map(r=>t.getLiteral(r));if(vr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),vr.default(!Wt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Wt.nor
Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let r=e.split(`
|
||||
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new Q2.Pattern(n));return i.searchPaths.push(...po.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Dl(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Tn.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){Il.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield Tn.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Tn.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){Il.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};it.DefaultGlobber=Bl});var Z2=T(xr=>{"use strict";var rN=xr&&xr.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(xr,"__esModule",{value:!0});xr.create=void 0;var nN=J2();function sN(t,e){return rN(this,void 0,void 0,function*(){return yield nN.DefaultGlobber.create(t,e)})}xr.create=sN});var sf=T((te,nf)=>{te=nf.exports=ie;var ve;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?ve=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:ve=function(){};te.SEMVER_SPEC_VERSION="2.0.0";var On=256,lo=Number.MAX_SAFE_INTEGER||9007199254740991,Al=16,oN=On-6,br=te.re=[],ye=te.safeRe=[],A=te.src=[],I=te.tokens={},af=0;function ne(t){I[t]=af++}var ql="[a-zA-Z0-9-]",zl=[["\\s",1],["\\d",On],[ql,oN]];function Dn(t){for(var e=0;e<zl.length;e++){var a=zl[e][0],i=zl[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}ne("NUMERICIDENTIFIER");A[I.NUMERICIDENTIFIER]="0|[1-9]\\d*";ne("NUMERICIDENTIFIERLOOSE");A[I.NUMERICIDENTIFIERLOOSE]="\\d+";ne("NONNUMERICIDENTIFIER");A[I.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ql+"*";ne("MAINVERSION");A[I.MAINVERSION]="("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")";ne("MAINVERSIONLOOSE");A[I.MAINVERSIONLOOSE]="("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")";ne("PRERELEASEIDENTIFIER");A[I.PRERELEASEIDENTIFIER]="(?:"+A[I.NUMERICIDENTIFIER]+"|"+A[I.NONNUMERICIDENTIFIER]+")";ne("PRERELEASEIDENTIFIERLOOSE");A[I.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[I.NUMERICIDENTIFIERLOOSE]+"|"+A[I.NONNUMERICIDENTIFIER]+")";ne("PRERELEASE");A[I.PRERELEASE]="(?:-("+A[I.PRERELEASEIDENTIFIER]+"(?:\\."+A[I.PRERELEASEIDENTIFIER]+")*))";ne("PRERELEASELOOSE");A[I.PRERELEASELOOSE]="(?:-?("+A[I.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[I.PRERELEASEIDENTIFIERLOOSE]+")*))";ne("BUILDIDENTIFIER");A[I.BUILDIDENTIFIER]=ql+"+";ne("BUILD");A[I.BUILD]="(?:\\+("+A[I.BUILDIDENTIFIER]+"(?:\\."+A[I.BUILDIDENTIFIER]+")*))";ne("FULL");ne("FULLPLAIN");A[I.FULLPLAIN]="v?"+A[I.MAINVERSION]+A[I.PRERELEASE]+"?"+A[I.BUILD]+"?";A[I.FULL]="^"+A[I.FULLPLAIN]+"$";ne("LOOSEPLAIN");A[I.LOOSEPLAIN]="[v=\\s]*"+A[I.MAINVERSIONLOOSE]+A[I.PRERELEASELOOSE]+"?"+A[I.BUILD]+"?";ne("LOOSE");A[I.LOOSE]="^"+A[I.LOOSEPLAIN]+"$";ne("GTLT");A[I.GTLT]="((?:<|>)?=?)";ne("XRANGEIDENTIFIERLOOSE");A[I.XRANGEIDENTIFIERLOOSE]=A[I.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";ne("XRANGEIDENTIFIER");A[I.XRANGEIDENTIFIER]=A[I.NUMERICIDENTIFIER]+"|x|X|\\*";ne("XRANGEPLAIN");A[I.XRANGEPLAIN]="[v=\\s]*("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:"+A[I.PRERELEASE]+")?"+A[I.BUILD]+"?)?)?";ne("XRANGEPLAINLOOSE");A[I.XRANGEPLAINLOOSE]="[v=\\s]*("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:"+A[I.PRERELEASELOOSE]+")?"+A[I.BUILD]+"?)?)?";ne("XRANGE");A[I.XRANGE]="^"+A[I.GTLT]+"\\s*"+A[I.XRANGEPLAIN]+"$";ne("XRANGELOOSE");A[I.XRANGELOOSE]="^"+A[I.GTLT]+"\\s*"+A[I.XRANGEPLAINLOOSE]+"$";ne("COERCE");A[I.COERCE]="(^|[^\\d])(\\d{1,"+Al+"})(?:\\.(\\d{1,"+Al+"}))?(?:\\.(\\d{1,"+Al+"}))?(?:$|[^\\d])";ne("COERCERTL");br[I.COERCERTL]=new RegExp(A[I.COERCE],"g");ye[I.COERCERTL]=new RegExp(Dn(A[I.COERCE]),"g");ne("LONETILDE");A[I.LONETILDE]="(?:~>?)";ne("TILDETRIM");A[I.TILDETRIM]="(\\s*)"+A[I.LONETILDE]+"\\s+";br[I.TILDETRIM]=new RegExp(A[I.TILDETRIM],"g");ye[I.TILDETRIM]=new RegExp(Dn(A[I.TILDETRIM]),"g");var pN="$1~";ne("TILDE");A[I.TILDE]="^"+A[I.LONETILDE]+A[I.XRANGEPLAIN]+"$";ne("TILDELOOSE");A[I.TILDELOOSE]="^"+A[I.LONETILDE]+A[I.XRANGEPLAINLOOSE]+"$";ne("LONECARET");A[I.LONECARET]="(?:\\^)";ne("CARETTRIM");A[I.CARETTRIM]="(\\s*)"+A[I.LONECARET]+"\\s+";br[I.CARETTRIM]=new RegExp(A[I.CARETTRIM],"g");ye[I.CARETTRIM]=new RegExp(Dn(A[I.CARETTRIM]),"g");var dN="$1^";ne("CARET");A[I.CARET]="^"+A[I.LONE
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var d=!0,l=rw(p.globGenerator()),c;c=yield l.next(),e=c.done,!e;){r=c.value,d=!1;try{let m=r,u=fo.relative(o,m).replace(new RegExp(`\\${fo.sep}`,"g"),"/");An.debug(`Matched: ${u}`),u===""?s.push("."):s.push(`${u}`)}finally{d=!0}}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(a)throw a.error}}return s})}xe.resolvePaths=mw;function uw(t){return wr(this,void 0,void 0,function*(){return pw.promisify(Xl.unlink)(t)})}xe.unlinkFile=uw;function xf(t,e=[]){return wr(this,void 0,void 0,function*(){let a="";e.push("--version"),An.debug(`Checking ${t} ${e.join(" ")}`);try{yield nw.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){An.debug(i.message)}return a=a.trim(),An.debug(a),a})}function fw(){return wr(this,void 0,void 0,function*(){let t=yield xf("zstd",["--quiet"]),e=ow.clean(t);return An.debug(`zstd version: ${e}`),t===""?ki.CompressionMethod.Gzip:ki.CompressionMethod.ZstdWithoutLong})}xe.getCompressionMethod=fw;function hw(t){return t===ki.CompressionMethod.Gzip?ki.CacheFilename.Gzip:ki.CacheFilename.Zstd}xe.getCacheFileName=hw;function gw(){return wr(this,void 0,void 0,function*(){return Xl.existsSync(ki.GnuTarPathOnWindows)?ki.GnuTarPathOnWindows:(yield xf("tar")).toLowerCase().includes("gnu tar")?vf.which("tar"):""})}xe.getGnuTarPathOnWindows=gw;function yw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}xe.assertDefined=yw;function vw(){return new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()!=="GITHUB.COM"}xe.isGhes=vw});function qn(){return ho>go.length-16&&(bf.default.randomFillSync(go),ho=0),go.slice(ho,ho+=16)}var bf,go,ho,Kl=fe(()=>{bf=Ja(require("crypto")),go=new Uint8Array(256),ho=go.length});var Nf,wf=fe(()=>{Nf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function xw(t){return typeof t=="string"&&Nf.test(t)}var di,Mn=fe(()=>{wf();di=xw});function bw(t,e=0){let a=(ht[t[e+0]]+ht[t[e+1]]+ht[t[e+2]]+ht[t[e+3]]+"-"+ht[t[e+4]]+ht[t[e+5]]+"-"+ht[t[e+6]]+ht[t[e+7]]+"-"+ht[t[e+8]]+ht[t[e+9]]+"-"+ht[t[e+10]]+ht[t[e+11]]+ht[t[e+12]]+ht[t[e+13]]+ht[t[e+14]]+ht[t[e+15]]).toLowerCase();if(!di(a))throw TypeError("Stringified UUID is invalid");return a}var ht,li,Ln=fe(()=>{Mn();ht=[];for(let t=0;t<256;++t)ht.push((t+256).toString(16).substr(1));li=bw});function Nw(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||_f,s=t.clockseq!==void 0?t.clockseq:Wl;if(n==null||s==null){let m=t.random||(t.rng||qn)();n==null&&(n=_f=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=Wl=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:Yl+1,d=o-Ql+(p-Yl)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Ql)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ql=o,Yl=p,Wl=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||li(r)}var _f,Wl,Ql,Yl,Sf,Ef=fe(()=>{Kl();Ln();Ql=0,Yl=0;Sf=Nw});function ww(t){if(!di(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var yo,Jl=fe(()=>{Mn();yo=ww});function _w(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function vo(t,e,a){function i(r,n,s,o){if(typeof r=="string"&&(r=_w(r)),typeof n=="string"&&(n=yo(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let p=new Uint8Array(16+r.length);if(p.set(n),p.set(r,n.length),p=a(p),p[6]=p[6]&15|e,p[8]=p[8]&63|128,s){o=o||0;for(let d=0;d<16;++d)s[o+d]=p[d];return s}return li(p)}try{i.name=t}catch{}return i.DNS=Sw,i.URL=Ew,i}var Sw,Ew,Zl=fe(()=>{Ln();Jl();Sw="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ew="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function Cw(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),Cf.default.createHash("md5").update(t).digest()}var Cf,Tf,Pf=fe(()=>{Cf=Ja(require("crypto"));Tf=Cw});var Tw,Of,Rf=fe(()=>{Zl();Pf();Tw=vo("v3",48,Tf),Of=Tw});function Pw(t,e,a){t=t||{};let i=t.random||(t.rng||qn)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){a=a||0;for(let r=0;r<16;++r)e[a+r]=i[r];return e}return li(i)}var Df,If=fe(()=>{Kl();Ln();Df=Pw});function Ow(t){return Array.isArray(t)?t=Buffer.fro
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(ac)});var xa=T((m6,ci)=>{(function(){var t,e,a,i,r,n,s,o=[].slice,p={}.hasOwnProperty;t=function(){var d,l,c,m,u,h;if(h=arguments[0],u=2<=arguments.length?o.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,c=u.length;d<c;d++)if(m=u[d],m!=null)for(l in m)p.call(m,l)&&(h[l]=m[l]);return h},r=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var l;return!!d&&((l=typeof d)=="function"||l==="object")},a=function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},i=function(d){var l;if(a(d))return!d.length;for(l in d)if(p.call(d,l))return!1;return!0},s=function(d){var l,c;return n(d)&&(c=Object.getPrototypeOf(d))&&(l=c.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(d){return r(d.valueOf)?d.valueOf():d},ci.exports.assign=t,ci.exports.isFunction=r,ci.exports.isObject=n,ci.exports.isArray=a,ci.exports.isEmpty=i,ci.exports.isPlainObject=s,ci.exports.getValue=e}).call(m6)});var ic=T((u6,f6)=>{(function(){var t;f6.exports=t=function(){function e(){}return e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(u6)});var y6=T((h6,g6)=>{(function(){var t;g6.exports=t=function(){function e(){}return e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(h6)});var b6=T((v6,x6)=>{(function(){var t;x6.exports=t=function(){function e(a){this.arr=a||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(v6)});var _6=T((N6,w6)=>{(function(){var t,e,a;e=y6(),a=b6(),w6.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(N6)});var Ge=T((S6,E6)=>{(function(){E6.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(S6)});var rc=T((C6,T6)=>{(function(){var t,e,a;t=Ge(),a=qt(),T6.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)},i}()}).call(C6)});var Eo=T((P6,O6)=>{(function(){var t;O6.exports=t=function(){function e(a){this.nodes=a}return Object.definePropert
Line truncated
|
||||
`,g.offset=(C=b.offset)!=null?C:0,g.dontPrettyTextNodes=(N=(D=b.dontPrettyTextNodes)!=null?D:b.dontprettytextnodes)!=null?N:0,g.spaceBeforeSlash=(_=(O=b.spaceBeforeSlash)!=null?O:b.spacebeforeslash)!=null?_:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=e.None,g},R.prototype.indent=function(b,g,f){var w;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(w=(f||0)+g.offset+1,w>0)?new Array(w).join(g.indent):""},R.prototype.endline=function(b,g,f){return!g.pretty||g.suppressPrettyCount?"":g.newline},R.prototype.attribute=function(b,g,f){var w;return this.openAttribute(b,g,f),w=" "+b.name+'="'+b.value+'"',this.closeAttribute(b,g,f),w},R.prototype.cdata=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<![CDATA[",g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+="]]>"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.comment=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<!-- ",g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+=" -->"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.declaration=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<?xml",g.state=e.InsideTag,w+=' version="'+b.version+'"',b.encoding!=null&&(w+=' encoding="'+b.encoding+'"'),b.standalone!=null&&(w+=' standalone="'+b.standalone+'"'),g.state=e.CloseTag,w+=g.spaceBeforeSlash+"?>",w+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.docType=function(b,g,f){var w,C,N,D,_;if(f||(f=0),this.openNode(b,g,f),g.state=e.OpenTag,D=this.indent(b,g,f),D+="<!DOCTYPE "+b.root().name,b.pubID&&b.sysID?D+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(D+=' SYSTEM "'+b.sysID+'"'),b.children.length>0){for(D+=" [",D+=this.endline(b,g,f),g.state=e.InsideTag,_=b.children,C=0,N=_.length;C<N;C++)w=_[C],D+=this.writeChildNode(w,g,f+1);g.state=e.CloseTag,D+="]"}return g.state=e.CloseTag,D+=g.spaceBeforeSlash+">",D+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),D},R.prototype.element=function(b,g,f){var w,C,N,D,_,O,B,j,re,ce,W,Ve,le,ta;f||(f=0),ce=!1,W="",this.openNode(b,g,f),g.state=e.OpenTag,W+=this.indent(b,g,f)+"<"+b.name,Ve=b.attribs;for(re in Ve)S.call(Ve,re)&&(w=Ve[re],W+=this.attribute(w,g,f));if(N=b.children.length,D=N===0?null:b.children[0],N===0||b.children.every(function(_t){return(_t.type===t.Text||_t.type===t.Raw)&&_t.value===""}))g.allowEmpty?(W+=">",g.state=e.CloseTag,W+="</"+b.name+">"+this.endline(b,g,f)):(g.state=e.CloseTag,W+=g.spaceBeforeSlash+"/>"+this.endline(b,g,f));else if(g.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)W+=">",g.state=e.InsideTag,g.suppressPrettyCount++,ce=!0,W+=this.writeChildNode(D,g,f+1),g.suppressPrettyCount--,ce=!1,g.state=e.CloseTag,W+="</"+b.name+">"+this.endline(b,g,f);else{if(g.dontPrettyTextNodes){for(le=b.children,_=0,B=le.length;_<B;_++)if(C=le[_],(C.type===t.Text||C.type===t.Raw)&&C.value!=null){g.suppressPrettyCount++,ce=!0;break}}for(W+=">"+this.endline(b,g,f),g.state=e.InsideTag,ta=b.children,O=0,j=ta.length;O<j;O++)C=ta[O],W+=this.writeChildNode(C,g,f+1);g.state=e.CloseTag,W+=this.indent(b,g,f)+"</"+b.name+">",ce&&g.suppressPrettyCount--,W+=this.endline(b,g,f),g.state=e.None}return this.closeNode(b,g,f),W},R.prototype.writeChildNode=function(b,g,f){switch(b.type){case t.CData:return this.cdata(b,g,f);case t.Comment:return this.comment(b,g,f);case t.Element:return this.element(b,g,f);case t.Raw:return this.raw(b,g,f);case t.Text:return this.text(b,g,f);case t.ProcessingInstruction:return this.processingInstruction(b,g,f);case t.Dummy:return"";case t.Declaration:return this.declaration(b,g,f);case t.DocType:return this.docType(b,g,f);case t.AttributeDeclaration:return this.dtdAttList(b,g,f);case t.ElementDeclaration:return this.dtdElement(b,g,f);case t.EntityDeclaration:return this.dtdEntity(b,g,f);case t.NotationDeclaration:return this.dtdNotation(b,g,f);default:throw new Error("Unknown XML node type: "+b.constructor.name)}},R.prototype.processingInstruction=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<?",g.state=e.InsideTag,w+=b.target,b.value&&(w+=" "+b.value),g.state=e.CloseTag,w+=g.spaceBeforeSlash+"?>",w+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.raw=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f),g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.text=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f),g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.dtdAttList=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<!ATTLIST",g.state=e.InsideTag,w+=" "+b.elementName+" "+b.attributeName+" "+b.attribut
Line truncated
|
||||
`||x==="\r"||x===" "}function g(x){return x==='"'||x==="'"}function f(x){return x===">"||b(x)}function w(x,y){return x.test(y)}function C(x,y){return!w(x,y)}var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var y=t.ENTITIES[x],z=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[x]=z});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function _(x,y,z){x[y]&&x[y](z)}function O(x,y,z){x.textNode&&B(x),_(x,y,z)}function B(x){x.textNode=j(x.opt,x.textNode),x.textNode&&_(x,"ontext",x.textNode),x.textNode=""}function j(x,y){return x.trim&&(y=y.trim()),x.normalize&&(y=y.replace(/\s+/g," ")),y}function re(x,y){return B(x),x.trackPosition&&(y+=`
|
||||
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new H6.Pattern(n));return i.searchPaths.push(...Ap.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return km(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield ks.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){jm.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield ks.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield ks.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){jm.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};ht.DefaultGlobber=Um});var $6=T(on=>{"use strict";var BS=on&&on.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(on,"__esModule",{value:!0});on.create=void 0;var AS=V6();function MS(t,e){return BS(this,void 0,void 0,function*(){return yield AS.DefaultGlobber.create(t,e)})}o(MS,"create");on.create=MS});var Q6=T((ie,Y6)=>{ie=Y6.exports=se;var Ne;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ne=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Ne=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var Us=256,Mp=Number.MAX_SAFE_INTEGER||9007199254740991,Hm=16,qS=Us-6,pn=ie.re=[],we=ie.safeRe=[],M=ie.src=[],B=ie.tokens={},W6=0;function pe(t){B[t]=W6++}o(pe,"tok");var Vm="[a-zA-Z0-9-]",Fm=[["\\s",1],["\\d",Us],[Vm,qS]];function Fs(t){for(var e=0;e<Fm.length;e++){var a=Fm[e][0],i=Fm[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Fs,"makeSafeRe");pe("NUMERICIDENTIFIER");M[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";pe("NUMERICIDENTIFIERLOOSE");M[B.NUMERICIDENTIFIERLOOSE]="\\d+";pe("NONNUMERICIDENTIFIER");M[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Vm+"*";pe("MAINVERSION");M[B.MAINVERSION]="("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")";pe("MAINVERSIONLOOSE");M[B.MAINVERSIONLOOSE]="("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")";pe("PRERELEASEIDENTIFIER");M[B.PRERELEASEIDENTIFIER]="(?:"+M[B.NUMERICIDENTIFIER]+"|"+M[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASEIDENTIFIERLOOSE");M[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[B.NUMERICIDENTIFIERLOOSE]+"|"+M[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASE");M[B.PRERELEASE]="(?:-("+M[B.PRERELEASEIDENTIFIER]+"(?:\\."+M[B.PRERELEASEIDENTIFIER]+")*))";pe("PRERELEASELOOSE");M[B.PRERELEASELOOSE]="(?:-?("+M[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[B.PRERELEASEIDENTIFIERLOOSE]+")*))";pe("BUILDIDENTIFIER");M[B.BUILDIDENTIFIER]=Vm+"+";pe("BUILD");M[B.BUILD]="(?:\\+("+M[B.BUILDIDENTIFIER]+"(?:\\."+M[B.BUILDIDENTIFIER]+")*))";pe("FULL");pe("FULLPLAIN");M[B.FULLPLAIN]="v?"+M[B.MAINVERSION]+M[B.PRERELEASE]+"?"+M[B.BUILD]+"?";M[B.FULL]="^"+M[B.FULLPLAIN]+"$";pe("LOOSEPLAIN");M[B.LOOSEPLAIN]="[v=\\s]*"+M[B.MAINVERSIONLOOSE]+M[B.PRERELEASELOOSE]+"?"+M[B.BUILD]+"?";pe("LOOSE");M[B.LOOSE]="^"+M[B.LOOSEPLAIN]+"$";pe("GTLT");M[B.GTLT]="((?:<|>)?=?)";pe("XRANGEIDENTIFIERLOOSE");M[B.XRANGEIDENTIFIERLOOSE]=M[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pe("XRANGEIDENTIFIER");M[B.XRANGEIDENTIFIER]=M[B.NUMERICIDENTIFIER]+"|x|X|\\*";pe("XRANGEPLAIN");M[B.XRANGEPLAIN]="[v=\\s]*("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:"+M[B.PRERELEASE]+")?"+M[B.BUILD]+"?)?)?";pe("XRANGEPLAINLOOSE");M[B.XRANGEPLAINLOOSE]="[v=\\s]*("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:"+M[B.PRERELEASELOOSE]+")?"+M[B.BUILD]+"?)?)?";pe("XRANGE");M[B.XRANGE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAIN]+"$";pe("XRANGELOOSE");M[B.XRANGELOOSE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAINLOOSE]+"$";pe("COERCE");M[B.COERCE]="(^|[^\\d])(\\d{1,"+Hm+"})(?:\\.(\\d{1,"+Hm+"}))?(?:\\.(\\d{1,"+Hm+"}))?(?:$|[^\\d])";pe("COERCERTL");pn[B.COERCERTL]=new RegExp(M[B.COERCE],"g");we[B.COERCERTL]=new RegExp(Fs(M[B.COERCE]),"g");pe("LONETILDE");M[B.LONETILDE]="(?:~>?)";pe("TILDETRIM");M[B.TILDETRIM]="(\\s*)"+M[B.LONETILDE]+"\\s+";pn[B.TILDETRIM]=new RegExp(M[B.TILDETRIM],"g");we[B.TILDETRIM]=new RegExp(Fs(M[B.TILDETRIM]),"g");var zS="$1~";pe("TILDE");M[B.TILDE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAIN]+"$";pe("TILDELOOSE");M[B.TILDELOOSE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAINLOOSE]+"$";pe("LONECARET");M[B.LONECARET]="(?:\\^)";pe("CARETTRIM");M[B.CARETTRIM]="(\\s*)"+M[B.LONECARET]+"\\s+";pn[B.CARETTRIM]=new
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var l=!0,c=wE(d.globGenerator()),m;m=yield c.next(),e=m.done,!e;l=!0){r=m.value,l=!1;let u=r,f=kp.relative(p,u).replace(new RegExp(`\\${kp.sep}`,"g"),"/");Vs.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(u){a={error:u}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(PE,"resolvePaths");ve.resolvePaths=PE;function RE(t){return cn(this,void 0,void 0,function*(){return EE.promisify(Km.unlink)(t)})}o(RE,"unlinkFile");ve.unlinkFile=RE;function i4(t,e=[]){return cn(this,void 0,void 0,function*(){let a="";e.push("--version"),Vs.debug(`Checking ${t} ${e.join(" ")}`);try{yield NE.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){Vs.debug(i.message)}return a=a.trim(),Vs.debug(a),a})}o(i4,"getVersion");function DE(){return cn(this,void 0,void 0,function*(){let t=yield i4("zstd",["--quiet"]),e=SE.clean(t);return Vs.debug(`zstd version: ${e}`),t===""?wr.CompressionMethod.Gzip:wr.CompressionMethod.ZstdWithoutLong})}o(DE,"getCompressionMethod");ve.getCompressionMethod=DE;function IE(t){return t===wr.CompressionMethod.Gzip?wr.CacheFilename.Gzip:wr.CacheFilename.Zstd}o(IE,"getCacheFileName");ve.getCacheFileName=IE;function BE(){return cn(this,void 0,void 0,function*(){return Km.existsSync(wr.GnuTarPathOnWindows)?wr.GnuTarPathOnWindows:(yield i4("tar")).toLowerCase().includes("gnu tar")?t4.which("tar"):""})}o(BE,"getGnuTarPathOnWindows");ve.getGnuTarPathOnWindows=BE;function AE(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(AE,"assertDefined");ve.assertDefined=AE;function ME(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(CE),a4.createHash("sha256").update(i.join("|")).digest("hex")}o(ME,"getCacheVersion");ve.getCacheVersion=ME;function qE(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(qE,"getRuntimeToken");ve.getRuntimeToken=qE});function $s(){return jp>Up.length-16&&(r4.default.randomFillSync(Up),jp=0),Up.slice(jp,jp+=16)}var r4,Up,jp,Ym=Bt(()=>{r4=Is(require("crypto")),Up=new Uint8Array(256),jp=Up.length;o($s,"rng")});var n4,s4=Bt(()=>{n4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function zE(t){return typeof t=="string"&&n4.test(t)}var ji,Gs=Bt(()=>{s4();o(zE,"validate");ji=zE});function LE(t,e=0){let a=(Pt[t[e+0]]+Pt[t[e+1]]+Pt[t[e+2]]+Pt[t[e+3]]+"-"+Pt[t[e+4]]+Pt[t[e+5]]+"-"+Pt[t[e+6]]+Pt[t[e+7]]+"-"+Pt[t[e+8]]+Pt[t[e+9]]+"-"+Pt[t[e+10]]+Pt[t[e+11]]+Pt[t[e+12]]+Pt[t[e+13]]+Pt[t[e+14]]+Pt[t[e+15]]).toLowerCase();if(!ji(a))throw TypeError("Stringified UUID is invalid");return a}var Pt,Ui,Xs=Bt(()=>{Gs();Pt=[];for(let t=0;t<256;++t)Pt.push((t+256).toString(16).substr(1));o(LE,"stringify");Ui=LE});function kE(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||o4,s=t.clockseq!==void 0?t.clockseq:Qm;if(n==null||s==null){let u=t.random||(t.rng||$s)();n==null&&(n=o4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),s==null&&(s=Qm=(u[6]<<8|u[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:Zm+1,l=p-Jm+(d-Zm)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||p>Jm)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Jm=p,Zm=d,Qm=s,p+=122192928e5;let c=((p&268435455)*1e4+d)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let m=p/4294967296*1e4&268435455;r[i++]=m>>>8&255,r[i++]=m&255,r[i++]=m>>>24&15|16,r[i++]=m>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let u=0;u<6;++u)r[i+u]=n[u];return e||Ui(r)}var o4,Qm,Jm,Zm,p4,d4=Bt(()=>{Ym();Xs();Jm=0,Zm=0;o(kE,"v1");p4=kE});function jE(t){if(!ji(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Hp,eu=Bt(()=>{Gs();o(jE,"parse");Hp=jE});function UE(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Ws(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=UE(r)),typeof n=="string"&&(n=Hp(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+r.length);if(d.set(n),d.set(r,n.length),d=a(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){p=p||0;for(let l=0;l<16;++l)s[p+l]=d[l];return s}return Ui(d)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=HE,i.URL=FE,i}var HE,FE,tu=Bt(()=>{Xs();eu();o(UE,"stringToBytes");HE="6ba7b810-9dad-11d1-80b4-00c04fd430c8",FE
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(ru)});var Xa=T((Y4,Hi)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,d={}.hasOwnProperty;t=o(function(){var l,c,m,u,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=f.length;l<m;l++)if(u=f[l],u!=null)for(c in u)d.call(u,c)&&(h[c]=u[c]);return h},"assign"),r=o(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=o(function(l){var c;return!!l&&((c=typeof l)=="function"||c==="object")},"isObject"),a=o(function(l){return r(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=o(function(l){var c;if(a(l))return!l.length;for(c in l)if(d.call(l,c))return!1;return!0},"isEmpty"),s=o(function(l){var c,m;return n(l)&&(m=Object.getPrototypeOf(l))&&(c=m.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(l){return r(l.valueOf)?l.valueOf():l},"getValue"),Hi.exports.assign=t,Hi.exports.isFunction=r,Hi.exports.isObject=n,Hi.exports.isArray=a,Hi.exports.isEmpty=i,Hi.exports.isPlainObject=s,Hi.exports.getValue=e}).call(Y4)});var nu=T((Q4,J4)=>{(function(){var t;J4.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(Q4)});var t3=T((Z4,e3)=>{(function(){var t;e3.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(Z4)});var r3=T((a3,i3)=>{(function(){var t;i3.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(a3)});var o3=T((n3,s3)=>{(function(){var t,e,a;e=t3(),a=r3(),s3.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(n3)});var at=T((p3,d3)=>{(function(){d3.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(p3)});var su=T((l3,c3)=>{(function(){var t,e,a;t=at(),a=ia(),c3.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi
Line truncated
|
||||
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(I=w.dontPrettyTextNodes)!=null?I:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(E=(R=w.spaceBeforeSlash)!=null?R:w.spacebeforeslash)!=null?E:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},D.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},D.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},D.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},D.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.docType=function(w,y,g){var _,O,N,I,E;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,I=this.indent(w,y,g),I+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(I+=" [",I+=this.endline(w,y,g),y.state=e.InsideTag,E=w.children,O=0,N=E.length;O<N;O++)_=E[O],I+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,I+="]"}return y.state=e.CloseTag,I+=y.spaceBeforeSlash+">",I+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),I},D.prototype.element=function(w,y,g){var _,O,N,I,E,R,A,j,oe,he,Q,et,ue,Oa;g||(g=0),he=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,et=w.attribs;for(oe in et)S.call(et,oe)&&(_=et[oe],Q+=this.attribute(_,y,g));if(N=w.children.length,I=N===0?null:w.children[0],N===0||w.children.every(function(kt){return(kt.type===t.Text||kt.type===t.Raw)&&kt.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(I.type===t.Text||I.type===t.Raw)&&I.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,he=!0,Q+=this.writeChildNode(I,y,g+1),y.suppressPrettyCount--,he=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(ue=w.children,E=0,A=ue.length;E<A;E++)if(O=ue[E],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,he=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Oa=w.children,R=0,j=Oa.length;R<j;R++)O=Oa[R],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",he&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},D.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},D.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut
Line truncated
|
||||
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function _(x,v){return x.test(v)}o(_,"isMatch");function O(x,v){return!_(x,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],q=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=q});for(var I in t.STATE)t.STATE[t.STATE[I]]=I;N=t.STATE;function E(x,v,q){x[v]&&x[v](q)}o(E,"emit");function R(x,v,q){x.textNode&&A(x),E(x,v,q)}o(R,"emitNode");function A(x){x.textNode=j(x.opt,x.textNode),x.textNode&&E(x,"ontext",x.textNode),x.textNode=""}o(A,"closeText");function j(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(j,"textopts");function oe(x,v){return A(x),x.trackPosition&&(v+=`
|
||||
Line: `+x.line+`
|
||||
Column: `+x.column+`
|
||||
Char: `+x.c),y=new Error(y),x.error=y,_(x,"onerror",y),x}function ce(x){return x.sawRoot&&!x.closedRoot&&W(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&re(x,"Unexpected end"),B(x),x.c="",x.closed=!0,_(x,"onend"),a.call(x,x.strict,x.opt),x}function W(x,y){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&re(x,y)}function Ve(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var y=x.tags[x.tags.length-1]||x,z=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(z.ns=y.ns),x.attribList.length=0,O(x,"onopentagstart",z)}function le(x,y){var z=x.indexOf(":"),P=z<0?["",x]:x.split(":"),_e=P[0],Qe=P[1];return y&&x==="xmlns"&&(_e="xmlns",Qe=""),{prefix:_e,local:Qe}}function ta(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var y=le(x.attribName,!0),z=y.prefix,P=y.local;if(z==="xmlns")if(P==="xml"&&x.attribValue!==m)W(x,"xml: prefix must be bound to "+m+`
|
||||
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==u)W(x,"xmlns: prefix must be bound to "+u+`
|
||||
Actual: `+x.attribValue);else{var _e=x.tag,Qe=x.tags[x.tags.length-1]||x;_e.ns===Qe.ns&&(_e.ns=Object.create(Qe.ns)),_e.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,O(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}function _t(x,y){if(x.opt.xmlns){var z=x.tag,P=le(x.tagName);z.prefix=P.prefix,z.local=P.local,z.uri=z.ns[P.prefix]||"",z.prefix&&!z.uri&&(W(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),z.uri=P.prefix);var _e=x.tags[x.tags.length-1]||x;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(a0){O(x,"onopennamespace",{prefix:a0,uri:z.ns[a0]})});for(var Qe=0,at=x.attribList.length;Qe<at;Qe++){var St=x.attribList[Qe],fa=St[0],cr=St[1],mt=le(fa,!0),Ra=mt.prefix,Zy=mt.local,t0=Ra===""?"":z.ns[Ra]||"",jd={name:fa,value:cr,prefix:Ra,local:Zy,uri:t0};Ra&&Ra!=="xmlns"&&!t0&&(W(x,"Unbound namespace prefix: "+JSON.stringify(Ra)),jd.uri=Ra),x.tag.attributes[fa]=jd,O(x,"onattribute",jd)}x.attribList.length=0}x.tag.isSelfClosing=!!y,x.sawRoot=!0,x.tags.push(x.tag),O(x,"onopentag",x.tag),y||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}function lr(x){if(!x.tagName){W(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}O(x,"onscript",x.script),x.script=""}var y=x.tags.length,z=x.tagName;x.strict||(z=z[x.looseCase]());for(var P=z;y--;){var _e=x.tags[y];if(_e.name!==P)W(x,"Unexpected close tag");else break}if(y<0){W(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=z;for(var Qe=x.tags.length;Qe-- >y;){var at=x.tag=x.tags.pop();x.tagName=x.tag.name,O(x,"onclosetag",x.tagName);var St={};for(var fa in at.ns)St[fa]=at.ns[fa];var cr=x.tags[x.tags.length-1]||x;x.opt.xmlns&&at.ns!==cr.ns&&Object.keys(at.ns).forEach(function(mt){var Ra=at.ns[mt];O(x,"onclosenamespace",{prefix:mt,uri:Ra})})}y===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}function hn(x){var y=x.entity,z=y.toLowerCase(),P,_e="";return x.ENTITIES[y]?x.ENTITIES[y]:x.ENTITIES[z]?x.ENTITIES[z]:(y=z,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),P=parseInt(y,16),_e=P.toString(16)):(y=y.slice(1),P=parseInt(y,10),_e=P.toString(10))),y=y.replace(/^0+/,""),isNaN(P)||_e.toLowerCase()!==y?(W(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}function Zu(x,y){y==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):b(y)||(W(x,"Non-whitespace before first tag."),x.textNode=y,x.state=N.TEXT)}function e0(x,y){var z="";return y<x.length&&(z=x.charAt(y)),z}function Jy(x){var y=this;if(this.error)throw this.error;if(y.closed)return re(y,"Cannot write after close. Assign an onready handler.");if(x===null)return ce(y);typeof x=="object"&&(x=x.toString());for(var z=0,P="";P=e0(x,z++),y.c=P,!!P;)switch(y.trackPosition&&(y.position++,P===`
|
||||
`?(y.line++,y.column=0):y.column++),y.state){case N.BEGIN:if(y.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;Zu(y,P);continue;case N.BEGIN_WHITESPACE:Zu(y,P);continue;case N.TEXT:if(y.sawRoot&&!y.closedRoot){for(var _e=z-1;P&&P!=="<"&&P!=="&";)P=e0(x,z++),P&&y.trackPosition&&(y.position++,P===`
|
||||
`?(y.line++,y.column=0):y.column++);y.textNode+=x.substring(_e,z-1)}P==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=N.OPEN_WAKA,y.startTagPosition=y.position):(!b(P)&&(!y.sawRoot||y.closedRoot)&&W(y,"Text data outside of root node."),P==="&"?y.state=N.TEXT_ENTITY:y.textNode+=P);continue;case N.SCRIPT:P==="<"?y.state=N.SCRIPT_ENDING:y.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?y.state=N.CLOSE_TAG:(y.script+="<"+P,y.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")y.state=N.SGML_DECL,y.sgmlDecl="";else if(!b(P))if(w(v,P))y.state=N.OPEN_TAG,y.tagName=P;else if(P==="/")y.state=N.CLOSE_TAG,y.tagName="";else if(P==="?")y.state=N.PROC_INST,y.procInstName=y.procInstBody="";else{if(W(y,"Unencoded <"),y.startTagPosition+1<y.position){var Qe=y.position-y.startTagPosition;P=new Array(Qe).join(" ")+P}y.textNode+="<"+P,y.state=N.TEXT}continue;case N.SGML_DECL:(y.sgmlDecl+P).toUpperCase()===l?(O(y,"onopencdata"),y.state=N.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+P==="--"?(y.state=N.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+P).toUpperCase()===c?(y.state=N.DOCTYPE,(y.doctype||y.sawRoot)&&W(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):P===">"?(O(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=N.TEXT):(g(P)&&(y.state=N.SGML_DECL_QUOTED),y.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===y.q&&(y.state=N.SGML_DECL,y.q=""),y.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(y.state=N.TEXT,O(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=P,P==="["?y.state=N.DOCTYPE_DTD:g(P)&&(y.state=N.DOCTYPE_QUOTED,y.q=P));continue;case N.DOCTYPE_QUOTED:y.doctype+=P,P===y.q&&(y.q="",y.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:y.doctype+=P,P==="]"?y.state=N.DOCTYPE:g(P)&&(y.state=N.DOCTYPE_DTD_QUOTED,y.q=P);continue;case N.DOCTYPE_DTD_QUOTED:y.doctype+=P,P===y.q&&(y.state=N.DOCTYPE_DTD,y.q="");continue;case N.COMMENT:P==="-"?y.state=N.COMMENT_ENDING:y.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(y.state=N.COMMENT_ENDED,y.comment=j(y.opt,y.comment),y.comment&&O(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+P,y.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(W(y,"Malformed comment"),y.comment+="--"+P,y.state=N.COMMENT):y.state=N.TEXT;continue;case N.CDATA:P==="]"?y.state=N.CDATA_ENDING:y.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?y.state=N.CDATA_ENDING_2:(y.cdata+="]"+P,y.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(y.cdata&&O(y,"oncdata",y.cdata),O(y,"onclosecdata"),y.cdata="",y.state=N.TEXT):P==="]"?y.cdata+="]":(y.cdata+="]]"+P,y.state=N.CDATA);continue;case N.PROC_INST:P==="?"?y.state=N.PROC_INST_ENDING:b(P)?y.state=N.PROC_INST_BODY:y.procInstName+=P;continue;case N.PROC_INST_BODY:if(!y.procInstBody&&b(P))continue;P==="?"?y.state=N.PROC_INST_ENDING:y.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(O(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=N.TEXT):(y.procInstBody+="?"+P,y.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:w(E,P)?y.tagName+=P:(Ve(y),P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:(b(P)||W(y,"Invalid character in tag name"),y.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(_t(y,!0),lr(y)):(W(y,"Forward-slash in opening tag not followed by >"),y.state=N.ATTRIB);continue;case N.ATTRIB:if(b(P))continue;P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:w(v,P)?(y.attribName=P,y.attribValue="",y.state=N.ATTRIB_NAME):W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?y.state=N.ATTRIB_VALUE:P===">"?(W(y,"Attribute without value"),y.attribValue=y.attribName,ta(y),_t(y)):b(P)?y.state=N.ATTRIB_NAME_SAW_WHITE:w(E,P)?y.attribName+=P:W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")y.state=N.ATTRIB_VALUE;else{if(b(P))continue;W(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",O(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",P===">"?_t(y):w(v,P)?(y.attribName=P,y.state=N.ATTRIB_NAME):(W(y,"Invalid attribute name"),y.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(b(P))continue;g(P)?(y.q=P,y.state=N.ATTRIB_VALUE_QUOTED):(W(y,"Unquoted attribute value"),y.state=N.ATTRIB_VALUE_UNQUOTED,y.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==y.q){P==="&"?y.state=N.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=P;continue}ta(y),y.q="",y.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:b(P)?y.state=N.ATTRIB:P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:w(v,P)?(W(y,"No whitespace between attributes"),y.attribName=P,y.attribValue="",y.state=N.ATTRIB_NAME):W(y,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!f(P)){P==="&"?y.state=N.ATTRIB_VALUE_ENTITY_U:y.attribValue+=P;continue}ta(y),P===">"?_t(y):y.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(y.tagName)P===">"?lr(y):w(E,P)?y.tagName+=P:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=N.SCRIPT):(b(P)||W(y,"Invalid tagname in closing tag"),y.state=N.CLOSE_TAG_SAW_WHITE);else{if(b(P))continue;C
Line truncated
|
||||
`;me.DEFAULT_CONTENT_TYPE="application/octet-stream";me.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=jc.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Rh.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};me.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+me.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof aS))&&(a.knownLength||this._valuesToMeasure.push(e))};me.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):tS.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};me.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&Lc(s,a.header);var o;for(var p in s)s.hasOwnProperty(p)&&(o=s[p],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=p+": "+o.join("; ")+me.LINE_BREAK)));return"--"+this.getBoundary()+me.LINE_BREAK+n+me.LINE_BREAK};me.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=qc.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=qc.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=qc.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};me.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=Mc.lookup(t.name)),!a&&t.path&&(a=Mc.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=Mc.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=me.DEFAULT_CONTENT_TYPE),a};me.prototype._multiPartFooter=function(){return function(t){var e=me.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};me.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+me.LINE_BREAK};me.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};me.prototype.setBoundary=function(t){this._boundary=t};me.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};me.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(me.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};me.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};me.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};me.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};me.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}iS.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};me.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=eS(t),i=Lc({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=Lc(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=Z_.request(i):a=J_.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var o,p=function(d,l){return a.removeListener("error",p),a.removeListener("response",o),e.call(this,d,l)};o=p.bind(this,null),a.on("error",p),a.on("response",o)}}.bind(this)),a};me.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};
Line truncated
|
||||
${QT.sanitize(this)}`}};Lt.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";Lt.PARSE_ERROR="PARSE_ERROR";var da=KC.createClientLogger("core-http");function D9(t,e){return t?e.httpsAgent:e.httpAgent}var Wp=class extends ZC.Transform{constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Up(t){return t&&typeof t.pipe=="function"}function I9(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}function YT(t){let e=new bi;return t.forEach((a,i)=>{e.set(i,a)}),e}var Qp=class{constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Fp.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fp.AbortError("The operation was aborted.");r=d=>{d.type==="abort"&&i.abort()},e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,l=new aT.default,c=(u,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?l.append(u,h.value,h.options):l.append(u,h)};for(let u of Object.keys(d)){let h=d[u];if(Array.isArray(h))for(let v=0;v<h.length;v++)c(u,h[v]);else c(u,h)}e.body=l,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof l.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${l.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,l=new Wp(d);Up(n)?n.pipe(l):l.end(n),n=l}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),p;try{let d=await this.fetch(e.url,o),l=YT(d.headers),c=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;p={headers:l,request:e,status:d.status,readableStreamBody:c?d.body:void 0,bodyAsText:c?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let u=d.body||void 0;if(Up(u)){let h=new Wp(m);u.pipe(h),p.readableStreamBody=h}else{let h=parseInt(l.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(p),p}catch(d){let l=d;throw l.code==="ENOTFOUND"?new Lt(l.message,Lt.REQUEST_SEND_ERROR,void 0,e):l.type==="aborted"?new Fp.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&r){let d=Promise.resolve();Up(n)&&(d=I9(n));let l=Promise.resolve();Up(p?.readableStreamBody)&&(l=I9(p.readableStreamBody,i)),Promise.all([d,l]).then(()=>{var c;(c=e.abortSignal)===null||c===void 0||c.removeEventListener("abort",r)}).catch(c=>{da.warning("Error when cleaning up abortListener on httpRequest",c)})}}}getOrCreateAgent(e){var a;let i=Km(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:o}=e.proxySettings,p=`${r}:${n}:${s}:${o}`,d=(a=this.proxyAgentMap.get(p))!==null&&a!==void 0?a:{},l=D9(i,d);if(l)return l;let c=GT(e.url,e.proxySettings,e.headers);return l=c.agent,c.isHttps?d.httpsAgent=c.agent:d.httpAgent=c.agent,this.proxyAgentMap.set(p,d),l}else if(e.keepAlive){let r=D9(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new C9.Agent(n):r=this.keepAliveAgents.httpAgent=new E9.Agent(n),r}else return i?C9.globalAgent:E9.globalAgent}async fetch(e,a){return iT.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};U.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(U.HttpPipelineLogLevel||(U.HttpPipelineLogLevel={}));function JT(t){let{requestOptions:e,tracingOptions:a}=t,r=GC.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}var Ze=class{constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},Yp=class{constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==U.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},J9={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:Je,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:void 0,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:void 0,attrValueProcessors:void 0,tagNameProcessors:void 0,valueProcessors:void 0,rootName:"root",xmldec:{version:"1.0",
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},$p=Object.assign({},J9);$p.explicitArray=!1;var ls=Object.assign({},J9);ls.explicitArray=!1;ls.renderOpts={pretty:!1};function Wm(t,e={}){var a;return ls.rootName=e.rootName,ls.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Ua,new H9.Builder(ls).buildObject(t)}function Z9(t,e={}){var a;$p.explicitRoot=!!e.includeRoot,$p.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Ua;let i=new H9.Parser($p);return new Promise((r,n)=>{t?i.parseString(t,(s,o)=>{s?n(s):r(o)}):n(new Error("Document is empty"))})}function x1(t,e){return{create:(a,i)=>new Qm(a,i,t,e)}}var e5=["application/json","text/json"],t5=["application/xml","application/atom+xml"],ZT={expectedContentTypes:{json:e5,xml:t5}},Qm=class extends Ze{constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||e5,this.xmlContentTypes=i&&i.xml||t5,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Ua}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>a5(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function eP(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}function tP(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}function a5(t,e,a,i={}){var r,n,s;let o={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Ua};return rP(t,e,a,o).then(p=>{if(!tP(p))return p;let d=p.request.operationSpec;if(!d||!d.responses)return p;let l=eP(p),{error:c,shouldReturnResponse:m}=iP(p,d,l);if(c)throw c;if(m)return p;if(l){if(l.bodyMapper){let u=p.parsedBody;d.isXML&&l.bodyMapper.type.name===Qi.Sequence&&(u=typeof u=="object"?u[l.bodyMapper.xmlElementName]:[]);try{p.parsedBody=d.serializer.deserialize(l.bodyMapper,u,"operationRes.parsedBody",i)}catch(h){throw new Lt(`Error ${h} occurred in deserializing the responseBody - ${p.bodyAsText}`,void 0,p.status,p.request,p)}}else d.httpMethod==="HEAD"&&(p.parsedBody=a.status>=200&&a.status<300);l.headersMapper&&(p.parsedHeaders=d.serializer.deserialize(l.headersMapper,p.headers.toJson(),"operationRes.parsedHeaders",i))}return p})}function aP(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function iP(t,e,a){var i;let r=200<=t.status&&t.status<300;if(aP(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,p=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new Lt(p,void 0,t.status,t.request,t);if(!s)throw d;let l=s.bodyMapper,c=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,u;if(l){let v=m;e.isXML&&l.type.name===Qi.Sequence&&(v=typeof m=="object"?m[l.xmlElementName]:[]),u=e.serializer.deserialize(l,v,"error.response.parsedBody")}let h=m.error||u||m;d.code=h.code,h.message&&(d.message=h.message),l&&(d.response.parsedBody=u)}t.headers&&c&&(d.response.parsedHeaders=e.serializer.deserialize(c,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}function rP(t,e,a,i){var r;let n=o=>{let p=`Error "${o}" occurred while parsing the response body - ${a.bodyAsText}.`,d=o.code||Lt.PARSE_ERROR,l=new Lt(p,d,a.status,a.request,a);return Promise.reject(l)};if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let o=a.bodyAsText,p=a.headers.get("Content-Type")||"",d=p?p.split(";").map(l=>l.toLowerCase()):[];if(d.length===0||d.some(l=>t.indexOf(l)!==-1))return new Promise(l=>{a.parsedBody=JSON.parse(o),l(a)}).catch(n);if(d.some(l=>e.indexOf(l)!==-1))return Z9(o,i).then(l=>(a.parsedBody=l,a)).catch(n)}return Promise.resolve(a)}var i5={enable:!0};function r5(t){return{create:(e,a)=>new Ym(e,a,t||i5)}}var Ym=class extends Ze{constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},B9=["GET","HEAD"],nP={handleRedirects:!0,maxRetries:20};function b1(t=20){return{create:(e,a)=>new Jm(e,a,t)}}var Jm=class extends Ze{constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>n5(this,a,0))}};function n5(t,e,a){let{request:i,status:r}=e,n=e.headers.get("location");if(n&&(r===300||r===301&&B9.includes(i.method)||r===302&&B9.includes(i.method)||r===303&&i.method==="POST"||r===307)&&(!t.maxRetries||a<t.maxRetries)){let s=Ca.parse(i.url);return s.setPath(n),i.url=s.toString(),r===303&&(i.method="GET",delete i.body),t._nextPolicy.sendRequest(i).then(o=>n5(t,o,a+1))}return Promise.resolve(e)}var N1=3
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},c5=[],m5=!1,vP=new Map;function xP(){if(!process)return;let t=Vp(Yt.HTTPS_PROXY),e=Vp(Yt.ALL_PROXY),a=Vp(Yt.HTTP_PROXY);return t||e||a}function bP(t,e,a){if(e.length===0)return!1;let i=Ca.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}function NP(){let t=Vp(Yt.NO_PROXY);return m5=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function u5(t){if(!t&&(t=xP(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=wP(t),r=Ca.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}function P1(t,e){return t||(t=u5()),m5||c5.push(...NP()),{create:(a,i)=>new s1(a,i,t,e?.customNoProxyList)}}function wP(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,o=s?r.substring(0,n):r,p=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:o,password:p,urlWithoutAuth:d}}var s1=class extends Ze{constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!bP(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:c5,this.customNoProxyList?void 0:vP)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function _P(t=30){return{create:(e,a)=>new o1(e,a,t)}}var o1=class extends Ze{constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>SP(this,e,a))}};function SP(t,e,a){if(a.status===409){let i=EP(a.bodyAsText);if(i){let r=CP(e.url);return TP(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ed()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}function f5(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",ed()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}function EP(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}function CP(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}async function TP(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=f5(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return h5(t,n,i)}async function h5(t,e,a){let i=f5(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Ea.delay(t._retryTimeout*1e3),h5(t,e,a))}function g5(t){return{create:(e,a)=>new p1(e,a,t)}}var p1=class extends Ze{constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function O1(t,e,a,i){return{create:(r,n)=>new d1(r,n,t,e,a,i)}}var d1=class extends Ze{constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Wi(i)?i:N1,this.retryInterval=Wi(r)?r:w1,this.minRetryInterval=Wi(n)?n:sP,this.maxRetryInterval=Wi(s)?s:_1}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>y5(this,e,a.response,a))}};async function y5(t,e,a,i,r){r=o5(t,r,i);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(s5(t.retryCount,n,r,a,i))try{return await Ea.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return y5(t,e,a,s,r)}else return i?Promise.reject(r.error):a}var PP=3,A9=Yt.HttpConstants.StatusCodes;function R1(){return{create:(t,e)=>new l1(t,e)}}var z9="The operation was aborted.",l1=class t extends Ze{constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this._nextPolicy.sendRequest(e.clone());return a.status!==A9.TooManyRequests&&a.status!==A9.ServiceUnavailable?a:this._handleResponse(e,a)}async _defaultResponseHandler(e,a){var i;let r=a.headers.get(Yt.HeaderConstants.RETRY_AFTER);if(r){let n=t.parseRetryAfterHeader(r);if(n){if(this.numberOfRetries+=1,await Ea.delay(n,{abortSignal:e.abortSignal,abortErrorMsg:z9}),!((i=e.abortSignal)===null||i===void 0)&&i.aborted)throw new Fp.AbortError(z9);return this.numberOfRetries<PP?this.sendRequest(e):this._nextPolicy.sendRequest(e)}}return a}static parseRetryAfterHeader(e){let a=Number(e);return Number.isNaN(a)?t.parseDateRetryAfterHeader(e):a*1e3}static
Line truncated
|
||||
Char: `+x.c),v=new Error(v),x.error=v,E(x,"onerror",v),x}o(oe,"error");function he(x){return x.sawRoot&&!x.closedRoot&&Q(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&oe(x,"Unexpected end"),A(x),x.c="",x.closed=!0,E(x,"onend"),a.call(x,x.strict,x.opt),x}o(he,"end");function Q(x,v){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&oe(x,v)}o(Q,"strictFail");function et(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var v=x.tags[x.tags.length-1]||x,q=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(q.ns=v.ns),x.attribList.length=0,R(x,"onopentagstart",q)}o(et,"newTag");function ue(x,v){var q=x.indexOf(":"),P=q<0?["",x]:x.split(":"),Ce=P[0],ot=P[1];return v&&x==="xmlns"&&(Ce="xmlns",ot=""),{prefix:Ce,local:ot}}o(ue,"qname");function Oa(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var v=ue(x.attribName,!0),q=v.prefix,P=v.local;if(q==="xmlns")if(P==="xml"&&x.attribValue!==u)Q(x,"xml: prefix must be bound to "+u+`
|
||||
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==f)Q(x,"xmlns: prefix must be bound to "+f+`
|
||||
Actual: `+x.attribValue);else{var Ce=x.tag,ot=x.tags[x.tags.length-1]||x;Ce.ns===ot.ns&&(Ce.ns=Object.create(ot.ns)),Ce.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,R(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Oa,"attrib");function kt(x,v){if(x.opt.xmlns){var q=x.tag,P=ue(x.tagName);q.prefix=P.prefix,q.local=P.local,q.uri=q.ns[P.prefix]||"",q.prefix&&!q.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),q.uri=P.prefix);var Ce=x.tags[x.tags.length-1]||x;q.ns&&Ce.ns!==q.ns&&Object.keys(q.ns).forEach(function(vh){R(x,"onopennamespace",{prefix:vh,uri:q.ns[vh]})});for(var ot=0,ft=x.attribList.length;ot<ft;ot++){var jt=x.attribList[ot],Ha=jt[0],Qr=jt[1],Tt=ue(Ha,!0),pi=Tt.prefix,Bw=Tt.local,yh=pi===""?"":q.ns[pi]||"",Zc={name:Ha,value:Qr,prefix:pi,local:Bw,uri:yh};pi&&pi!=="xmlns"&&!yh&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(pi)),Zc.uri=pi),x.tag.attributes[Ha]=Zc,R(x,"onattribute",Zc)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),R(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(kt,"openTag");function Yr(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}R(x,"onscript",x.script),x.script=""}var v=x.tags.length,q=x.tagName;x.strict||(q=q[x.looseCase]());for(var P=q;v--;){var Ce=x.tags[v];if(Ce.name!==P)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=q;for(var ot=x.tags.length;ot-- >v;){var ft=x.tag=x.tags.pop();x.tagName=x.tag.name,R(x,"onclosetag",x.tagName);var jt={};for(var Ha in ft.ns)jt[Ha]=ft.ns[Ha];var Qr=x.tags[x.tags.length-1]||x;x.opt.xmlns&&ft.ns!==Qr.ns&&Object.keys(ft.ns).forEach(function(Tt){var pi=ft.ns[Tt];R(x,"onclosenamespace",{prefix:Tt,uri:pi})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}o(Yr,"closeTag");function Rs(x){var v=x.entity,q=v.toLowerCase(),P,Ce="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[q]?x.ENTITIES[q]:(v=q,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),P=parseInt(v,16),Ce=P.toString(16)):(v=v.slice(1),P=parseInt(v,10),Ce=P.toString(10))),v=v.replace(/^0+/,""),isNaN(P)||Ce.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}o(Rs,"parseEntity");function hh(x,v){v==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=N.TEXT)}o(hh,"beginWhiteSpace");function gh(x,v){var q="";return v<x.length&&(q=x.charAt(v)),q}o(gh,"charAt");function Iw(x){var v=this;if(this.error)throw this.error;if(v.closed)return oe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return he(v);typeof x=="object"&&(x=x.toString());for(var q=0,P="";P=gh(x,q++),v.c=P,!!P;)switch(v.trackPosition&&(v.position++,P===`
|
||||
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;hh(v,P);continue;case N.BEGIN_WHITESPACE:hh(v,P);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Ce=q-1;P&&P!=="<"&&P!=="&";)P=gh(x,q++),P&&v.trackPosition&&(v.position++,P===`
|
||||
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Ce,q-1)}P==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(P)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),P==="&"?v.state=N.TEXT_ENTITY:v.textNode+=P);continue;case N.SCRIPT:P==="<"?v.state=N.SCRIPT_ENDING:v.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+P,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(P))if(_(b,P))v.state=N.OPEN_TAG,v.tagName=P;else if(P==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(P==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var ot=v.position-v.startTagPosition;P=new Array(ot).join(" ")+P}v.textNode+="<"+P,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+P).toUpperCase()===c?(R(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+P==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+P).toUpperCase()===m?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):P===">"?(R(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(P)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(v.state=N.TEXT,R(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=P,P==="["?v.state=N.DOCTYPE_DTD:y(P)&&(v.state=N.DOCTYPE_QUOTED,v.q=P));continue;case N.DOCTYPE_QUOTED:v.doctype+=P,P===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=P,P==="]"?v.state=N.DOCTYPE:y(P)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=P);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=P,P===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:P==="-"?v.state=N.COMMENT_ENDING:v.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(v.state=N.COMMENT_ENDED,v.comment=j(v.opt,v.comment),v.comment&&R(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+P,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(Q(v,"Malformed comment"),v.comment+="--"+P,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:P==="]"?v.state=N.CDATA_ENDING:v.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+P,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(v.cdata&&R(v,"oncdata",v.cdata),R(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):P==="]"?v.cdata+="]":(v.cdata+="]]"+P,v.state=N.CDATA);continue;case N.PROC_INST:P==="?"?v.state=N.PROC_INST_ENDING:w(P)?v.state=N.PROC_INST_BODY:v.procInstName+=P;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(P))continue;P==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(R(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+P,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(C,P)?v.tagName+=P:(et(v),P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:(w(P)||Q(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(kt(v,!0),Yr(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(P))continue;P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?v.state=N.ATTRIB_VALUE:P===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Oa(v),kt(v)):w(P)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(C,P)?v.attribName+=P:Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")v.state=N.ATTRIB_VALUE;else{if(w(P))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",R(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",P===">"?kt(v):_(b,P)?(v.attribName=P,v.state=N.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(P))continue;y(P)?(v.q=P,v.state=N.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==v.q){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=P;continue}Oa(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(P)?v.state=N.ATTRIB:P===">"?kt(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(Q(v,"No whitespace between attributes"),v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(P)){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=P;continue}Oa(v),P===">"?kt(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)P===">"?Yr(v):_(C,P)?v.tagName+=P:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(P)||Q(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(P))continue;O
Line truncated
|
||||
`;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=Uu.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),f5.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ge.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ge.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof xT))&&(a.knownLength||this._valuesToMeasure.push(e))};ge.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):bT.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};ge.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&ju(s,a.header);var p;for(var d in s)s.hasOwnProperty(d)&&(p=s[d],p!=null&&(Array.isArray(p)||(p=[p]),p.length&&(n+=d+": "+p.join("; ")+ge.LINE_BREAK)));return"--"+this.getBoundary()+ge.LINE_BREAK+n+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=Lu.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=Lu.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=Lu.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ge.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=ku.lookup(t.name)),!a&&t.path&&(a=ku.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=ku.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ge.DEFAULT_CONTENT_TYPE),a};ge.prototype._multiPartFooter=function(){return function(t){var e=ge.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};ge.prototype.setBoundary=function(t){this._boundary=t};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ge.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ge.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ge.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}wT.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ge.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=vT(t),i=ju({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=ju(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=yT.request(i):a=gT.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,d=o(function(l,c){return a.removeListener("error",d),a.removeListener("response",p),e.call(this,l,c)},"callback");p=d.bind(this,null),a.on("error",d),a.on("response",p)}}.bind(this)),a};ge.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit
Line truncated
|
||||
${fD.sanitize(this)}`}};na.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";na.PARSE_ERROR="PARSE_ERROR";var Ma=mR.createClientLogger("core-http");function hg(t,e){return t?e.httpsAgent:e.httpAgent}o(hg,"getCachedAgent");var bl=class extends yR.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function ml(t){return t&&typeof t.pipe=="function"}o(ml,"isReadableStream");function gg(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(gg,"isStreamComplete");function hD(t){let e=new Qi;return t.forEach((a,i)=>{e.set(i,a)}),e}o(hD,"parseHeaders");var xl=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new ul.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new ul.AbortError("The operation was aborted.");r=o(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,c=new xR.default,m=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(l)){let h=l[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)m(f,h[b]);else m(f,h)}e.body=c,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,c=new bl(l);ml(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),d;try{let l=await this.fetch(e.url,p),c=hD(l.headers),m=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(l.status))||e.streamResponseBody;d={headers:c,request:e,status:l.status,readableStreamBody:m?l.body:void 0,bodyAsText:m?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let f=l.body||void 0;if(ml(f)){let h=new bl(u);f.pipe(h),d.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&u({loadedBytes:h})}}return await this.processRequest(d),d}catch(l){let c=l;throw c.code==="ENOTFOUND"?new na(c.message,na.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new ul.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let l=Promise.resolve();ml(n)&&(l=gg(n));let c=Promise.resolve();ml(d?.readableStreamBody)&&(c=gg(d.readableStreamBody,i)),Promise.all([l,c]).then(()=>{var m;(m=e.abortSignal)===null||m===void 0||m.removeEventListener("abort",r)}).catch(m=>{Ma.warning("Error when cleaning up abortListener on httpRequest",m)})}}}getOrCreateAgent(e){var a;let i=Y1(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,d=`${r}:${n}:${s}:${p}`,l=(a=this.proxyAgentMap.get(d))!==null&&a!==void 0?a:{},c=hg(i,l);if(c)return c;let m=lD(e.url,e.proxySettings,e.headers);return c=m.agent,m.isHttps?l.httpsAgent=m.agent:l.httpAgent=m.agent,this.proxyAgentMap.set(d,l),c}else if(e.keepAlive){let r=hg(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new lg.Agent(n):r=this.keepAliveAgents.httpAgent=new dg.Agent(n),r}else return i?lg.globalAgent:dg.globalAgent}async fetch(e,a){return wR.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function gD(t){let{requestOptions:e,tracingOptions:a}=t,r=lR.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(gD,"operationOptionsToRequestOptionsBase");var lt=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},wl=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},qg={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:dt,explicitArray:!0,ignore
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},hl=Object.assign({},qg);hl.explicitArray=!1;var wo=Object.assign({},qg);wo.explicitArray=!1;wo.renderOpts={pretty:!1};function Q1(t,e={}){var a;return wo.rootName=e.rootName,wo.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:wi,new Eg.Builder(wo).buildObject(t)}o(Q1,"stringifyXML");function zg(t,e={}){var a;hl.explicitRoot=!!e.includeRoot,hl.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:wi;let i=new Eg.Parser(hl);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(zg,"parseXML");function Nf(t,e){return{create:(a,i)=>new J1(a,i,t,e)}}o(Nf,"deserializationPolicy");var Lg=["application/json","text/json"],kg=["application/xml","application/atom+xml"],yD={expectedContentTypes:{json:Lg,xml:kg}},J1=class extends lt{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Lg,this.xmlContentTypes=i&&i.xml||kg,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:wi}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>jg(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function vD(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(vD,"getOperationResponse");function bD(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(bD,"shouldDeserializeResponse");function jg(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:wi};return ND(t,e,a,p).then(d=>{if(!bD(d))return d;let l=d.request.operationSpec;if(!l||!l.responses)return d;let c=vD(d),{error:m,shouldReturnResponse:u}=wD(d,l,c);if(m)throw m;if(u)return d;if(c){if(c.bodyMapper){let f=d.parsedBody;l.isXML&&c.bodyMapper.type.name===Dr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{d.parsedBody=l.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new na(`Error ${h} occurred in deserializing the responseBody - ${d.bodyAsText}`,void 0,d.status,d.request,d)}}else l.httpMethod==="HEAD"&&(d.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(d.parsedHeaders=l.serializer.deserialize(c.headersMapper,d.headers.toJson(),"operationRes.parsedHeaders",i))}return d})}o(jg,"deserializeResponseBody");function xD(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(xD,"isOperationSpecEmpty");function wD(t,e,a){var i;let r=200<=t.status&&t.status<300;if(xD(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,d=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new na(d,void 0,t.status,t.request,t);if(!s)throw l;let c=s.bodyMapper,m=s.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,f;if(c){let b=u;e.isXML&&c.type.name===Dr.Sequence&&(b=typeof u=="object"?u[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=u.error||f||u;l.code=h.code,h.message&&(l.message=h.message),c&&(l.response.parsedBody=f)}t.headers&&m&&(l.response.parsedHeaders=e.serializer.deserialize(m,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(wD,"handleErrorResponse");function ND(t,e,a,i){var r;let n=o(p=>{let d=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,l=p.code||na.PARSE_ERROR,c=new na(d,l,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,d=a.headers.get("Content-Type")||"",l=d?d.split(";").map(c=>c.toLowerCase()):[];if(l.length===0||l.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(l.some(c=>e.indexOf(c)!==-1))return zg(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(ND,"parse");var Ug={enable:!0};function Hg(t){return{create:(e,a)=>new Z1(e,a,t||Ug)}}o(Hg,"keepAlivePolicy");var Z1=class extends lt{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},yg=["GET","HEAD"],_D={handleRedirects:!0,maxRetries:20};function _f(t=20){return{create:(e,a)=>new ef(e,a,t)}}o(_f,"redirectPolicy");var ef=class extends lt{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Fg(this,a,0))}};functi
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},Kg=[],Yg=!1,qD=new Map;function zD(){if(!process)return;let t=fl(ba.HTTPS_PROXY),e=fl(ba.ALL_PROXY),a=fl(ba.HTTP_PROXY);return t||e||a}o(zD,"loadEnvironmentProxyValue");function LD(t,e,a){if(e.length===0)return!1;let i=ei.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(LD,"isBypassed");function kD(){let t=fl(ba.NO_PROXY);return Yg=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(kD,"loadNoProxy");function Qg(t){if(!t&&(t=zD(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=jD(t),r=ei.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(Qg,"getDefaultProxySettings");function Df(t,e){return t||(t=Qg()),Yg||Kg.push(...kD()),{create:(a,i)=>new df(a,i,t,e?.customNoProxyList)}}o(Df,"proxyPolicy");function jD(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,d=s?r.substring(n+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:p,password:d,urlWithoutAuth:l}}o(jD,"extractAuthFromUrl");var df=class extends lt{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!LD(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:Kg,this.customNoProxyList?void 0:qD)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function UD(t=30){return{create:(e,a)=>new lf(e,a,t)}}o(UD,"rpRegistrationPolicy");var lf=class extends lt{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>HD(this,e,a))}};function HD(t,e,a){if(a.status===409){let i=FD(a.bodyAsText);if(i){let r=VD(e.url);return $D(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Sl()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(HD,"registerIfNeeded");function Jg(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Sl()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(Jg,"getRequestEssentials");function FD(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(FD,"checkRPNotRegisteredError");function VD(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(VD,"extractSubscriptionUrl");async function $D(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=Jg(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return Zg(t,n,i)}o($D,"registerRP");async function Zg(t,e,a){let i=Jg(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Za.delay(t._retryTimeout*1e3),Zg(t,e,a))}o(Zg,"getRegistrationStatus");function ey(t){return{create:(e,a)=>new cf(e,a,t)}}o(ey,"signingPolicy");var cf=class extends lt{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function If(t,e,a,i){return{create:(r,n)=>new mf(r,n,t,e,a,i)}}o(If,"systemErrorRetryPolicy");var mf=class extends lt{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Rr(i)?i:Sf,this.retryInterval=Rr(r)?r:Ef,this.minRetryInterval=Rr(n)?n:SD,this.maxRetryInterval=Rr(s)?s:Cf}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>ty(this,e,a.response,a))}};async function ty(t,e,a,i,r){r=$g(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),Vg(t.retryCount,n,r,a,i))try{return await Za.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return ty(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(ty,"retry");var GD=3,vg=ba.HttpConstants.StatusCodes;function Bf(){return{create:(t,e)=>new uf(t,e)}}o(Bf,"throttlingRetryPolicy");var bg="The operation was aborted.",uf=class t extends lt{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this.
Line truncated
|
||||
Polling from: ${a.config.operationLocation}
|
||||
Operation status: ${l}
|
||||
Polling status: ${C5.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let c=s(d,a);if(c!==void 0)return{response:await e(c).catch(S5({state:a,stateProxy:i,isOperationError:o})),status:l}}return{response:d,status:l}}async function R5(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:p,withOperationLocation:d,getPollingInterval:l,processResult:c,getError:m,updateState:u,setDelay:h,isDone:v,setErrorAsResult:E}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:R,status:b}=await $P({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:p,options:r});if(P5({status:b,response:R,state:a,stateProxy:i,isDone:v,processResult:c,getError:m,setErrorAsResult:E}),!C5.includes(b)){let g=l?.(R);g&&h(g);let f=o?.(R,a);if(f!==void 0){let w=S!==f;a.config.operationLocation=f,d?.(f,w)}else d?.(S,!1)}u?.(a,R)}}function D5(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}function I5(t){return t.headers.location}function B5(t){return t.headers["operation-location"]}function A5(t){return t.headers["azure-asyncoperation"]}function GP(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}}function z5(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=B5(e),s=A5(e),o=D5({operationLocation:n,azureAsyncOperation:s}),p=I5(e),d=a?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:GP({requestMethod:d,location:p,requestPath:i,resourceLocationConfig:r})}:p!==void 0?{mode:"ResourceLocation",operationLocation:p}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function q5(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return A1(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ji.verbose(`LRO: unrecognized operation status: ${e}`),e}}function XP(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return q5({status:a,statusCode:t.statusCode})}function KP(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return q5({status:n,statusCode:t.statusCode})}function A1(t){return t===202?"running":t<300?"succeeded":"failed"}function M5({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?WP(new Date(e)):a*1e3}}function L5(t){let e=t.flatResponse.error;if(!e){Ji.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ji.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function WP(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}function j5(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return A1(e.rawResponse.statusCode);case"Body":return z1(e,a);default:return"running"}}let n=r();return n==="running"&&i===void 0?"succeeded":n}async function QP(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return O5({init:async()=>{let s=await r.sendInitialRequest(),o=z5({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},o)=>i(s,o):({flatResponse:s})=>s,getOperationStatus:j5,setErrorAsResult:n})}function k5({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?void 0:a.mode){case"OperationLocation":return D5({operationLocation:B5(t),azureAsyncOperation:A5(t)});case"ResourceLocation":return I5(t);case"Body":default:return}}function z1({rawResponse:t},e){var a;let i=(a=e.config.metadata)===null||a===void 0?void 0:a.mode;switch(i){case"OperationLocation":return XP(t);case"ResourceLocation":return A1(t.statusCode);case"Body":return KP(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function H5({flatResponse:t},e){if(typeof t=="object"){let a=t.resLine truncated
|
||||
`,Sy="HTTP/1.1",JD="AES256",ZD="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",eI=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"],tI=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],aI="BlobUsesCustomerSpecifiedEncryption",iI="BlobDoesNotUseCustomerSpecifiedEncryption",rI=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function nI(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=oI(a),e.setPath(a),e.toString()}function sI(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function Fr(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}function ln(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=sI(t),t=ZD);let a=Fr(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Fr(t,"AccountName"),n=Buffer.from(Fr(t,"AccountKey"),"base64"),!a){i=Fr(t,"DefaultEndpointsProtocol");let o=i.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Fr(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Fr(t,"SharedAccessSignature"),r=Cy(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}function oI(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function Be(t,e){let a=q.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}function rr(t,e,a){let i=q.URLBuilder.parse(t);return i.setQueryParameter(e,a),i.toString()}function $5(t,e){return q.URLBuilder.parse(t).getQueryParameterValue(e)}function pI(t,e
Line truncated
|
||||
Operation status: ${c}
|
||||
Polling status: ${ly.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let m=s(l,a);if(m!==void 0)return{response:await e(m).catch(py({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:l,status:c}}o(dI,"pollOperationHelper");async function fy(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:d,withOperationLocation:l,getPollingInterval:c,processResult:m,getError:u,updateState:f,setDelay:h,isDone:b,setErrorAsResult:C}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:D,status:w}=await dI({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:d,options:r});if(my({status:w,response:D,state:a,stateProxy:i,isDone:b,processResult:m,getError:u,setErrorAsResult:C}),!ly.includes(w)){let y=c?.(D);y&&h(y);let g=p?.(D,a);if(g!==void 0){let _=S!==g;a.config.operationLocation=g,l?.(g,_)}else l?.(S,!1)}f?.(a,D)}}o(fy,"pollOperation");function hy(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(hy,"getOperationLocationPollingUrl");function gy(t){return t.headers.location}o(gy,"getLocationHeader");function yy(t){return t.headers["operation-location"]}o(yy,"getOperationLocationHeader");function vy(t){return t.headers["azure-asyncoperation"]}o(vy,"getAzureAsyncOperationHeader");function lI(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(lI,"findResourceLocation");function by(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=yy(e),s=vy(e),p=hy({operationLocation:n,azureAsyncOperation:s}),d=gy(e),l=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:lI({requestMethod:l,location:d,requestPath:i,resourceLocationConfig:r})}:d!==void 0?{mode:"ResourceLocation",operationLocation:d}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(by,"inferLroMode");function xy(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return zf(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Br.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(xy,"transformStatus");function cI(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return xy({status:a,statusCode:t.statusCode})}o(cI,"getStatus");function mI(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return xy({status:n,statusCode:t.statusCode})}o(mI,"getProvisioningState");function zf(t){return t===202?"running":t<300?"succeeded":"failed"}o(zf,"toOperationStatus");function wy({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?uI(new Date(e)):a*1e3}}o(wy,"parseRetryAfter");function Ny(t){let e=t.flatResponse.error;if(!e){Br.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Br.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Ny,"getErrorFromResponse");function uI(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(uI,"calculatePollingIntervalFromDate");function _y(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return zf(e.rawResponse.statusCode);case"Body":return Lf(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(_y,"getStatusFromInitialResponse");async function fI(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return uy({init:async()=>{let s=await r.sendInitialRequest(),p=by({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:_y,setErrorAsResult:n})}o(fI,"initHttpOperation");function Sy({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
|
||||
`,px="HTTP/1.1",gM="AES256",yM="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vM=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"],bM=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],xM="BlobUsesCustomerSpecifiedEncryption",wM="BlobDoesNotUseCustomerSpecifiedEncryption",NM=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _M(t){let e=z.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=EM(a),e.setPath(a),e.toString()}o(_M,"escapeURLPath");function SM(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(SM,"getProxyUriFromDevConnString");function Bn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Bn,"getValueInConnString");function Zn(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=SM(t),t=yM);let a=Bn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Bn(t,"AccountName"),n=Buffer.from(Bn(t,"AccountKey"),"base64"),!a){i=Bn(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Bn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Bn(t,"SharedAccessSignature"),r=lx(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(Zn,"extractConnectionStringParts");function EM(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(EM,"escape");function je(t,e){let a=z.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(je,"appendToURLPath");function kr(t,e
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Pe.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let a=ju(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=cI(e.url),n={};if(r){let s=[];for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let p=o.toLowerCase();n[p]=r[o],s.push(p)}s.sort();for(let o of s)i+=`
|
||||
${o}:${decodeURIComponent(n[o])}`}return i}},Ue=class extends bs{constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new vd(e,a,this)}computeHMACSHA256(e){return i8.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},CI="azure-storage-blob",TI="12.15.0",ws=class extends H.ServiceClient{constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${CI}/${TI} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},_s=class{constructor(e,a){this.url=nI(e),this.accountName=Cy(e),this.pipeline=a,this.storageClientContext=new ws(this.url,a.toServiceClientOptions()),this.isHttps=Ey(dI(this.url)||"","https"),this.credential=new Ee;for(let r of this.pipeline.factories)q.isNode&&r instanceof Ue||r instanceof Ee?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},L=M.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function G(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}var $a=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ga=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},Q1=class{constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return i8.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Xa(t){return t.end?`${t.start}-${t.end}`:t.start}Y.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Y.SASProtocol||(Y.SASProtocol={}));var Pa=class{constructor(e,a,i,r,n,s,o,p,d,l,c,m,u,h,v,E,S,R,b,g){this.version=e,this.signature=a,i!==void 0&&typeof i!="string"?(this.permissions=i.permissions,this.services=i.services,this.resourceTypes=i.resourceTypes,this.protocol=i.protocol,this.startsOn=i.startsOn,this.expiresOn=i.expiresOn,this.ipRangeInner=i.ipRange,this.identifier=i.identifier,this.encryptionScope=i.encryptionSco
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new Pa(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function OI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function RI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function DI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function II(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function BI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function cn(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}function mn(t){let e=t.version?t.version:Mu;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Ss=class{constructor(e,a){let i=new ws(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new ir(i)):(this._isContainer=!1,this._containerOrBlobOperation=new ys(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},G(l)))}catch(c){throw d.setStatus({code:M.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{let c=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions})},G(l)));return this._leaseId=e,c}catch(c){throw d.setStatus({code:M.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,o;let{span:p,updatedOptions:d}=L("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==Ta||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==Ta||!((s=e.conditions)===null||s===void 0)&&s.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default v
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?be(t.startsOn,!1):"",be(t.expiresOn,!1),t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let o=e.computeHMACSHA256(s);return new Pa(a,o,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}var xu=class t extends _s{constructor(e,a,i){let r;Di(a)?r=a:q.isNode&&a instanceof Ue||a instanceof Ee||q.isTokenCredential(a)?r=Te(a,i):r=Te(new Ee,i),super(e,r),this.serviceContext=new cd(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=ln(e);if(i.kind==="AccountConnString")if(q.isNode){let r=new Ue(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=q.getDefaultProxySettings(i.proxyUri));let n=Te(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Te(new Ee,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new bd(Be(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=L("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),p=await new ir(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:p}}catch(s){throw r.setStatus({code:M.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=L("BlobServiceClient-renameContainer",i);try{let o=this.getContainerClient(a),d=await new ir(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:o,containerRenameResponse:d}}catch(o){throw n.setStatus({code:M.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},G(r)))}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),G(r)))}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=L("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},G(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(p=>{var d;let l="";return((d=p.tags)===null||d===void 0?void 0:d.blobTagSet.length)===1&&(l=p.tags.blobTagSet[0].value),Object.assign(Object.assign({},p),{tags:fs(p.tags),tagValue:l})})})}catch(s){throw r.setStatus({code:M.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return k.__asyncGenerator(this,arguments,function*(){let n;if(a||a===void 0)do n=yield k.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield k.__await(n);while(a)})}findBlobsByTagsItems(e,a={}){return k.__asyncGenerator(this,arguments,
Line truncated
|
||||
Other caches with similar key:`);for(let o of n?.artifactCaches||[])Ht.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function PB(t,e,a){return At(this,void 0,void 0,function*(){let i=new wB.URL(t),r=(0,ky.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Dd.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Dd.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Dd.downloadCacheHttpClient)(t,e):yield(0,Dd.downloadCacheHttpClient)(t,e)})}Ke.downloadCache=PB;function OB(t,e,a){return At(this,void 0,void 0,function*(){let i=Xu(),r=Ku(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Bi.retryTypedResponse)("reserveCache",()=>At(this,void 0,void 0,function*(){return i.postJson(Ms("caches"),n)}))})}Ke.reserveCache=OB;function jy(t,e){return`bytes ${t}-${e}/*`}function RB(t,e,a,i,r){return At(this,void 0,void 0,function*(){Ht.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${jy(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":jy(i,r)},s=yield(0,Bi.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>At(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Bi.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}function DB(t,e,a,i){return At(this,void 0,void 0,function*(){let r=Id.getArchiveFileSizeInBytes(a),n=Ms(`caches/${e.toString()}`),s=Gu.openSync(a,"r"),o=(0,ky.getUploadOptions)(i),p=Id.assertDefined("uploadConcurrency",o.uploadConcurrency),d=Id.assertDefined("uploadChunkSize",o.uploadChunkSize),l=[...new Array(p).keys()];Ht.debug("Awaiting all uploads");let c=0;try{yield Promise.all(l.map(()=>At(this,void 0,void 0,function*(){for(;c<r;){let m=Math.min(r-c,d),u=c,h=c+m-1;c+=d,yield RB(t,n,()=>Gu.createReadStream(a,{fd:s,start:u,end:h,autoClose:!1}).on("error",v=>{throw new Error(`Cache upload failed because file read failed with ${v.message}`)}),u,h)}})))}finally{Gu.closeSync(s)}})}function IB(t,e,a){return At(this,void 0,void 0,function*(){let i={size:a};return yield(0,Bi.retryTypedResponse)("commitCache",()=>At(this,void 0,void 0,function*(){return t.postJson(Ms(`caches/${e.toString()}`),i)}))})}function BB(t,e,a){return At(this,void 0,void 0,function*(){let i=Xu();Ht.debug("Upload cache"),yield DB(i,t,e,a),Ht.debug("Commiting cache");let r=Id.getArchiveFileSizeInBytes(e);Ht.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);let n=yield IB(i,t,r);if(!(0,Bi.isSuccessStatusCode)(n.statusCode))throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`);Ht.info("Cache saved successfully")})}Ke.saveCache=BB});var Vy=T(bt=>{"use strict";var AB=bt&&bt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),zB=bt&&bt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wu=bt&&bt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&AB(e,t,a);return zB(e,t),e},Qa=bt&&bt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(bt,"__esModule",{value:!0});bt.createTar=bt.extractTar=bt.listTar=void 0;var qB=yl(),Ad=Wu(Js()),Uy=require("fs"),ua=Wu(require("path")),Qu=Wu(zn()),Re=Bn(),Ai=process.platform==="win32";function MB(){return Qa(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Qu.getGnuTarPathOnWindows(),e=Re.SystemTarPathOnWindows;if(t)return{path:t,type:Re.ArchiveToolType.GNU};if((0,Uy.existsSync)(e))return{path:e,type:Re.ArchiveToolType.BSD};break}case"darwin":{let t=yield Ad.which("gtar",!1);return t?{path:t,type:Re.ArchiveToolType.GNU}:{path:yield Ad.which("tar",!0),type:Re.ArchiveToolType.BSD}}default:break}return{path:yield Ad.which("tar",!0),type:Re.ArchiveToolType.GNU}})}function LB(t,e,a,i=""){return Qa(this,void 0,void 0,function*(){let r=[`"${t.path}"`],n=Qu.getCacheFileName(e),s="cache.tar",o=Fy(),p=t.type===Re.ArchiveToolType.BSD&&e!==Re.CompressionMethod.Gzip&&Ai;switch(a){case"create":r.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${ua.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${ua.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${ua.sep}`,"g"),"/"),"--f
Line truncated
|
||||
`));let i=yield Yu(a,"create");yield Ju(i,t)})}bt.createTar=FB});var Wy=T(We=>{"use strict";var VB=We&&We.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),$B=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Md=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&VB(e,t,a);return $B(e,t),e},$y=We&&We.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.saveCache=We.restoreCache=We.isFeatureAvailable=We.ReserveCacheError=We.ValidationError=void 0;var tt=Md(ia()),Gy=Md(require("path")),ea=Md(zn()),zd=Md(Hy()),qd=Vy(),Ya=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};We.ValidationError=Ya;var Ls=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};We.ReserveCacheError=Ls;function Xy(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}function Ky(t){if(t.length>512)throw new Ya(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`Key Validation Error: ${t} cannot contain commas.`)}function GB(){return!!process.env.ACTIONS_CACHE_URL}We.isFeatureAvailable=GB;function XB(t,e,a,i,r=!1){return $y(this,void 0,void 0,function*(){Xy(t),a=a||[];let n=[e,...a];if(tt.debug("Resolved Keys:"),tt.debug(JSON.stringify(n)),n.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Ky(p);let s=yield ea.getCompressionMethod(),o="";try{let p=yield zd.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!p?.archiveLocation)return;if(i?.lookupOnly)return tt.info("Lookup only - skipping download"),p.cacheKey;o=Gy.join(yield ea.createTempDirectory(),ea.getCacheFileName(s)),tt.debug(`Archive Path: ${o}`),yield zd.downloadCache(p.archiveLocation,o,i),tt.isDebug()&&(yield(0,qd.listTar)(o,s));let d=ea.getArchiveFileSizeInBytes(o);return tt.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,qd.extractTar)(o,s),tt.info("Cache restored successfully"),p.cacheKey}catch(p){if(p.name===Ya.name)throw p;tt.warning(`Failed to restore: ${p.message}`)}finally{try{yield ea.unlinkFile(o)}catch(p){tt.debug(`Failed to delete archive: ${p}`)}}})}We.restoreCache=XB;function KB(t,e,a,i=!1){var r,n,s,o,p;return $y(this,void 0,void 0,function*(){Xy(t),Ky(e);let d=yield ea.getCompressionMethod(),l=-1,c=yield ea.resolvePaths(t);if(tt.debug("Cache Paths:"),tt.debug(`${JSON.stringify(c)}`),c.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield ea.createTempDirectory(),u=Gy.join(m,ea.getCacheFileName(d));tt.debug(`Archive Path: ${u}`);try{yield(0,qd.createTar)(m,c,d),tt.isDebug()&&(yield(0,qd.listTar)(u,d));let h=10*1024*1024*1024,v=ea.getArchiveFileSizeInBytes(u);if(tt.debug(`File Size: ${v}`),v>h&&!ea.isGhes())throw new Error(`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the 10GB limit, not saving cache.`);tt.debug("Reserving Cache");let E=yield zd.reserveCache(e,t,{compressionMethod:d,enableCrossOsArchive:i,cacheSize:v});if(!((r=E?.result)===null||r===void 0)&&r.cacheId)l=(n=E?.result)===null||n===void 0?void 0:n.cacheId;else throw E?.statusCode===400?new Error((o=(s=E?.error)===null||s===void 0?void 0:s.message)!==null&&o!==void 0?o:`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the data cap limit, not saving cache.`):new Ls(`Unable to reserve cache with key ${e}, another job may be creating this cache. More details: ${(p=E?.error)===null||p===void 0?void 0:p.message}`);tt.debug(`Saving Cache (ID: ${l})`),yield zd.saveCache(l,u,a)}catch(h){let v=h;if(v.name===Ya.name)throw h;v.name===Ls.name?tt.info(`Failed to save: ${v.message}`):tt.warning(`Failed to save: ${v.message}`)}finally{try{yield ea.unlinkFile(u)}catch(h){tt.debug(`Failed to delete archive: ${h}`)}}return l})}We.saveCache=KB});var Qy=Ja(Wy()),Ld=Ja(ia()),Yy=require("node:crypto");(async()=>{let t=JSON.parse((0,Ld.getState)("cache"));if(t.cacheEnabled&&!t.cacheHit){let e=(0,Yy.createHash)("sha1").update(t.url).digest("base64");try{await(0,Qy.saveCache)([t.bunPath],e),process.exit(0)}catch{(0,Ld.warning)("
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Ie.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Ie.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Ie.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let a=H0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=PM(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let d=p.toLowerCase();n[d]=r[p],s.push(d)}s.sort();for(let p of s)i+=`
|
||||
${p}:${decodeURIComponent(n[p])}`}return i}},Ke=class extends Do{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Hl(e,a,this)}computeHMACSHA256(e){return Uy.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},VM="azure-storage-blob",$M="12.15.0",Bo=class extends H.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${VM}/${$M} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},Ao=class{static{o(this,"StorageClient")}constructor(e,a){this.url=_M(e),this.accountName=lx(e),this.pipeline=a,this.storageClientContext=new Bo(this.url,a.toServiceClientOptions()),this.isHttps=dx(TM(this.url)||"","https"),this.credential=new Oe;for(let r of this.pipeline.factories)z.isNode&&r instanceof Ke||r instanceof Oe?this.credential=r:z.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},k=L.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function W(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(W,"convertTracingToRequestOptionsBase");var Si=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ei=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},Zf=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Uy.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Ci(t){return t.end?`${t.start}-${t.end}`:t.start}o(Ci,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var ai=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,d,l,c,m,u,f,h,b
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new ai(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(GM,"generateBlobSASQueryParameters20150405");function XM(t,e){if(t=ts(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(XM,"generateBlobSASQueryParameters20181109");function WM(t,e){if(t=ts(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(WM,"generateBlobSASQueryParameters20201206");function KM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(KM,"generateBlobSASQueryParametersUDK20181109");function YM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(YM,"generateBlobSASQueryParametersUDK20200210");function QM(t,e){if(t=ts(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Si.parse(t.permissions.toString()).toString():r=Ei.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",es(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new ai(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(QM,"generateBlobSASQueryParametersUDK20201206");function es(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(es,"getCanonicalName");function ts(t){let e=t.version?t.version:j0;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(ts,"SASSignatureValuesSanityCheckAndAutofill");var Mo=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new Bo(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Lr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new Oo(i)),a||(a=z.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ti||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ti||!((p=a.conditions)===null||p===void 0)&&p.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions}),proposedLeaseId:this._leaseId},W(c)))}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async changeLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ti||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ti||!((p=a.conditions)===null||p===void 0)&&p.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{let m=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions})},W(c)));return this._leaseId=e,m}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:d,updatedOptions:l}=k("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ti||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ti||!((s=e.conditions)===null||s===void 0)&&s.tagCon
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?_e(t.startsOn,!1):"",_e(t.expiresOn,!1),t.ipRange?Ci(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let p=e.computeHMACSHA256(s);return new ai(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(mx,"generateAccountSASQueryParameters");var N0=class t extends Ao{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;pr(a)?r=a:z.isNode&&a instanceof Ke||a instanceof Oe||z.isTokenCredential(a)?r=Re(a,i):r=Re(new Oe,i),super(e,r),this.serviceContext=new Ml(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=Zn(e);if(i.kind==="AccountConnString")if(z.isNode){let r=new Ke(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=z.getDefaultProxySettings(i.proxyUri));let n=Re(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Re(new Oe,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Vl(je(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),d=await new Lr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:d}}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=k("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),l=await new Lr(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:l}}catch(p){throw n.setStatus({code:L.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},W(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(d=>{var l;let c="";return((l=d.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(c=d.tags.blobTagSet[0].value),Object.assign(Object.assign({},d),{tags:Eo(d.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(a),this.code=e,this.name="NetworkError"}};Qt.NetworkError=Zl;Zl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ec=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};Qt.UsageError=ec;ec.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var ux=T(Jt=>{"use strict";var lq=Jt&&Jt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),cq=Jt&&Jt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mq=Jt&&Jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&lq(e,t,a);return cq(e,t),e},uq=Jt&&Jt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.uploadCacheArchiveSDK=Jt.UploadProgress=void 0;var J0=mq(Ut()),fq=G0(),hq=Q0(),tc=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);J0.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};Jt.UploadProgress=tc;function gq(t,e,a){var i;return uq(this,void 0,void 0,function*(){let r=new fq.BlobClient(t),n=r.getBlockBlobClient(),s=new tc((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),J0.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let d=yield n.uploadFile(e,p);if(d._response.status>=400)throw new hq.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${d._response.status}`);return d}catch(d){throw J0.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${d.message}`),d}finally{s.stopDisplayTimer()}})}o(gq,"uploadCacheArchiveSDK");Jt.uploadCacheArchiveSDK=gq});var e2=T(Ye=>{"use strict";var yq=Ye&&Ye.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),vq=Ye&&Ye.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bq=Ye&&Ye.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&yq(e,t,a);return vq(e,t),e},ic=Ye&&Ye.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.retryHttpClientResponse=Ye.retryTypedResponse=Ye.retry=Ye.isRetryableStatusCode=Ye.isServerErrorStatusCode=Ye.isSuccessStatusCode=void 0;var fx=bq(Ut()),ac=tn(),as=ln();function xq(t){return t?t>=200&&t<300:!1}o(xq,"isSuccessStatusCode");Ye.isSuccessStatusCode=xq;function hx(t){return t?t>=500:!0}o(hx,"isServerErrorStatusCode");Ye.isServerErrorStatusCode=hx;function gx(t){return t?[ac.HttpCodes.BadGateway,ac.HttpCodes.ServiceUnavailable,ac.HttpCodes.GatewayTimeout].includes(t):!1}o(gx,"isRetryableStatusCode");Ye.isRetryableStatusCode=gx;function wq(t){return ic(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(wq,"sleep");function Z0(t,e,a,i=as.DefaultRetryAttempts,r=as.DefaultRetryDelay,n=
Line truncated
|
||||
Other caches with similar key:`);for(let p of n?.artifactCaches||[])pa.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(iz,"printCachesListForDiagnostics");function rz(t,e,a){return Zt(this,void 0,void 0,function*(){let i=new Yq.URL(t),r=(0,n2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,sc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,sc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,sc.downloadCacheHttpClient)(t,e):yield(0,sc.downloadCacheHttpClient)(t,e)})}o(rz,"downloadCache");St.downloadCache=rz;function nz(t,e,a){return Zt(this,void 0,void 0,function*(){let i=s2(),r=rs.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,lr.retryTypedResponse)("reserveCache",()=>Zt(this,void 0,void 0,function*(){return i.postJson(Wo("caches"),n)}))})}o(nz,"reserveCache");St.reserveCache=nz;function Cx(t,e){return`bytes ${t}-${e}/*`}o(Cx,"getContentRange");function sz(t,e,a,i,r){return Zt(this,void 0,void 0,function*(){pa.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${Cx(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Cx(i,r)},s=yield(0,lr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>Zt(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,lr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(sz,"uploadChunk");function oz(t,e,a,i){return Zt(this,void 0,void 0,function*(){let r=rs.getArchiveFileSizeInBytes(a),n=Wo(`caches/${e.toString()}`),s=i2.openSync(a,"r"),p=(0,n2.getUploadOptions)(i),d=rs.assertDefined("uploadConcurrency",p.uploadConcurrency),l=rs.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(d).keys()];pa.debug("Awaiting all uploads");let m=0;try{yield Promise.all(c.map(()=>Zt(this,void 0,void 0,function*(){for(;m<r;){let u=Math.min(r-m,l),f=m,h=m+u-1;m+=l,yield sz(t,n,()=>i2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{i2.closeSync(s)}})}o(oz,"uploadFile");function pz(t,e,a){return Zt(this,void 0,void 0,function*(){let i={size:a};return yield(0,lr.retryTypedResponse)("commitCache",()=>Zt(this,void 0,void 0,function*(){return t.postJson(Wo(`caches/${e.toString()}`),i)}))})}o(pz,"commitCache");function dz(t,e,a,i){return Zt(this,void 0,void 0,function*(){if((0,n2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Qq.uploadCacheArchiveSDK)(a,e,i)}else{let n=s2();pa.debug("Upload cache"),yield oz(n,t,e,i),pa.debug("Commiting cache");let s=rs.getArchiveFileSizeInBytes(e);pa.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield pz(n,t,s);if(!(0,lr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);pa.info("Cache saved successfully")}})}o(dz,"saveCache");St.saveCache=dz});var oc=T(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.isJsonObject=ns.typeofJsonValue=void 0;function lz(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(lz,"typeofJsonValue");ns.typeofJsonValue=lz;function cz(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(cz,"isJsonObject");ns.isJsonObject=cz});var dc=T(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.base64encode=ss.base64decode=void 0;var Ri="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pc=[];for(let t=0;t<Ri.length;t++)pc[Ri[t].charCodeAt(0)]=t;pc["-".charCodeAt(0)]=Ri.indexOf("+");pc["_".charCodeAt(0)]=Ri.indexOf("/");function mz(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=pc[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(mz,"base64decode");ss.base64decode=mz;function uz(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Ri[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Ri[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Ri[r|i>>6],e+=Ri[i&63],a=0;break}return a&&(e+=Ri[r],e+="=",a==1&&(e+="=")),e}o(uz,"base64encode");ss.base64encode=uz});var Ox=T(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.utf8read=void 0;var o2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function fz(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(o2(i)),r=0);return a.length?(r&&a.push(o2(i.slice(0,r))),a.join("")):o2(i.slice(0,r))}o(fz,"utf8read");lc.utf8read=fz});var Ko=T(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.WireType=ri.mergeBinaryOptions=ri.UnknownFieldHandler=void 0;var hz;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(hz=ri.UnknownFieldHandler||(ri.UnknownFieldHandler={}));function gz(t,e){return Object.assign(Object.assign({},t),e)}o(gz,"mergeBinaryOptions");ri.mergeBinaryOptions=gz;var yz;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(yz=ri.WireType||(ri.WireType={}))});var mc=T(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.varint32read=ea.varint32write=ea.int64toString=ea.int64fromString=ea.varint64write=ea.varint64read=void 0;function vz(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(vz,"varint64read");ea.varint64read=vz;function bz(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),d=(p?s|128:s)&255;if(a.push(d),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),d=(p?s|128:s)&255;if(a.push(d),!p)return}a.push(e>>>31&1)}}o(bz,"varint64write");ea.varint64write=bz;var cc=65536*65536;function xz(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let d=Number(t.slice(s,p));r*=a,i=i*a+d,i>=cc&&(r=r+(i/cc|0),i=i%cc)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(xz,"int64fromString");ea.int64fromString=xz;function wz(t,e){if(e>>>0<=2097151)return""+(cc*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,d=1e7;n>=d&&(s+=Math.floor(n/d),n%=d),s>=d&&(p+=Math.floor(s/d),s%=d);function l(c,m){let u=c?String(c):"";return m?"0000000".slice(u.length)+u:u}return o(l,"decimalFrom1e7"),l(p,0)+l(s,p)+l(n,1)}o(wz,"int64toString");ea.int64toString=wz;function Nz(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Nz,"varint32write");ea.varint32write=Nz;function _z(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(_z,"varint32read");ea.varint32read=_z});var mr=T(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.PbLong=cr.PbULong=cr.detectBi=void 0;var Yo=mc(),De;function Px(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:
Line truncated
|
||||
`)}};kc.RpcError=A2});var q2=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.mergeRpcOptions=void 0;var sw=nt();function $L(t,e){if(!e)return t;let a={};jc(t,a),jc(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=sw.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=sw.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},jc(t.meta,a.meta),jc(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o($L,"mergeRpcOptions");Uc.mergeRpcOptions=$L;function jc(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(jc,"copy")});var L2=T(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Deferred=Xr.DeferredState=void 0;var oi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oi=Xr.DeferredState||(Xr.DeferredState={}));var z2=class{static{o(this,"Deferred")}constructor(e=!0){this._state=oi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oi.PENDING)throw new Error(`cannot resolve ${oi[this.state].toLowerCase()}`);this._resolve(e),this._state=oi.RESOLVED}reject(e){if(this.state!==oi.PENDING)throw new Error(`cannot reject ${oi[this.state].toLowerCase()}`);this._reject(e),this._state=oi.REJECTED}resolvePending(e){this._state===oi.PENDING&&this.resolve(e)}rejectPending(e){this._state===oi.PENDING&&this.reject(e)}};Xr.Deferred=z2});var j2=T(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.RpcOutputStreamController=void 0;var ow=L2(),Wr=nt(),k2=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){Wr.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){Wr.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){Wr.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){Wr.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Wr.assert(e,"bad state"),Wr.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new ow.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;Wr.assert(i.state==ow.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};Hc.RpcOutputStreamController=k2});var H2=T(us=>{"use strict";var GL=us&&us.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(us,"__esModule",{value:!0});us.UnaryCall=void 0;var U2=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return GL(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};us.UnaryCall=U2});var V2=T(fs=>{"use strict";var XL=fs&&fs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function
Line truncated
|
||||
`));let i=yield mh(a,"create");yield uh(i,t)})}o(Uk,"createTar");Mt.createTar=Uk});var Pw=T(st=>{"use strict";var Hk=st&&st.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Fk=st&&st.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lp=st&&st.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Hk(e,t,a);return Fk(e,t),e},Ps=st&&st.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(st,"__esModule",{value:!0});st.saveCache=st.restoreCache=st.isFeatureAvailable=st.ReserveCacheError=st.ValidationError=void 0;var re=lp(Ut()),Yc=lp(require("path")),Le=lp(mn()),Os=lp(Tx()),Tw=lp(_w()),Qc=rc(),hr=Cw(),Vk=ln(),Ta=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};st.ValidationError=Ta;var Kr=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};st.ReserveCacheError=Kr;function Ow(t){if(!t||t.length===0)throw new Ta("Path Validation Error: At least one directory or file path is required")}o(Ow,"checkPaths");function fh(t){if(t.length>512)throw new Ta(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ta(`Key Validation Error: ${t} cannot contain commas.`)}o(fh,"checkKey");function $k(){return!!process.env.ACTIONS_CACHE_URL}o($k,"isFeatureAvailable");st.isFeatureAvailable=$k;function Gk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){let n=(0,Qc.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),Ow(t),n){case"v2":return yield Wk(t,e,a,i,r);case"v1":default:return yield Xk(t,e,a,i,r)}})}o(Gk,"restoreCache");st.restoreCache=Gk;function Xk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of n)fh(d);let s=yield Le.getCompressionMethod(),p="";try{let d=yield Os.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!d?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),d.cacheKey;p=Yc.join(yield Le.createTempDirectory(),Le.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Os.downloadCache(d.archiveLocation,p,i),re.isDebug()&&(yield(0,hr.listTar)(p,s));let l=Le.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,hr.extractTar)(p,s),re.info("Cache restored successfully"),d.cacheKey}catch(d){if(d.name===Ta.name)throw d;re.warning(`Failed to restore: ${d.message}`)}finally{try{yield Le.unlinkFile(p)}catch(d){re.debug(`Failed to delete archive: ${d}`)}}})}o(Xk,"restoreCacheV1");function Wk(t,e,a,i,r=!1){return Ps(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)fh(p);let s="";try{let p=Tw.internalCacheTwirpClient(),d=yield Le.getCompressionMethod(),l={key:e,restoreKeys:a,version:Le.getCacheVersion(t,d,r)},c=yield p.GetCacheEntryDownloadURL(l);if(!c.ok){re.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Yc.join(yield Le.createTempDirectory(),Le.getCacheFileName(d)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Os.downloadCache(c.signedDownloadUrl,s,i);let m=Le.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),re.isDebug()&&(yield(0,hr.listTar)(s,d)),yield(0,hr.extractTar)(s,d),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Ta.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield Le.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(Wk,"restoreCacheV2");function Kk(t,e,a,i=!1){return Ps(this,void 0,void 0,function*(){let r=(0,Qc.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
sax/lib/sax.js:
|
||||
|
||||
+44
-39
@@ -1,51 +1,56 @@
|
||||
var nx=Object.create;var lo=Object.defineProperty;var sx=Object.getOwnPropertyDescriptor;var ox=Object.getOwnPropertyNames;var px=Object.getPrototypeOf,dx=Object.prototype.hasOwnProperty;var ge=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fl=(t,e)=>{for(var a in e)lo(t,a,{get:e[a],enumerable:!0})},k0=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ox(e))!dx.call(t,r)&&r!==a&&lo(t,r,{get:()=>e[r],enumerable:!(i=sx(e,r))||i.enumerable});return t};var Dt=(t,e,a)=>(a=t!=null?nx(px(t)):{},k0(e||!t||!t.__esModule?lo(a,"default",{value:t,enumerable:!0}):a,t)),zn=t=>k0(lo({},"__esModule",{value:!0}),t);var co=T(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.toCommandProperties=Cr.toCommandValue=void 0;function lx(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}Cr.toCommandValue=lx;function cx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}Cr.toCommandProperties=cx});var V0=T(Qt=>{"use strict";var mx=Qt&&Qt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),ux=Qt&&Qt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),fx=Qt&&Qt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&mx(e,t,a);return ux(e,t),e};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.issue=Qt.issueCommand=void 0;var hx=fx(require("os")),U0=co();function F0(t,e,a){let i=new hl(t,e,a);process.stdout.write(i.toString()+hx.EOL)}Qt.issueCommand=F0;function gx(t,e=""){F0(t,{},e)}Qt.issue=gx;var H0="::",hl=class{constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=H0+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${vx(r)}`)}}return e+=`${H0}${yx(this.message)}`,e}};function yx(t){return U0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function vx(t){return U0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function Mn(){return mo>uo.length-16&&($0.default.randomFillSync(uo),mo=0),uo.slice(mo,mo+=16)}var $0,uo,mo,gl=ge(()=>{$0=Dt(require("crypto")),uo=new Uint8Array(256),mo=uo.length});var G0,X0=ge(()=>{G0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function xx(t){return typeof t=="string"&&G0.test(t)}var ci,qn=ge(()=>{X0();ci=xx});function bx(t,e=0){let a=(gt[t[e+0]]+gt[t[e+1]]+gt[t[e+2]]+gt[t[e+3]]+"-"+gt[t[e+4]]+gt[t[e+5]]+"-"+gt[t[e+6]]+gt[t[e+7]]+"-"+gt[t[e+8]]+gt[t[e+9]]+"-"+gt[t[e+10]]+gt[t[e+11]]+gt[t[e+12]]+gt[t[e+13]]+gt[t[e+14]]+gt[t[e+15]]).toLowerCase();if(!ci(a))throw TypeError("Stringified UUID is invalid");return a}var gt,mi,Ln=ge(()=>{qn();gt=[];for(let t=0;t<256;++t)gt.push((t+256).toString(16).substr(1));mi=bx});function wx(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||W0,s=t.clockseq!==void 0?t.clockseq:yl;if(n==null||s==null){let m=t.random||(t.rng||Mn)();n==null&&(n=W0=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=yl=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:xl+1,d=o-vl+(p-xl)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>vl)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");vl=o,xl=p,yl=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||mi(r)}var W0,yl,vl,xl,K0,Q0=ge(()=>{gl();Ln();vl=0,xl=0;K0=wx});function Nx(t){if(!ci(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var fo,bl=ge(()=>{qn();fo=Nx});function _x(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function ho(t,e,a){function i(r,n,s,o){if(typeof r=="string"&&(r=_x(r)),typeof n=="string"&&(n=fo(n)),n.length!==16)throw TypeError("Namespace must be aLine truncated
|
||||
`,c.message,c.stack);var m=new Error("tunneling socket could not be established, cause="+c.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}};Fa.prototype.removeSocket=function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function N2(t,e){var a=this;Fa.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Sl({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=jx.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}function _2(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}function Sl(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var o=r[n];i[o]!==void 0&&(t[o]=i[o])}}return t}var ui;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ui=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:ui=function(){};Pr.debug=ui});var El=T((RM,E2)=>{E2.exports=S2()});var Or=T(Ce=>{"use strict";var Gx=Ce&&Ce.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Xx=Ce&&Ce.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),wo=Ce&&Ce.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Gx(e,t,a);return Xx(e,t),e},Xe=Ce&&Ce.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.HttpClient=Ce.isHttps=Ce.HttpClientResponse=Ce.HttpClientError=Ce.getProxyUrl=Ce.MediaTypes=Ce.Headers=Ce.HttpCodes=void 0;var go=wo(require("http")),Cl=wo(require("https")),C2=wo(b2()),yo=wo(El()),ma;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ma=Ce.HttpCodes||(Ce.HttpCodes={}));var Ct;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ct=Ce.Headers||(Ce.Headers={}));var fi;(function(t){t.ApplicationJson="application/json"})(fi=Ce.MediaTypes||(Ce.MediaTypes={}));function Wx(t){let e=C2.getProxyUrl(new URL(t));return e?e.href:""}Ce.getProxyUrl=Wx;var Kx=[ma.MovedPermanently,ma.ResourceMoved,ma.SeeOther,ma.TemporaryRedirect,ma.PermanentRedirect],Qx=[ma.BadGateway,ma.ServiceUnavailable,ma.GatewayTimeout],Yx=["OPTIONS","GET","DELETE","HEAD"],Zx=10,Jx=5,xo=class t extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Ce.HttpClientError=xo;var bo=class{constructor(e){this.message=e}readBody(){return Xe(this,void 0,void 0,function*(){return new Promise(e=>Xe(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return Xe(this,void 0,void 0,function*(){return new Promise(e=>Xe(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Ce.HttpClientResponse=bo;function eb(t){return new URL(t).protocol==="https:"}Ce.isHttps=eb;var Tl=class{constructor(e,a,i){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=a||[],this.requestOptions=i,i&&(i.ignoreSslError!=null&&(this._ignoreSslError=i.ignoreSslError),this._socketTimeout=i.socketTimeout,i.allow
Line truncated
|
||||
var XN=Object.create;var Qs=Object.defineProperty;var WN=Object.getOwnPropertyDescriptor;var KN=Object.getOwnPropertyNames;var YN=Object.getPrototypeOf,QN=Object.prototype.hasOwnProperty;var o=(t,e)=>Qs(t,"name",{value:e,configurable:!0});var qt=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),a6=(t,e)=>{for(var a in e)Qs(t,a,{get:e[a],enumerable:!0})},i6=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of KN(e))!QN.call(t,r)&&r!==a&&Qs(t,r,{get:()=>e[r],enumerable:!(i=WN(e,r))||i.enumerable});return t};var La=(t,e,a)=>(a=t!=null?XN(YN(t)):{},i6(e||!t||!t.__esModule?Qs(a,"default",{value:t,enumerable:!0}):a,t)),qp=t=>i6(Qs({},"__esModule",{value:!0}),t);var Lp=T(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.toCommandProperties=hn.toCommandValue=void 0;function JN(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(JN,"toCommandValue");hn.toCommandValue=JN;function ZN(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(ZN,"toCommandProperties");hn.toCommandProperties=ZN});var o6=T(ga=>{"use strict";var e_=ga&&ga.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),t_=ga&&ga.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a_=ga&&ga.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&e_(e,t,a);return t_(e,t),e};Object.defineProperty(ga,"__esModule",{value:!0});ga.issue=ga.issueCommand=void 0;var i_=a_(require("os")),n6=Lp();function s6(t,e,a){let i=new Om(t,e,a);process.stdout.write(i.toString()+i_.EOL)}o(s6,"issueCommand");ga.issueCommand=s6;function r_(t,e=""){s6(t,{},e)}o(r_,"issue");ga.issue=r_;var r6="::",Om=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=r6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${s_(r)}`)}}return e+=`${r6}${n_(this.message)}`,e}};function n_(t){return(0,n6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(n_,"escapeData");function s_(t){return(0,n6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(s_,"escapeProperty")});var l6=T(ya=>{"use strict";var o_=ya&&ya.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),p_=ya&&ya.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rm=ya&&ya.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&o_(e,t,a);return p_(e,t),e};Object.defineProperty(ya,"__esModule",{value:!0});ya.prepareKeyValueMessage=ya.issueFileCommand=void 0;var d_=Rm(require("crypto")),p6=Rm(require("fs")),Pm=Rm(require("os")),d6=Lp();function l_(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!p6.existsSync(a))throw new Error(`Missing file at path: ${a}`);p6.appendFileSync(a,`${(0,d6.toCommandValue)(e)}${Pm.EOL}`,{encoding:"utf8"})}o(l_,"issueFileCommand");ya.issueFileCommand=l_;function c_(t,e){let a=`ghadelimiter_${d_.randomUUID()}`,i=(0,d6.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${Pm.EOL}${i}${Pm.EOL}${a}`}o(c_,"prepareKeyValueMessage");ya.prepareKeyValueMessage=c_});var m6=T(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.checkBypass=gn.getProxyUrl=void 0;function m_(t){let e=t.protocol==="https:";if(c6(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(m_,"getProxyUrl");gn.getProxyUrl=m_;function c6(t){if(!t.hostname)return!1;let e=t.hostname;if(u_(e))return!0;let a=process.env.no_proxy||proLine truncated
|
||||
`,m.message,m.stack);var u=new Error("tunneling socket could not be established, cause="+m.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(r)}o(c,"onError")},"createSocket");wi.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function f6(t,e){var a=this;wi.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Im({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=f_.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(f6,"createSecureSocket");function h6(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(h6,"toOptions");function Im(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(Im,"mergeOptions");var Gi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Gi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Gi=o(function(){},"debug");yn.debug=Gi});var Bm=T((fH,y6)=>{y6.exports=g6()});var Rr=T(Pe=>{"use strict";var w_=Pe&&Pe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),N_=Pe&&Pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fp=Pe&&Pe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&w_(e,t,a);return N_(e,t),e},it=Pe&&Pe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.HttpClient=Pe.isHttps=Pe.HttpClientResponse=Pe.HttpClientError=Pe.getProxyUrl=Pe.MediaTypes=Pe.Headers=Pe.HttpCodes=void 0;var zp=Fp(require("http")),Am=Fp(require("https")),v6=Fp(m6()),jp=Fp(Bm()),za;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(za=Pe.HttpCodes||(Pe.HttpCodes={}));var Ut;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ut=Pe.Headers||(Pe.Headers={}));var Xi;(function(t){t.ApplicationJson="application/json"})(Xi=Pe.MediaTypes||(Pe.MediaTypes={}));function __(t){let e=v6.getProxyUrl(new URL(t));return e?e.href:""}o(__,"getProxyUrl");Pe.getProxyUrl=__;var S_=[za.MovedPermanently,za.ResourceMoved,za.SeeOther,za.TemporaryRedirect,za.PermanentRedirect],E_=[za.BadGateway,za.ServiceUnavailable,za.GatewayTimeout],C_=["OPTIONS","GET","DELETE","HEAD"],T_=10,O_=5,Up=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Pe.HttpClientError=Up;var Hp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return it(this,void 0,void 0,function*(){return new Promise(e=>it(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return it(this,void 0,void 0,function*(){return new Promise(e=>it(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Pe.HttpClientResponse=Hp;function P_(t){return new URL(t).protocol==="https:"}o(P_,"isHttps");Pe.isHttps=P_;var Mm=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1
Line truncated
|
||||
|
||||
Error Code : ${s.statusCode}
|
||||
|
||||
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return T2(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}P2.debug(`ID token url is ${a}`);let i=yield t.getCall(a);return P2.setSecret(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};Rr.OidcClient=Bl});var ql=T(It=>{"use strict";var Al=It&&It.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(It,"__esModule",{value:!0});It.summary=It.markdownSummary=It.SUMMARY_DOCS_URL=It.SUMMARY_ENV_VAR=void 0;var ib=require("os"),zl=require("fs"),{access:rb,appendFile:nb,writeFile:sb}=zl.promises;It.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";It.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Ml=class{constructor(){this._buffer=""}filePath(){return Al(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[It.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${It.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield rb(e,zl.constants.R_OK|zl.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Al(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?sb:nb)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Al(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(ib.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:p,colspan:d,rowspan:l}=s,c=o?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),l&&{rowspan:l});return this.wrap(c,p,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(o).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},R2=new Ml;It.markdownSummary=R2;It.summary=R2});var D2=T(Bt=>{"use strict";var ob=Bt&&Bt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),pb=Bt&&Bt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),db=Bt&&Bt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&ob(e,t,a);return pb(e,t),e};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.toPlatformPath=Bt.toWin32Path=Bt.toPosixPath=void 0;var lb=db(require("path"));function cb(t){return t.replace(/[\\]/g,"/")}Bt.toPosixPath=cb;function mb(t){return t.replace(/[/]/g,"\\")}Bt.toWin32Path=mb;function ub(t){return t.replace(/[/\\]/g,lb.sep)}Bt.toPlatformPath=ub});var nt=T(Z=>{"use strict";var fb=Z&&Z.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),hb=Z&&Z.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),I2=Z&&ZLine truncated
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}Z.getMultilineInput=wb;function Nb(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Ll(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Z.getBooleanInput=Nb;function _b(t,e){if(process.env.GITHUB_OUTPUT||"")return Wi.issueFileCommand("OUTPUT",Wi.prepareKeyValueMessage(t,e));process.stdout.write(A2.EOL),Zt.issueCommand("set-output",{name:t},Dr.toCommandValue(e))}Z.setOutput=_b;function Sb(t){Zt.issue("echo",t?"on":"off")}Z.setCommandEcho=Sb;function Eb(t){process.exitCode=z2.Failure,M2(t)}Z.setFailed=Eb;function Cb(){return process.env.RUNNER_DEBUG==="1"}Z.isDebug=Cb;function Tb(t){Zt.issueCommand("debug",{},t)}Z.debug=Tb;function M2(t,e={}){Zt.issueCommand("error",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.error=M2;function Pb(t,e={}){Zt.issueCommand("warning",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.warning=Pb;function Ob(t,e={}){Zt.issueCommand("notice",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.notice=Ob;function Rb(t){process.stdout.write(t+A2.EOL)}Z.info=Rb;function q2(t){Zt.issue("group",t)}Z.startGroup=q2;function L2(){Zt.issue("endgroup")}Z.endGroup=L2;function Db(t,e){return B2(this,void 0,void 0,function*(){q2(t);let a;try{a=yield e()}finally{L2()}return a})}Z.group=Db;function Ib(t,e){if(process.env.GITHUB_STATE||"")return Wi.issueFileCommand("STATE",Wi.prepareKeyValueMessage(t,e));Zt.issueCommand("save-state",{name:t},Dr.toCommandValue(e))}Z.saveState=Ib;function Bb(t){return process.env[`STATE_${t}`]||""}Z.getState=Bb;function Ab(t){return B2(this,void 0,void 0,function*(){return yield yb.OidcClient.getIDToken(t)})}Z.getIDToken=Ab;var zb=ql();Object.defineProperty(Z,"summary",{enumerable:!0,get:function(){return zb.summary}});var Mb=ql();Object.defineProperty(Z,"markdownSummary",{enumerable:!0,get:function(){return Mb.markdownSummary}});var jl=D2();Object.defineProperty(Z,"toPosixPath",{enumerable:!0,get:function(){return jl.toPosixPath}});Object.defineProperty(Z,"toWin32Path",{enumerable:!0,get:function(){return jl.toWin32Path}});Object.defineProperty(Z,"toPlatformPath",{enumerable:!0,get:function(){return jl.toPlatformPath}})});var Hl=T(Q=>{"use strict";var qb=Q&&Q.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Lb=Q&&Q.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),k2=Q&&Q.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&qb(e,t,a);return Lb(e,t),e},kl=Q&&Q.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})},At;Object.defineProperty(Q,"__esModule",{value:!0});Q.getCmdPath=Q.tryGetExecutablePath=Q.isRooted=Q.isDirectory=Q.exists=Q.READONLY=Q.UV_FS_O_EXLOCK=Q.IS_WINDOWS=Q.unlink=Q.symlink=Q.stat=Q.rmdir=Q.rm=Q.rename=Q.readlink=Q.readdir=Q.open=Q.mkdir=Q.lstat=Q.copyFile=Q.chmod=void 0;var H2=k2(require("fs")),No=k2(require("path"));At=H2.promises,Q.chmod=At.chmod,Q.copyFile=At.copyFile,Q.lstat=At.lstat,Q.mkdir=At.mkdir,Q.open=At.open,Q.readdir=At.readdir,Q.readlink=At.readlink,Q.rename=At.rename,Q.rm=At.rm,Q.rmdir=At.rmdir,Q.stat=At.stat,Q.symlink=At.symlink,Q.unlink=At.unlink;Q.IS_WINDOWS=process.platform==="win32";Q.UV_FS_O_EXLOCK=268435456;Q.READONLY=H2.constants.O_RDONLY;function jb(t){return kl(this,void 0,void 0,function*(){try{yield Q.stat(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}Q.exists=jb;function kb(t,e=!1){return kl(this,void 0,void 0,function*(){return(e?yield Q.stat(t):yield Q.lstat(t)).isDirectory()})}Q.isDirectory=kb;function Hb(t){if(t=Fb(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Q.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}Q.isRooted=Hb;function Ub(t,e){return kl(this,void 0,void 0,function*(){let a;try{a=yield Q.stat(t)}catch(r){r.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${r}`)}if(a&&a.isFile()){if(Q.IS_WINDOWS){let r=No.extname(t).toUpperCase();if(e.some(n=>n.toUpperCase()===r))return t}else if(j2(a))return t}let i=t;for(let r of e){t=i+r,a=void 0;try{a=yield Q.stat(t)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}if(a&&a.isFile()){if(Q.IS_WINDOWS){try{let n=No.dirname(t),s=No.basename(t).toUpperCase();for(let o of yield Q.readdir(n))if(s===o.toUpperCase()){t=No.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else if(j2(a))return t}}return""})}Q.tryGetExecutablePath=Ub;function Fb(t){return t=t||"",Q.IS_WINLine truncated
|
||||
%s`,f,f,R,i);var N=R.type==="*"?Yl:R.type==="?"?Ql:"\\"+R.type;r=!0,i=i.slice(0,R.reStart)+N+"\\("+f}h(),n&&(i+="\\\\");var C=!1;switch(i.charAt(0)){case"[":case".":case"(":C=!0}for(var w=o.length-1;w>-1;w--){var D=o[w],_=i.slice(0,D.reStart),O=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);B+=j;var ne=_.split("(").length-1,me=j;for(v=0;v<ne;v++)me=me.replace(/\)[+*?]?/,"");j=me;var K="";j===""&&e!==Po&&(K="$");var Ge=_+O+j+K+B;i=Ge}if(i!==""&&r&&(i="(?=.)"+i),C&&(i=m+i),e===Po)return[i,r];if(!r)return Gw(t);var ce=a.nocase?"i":"";try{var ca=new RegExp("^"+i+"$",ce)}catch{return new RegExp("$.")}return ca._glob=t,ca._src=i,ca}Ut.makeRe=function(t,e){return new yt(t,e||{}).makeRe()};yt.prototype.makeRe=$w;function $w(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Yl:e.dot?qw:Lw,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Zl?a:typeof s=="string"?Xw(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}Ut.match=function(t,e,a){a=a||{};var i=new yt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};yt.prototype.match=function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;Fn.sep!=="/"&&(e=e.split(Fn.sep).join("/")),e=e.split(Sf),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var o=r[s],p=e;i.matchBase&&o.length===1&&(p=[n]);var d=this.matchOne(p,o,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};yt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,o=e.length;r<s&&n<o;r++,n++){this.debug("matchOne loop");var p=e[n],d=t[r];if(this.debug(e,p,d),p===!1)return!1;if(p===Zl){this.debug("GLOBSTAR",[e,p,d]);var l=r,c=n+1;if(c===o){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;l<s;){var m=t[l];if(this.debug(`
|
||||
globstar while`,t,l,e,c,m),this.matchOne(t.slice(l),e.slice(c),a))return this.debug("globstar found match!",l,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,l,e,c);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,l,e,c),l===s))}var u;if(typeof p=="string"?(u=d===p,this.debug("string match",p,d,u)):(u=d.match(p),this.debug("pattern match",p,d,u)),!u)return!1}if(r===s&&n===o)return!0;if(r===s)return a;if(n===o)return r===s-1&&t[r]==="";throw new Error("wtf?")};function Gw(t){return t.replace(/\\(.)/g,"$1")}function Xw(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Of=T(Jt=>{"use strict";var Ww=Jt&&Jt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Kw=Jt&&Jt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Pf=Jt&&Jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Ww(e,t,a);return Kw(e,t),e},Qw=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Path=void 0;var Vn=Pf(require("path")),vi=Pf(Co()),$n=Qw(require("assert")),Yw=process.platform==="win32",Jl=class{constructor(e){if(this.segments=[],typeof e=="string")if($n.default(e,"Parameter 'itemPath' must not be empty"),e=vi.safeTrimTrailingSeparator(e),!vi.hasRoot(e))this.segments=e.split(Vn.sep);else{let a=e,i=vi.dirname(a);for(;i!==a;){let r=Vn.basename(a);this.segments.unshift(r),a=i,i=vi.dirname(a)}this.segments.unshift(a)}else{$n.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];$n.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=vi.normalizeSeparators(e[a]),a===0&&vi.hasRoot(i)?(i=vi.safeTrimTrailingSeparator(i),$n.default(i===vi.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):($n.default(!i.includes(Vn.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Vn.sep)||Yw&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Vn.sep,e+=this.segments[i];return e}};Jt.Path=Jl});var Rf=T(ea=>{"use strict";var Zw=ea&&ea.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Jw=ea&&ea.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ac=ea&&ea.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Zw(e,t,a);return Jw(e,t),e},eN=ea&&ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ea,"__esModule",{value:!0});ea.Pattern=void 0;var tN=ac(require("os")),Gn=ac(require("path")),Lt=ac(Co()),Qi=eN(require("assert")),aN=Tf(),ec=To(),Ro=Of(),Va=process.platform==="win32",tc=class t{constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Qi.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Qi.default(d&&Lt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new Ro.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new Ro.Path(n).segments,this.trailingSeparator=Lt.normalizeSeparators(n).endsWith(Gn.sep),n=Lt.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new Ro.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),Va?"i":""),this.isImplicitPattern=a;let p={dot:!0,nobrace:!0,nocase:Va,nocomment:!0,noext:!0,nonegate:!0};n=Va?n.replace(/\\/g,"/"):n,this.minimatch=new aN.Minimatch(n,p)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Lt.normalizeSeparators(e),!e.endsWith(Gn.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Gn.sep}`)):e=Lt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?ec.MatchKind.Directory:ec.MatchKind.All:ec.MatchKind.None}partialMatch(e){return e=Lt.safeTrimTrailingSeparator(e),Lt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Va?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Va?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){Qi.default(e,"pattern cannot be empty");let i=new Ro.Path(e).segments.map(r=>t.getLiteral(r));if(Qi.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Qi.default(!Lt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Lt.normalizeSeparators(e),e==="."||e.startsWith(`.${Gn.sep}`))e=t.globEscape(process.cwd())+e.
Line truncated
|
||||
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return b6(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,x6.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,x6.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};vn.OidcClient=km});var Vm=T(Xt=>{"use strict";var Um=Xt&&Xt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.summary=Xt.markdownSummary=Xt.SUMMARY_DOCS_URL=Xt.SUMMARY_ENV_VAR=void 0;var I_=require("os"),Hm=require("fs"),{access:B_,appendFile:A_,writeFile:M_}=Hm.promises;Xt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Xt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Fm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Um(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Xt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Xt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield B_(e,Hm.constants.R_OK|Hm.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Um(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?M_:A_)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Um(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(I_.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:d,colspan:l,rowspan:c}=s,m=p?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),c&&{rowspan:c});return this.wrap(m,d,u)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},N6=new Fm;Xt.markdownSummary=N6;Xt.summary=N6});var _6=T(Wt=>{"use strict";var q_=Wt&&Wt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),L_=Wt&&Wt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),z_=Wt&&Wt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&q_(e,t,a);return L_(e,t),e};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.toPlatformPath=Wt.toWin32Path=Wt.toPosixPath=void 0;var j_=z_(require("path"));function k_(t){return t.replace(/[\\]/g,"/")}o(k_,"toPosixPath");Wt.toPosixPath=k_;function U_(t){return t.replace(/[/]/g,"\\")}o(U_,"toWin32Path");Wt.toWin32Path=U_;function H_(t){return t.replace(/[/\\]/g,j_.sep)}o(H_,"toPlatformPath");Wt.toPlatformPath=H_});var Gm=T(J=>{"use strict";var F_=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
|
||||
`);return{name:e,version:a}}),"getLinuxInfo");he.platform=U6.default.platform();he.arch=U6.default.arch();he.isWindows=he.platform==="win32";he.isMacOS=he.platform==="darwin";he.isLinux=he.platform==="linux";function wS(){return Kp(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he.isWindows?vS():he.isMacOS?bS():xS()),{platform:he.platform,arch:he.arch,isWindows:he.isWindows,isMacOS:he.isMacOS,isLinux:he.isLinux})})}o(wS,"getDetails");he.getDetails=wS});var rt=T(X=>{"use strict";var NS=X&&X.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_S=X&&X.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qm=X&&X.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&NS(e,t,a);return _S(e,t),e},F6=X&&X.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(X,"__esModule",{value:!0});X.platform=X.toPlatformPath=X.toWin32Path=X.toPosixPath=X.markdownSummary=X.summary=X.getIDToken=X.getState=X.saveState=X.group=X.endGroup=X.startGroup=X.info=X.notice=X.warning=X.error=X.debug=X.isDebug=X.setFailed=X.setCommandEcho=X.setOutput=X.getBooleanInput=X.getMultilineInput=X.getInput=X.addPath=X.setSecret=X.exportVariable=X.ExitCode=void 0;var va=o6(),Dr=l6(),wn=Lp(),V6=Qm(require("os")),SS=Qm(require("path")),ES=w6(),Ym;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Ym||(X.ExitCode=Ym={}));function CS(t,e){let a=(0,wn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,Dr.issueFileCommand)("ENV",(0,Dr.prepareKeyValueMessage)(t,e));(0,va.issueCommand)("set-env",{name:t},a)}o(CS,"exportVariable");X.exportVariable=CS;function TS(t){(0,va.issueCommand)("add-mask",{},t)}o(TS,"setSecret");X.setSecret=TS;function OS(t){process.env.GITHUB_PATH||""?(0,Dr.issueFileCommand)("PATH",t):(0,va.issueCommand)("add-path",{},t),process.env.PATH=`${t}${SS.delimiter}${process.env.PATH}`}o(OS,"addPath");X.addPath=OS;function Jm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(Jm,"getInput");X.getInput=Jm;function PS(t,e){let a=Jm(t,e).split(`
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(PS,"getMultilineInput");X.getMultilineInput=PS;function RS(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Jm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(RS,"getBooleanInput");X.getBooleanInput=RS;function DS(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,Dr.issueFileCommand)("OUTPUT",(0,Dr.prepareKeyValueMessage)(t,e));process.stdout.write(V6.EOL),(0,va.issueCommand)("set-output",{name:t},(0,wn.toCommandValue)(e))}o(DS,"setOutput");X.setOutput=DS;function IS(t){(0,va.issue)("echo",t?"on":"off")}o(IS,"setCommandEcho");X.setCommandEcho=IS;function BS(t){process.exitCode=Ym.Failure,$6(t)}o(BS,"setFailed");X.setFailed=BS;function AS(){return process.env.RUNNER_DEBUG==="1"}o(AS,"isDebug");X.isDebug=AS;function MS(t){(0,va.issueCommand)("debug",{},t)}o(MS,"debug");X.debug=MS;function $6(t,e={}){(0,va.issueCommand)("error",(0,wn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o($6,"error");X.error=$6;function qS(t,e={}){(0,va.issueCommand)("warning",(0,wn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(qS,"warning");X.warning=qS;function LS(t,e={}){(0,va.issueCommand)("notice",(0,wn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(LS,"notice");X.notice=LS;function zS(t){process.stdout.write(t+V6.EOL)}o(zS,"info");X.info=zS;function G6(t){(0,va.issue)("group",t)}o(G6,"startGroup");X.startGroup=G6;function X6(){(0,va.issue)("endgroup")}o(X6,"endGroup");X.endGroup=X6;function jS(t,e){return F6(this,void 0,void 0,function*(){G6(t);let a;try{a=yield e()}finally{X6()}return a})}o(jS,"group");X.group=jS;function kS(t,e){if(process.env.GITHUB_STATE||"")return(0,Dr.issueFileCommand)("STATE",(0,Dr.prepareKeyValueMessage)(t,e));(0,va.issueCommand)("save-state",{name:t},(0,wn.toCommandValue)(e))}o(kS,"saveState");X.saveState=kS;function US(t){return process.env[`STATE_${t}`]||""}o(US,"getState");X.getState=US;function HS(t){return F6(this,void 0,void 0,function*(){return yield ES.OidcClient.getIDToken(t)})}o(HS,"getIDToken");X.getIDToken=HS;var FS=Vm();Object.defineProperty(X,"summary",{enumerable:!0,get:function(){return FS.summary}});var VS=Vm();Object.defineProperty(X,"markdownSummary",{enumerable:!0,get:function(){return VS.markdownSummary}});var Zm=_6();Object.defineProperty(X,"toPosixPath",{enumerable:!0,get:function(){return Zm.toPosixPath}});Object.defineProperty(X,"toWin32Path",{enumerable:!0,get:function(){return Zm.toWin32Path}});Object.defineProperty(X,"toPlatformPath",{enumerable:!0,get:function(){return Zm.toPlatformPath}});X.platform=Qm(H6())});var W6=T(ti=>{"use strict";var $S=ti&&ti.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),GS=ti&&ti.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),XS=ti&&ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&$S(e,t,a);return GS(e,t),e};Object.defineProperty(ti,"__esModule",{value:!0});ti.getOptions=void 0;var eu=XS(rt());function WS(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,eu.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,eu.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,eu.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(WS,"getOptions");ti.getOptions=WS});var Qp=T(Ve=>{"use strict";var KS=Ve&&Ve.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),YS=Ve&&Ve.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),QS=Ve&&Ve.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&KS(e,t,a);return YS(e,t),e},JS=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.safeTrimTrailingSeparator=Ve.normalizeSeparators=Ve.hasRoot=Ve.hasAbsoluteRoot=Ve.ensureAbsoluteRoot=Ve.dirname=void 0;var Yp=QS(require("path")),Ir=JS(require("assert")),Ki=process.platform==="win32";function ZS(t){if(t=au(t),Ki&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Yp.dirname(t);return Ki&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=au(e)),e}o(ZS,"dirname");Ve.dirname=ZS;function eE(t,e){if(Ir.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ir.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tu(e))return e;if(Ki){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
|
||||
%s`,g,g,D,i);var _=D.type==="*"?su:D.type==="?"?nu:"\\"+D.type;r=!0,i=i.slice(0,D.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var I=p[N],E=i.slice(0,I.reStart),R=i.slice(I.reStart,I.reEnd-8),A=i.slice(I.reEnd-8,I.reEnd),k=i.slice(I.reEnd);A+=k;var pe=E.split("(").length-1,ge=k;for(b=0;b<pe;b++)ge=ge.replace(/\)[+*?]?/,"");k=ge;var Q="";k===""&&e!==Zp&&(Q="$");var at=E+R+k+Q+A;i=at}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=u+i),e===Zp)return[i,r];if(!r)return PE(t);var fe=a.nocase?"i":"";try{var qa=new RegExp("^"+i+"$",fe)}catch{return new RegExp("$.")}return qa._glob=t,qa._src=i,qa}o(TE,"parse");oa.makeRe=function(t,e){return new Dt(t,e||{}).makeRe()};Dt.prototype.makeRe=OE;function OE(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?su:e.dot?xE:wE,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===ou?a:typeof s=="string"?RE(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(OE,"makeRe");oa.match=function(t,e,a){a=a||{};var i=new Dt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Dt.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;to.sep!=="/"&&(e=e.split(to.sep).join("/")),e=e.split(h4),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],d=e;i.matchBase&&p.length===1&&(d=[n]);var l=this.matchOne(d,p,a);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Dt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var d=e[n],l=t[r];if(this.debug(e,d,l),d===!1)return!1;if(d===ou){this.debug("GLOBSTAR",[e,d,l]);var c=r,m=n+1;if(m===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var u=t[c];if(this.debug(`
|
||||
globstar while`,t,c,e,m,u),this.matchOne(t.slice(c),e.slice(m),a))return this.debug("globstar found match!",c,s,u),!0;if(u==="."||u===".."||!i.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,c,e,m);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,c,e,m),c===s))}var f;if(typeof d=="string"?(f=l===d,this.debug("string match",d,l,f)):(f=l.match(d),this.debug("pattern match",d,l,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function PE(t){return t.replace(/\\(.)/g,"$1")}o(PE,"globUnescape");function RE(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(RE,"regExpEscape")});var x4=T(ba=>{"use strict";var DE=ba&&ba.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),IE=ba&&ba.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),b4=ba&&ba.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&DE(e,t,a);return IE(e,t),e},BE=ba&&ba.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ba,"__esModule",{value:!0});ba.Path=void 0;var ao=b4(require("path")),Qi=b4(Qp()),io=BE(require("assert")),AE=process.platform==="win32",pu=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(io.default(e,"Parameter 'itemPath' must not be empty"),e=Qi.safeTrimTrailingSeparator(e),!Qi.hasRoot(e))this.segments=e.split(ao.sep);else{let a=e,i=Qi.dirname(a);for(;i!==a;){let r=ao.basename(a);this.segments.unshift(r),a=i,i=Qi.dirname(a)}this.segments.unshift(a)}else{io.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];io.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Qi.normalizeSeparators(e[a]),a===0&&Qi.hasRoot(i)?(i=Qi.safeTrimTrailingSeparator(i),io.default(i===Qi.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(io.default(!i.includes(ao.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(ao.sep)||AE&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=ao.sep,e+=this.segments[i];return e}};ba.Path=pu});var w4=T(xa=>{"use strict";var ME=xa&&xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),qE=xa&&xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cu=xa&&xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&ME(e,t,a);return qE(e,t),e},LE=xa&&xa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xa,"__esModule",{value:!0});xa.Pattern=void 0;var zE=cu(require("os")),ro=cu(require("path")),Zt=cu(Qp()),Br=LE(require("assert")),jE=v4(),du=Jp(),td=x4(),Ni=process.platform==="win32",lu=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Br.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);Br.default(l&&Zt.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new td.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new td.Path(n).segments,this.trailingSeparator=Zt.normalizeSeparators(n).endsWith(ro.sep),n=Zt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new td.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),Ni?"i":""),this.isImplicitPattern=a;let d={dot:!0,nobrace:!0,nocase:Ni,nocomment:!0,noext:!0,nonegate:!0};n=Ni?n.replace(/\\/g,"/"):n,this.minimatch=new jE.Minimatch(n,d)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Zt.normalizeSeparators(e),!e.endsWith(ro.sep)&&this.isImplicitPattern===!1&&(e=`${e}${ro.sep}`)):e=Zt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?du.MatchKind.Directory:du.MatchKind.All:du.MatchKind.None}partialMatch(e){return e=Zt.safeTrimTrailingSeparator(e),Zt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ni?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ni?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){Br.default(e,"pattern cannot be empty");let i=new td.Path(e).segments.map(r=>t.getLiteral(r));if(Br.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Br.default(!Zt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Zt.nor
Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let r=e.split(`
|
||||
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new Af.Pattern(n));return i.searchPaths.push(...Io.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return rc(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Xn.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){nc.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield Xn.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Xn.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){nc.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};st.DefaultGlobber=sc});var qf=T(Ar=>{"use strict";var dN=Ar&&Ar.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.create=void 0;var lN=Mf();function cN(t,e){return dN(this,void 0,void 0,function*(){return yield lN.DefaultGlobber.create(t,e)})}Ar.create=cN});var qo=T((te,Uf)=>{te=Uf.exports=ie;var be;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?be=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:be=function(){};te.SEMVER_SPEC_VERSION="2.0.0";var Kn=256,Bo=Number.MAX_SAFE_INTEGER||9007199254740991,oc=16,mN=Kn-6,zr=te.re=[],xe=te.safeRe=[],A=te.src=[],I=te.tokens={},kf=0;function se(t){I[t]=kf++}var dc="[a-zA-Z0-9-]",pc=[["\\s",1],["\\d",Kn],[dc,mN]];function Yn(t){for(var e=0;e<pc.length;e++){var a=pc[e][0],i=pc[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}se("NUMERICIDENTIFIER");A[I.NUMERICIDENTIFIER]="0|[1-9]\\d*";se("NUMERICIDENTIFIERLOOSE");A[I.NUMERICIDENTIFIERLOOSE]="\\d+";se("NONNUMERICIDENTIFIER");A[I.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+dc+"*";se("MAINVERSION");A[I.MAINVERSION]="("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")";se("MAINVERSIONLOOSE");A[I.MAINVERSIONLOOSE]="("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")";se("PRERELEASEIDENTIFIER");A[I.PRERELEASEIDENTIFIER]="(?:"+A[I.NUMERICIDENTIFIER]+"|"+A[I.NONNUMERICIDENTIFIER]+")";se("PRERELEASEIDENTIFIERLOOSE");A[I.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[I.NUMERICIDENTIFIERLOOSE]+"|"+A[I.NONNUMERICIDENTIFIER]+")";se("PRERELEASE");A[I.PRERELEASE]="(?:-("+A[I.PRERELEASEIDENTIFIER]+"(?:\\."+A[I.PRERELEASEIDENTIFIER]+")*))";se("PRERELEASELOOSE");A[I.PRERELEASELOOSE]="(?:-?("+A[I.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[I.PRERELEASEIDENTIFIERLOOSE]+")*))";se("BUILDIDENTIFIER");A[I.BUILDIDENTIFIER]=dc+"+";se("BUILD");A[I.BUILD]="(?:\\+("+A[I.BUILDIDENTIFIER]+"(?:\\."+A[I.BUILDIDENTIFIER]+")*))";se("FULL");se("FULLPLAIN");A[I.FULLPLAIN]="v?"+A[I.MAINVERSION]+A[I.PRERELEASE]+"?"+A[I.BUILD]+"?";A[I.FULL]="^"+A[I.FULLPLAIN]+"$";se("LOOSEPLAIN");A[I.LOOSEPLAIN]="[v=\\s]*"+A[I.MAINVERSIONLOOSE]+A[I.PRERELEASELOOSE]+"?"+A[I.BUILD]+"?";se("LOOSE");A[I.LOOSE]="^"+A[I.LOOSEPLAIN]+"$";se("GTLT");A[I.GTLT]="((?:<|>)?=?)";se("XRANGEIDENTIFIERLOOSE");A[I.XRANGEIDENTIFIERLOOSE]=A[I.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";se("XRANGEIDENTIFIER");A[I.XRANGEIDENTIFIER]=A[I.NUMERICIDENTIFIER]+"|x|X|\\*";se("XRANGEPLAIN");A[I.XRANGEPLAIN]="[v=\\s]*("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:"+A[I.PRERELEASE]+")?"+A[I.BUILD]+"?)?)?";se("XRANGEPLAINLOOSE");A[I.XRANGEPLAINLOOSE]="[v=\\s]*("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:"+A[I.PRERELEASELOOSE]+")?"+A[I.BUILD]+"?)?)?";se("XRANGE");A[I.XRANGE]="^"+A[I.GTLT]+"\\s*"+A[I.XRANGEPLAIN]+"$";se("XRANGELOOSE");A[I.XRANGELOOSE]="^"+A[I.GTLT]+"\\s*"+A[I.XRANGEPLAINLOOSE]+"$";se("COERCE");A[I.COERCE]="(^|[^\\d])(\\d{1,"+oc+"})(?:\\.(\\d{1,"+oc+"}))?(?:\\.(\\d{1,"+oc+"}))?(?:$|[^\\d])";se("COERCERTL");zr[I.COERCERTL]=new RegExp(A[I.COERCE],"g");xe[I.COERCERTL]=new RegExp(Yn(A[I.COERCE]),"g");se("LONETILDE");A[I.LONETILDE]="(?:~>?)";se("TILDETRIM");A[I.TILDETRIM]="(\\s*)"+A[I.LONETILDE]+"\\s+";zr[I.TILDETRIM]=new RegExp(A[I.TILDETRIM],"g");xe[I.TILDETRIM]=new RegExp(Yn(A[I.TILDETRIM]),"g");var uN="$1~";se("TILDE");A[I.TILDE]="^"+A[I.LONETILDE]+A[I.XRANGEPLAIN]+"$";se("TILDELOOSE");A[I.TILDELOOSE]="^"+A[I.LONETILDE]+A[I.XRANGEPLAINLOOSE]+"$";se("LONECARET");A[I.LONECARET]="(?:\\^)";se("CARETTRIM");A[I.CARETTRIM]="(\\s*)"+A[I.LONECARET]+"\\s+";zr[I.CARETTRIM]=new RegExp(A[I.CARETTRIM],"g");xe[I.CARETTRIM]=new RegExp(Yn(A[I.CARETTRIM]),"g");var fN="$1^";se("CARET");A[I.CARET]="^"+A[I.LONE
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var d=!0,l=d_(p.globGenerator()),c;c=yield l.next(),e=c.done,!e;){r=c.value,d=!1;try{let m=r,u=Lo.relative(o,m).replace(new RegExp(`\\${Lo.sep}`,"g"),"/");es.debug(`Matched: ${u}`),u===""?s.push("."):s.push(`${u}`)}finally{d=!0}}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(a)throw a.error}}return s})}we.resolvePaths=y_;function v_(t){return qr(this,void 0,void 0,function*(){return u_.promisify(wc.unlink)(t)})}we.unlinkFile=v_;function e6(t,e=[]){return qr(this,void 0,void 0,function*(){let a="";e.push("--version"),es.debug(`Checking ${t} ${e.join(" ")}`);try{yield l_.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){es.debug(i.message)}return a=a.trim(),es.debug(a),a})}function x_(){return qr(this,void 0,void 0,function*(){let t=yield e6("zstd",["--quiet"]),e=m_.clean(t);return es.debug(`zstd version: ${e}`),t===""?Ji.CompressionMethod.Gzip:Ji.CompressionMethod.ZstdWithoutLong})}we.getCompressionMethod=x_;function b_(t){return t===Ji.CompressionMethod.Gzip?Ji.CacheFilename.Gzip:Ji.CacheFilename.Zstd}we.getCacheFileName=b_;function w_(){return qr(this,void 0,void 0,function*(){return wc.existsSync(Ji.GnuTarPathOnWindows)?Ji.GnuTarPathOnWindows:(yield e6("tar")).toLowerCase().includes("gnu tar")?Jf.which("tar"):""})}we.getGnuTarPathOnWindows=w_;function N_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}we.assertDefined=N_;function __(){return new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()!=="GITHUB.COM"}we.isGhes=__});function as(){return jo>ko.length-16&&(t6.default.randomFillSync(ko),jo=0),ko.slice(jo,jo+=16)}var t6,ko,jo,Nc=ge(()=>{t6=Dt(require("crypto")),ko=new Uint8Array(256),jo=ko.length});var a6,i6=ge(()=>{a6=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function S_(t){return typeof t=="string"&&a6.test(t)}var wi,is=ge(()=>{i6();wi=S_});function E_(t,e=0){let a=(vt[t[e+0]]+vt[t[e+1]]+vt[t[e+2]]+vt[t[e+3]]+"-"+vt[t[e+4]]+vt[t[e+5]]+"-"+vt[t[e+6]]+vt[t[e+7]]+"-"+vt[t[e+8]]+vt[t[e+9]]+"-"+vt[t[e+10]]+vt[t[e+11]]+vt[t[e+12]]+vt[t[e+13]]+vt[t[e+14]]+vt[t[e+15]]).toLowerCase();if(!wi(a))throw TypeError("Stringified UUID is invalid");return a}var vt,Ni,rs=ge(()=>{is();vt=[];for(let t=0;t<256;++t)vt.push((t+256).toString(16).substr(1));Ni=E_});function C_(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||r6,s=t.clockseq!==void 0?t.clockseq:_c;if(n==null||s==null){let m=t.random||(t.rng||as)();n==null&&(n=r6=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=_c=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:Ec+1,d=o-Sc+(p-Ec)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Sc)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Sc=o,Ec=p,_c=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||Ni(r)}var r6,_c,Sc,Ec,n6,s6=ge(()=>{Nc();rs();Sc=0,Ec=0;n6=C_});function T_(t){if(!wi(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Ho,Cc=ge(()=>{is();Ho=T_});function P_(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Uo(t,e,a){function i(r,n,s,o){if(typeof r=="string"&&(r=P_(r)),typeof n=="string"&&(n=Ho(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let p=new Uint8Array(16+r.length);if(p.set(n),p.set(r,n.length),p=a(p),p[6]=p[6]&15|e,p[8]=p[8]&63|128,s){o=o||0;for(let d=0;d<16;++d)s[o+d]=p[d];return s}return Ni(p)}try{i.name=t}catch{}return i.DNS=O_,i.URL=R_,i}var O_,R_,Tc=ge(()=>{rs();Cc();O_="6ba7b810-9dad-11d1-80b4-00c04fd430c8",R_="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function D_(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),o6.default.createHash("md5").update(t).digest()}var o6,p6,d6=ge(()=>{o6=Dt(require("crypto"));p6=D_});var I_,l6,c6=ge(()=>{Tc();d6();I_=Uo("v3",48,p6),l6=I_});function B_(t,e,a){t=t||{};let i=t.random||(t.rng||as)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){a=a||0;for(let r=0;r<16;++r)e[a+r]=i[r];return e}return Ni(i)}var m6,u6=ge(()=>{Nc();rs();m6=B_});function A_(t){return Array.isArray(t)?t=Buffer.fro
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Rc)});var Oa=T((X6,_i)=>{(function(){var t,e,a,i,r,n,s,o=[].slice,p={}.hasOwnProperty;t=function(){var d,l,c,m,u,h;if(h=arguments[0],u=2<=arguments.length?o.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,c=u.length;d<c;d++)if(m=u[d],m!=null)for(l in m)p.call(m,l)&&(h[l]=m[l]);return h},r=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var l;return!!d&&((l=typeof d)=="function"||l==="object")},a=function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},i=function(d){var l;if(a(d))return!d.length;for(l in d)if(p.call(d,l))return!1;return!0},s=function(d){var l,c;return n(d)&&(c=Object.getPrototypeOf(d))&&(l=c.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(d){return r(d.valueOf)?d.valueOf():d},_i.exports.assign=t,_i.exports.isFunction=r,_i.exports.isObject=n,_i.exports.isArray=a,_i.exports.isEmpty=i,_i.exports.isPlainObject=s,_i.exports.getValue=e}).call(X6)});var Dc=T((W6,K6)=>{(function(){var t;K6.exports=t=function(){function e(){}return e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(W6)});var Z6=T((Q6,Y6)=>{(function(){var t;Y6.exports=t=function(){function e(){}return e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(Q6)});var th=T((J6,eh)=>{(function(){var t;eh.exports=t=function(){function e(a){this.arr=a||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(J6)});var rh=T((ah,ih)=>{(function(){var t,e,a;e=Z6(),a=th(),ih.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(ah)});var We=T((nh,sh)=>{(function(){sh.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(nh)});var Ic=T((oh,ph)=>{(function(){var t,e,a;t=We(),a=Ft(),ph.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)},i}()}).call(oh)});var Ko=T((dh,lh)=>{(function(){var t;lh.exports=t=function(){function e(a){this.nodes=a}return Object.definePropert
Line truncated
|
||||
`,g.offset=(C=b.offset)!=null?C:0,g.dontPrettyTextNodes=(w=(D=b.dontPrettyTextNodes)!=null?D:b.dontprettytextnodes)!=null?w:0,g.spaceBeforeSlash=(_=(O=b.spaceBeforeSlash)!=null?O:b.spacebeforeslash)!=null?_:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=e.None,g},R.prototype.indent=function(b,g,f){var N;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(N=(f||0)+g.offset+1,N>0)?new Array(N).join(g.indent):""},R.prototype.endline=function(b,g,f){return!g.pretty||g.suppressPrettyCount?"":g.newline},R.prototype.attribute=function(b,g,f){var N;return this.openAttribute(b,g,f),N=" "+b.name+'="'+b.value+'"',this.closeAttribute(b,g,f),N},R.prototype.cdata=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f)+"<![CDATA[",g.state=e.InsideTag,N+=b.value,g.state=e.CloseTag,N+="]]>"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.comment=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f)+"<!-- ",g.state=e.InsideTag,N+=b.value,g.state=e.CloseTag,N+=" -->"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.declaration=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f)+"<?xml",g.state=e.InsideTag,N+=' version="'+b.version+'"',b.encoding!=null&&(N+=' encoding="'+b.encoding+'"'),b.standalone!=null&&(N+=' standalone="'+b.standalone+'"'),g.state=e.CloseTag,N+=g.spaceBeforeSlash+"?>",N+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.docType=function(b,g,f){var N,C,w,D,_;if(f||(f=0),this.openNode(b,g,f),g.state=e.OpenTag,D=this.indent(b,g,f),D+="<!DOCTYPE "+b.root().name,b.pubID&&b.sysID?D+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(D+=' SYSTEM "'+b.sysID+'"'),b.children.length>0){for(D+=" [",D+=this.endline(b,g,f),g.state=e.InsideTag,_=b.children,C=0,w=_.length;C<w;C++)N=_[C],D+=this.writeChildNode(N,g,f+1);g.state=e.CloseTag,D+="]"}return g.state=e.CloseTag,D+=g.spaceBeforeSlash+">",D+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),D},R.prototype.element=function(b,g,f){var N,C,w,D,_,O,B,j,ne,me,K,Ge,ce,ca;f||(f=0),me=!1,K="",this.openNode(b,g,f),g.state=e.OpenTag,K+=this.indent(b,g,f)+"<"+b.name,Ge=b.attribs;for(ne in Ge)S.call(Ge,ne)&&(N=Ge[ne],K+=this.attribute(N,g,f));if(w=b.children.length,D=w===0?null:b.children[0],w===0||b.children.every(function(Ot){return(Ot.type===t.Text||Ot.type===t.Raw)&&Ot.value===""}))g.allowEmpty?(K+=">",g.state=e.CloseTag,K+="</"+b.name+">"+this.endline(b,g,f)):(g.state=e.CloseTag,K+=g.spaceBeforeSlash+"/>"+this.endline(b,g,f));else if(g.pretty&&w===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)K+=">",g.state=e.InsideTag,g.suppressPrettyCount++,me=!0,K+=this.writeChildNode(D,g,f+1),g.suppressPrettyCount--,me=!1,g.state=e.CloseTag,K+="</"+b.name+">"+this.endline(b,g,f);else{if(g.dontPrettyTextNodes){for(ce=b.children,_=0,B=ce.length;_<B;_++)if(C=ce[_],(C.type===t.Text||C.type===t.Raw)&&C.value!=null){g.suppressPrettyCount++,me=!0;break}}for(K+=">"+this.endline(b,g,f),g.state=e.InsideTag,ca=b.children,O=0,j=ca.length;O<j;O++)C=ca[O],K+=this.writeChildNode(C,g,f+1);g.state=e.CloseTag,K+=this.indent(b,g,f)+"</"+b.name+">",me&&g.suppressPrettyCount--,K+=this.endline(b,g,f),g.state=e.None}return this.closeNode(b,g,f),K},R.prototype.writeChildNode=function(b,g,f){switch(b.type){case t.CData:return this.cdata(b,g,f);case t.Comment:return this.comment(b,g,f);case t.Element:return this.element(b,g,f);case t.Raw:return this.raw(b,g,f);case t.Text:return this.text(b,g,f);case t.ProcessingInstruction:return this.processingInstruction(b,g,f);case t.Dummy:return"";case t.Declaration:return this.declaration(b,g,f);case t.DocType:return this.docType(b,g,f);case t.AttributeDeclaration:return this.dtdAttList(b,g,f);case t.ElementDeclaration:return this.dtdElement(b,g,f);case t.EntityDeclaration:return this.dtdEntity(b,g,f);case t.NotationDeclaration:return this.dtdNotation(b,g,f);default:throw new Error("Unknown XML node type: "+b.constructor.name)}},R.prototype.processingInstruction=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f)+"<?",g.state=e.InsideTag,N+=b.target,b.value&&(N+=" "+b.value),g.state=e.CloseTag,N+=g.spaceBeforeSlash+"?>",N+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.raw=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f),g.state=e.InsideTag,N+=b.value,g.state=e.CloseTag,N+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.text=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f),g.state=e.InsideTag,N+=b.value,g.state=e.CloseTag,N+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),N},R.prototype.dtdAttList=function(b,g,f){var N;return this.openNode(b,g,f),g.state=e.OpenTag,N=this.indent(b,g,f)+"<!ATTLIST",g.state=e.InsideTag,N+=" "+b.elementName+" "+b.attributeName+" "+b.attribut
Line truncated
|
||||
`||x==="\r"||x===" "}function g(x){return x==='"'||x==="'"}function f(x){return x===">"||b(x)}function N(x,y){return x.test(y)}function C(x,y){return!N(x,y)}var w=0;t.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var y=t.ENTITIES[x],z=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[x]=z});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;w=t.STATE;function _(x,y,z){x[y]&&x[y](z)}function O(x,y,z){x.textNode&&B(x),_(x,y,z)}function B(x){x.textNode=j(x.opt,x.textNode),x.textNode&&_(x,"ontext",x.textNode),x.textNode=""}function j(x,y){return x.trim&&(y=y.trim()),x.normalize&&(y=y.replace(/\s+/g," ")),y}function ne(x,y){return B(x),x.trackPosition&&(y+=`
|
||||
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new E4.Pattern(n));return i.searchPaths.push(...id.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return uu(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield no.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){fu.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield no.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield no.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){fu.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};vt.DefaultGlobber=hu});var O4=T(_n=>{"use strict";var GE=_n&&_n.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(_n,"__esModule",{value:!0});_n.create=void 0;var XE=T4();function WE(t,e){return GE(this,void 0,void 0,function*(){return yield XE.DefaultGlobber.create(t,e)})}o(WE,"create");_n.create=WE});var pd=T((ie,B4)=>{ie=B4.exports=se;var Se;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Se=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Se=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var oo=256,rd=Number.MAX_SAFE_INTEGER||9007199254740991,gu=16,KE=oo-6,Sn=ie.re=[],_e=ie.safeRe=[],M=ie.src=[],B=ie.tokens={},D4=0;function de(t){B[t]=D4++}o(de,"tok");var vu="[a-zA-Z0-9-]",yu=[["\\s",1],["\\d",oo],[vu,KE]];function lo(t){for(var e=0;e<yu.length;e++){var a=yu[e][0],i=yu[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(lo,"makeSafeRe");de("NUMERICIDENTIFIER");M[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";de("NUMERICIDENTIFIERLOOSE");M[B.NUMERICIDENTIFIERLOOSE]="\\d+";de("NONNUMERICIDENTIFIER");M[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+vu+"*";de("MAINVERSION");M[B.MAINVERSION]="("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")\\.("+M[B.NUMERICIDENTIFIER]+")";de("MAINVERSIONLOOSE");M[B.MAINVERSIONLOOSE]="("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")\\.("+M[B.NUMERICIDENTIFIERLOOSE]+")";de("PRERELEASEIDENTIFIER");M[B.PRERELEASEIDENTIFIER]="(?:"+M[B.NUMERICIDENTIFIER]+"|"+M[B.NONNUMERICIDENTIFIER]+")";de("PRERELEASEIDENTIFIERLOOSE");M[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[B.NUMERICIDENTIFIERLOOSE]+"|"+M[B.NONNUMERICIDENTIFIER]+")";de("PRERELEASE");M[B.PRERELEASE]="(?:-("+M[B.PRERELEASEIDENTIFIER]+"(?:\\."+M[B.PRERELEASEIDENTIFIER]+")*))";de("PRERELEASELOOSE");M[B.PRERELEASELOOSE]="(?:-?("+M[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[B.PRERELEASEIDENTIFIERLOOSE]+")*))";de("BUILDIDENTIFIER");M[B.BUILDIDENTIFIER]=vu+"+";de("BUILD");M[B.BUILD]="(?:\\+("+M[B.BUILDIDENTIFIER]+"(?:\\."+M[B.BUILDIDENTIFIER]+")*))";de("FULL");de("FULLPLAIN");M[B.FULLPLAIN]="v?"+M[B.MAINVERSION]+M[B.PRERELEASE]+"?"+M[B.BUILD]+"?";M[B.FULL]="^"+M[B.FULLPLAIN]+"$";de("LOOSEPLAIN");M[B.LOOSEPLAIN]="[v=\\s]*"+M[B.MAINVERSIONLOOSE]+M[B.PRERELEASELOOSE]+"?"+M[B.BUILD]+"?";de("LOOSE");M[B.LOOSE]="^"+M[B.LOOSEPLAIN]+"$";de("GTLT");M[B.GTLT]="((?:<|>)?=?)";de("XRANGEIDENTIFIERLOOSE");M[B.XRANGEIDENTIFIERLOOSE]=M[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";de("XRANGEIDENTIFIER");M[B.XRANGEIDENTIFIER]=M[B.NUMERICIDENTIFIER]+"|x|X|\\*";de("XRANGEPLAIN");M[B.XRANGEPLAIN]="[v=\\s]*("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:\\.("+M[B.XRANGEIDENTIFIER]+")(?:"+M[B.PRERELEASE]+")?"+M[B.BUILD]+"?)?)?";de("XRANGEPLAINLOOSE");M[B.XRANGEPLAINLOOSE]="[v=\\s]*("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[B.XRANGEIDENTIFIERLOOSE]+")(?:"+M[B.PRERELEASELOOSE]+")?"+M[B.BUILD]+"?)?)?";de("XRANGE");M[B.XRANGE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAIN]+"$";de("XRANGELOOSE");M[B.XRANGELOOSE]="^"+M[B.GTLT]+"\\s*"+M[B.XRANGEPLAINLOOSE]+"$";de("COERCE");M[B.COERCE]="(^|[^\\d])(\\d{1,"+gu+"})(?:\\.(\\d{1,"+gu+"}))?(?:\\.(\\d{1,"+gu+"}))?(?:$|[^\\d])";de("COERCERTL");Sn[B.COERCERTL]=new RegExp(M[B.COERCE],"g");_e[B.COERCERTL]=new RegExp(lo(M[B.COERCE]),"g");de("LONETILDE");M[B.LONETILDE]="(?:~>?)";de("TILDETRIM");M[B.TILDETRIM]="(\\s*)"+M[B.LONETILDE]+"\\s+";Sn[B.TILDETRIM]=new RegExp(M[B.TILDETRIM],"g");_e[B.TILDETRIM]=new RegExp(lo(M[B.TILDETRIM]),"g");var YE="$1~";de("TILDE");M[B.TILDE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAIN]+"$";de("TILDELOOSE");M[B.TILDELOOSE]="^"+M[B.LONETILDE]+M[B.XRANGEPLAINLOOSE]+"$";de("LONECARET");M[B.LONECARET]="(?:\\^)";de("CARETTRIM");M[B.CARETTRIM]="(\\s*)"+M[B.LONECARET]+"\\s+";Sn[B.CARETTRIM]=new
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var l=!0,c=AC(d.globGenerator()),m;m=yield c.next(),e=m.done,!e;l=!0){r=m.value,l=!1;let u=r,f=dd.relative(p,u).replace(new RegExp(`\\${dd.sep}`,"g"),"/");co.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(u){a={error:u}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(HC,"resolvePaths");be.resolvePaths=HC;function FC(t){return Tn(this,void 0,void 0,function*(){return zC.promisify(_u.unlink)(t)})}o(FC,"unlinkFile");be.unlinkFile=FC;function j4(t,e=[]){return Tn(this,void 0,void 0,function*(){let a="";e.push("--version"),co.debug(`Checking ${t} ${e.join(" ")}`);try{yield MC.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){co.debug(i.message)}return a=a.trim(),co.debug(a),a})}o(j4,"getVersion");function VC(){return Tn(this,void 0,void 0,function*(){let t=yield j4("zstd",["--quiet"]),e=LC.clean(t);return co.debug(`zstd version: ${e}`),t===""?qr.CompressionMethod.Gzip:qr.CompressionMethod.ZstdWithoutLong})}o(VC,"getCompressionMethod");be.getCompressionMethod=VC;function $C(t){return t===qr.CompressionMethod.Gzip?qr.CacheFilename.Gzip:qr.CacheFilename.Zstd}o($C,"getCacheFileName");be.getCacheFileName=$C;function GC(){return Tn(this,void 0,void 0,function*(){return _u.existsSync(qr.GnuTarPathOnWindows)?qr.GnuTarPathOnWindows:(yield j4("tar")).toLowerCase().includes("gnu tar")?L4.which("tar"):""})}o(GC,"getGnuTarPathOnWindows");be.getGnuTarPathOnWindows=GC;function XC(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(XC,"assertDefined");be.assertDefined=XC;function WC(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(jC),z4.createHash("sha256").update(i.join("|")).digest("hex")}o(WC,"getCacheVersion");be.getCacheVersion=WC;function KC(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(KC,"getRuntimeToken");be.getRuntimeToken=KC});function mo(){return ld>cd.length-16&&(k4.default.randomFillSync(cd),ld=0),cd.slice(ld,ld+=16)}var k4,cd,ld,Su=qt(()=>{k4=La(require("crypto")),cd=new Uint8Array(256),ld=cd.length;o(mo,"rng")});var U4,H4=qt(()=>{U4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function YC(t){return typeof t=="string"&&U4.test(t)}var Zi,uo=qt(()=>{H4();o(YC,"validate");Zi=YC});function QC(t,e=0){let a=(It[t[e+0]]+It[t[e+1]]+It[t[e+2]]+It[t[e+3]]+"-"+It[t[e+4]]+It[t[e+5]]+"-"+It[t[e+6]]+It[t[e+7]]+"-"+It[t[e+8]]+It[t[e+9]]+"-"+It[t[e+10]]+It[t[e+11]]+It[t[e+12]]+It[t[e+13]]+It[t[e+14]]+It[t[e+15]]).toLowerCase();if(!Zi(a))throw TypeError("Stringified UUID is invalid");return a}var It,er,fo=qt(()=>{uo();It=[];for(let t=0;t<256;++t)It.push((t+256).toString(16).substr(1));o(QC,"stringify");er=QC});function JC(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||F4,s=t.clockseq!==void 0?t.clockseq:Eu;if(n==null||s==null){let u=t.random||(t.rng||mo)();n==null&&(n=F4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),s==null&&(s=Eu=(u[6]<<8|u[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:Tu+1,l=p-Cu+(d-Tu)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||p>Cu)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Cu=p,Tu=d,Eu=s,p+=122192928e5;let c=((p&268435455)*1e4+d)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let m=p/4294967296*1e4&268435455;r[i++]=m>>>8&255,r[i++]=m&255,r[i++]=m>>>24&15|16,r[i++]=m>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let u=0;u<6;++u)r[i+u]=n[u];return e||er(r)}var F4,Eu,Cu,Tu,V4,$4=qt(()=>{Su();fo();Cu=0,Tu=0;o(JC,"v1");V4=JC});function ZC(t){if(!Zi(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var md,Ou=qt(()=>{uo();o(ZC,"parse");md=ZC});function eT(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function ho(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=eT(r)),typeof n=="string"&&(n=md(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+r.length);if(d.set(n),d.set(r,n.length),d=a(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){p=p||0;for(let l=0;l<16;++l)s[p+l]=d[l];return s}return er(d)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=tT,i.URL=aT,i}var tT,aT,Pu=qt(()=>{fo();Ou();o(eT,"stringToBytes");tT="6ba7b810-9dad-11d1-80b4-00c04fd430c8",aT
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Iu)});var ii=T((I3,tr)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,d={}.hasOwnProperty;t=o(function(){var l,c,m,u,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=f.length;l<m;l++)if(u=f[l],u!=null)for(c in u)d.call(u,c)&&(h[c]=u[c]);return h},"assign"),r=o(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=o(function(l){var c;return!!l&&((c=typeof l)=="function"||c==="object")},"isObject"),a=o(function(l){return r(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=o(function(l){var c;if(a(l))return!l.length;for(c in l)if(d.call(l,c))return!1;return!0},"isEmpty"),s=o(function(l){var c,m;return n(l)&&(m=Object.getPrototypeOf(l))&&(c=m.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(l){return r(l.valueOf)?l.valueOf():l},"getValue"),tr.exports.assign=t,tr.exports.isFunction=r,tr.exports.isObject=n,tr.exports.isArray=a,tr.exports.isEmpty=i,tr.exports.isPlainObject=s,tr.exports.getValue=e}).call(I3)});var Bu=T((B3,A3)=>{(function(){var t;A3.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(B3)});var L3=T((M3,q3)=>{(function(){var t;q3.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(M3)});var k3=T((z3,j3)=>{(function(){var t;j3.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(z3)});var F3=T((U3,H3)=>{(function(){var t,e,a;e=L3(),a=k3(),H3.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(U3)});var nt=T((V3,$3)=>{(function(){$3.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(V3)});var Au=T((G3,X3)=>{(function(){var t,e,a;t=nt(),a=pa(),X3.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi
Line truncated
|
||||
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(I=w.dontPrettyTextNodes)!=null?I:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(E=(R=w.spaceBeforeSlash)!=null?R:w.spacebeforeslash)!=null?E:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},D.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},D.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},D.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},D.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.docType=function(w,y,g){var _,O,N,I,E;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,I=this.indent(w,y,g),I+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(I+=" [",I+=this.endline(w,y,g),y.state=e.InsideTag,E=w.children,O=0,N=E.length;O<N;O++)_=E[O],I+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,I+="]"}return y.state=e.CloseTag,I+=y.spaceBeforeSlash+">",I+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),I},D.prototype.element=function(w,y,g){var _,O,N,I,E,R,A,k,pe,ge,Q,at,fe,qa;g||(g=0),ge=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,at=w.attribs;for(pe in at)S.call(at,pe)&&(_=at[pe],Q+=this.attribute(_,y,g));if(N=w.children.length,I=N===0?null:w.children[0],N===0||w.children.every(function($t){return($t.type===t.Text||$t.type===t.Raw)&&$t.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(I.type===t.Text||I.type===t.Raw)&&I.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ge=!0,Q+=this.writeChildNode(I,y,g+1),y.suppressPrettyCount--,ge=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(fe=w.children,E=0,A=fe.length;E<A;E++)if(O=fe[E],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ge=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,qa=w.children,R=0,k=qa.length;R<k;R++)O=qa[R],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",ge&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},D.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},D.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},D.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut
Line truncated
|
||||
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function _(x,v){return x.test(v)}o(_,"isMatch");function O(x,v){return!_(x,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],q=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=q});for(var I in t.STATE)t.STATE[t.STATE[I]]=I;N=t.STATE;function E(x,v,q){x[v]&&x[v](q)}o(E,"emit");function R(x,v,q){x.textNode&&A(x),E(x,v,q)}o(R,"emitNode");function A(x){x.textNode=k(x.opt,x.textNode),x.textNode&&E(x,"ontext",x.textNode),x.textNode=""}o(A,"closeText");function k(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(k,"textopts");function pe(x,v){return A(x),x.trackPosition&&(v+=`
|
||||
Line: `+x.line+`
|
||||
Column: `+x.column+`
|
||||
Char: `+x.c),y=new Error(y),x.error=y,_(x,"onerror",y),x}function me(x){return x.sawRoot&&!x.closedRoot&&K(x,"Unclosed root tag"),x.state!==w.BEGIN&&x.state!==w.BEGIN_WHITESPACE&&x.state!==w.TEXT&&ne(x,"Unexpected end"),B(x),x.c="",x.closed=!0,_(x,"onend"),a.call(x,x.strict,x.opt),x}function K(x,y){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&ne(x,y)}function Ge(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var y=x.tags[x.tags.length-1]||x,z=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(z.ns=y.ns),x.attribList.length=0,O(x,"onopentagstart",z)}function ce(x,y){var z=x.indexOf(":"),P=z<0?["",x]:x.split(":"),Ee=P[0],Ze=P[1];return y&&x==="xmlns"&&(Ee="xmlns",Ze=""),{prefix:Ee,local:Ze}}function ca(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var y=ce(x.attribName,!0),z=y.prefix,P=y.local;if(z==="xmlns")if(P==="xml"&&x.attribValue!==m)K(x,"xml: prefix must be bound to "+m+`
|
||||
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==u)K(x,"xmlns: prefix must be bound to "+u+`
|
||||
Actual: `+x.attribValue);else{var Ee=x.tag,Ze=x.tags[x.tags.length-1]||x;Ee.ns===Ze.ns&&(Ee.ns=Object.create(Ze.ns)),Ee.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,O(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}function Ot(x,y){if(x.opt.xmlns){var z=x.tag,P=ce(x.tagName);z.prefix=P.prefix,z.local=P.local,z.uri=z.ns[P.prefix]||"",z.prefix&&!z.uri&&(K(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),z.uri=P.prefix);var Ee=x.tags[x.tags.length-1]||x;z.ns&&Ee.ns!==z.ns&&Object.keys(z.ns).forEach(function(j0){O(x,"onopennamespace",{prefix:j0,uri:z.ns[j0]})});for(var Ze=0,rt=x.attribList.length;Ze<rt;Ze++){var Rt=x.attribList[Ze],Sa=Rt[0],Er=Rt[1],ht=ce(Sa,!0),Ua=ht.prefix,rx=ht.local,L0=Ua===""?"":z.ns[Ua]||"",ul={name:Sa,value:Er,prefix:Ua,local:rx,uri:L0};Ua&&Ua!=="xmlns"&&!L0&&(K(x,"Unbound namespace prefix: "+JSON.stringify(Ua)),ul.uri=Ua),x.tag.attributes[Sa]=ul,O(x,"onattribute",ul)}x.attribList.length=0}x.tag.isSelfClosing=!!y,x.sawRoot=!0,x.tags.push(x.tag),O(x,"onopentag",x.tag),y||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=w.SCRIPT:x.state=w.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}function Sr(x){if(!x.tagName){K(x,"Weird empty close tag."),x.textNode+="</>",x.state=w.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=w.SCRIPT;return}O(x,"onscript",x.script),x.script=""}var y=x.tags.length,z=x.tagName;x.strict||(z=z[x.looseCase]());for(var P=z;y--;){var Ee=x.tags[y];if(Ee.name!==P)K(x,"Unexpected close tag");else break}if(y<0){K(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=w.TEXT;return}x.tagName=z;for(var Ze=x.tags.length;Ze-- >y;){var rt=x.tag=x.tags.pop();x.tagName=x.tag.name,O(x,"onclosetag",x.tagName);var Rt={};for(var Sa in rt.ns)Rt[Sa]=rt.ns[Sa];var Er=x.tags[x.tags.length-1]||x;x.opt.xmlns&&rt.ns!==Er.ns&&Object.keys(rt.ns).forEach(function(ht){var Ua=rt.ns[ht];O(x,"onclosenamespace",{prefix:ht,uri:Ua})})}y===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=w.TEXT}function An(x){var y=x.entity,z=y.toLowerCase(),P,Ee="";return x.ENTITIES[y]?x.ENTITIES[y]:x.ENTITIES[z]?x.ENTITIES[z]:(y=z,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),P=parseInt(y,16),Ee=P.toString(16)):(y=y.slice(1),P=parseInt(y,10),Ee=P.toString(10))),y=y.replace(/^0+/,""),isNaN(P)||Ee.toLowerCase()!==y?(K(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}function M0(x,y){y==="<"?(x.state=w.OPEN_WAKA,x.startTagPosition=x.position):b(y)||(K(x,"Non-whitespace before first tag."),x.textNode=y,x.state=w.TEXT)}function q0(x,y){var z="";return y<x.length&&(z=x.charAt(y)),z}function ix(x){var y=this;if(this.error)throw this.error;if(y.closed)return ne(y,"Cannot write after close. Assign an onready handler.");if(x===null)return me(y);typeof x=="object"&&(x=x.toString());for(var z=0,P="";P=q0(x,z++),y.c=P,!!P;)switch(y.trackPosition&&(y.position++,P===`
|
||||
`?(y.line++,y.column=0):y.column++),y.state){case w.BEGIN:if(y.state=w.BEGIN_WHITESPACE,P==="\uFEFF")continue;M0(y,P);continue;case w.BEGIN_WHITESPACE:M0(y,P);continue;case w.TEXT:if(y.sawRoot&&!y.closedRoot){for(var Ee=z-1;P&&P!=="<"&&P!=="&";)P=q0(x,z++),P&&y.trackPosition&&(y.position++,P===`
|
||||
`?(y.line++,y.column=0):y.column++);y.textNode+=x.substring(Ee,z-1)}P==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=w.OPEN_WAKA,y.startTagPosition=y.position):(!b(P)&&(!y.sawRoot||y.closedRoot)&&K(y,"Text data outside of root node."),P==="&"?y.state=w.TEXT_ENTITY:y.textNode+=P);continue;case w.SCRIPT:P==="<"?y.state=w.SCRIPT_ENDING:y.script+=P;continue;case w.SCRIPT_ENDING:P==="/"?y.state=w.CLOSE_TAG:(y.script+="<"+P,y.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(P==="!")y.state=w.SGML_DECL,y.sgmlDecl="";else if(!b(P))if(N(v,P))y.state=w.OPEN_TAG,y.tagName=P;else if(P==="/")y.state=w.CLOSE_TAG,y.tagName="";else if(P==="?")y.state=w.PROC_INST,y.procInstName=y.procInstBody="";else{if(K(y,"Unencoded <"),y.startTagPosition+1<y.position){var Ze=y.position-y.startTagPosition;P=new Array(Ze).join(" ")+P}y.textNode+="<"+P,y.state=w.TEXT}continue;case w.SGML_DECL:(y.sgmlDecl+P).toUpperCase()===l?(O(y,"onopencdata"),y.state=w.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+P==="--"?(y.state=w.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+P).toUpperCase()===c?(y.state=w.DOCTYPE,(y.doctype||y.sawRoot)&&K(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):P===">"?(O(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=w.TEXT):(g(P)&&(y.state=w.SGML_DECL_QUOTED),y.sgmlDecl+=P);continue;case w.SGML_DECL_QUOTED:P===y.q&&(y.state=w.SGML_DECL,y.q=""),y.sgmlDecl+=P;continue;case w.DOCTYPE:P===">"?(y.state=w.TEXT,O(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=P,P==="["?y.state=w.DOCTYPE_DTD:g(P)&&(y.state=w.DOCTYPE_QUOTED,y.q=P));continue;case w.DOCTYPE_QUOTED:y.doctype+=P,P===y.q&&(y.q="",y.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:y.doctype+=P,P==="]"?y.state=w.DOCTYPE:g(P)&&(y.state=w.DOCTYPE_DTD_QUOTED,y.q=P);continue;case w.DOCTYPE_DTD_QUOTED:y.doctype+=P,P===y.q&&(y.state=w.DOCTYPE_DTD,y.q="");continue;case w.COMMENT:P==="-"?y.state=w.COMMENT_ENDING:y.comment+=P;continue;case w.COMMENT_ENDING:P==="-"?(y.state=w.COMMENT_ENDED,y.comment=j(y.opt,y.comment),y.comment&&O(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+P,y.state=w.COMMENT);continue;case w.COMMENT_ENDED:P!==">"?(K(y,"Malformed comment"),y.comment+="--"+P,y.state=w.COMMENT):y.state=w.TEXT;continue;case w.CDATA:P==="]"?y.state=w.CDATA_ENDING:y.cdata+=P;continue;case w.CDATA_ENDING:P==="]"?y.state=w.CDATA_ENDING_2:(y.cdata+="]"+P,y.state=w.CDATA);continue;case w.CDATA_ENDING_2:P===">"?(y.cdata&&O(y,"oncdata",y.cdata),O(y,"onclosecdata"),y.cdata="",y.state=w.TEXT):P==="]"?y.cdata+="]":(y.cdata+="]]"+P,y.state=w.CDATA);continue;case w.PROC_INST:P==="?"?y.state=w.PROC_INST_ENDING:b(P)?y.state=w.PROC_INST_BODY:y.procInstName+=P;continue;case w.PROC_INST_BODY:if(!y.procInstBody&&b(P))continue;P==="?"?y.state=w.PROC_INST_ENDING:y.procInstBody+=P;continue;case w.PROC_INST_ENDING:P===">"?(O(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=w.TEXT):(y.procInstBody+="?"+P,y.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:N(E,P)?y.tagName+=P:(Ge(y),P===">"?Ot(y):P==="/"?y.state=w.OPEN_TAG_SLASH:(b(P)||K(y,"Invalid character in tag name"),y.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:P===">"?(Ot(y,!0),Sr(y)):(K(y,"Forward-slash in opening tag not followed by >"),y.state=w.ATTRIB);continue;case w.ATTRIB:if(b(P))continue;P===">"?Ot(y):P==="/"?y.state=w.OPEN_TAG_SLASH:N(v,P)?(y.attribName=P,y.attribValue="",y.state=w.ATTRIB_NAME):K(y,"Invalid attribute name");continue;case w.ATTRIB_NAME:P==="="?y.state=w.ATTRIB_VALUE:P===">"?(K(y,"Attribute without value"),y.attribValue=y.attribName,ca(y),Ot(y)):b(P)?y.state=w.ATTRIB_NAME_SAW_WHITE:N(E,P)?y.attribName+=P:K(y,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if(P==="=")y.state=w.ATTRIB_VALUE;else{if(b(P))continue;K(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",O(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",P===">"?Ot(y):N(v,P)?(y.attribName=P,y.state=w.ATTRIB_NAME):(K(y,"Invalid attribute name"),y.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(b(P))continue;g(P)?(y.q=P,y.state=w.ATTRIB_VALUE_QUOTED):(K(y,"Unquoted attribute value"),y.state=w.ATTRIB_VALUE_UNQUOTED,y.attribValue=P);continue;case w.ATTRIB_VALUE_QUOTED:if(P!==y.q){P==="&"?y.state=w.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=P;continue}ca(y),y.q="",y.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:b(P)?y.state=w.ATTRIB:P===">"?Ot(y):P==="/"?y.state=w.OPEN_TAG_SLASH:N(v,P)?(K(y,"No whitespace between attributes"),y.attribName=P,y.attribValue="",y.state=w.ATTRIB_NAME):K(y,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!f(P)){P==="&"?y.state=w.ATTRIB_VALUE_ENTITY_U:y.attribValue+=P;continue}ca(y),P===">"?Ot(y):y.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(y.tagName)P===">"?Sr(y):N(E,P)?y.tagName+=P:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=w.SCRIPT):(b(P)||K(y,"Invalid tagname in closing tag"),y.state=w.CLOSE_TAG_SAW_WHITE);else{if(b(P))continue;C
Line truncated
|
||||
`;ue.DEFAULT_CONTENT_TYPE="application/octet-stream";ue.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=um.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),c3.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ue.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ue.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof oE))&&(a.knownLength||this._valuesToMeasure.push(e))};ue.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):sE.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};ue.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&mm(s,a.header);var o;for(var p in s)s.hasOwnProperty(p)&&(o=s[p],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=p+": "+o.join("; ")+ue.LINE_BREAK)));return"--"+this.getBoundary()+ue.LINE_BREAK+n+ue.LINE_BREAK};ue.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=lm.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=lm.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=lm.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ue.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=cm.lookup(t.name)),!a&&t.path&&(a=cm.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=cm.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ue.DEFAULT_CONTENT_TYPE),a};ue.prototype._multiPartFooter=function(){return function(t){var e=ue.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ue.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ue.LINE_BREAK};ue.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};ue.prototype.setBoundary=function(t){this._boundary=t};ue.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ue.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ue.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ue.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ue.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ue.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ue.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}pE.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ue.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=nE(t),i=mm({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=mm(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=rE.request(i):a=iE.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var o,p=function(d,l){return a.removeListener("error",p),a.removeListener("response",o),e.call(this,d,l)};o=p.bind(this,null),a.on("error",p),a.on("response",o)}}.bind(this)),a};ue.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};
Line truncated
|
||||
${tO.sanitize(this)}`}};$t.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";$t.PARSE_ERROR="PARSE_ERROR";var va=JT.createClientLogger("core-http");function m5(t,e){return t?e.httpsAgent:e.httpAgent}var xd=class extends rP.Transform{constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function md(t){return t&&typeof t.pipe=="function"}function u5(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}function aO(t){let e=new Ii;return t.forEach((a,i)=>{e.set(i,a)}),e}var bd=class{constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new ud.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new ud.AbortError("The operation was aborted.");r=d=>{d.type==="abort"&&i.abort()},e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,l=new oP.default,c=(u,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?l.append(u,h.value,h.options):l.append(u,h)};for(let u of Object.keys(d)){let h=d[u];if(Array.isArray(h))for(let v=0;v<h.length;v++)c(u,h[v]);else c(u,h)}e.body=l,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof l.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${l.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,l=new xd(d);md(n)?n.pipe(l):l.end(n),n=l}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),p;try{let d=await this.fetch(e.url,o),l=aO(d.headers),c=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;p={headers:l,request:e,status:d.status,readableStreamBody:c?d.body:void 0,bodyAsText:c?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let u=d.body||void 0;if(md(u)){let h=new xd(m);u.pipe(h),p.readableStreamBody=h}else{let h=parseInt(l.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(p),p}catch(d){let l=d;throw l.code==="ENOTFOUND"?new $t(l.message,$t.REQUEST_SEND_ERROR,void 0,e):l.type==="aborted"?new ud.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&r){let d=Promise.resolve();md(n)&&(d=u5(n));let l=Promise.resolve();md(p?.readableStreamBody)&&(l=u5(p.readableStreamBody,i)),Promise.all([d,l]).then(()=>{var c;(c=e.abortSignal)===null||c===void 0||c.removeEventListener("abort",r)}).catch(c=>{va.warning("Error when cleaning up abortListener on httpRequest",c)})}}}getOrCreateAgent(e){var a;let i=N1(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:o}=e.proxySettings,p=`${r}:${n}:${s}:${o}`,d=(a=this.proxyAgentMap.get(p))!==null&&a!==void 0?a:{},l=m5(i,d);if(l)return l;let c=YP(e.url,e.proxySettings,e.headers);return l=c.agent,c.isHttps?d.httpsAgent=c.agent:d.httpAgent=c.agent,this.proxyAgentMap.set(p,d),l}else if(e.keepAlive){let r=m5(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new o5.Agent(n):r=this.keepAliveAgents.httpAgent=new s5.Agent(n),r}else return i?o5.globalAgent:s5.globalAgent}async fetch(e,a){return pP.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};U.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(U.HttpPipelineLogLevel||(U.HttpPipelineLogLevel={}));function iO(t){let{requestOptions:e,tracingOptions:a}=t,r=YT.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}var tt=class{constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},wd=class{constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==U.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},B5={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:et,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:void 0,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:void 0,attrValueProcessors:void 0,tagNameProcessors:void 0,valueProcessors:void 0,rootName:"root",xmldec:{version:"1.0",
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},hd=Object.assign({},B5);hd.explicitArray=!1;var Rs=Object.assign({},B5);Rs.explicitArray=!1;Rs.renderOpts={pretty:!1};function _1(t,e={}){var a;return Rs.rootName=e.rootName,Rs.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:ei,new N5.Builder(Rs).buildObject(t)}function A5(t,e={}){var a;hd.explicitRoot=!!e.includeRoot,hd.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:ei;let i=new N5.Parser(hd);return new Promise((r,n)=>{t?i.parseString(t,(s,o)=>{s?n(s):r(o)}):n(new Error("Document is empty"))})}function X1(t,e){return{create:(a,i)=>new S1(a,i,t,e)}}var z5=["application/json","text/json"],M5=["application/xml","application/atom+xml"],rO={expectedContentTypes:{json:z5,xml:M5}},S1=class extends tt{constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||z5,this.xmlContentTypes=i&&i.xml||M5,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:ei}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>q5(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function nO(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}function sO(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}function q5(t,e,a,i={}){var r,n,s;let o={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:ei};return dO(t,e,a,o).then(p=>{if(!sO(p))return p;let d=p.request.operationSpec;if(!d||!d.responses)return p;let l=nO(p),{error:c,shouldReturnResponse:m}=pO(p,d,l);if(c)throw c;if(m)return p;if(l){if(l.bodyMapper){let u=p.parsedBody;d.isXML&&l.bodyMapper.type.name===dr.Sequence&&(u=typeof u=="object"?u[l.bodyMapper.xmlElementName]:[]);try{p.parsedBody=d.serializer.deserialize(l.bodyMapper,u,"operationRes.parsedBody",i)}catch(h){throw new $t(`Error ${h} occurred in deserializing the responseBody - ${p.bodyAsText}`,void 0,p.status,p.request,p)}}else d.httpMethod==="HEAD"&&(p.parsedBody=a.status>=200&&a.status<300);l.headersMapper&&(p.parsedHeaders=d.serializer.deserialize(l.headersMapper,p.headers.toJson(),"operationRes.parsedHeaders",i))}return p})}function oO(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function pO(t,e,a){var i;let r=200<=t.status&&t.status<300;if(oO(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,p=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new $t(p,void 0,t.status,t.request,t);if(!s)throw d;let l=s.bodyMapper,c=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,u;if(l){let v=m;e.isXML&&l.type.name===dr.Sequence&&(v=typeof m=="object"?m[l.xmlElementName]:[]),u=e.serializer.deserialize(l,v,"error.response.parsedBody")}let h=m.error||u||m;d.code=h.code,h.message&&(d.message=h.message),l&&(d.response.parsedBody=u)}t.headers&&c&&(d.response.parsedHeaders=e.serializer.deserialize(c,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}function dO(t,e,a,i){var r;let n=o=>{let p=`Error "${o}" occurred while parsing the response body - ${a.bodyAsText}.`,d=o.code||$t.PARSE_ERROR,l=new $t(p,d,a.status,a.request,a);return Promise.reject(l)};if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let o=a.bodyAsText,p=a.headers.get("Content-Type")||"",d=p?p.split(";").map(l=>l.toLowerCase()):[];if(d.length===0||d.some(l=>t.indexOf(l)!==-1))return new Promise(l=>{a.parsedBody=JSON.parse(o),l(a)}).catch(n);if(d.some(l=>e.indexOf(l)!==-1))return A5(o,i).then(l=>(a.parsedBody=l,a)).catch(n)}return Promise.resolve(a)}var L5={enable:!0};function j5(t){return{create:(e,a)=>new E1(e,a,t||L5)}}var E1=class extends tt{constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},f5=["GET","HEAD"],lO={handleRedirects:!0,maxRetries:20};function W1(t=20){return{create:(e,a)=>new C1(e,a,t)}}var C1=class extends tt{constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>k5(this,a,0))}};function k5(t,e,a){let{request:i,status:r}=e,n=e.headers.get("location");if(n&&(r===300||r===301&&f5.includes(i.method)||r===302&&f5.includes(i.method)||r===303&&i.method==="POST"||r===307)&&(!t.maxRetries||a<t.maxRetries)){let s=Ma.parse(i.url);return s.setPath(n),i.url=s.toString(),r===303&&(i.method="GET",delete i.body),t._nextPolicy.sendRequest(i).then(o=>k5(t,o,a+1))}return Promise.resolve(e)}var K1=3
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},G5=[],X5=!1,_O=new Map;function SO(){if(!process)return;let t=fd(na.HTTPS_PROXY),e=fd(na.ALL_PROXY),a=fd(na.HTTP_PROXY);return t||e||a}function EO(t,e,a){if(e.length===0)return!1;let i=Ma.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}function CO(){let t=fd(na.NO_PROXY);return X5=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function W5(t){if(!t&&(t=SO(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=TO(t),r=Ma.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}function au(t,e){return t||(t=W5()),X5||G5.push(...CO()),{create:(a,i)=>new A1(a,i,t,e?.customNoProxyList)}}function TO(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,o=s?r.substring(0,n):r,p=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:o,password:p,urlWithoutAuth:d}}var A1=class extends tt{constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!EO(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:G5,this.customNoProxyList?void 0:_O)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function PO(t=30){return{create:(e,a)=>new z1(e,a,t)}}var z1=class extends tt{constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>OO(this,e,a))}};function OO(t,e,a){if(a.status===409){let i=RO(a.bodyAsText);if(i){let r=DO(e.url);return IO(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Sd()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}function K5(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Sd()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}function RO(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}function DO(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}async function IO(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=K5(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return Q5(t,n,i)}async function Q5(t,e,a){let i=K5(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await za.delay(t._retryTimeout*1e3),Q5(t,e,a))}function Y5(t){return{create:(e,a)=>new M1(e,a,t)}}var M1=class extends tt{constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function iu(t,e,a,i){return{create:(r,n)=>new q1(r,n,t,e,a,i)}}var q1=class extends tt{constructor(e,a,i,r,n,s){super(e,a),this.retryCount=pr(i)?i:K1,this.retryInterval=pr(r)?r:Q1,this.minRetryInterval=pr(n)?n:cO,this.maxRetryInterval=pr(s)?s:Y1}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>Z5(this,e,a.response,a))}};async function Z5(t,e,a,i,r){r=U5(t,r,i);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(H5(t.retryCount,n,r,a,i))try{return await za.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return Z5(t,e,a,s,r)}else return i?Promise.reject(r.error):a}var BO=3,h5=na.HttpConstants.StatusCodes;function ru(){return{create:(t,e)=>new L1(t,e)}}var g5="The operation was aborted.",L1=class t extends tt{constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this._nextPolicy.sendRequest(e.clone());return a.status!==h5.TooManyRequests&&a.status!==h5.ServiceUnavailable?a:this._handleResponse(e,a)}async _defaultResponseHandler(e,a){var i;let r=a.headers.get(na.HeaderConstants.RETRY_AFTER);if(r){let n=t.parseRetryAfterHeader(r);if(n){if(this.numberOfRetries+=1,await za.delay(n,{abortSignal:e.abortSignal,abortErrorMsg:g5}),!((i=e.abortSignal)===null||i===void 0)&&i.aborted)throw new ud.AbortError(g5);return this.numberOfRetries<BO?this.sendRequest(e):this._nextPolicy.sendRequest(e)}}return a}static parseRetryAfterHeader(e){let a=Number(e);return Number.isNaN(a)?t.parseDateRetryAfterHeader(e):a*1e3}static
Line truncated
|
||||
Char: `+x.c),v=new Error(v),x.error=v,E(x,"onerror",v),x}o(pe,"error");function ge(x){return x.sawRoot&&!x.closedRoot&&Q(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&pe(x,"Unexpected end"),A(x),x.c="",x.closed=!0,E(x,"onend"),a.call(x,x.strict,x.opt),x}o(ge,"end");function Q(x,v){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&pe(x,v)}o(Q,"strictFail");function at(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var v=x.tags[x.tags.length-1]||x,q=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(q.ns=v.ns),x.attribList.length=0,R(x,"onopentagstart",q)}o(at,"newTag");function fe(x,v){var q=x.indexOf(":"),P=q<0?["",x]:x.split(":"),Oe=P[0],lt=P[1];return v&&x==="xmlns"&&(Oe="xmlns",lt=""),{prefix:Oe,local:lt}}o(fe,"qname");function qa(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var v=fe(x.attribName,!0),q=v.prefix,P=v.local;if(q==="xmlns")if(P==="xml"&&x.attribValue!==u)Q(x,"xml: prefix must be bound to "+u+`
|
||||
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==f)Q(x,"xmlns: prefix must be bound to "+f+`
|
||||
Actual: `+x.attribValue);else{var Oe=x.tag,lt=x.tags[x.tags.length-1]||x;Oe.ns===lt.ns&&(Oe.ns=Object.create(lt.ns)),Oe.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,R(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(qa,"attrib");function $t(x,v){if(x.opt.xmlns){var q=x.tag,P=fe(x.tagName);q.prefix=P.prefix,q.local=P.local,q.uri=q.ns[P.prefix]||"",q.prefix&&!q.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),q.uri=P.prefix);var Oe=x.tags[x.tags.length-1]||x;q.ns&&Oe.ns!==q.ns&&Object.keys(q.ns).forEach(function(t6){R(x,"onopennamespace",{prefix:t6,uri:q.ns[t6]})});for(var lt=0,yt=x.attribList.length;lt<yt;lt++){var Gt=x.attribList[lt],Ja=Gt[0],fn=Gt[1],Rt=fe(Ja,!0),xi=Rt.prefix,GN=Rt.local,e6=xi===""?"":q.ns[xi]||"",Tm={name:Ja,value:fn,prefix:xi,local:GN,uri:e6};xi&&xi!=="xmlns"&&!e6&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(xi)),Tm.uri=xi),x.tag.attributes[Ja]=Tm,R(x,"onattribute",Tm)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),R(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o($t,"openTag");function un(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}R(x,"onscript",x.script),x.script=""}var v=x.tags.length,q=x.tagName;x.strict||(q=q[x.looseCase]());for(var P=q;v--;){var Oe=x.tags[v];if(Oe.name!==P)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=q;for(var lt=x.tags.length;lt-- >v;){var yt=x.tag=x.tags.pop();x.tagName=x.tag.name,R(x,"onclosetag",x.tagName);var Gt={};for(var Ja in yt.ns)Gt[Ja]=yt.ns[Ja];var fn=x.tags[x.tags.length-1]||x;x.opt.xmlns&&yt.ns!==fn.ns&&Object.keys(yt.ns).forEach(function(Rt){var xi=yt.ns[Rt];R(x,"onclosenamespace",{prefix:Rt,uri:xi})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}o(un,"closeTag");function Ys(x){var v=x.entity,q=v.toLowerCase(),P,Oe="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[q]?x.ENTITIES[q]:(v=q,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),P=parseInt(v,16),Oe=P.toString(16)):(v=v.slice(1),P=parseInt(v,10),Oe=P.toString(10))),v=v.replace(/^0+/,""),isNaN(P)||Oe.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}o(Ys,"parseEntity");function Jh(x,v){v==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=N.TEXT)}o(Jh,"beginWhiteSpace");function Zh(x,v){var q="";return v<x.length&&(q=x.charAt(v)),q}o(Zh,"charAt");function $N(x){var v=this;if(this.error)throw this.error;if(v.closed)return pe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return ge(v);typeof x=="object"&&(x=x.toString());for(var q=0,P="";P=Zh(x,q++),v.c=P,!!P;)switch(v.trackPosition&&(v.position++,P===`
|
||||
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;Jh(v,P);continue;case N.BEGIN_WHITESPACE:Jh(v,P);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Oe=q-1;P&&P!=="<"&&P!=="&";)P=Zh(x,q++),P&&v.trackPosition&&(v.position++,P===`
|
||||
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Oe,q-1)}P==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(P)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),P==="&"?v.state=N.TEXT_ENTITY:v.textNode+=P);continue;case N.SCRIPT:P==="<"?v.state=N.SCRIPT_ENDING:v.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+P,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(P))if(_(b,P))v.state=N.OPEN_TAG,v.tagName=P;else if(P==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(P==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var lt=v.position-v.startTagPosition;P=new Array(lt).join(" ")+P}v.textNode+="<"+P,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+P).toUpperCase()===c?(R(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+P==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+P).toUpperCase()===m?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):P===">"?(R(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(P)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(v.state=N.TEXT,R(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=P,P==="["?v.state=N.DOCTYPE_DTD:y(P)&&(v.state=N.DOCTYPE_QUOTED,v.q=P));continue;case N.DOCTYPE_QUOTED:v.doctype+=P,P===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=P,P==="]"?v.state=N.DOCTYPE:y(P)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=P);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=P,P===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:P==="-"?v.state=N.COMMENT_ENDING:v.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(v.state=N.COMMENT_ENDED,v.comment=k(v.opt,v.comment),v.comment&&R(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+P,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(Q(v,"Malformed comment"),v.comment+="--"+P,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:P==="]"?v.state=N.CDATA_ENDING:v.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+P,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(v.cdata&&R(v,"oncdata",v.cdata),R(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):P==="]"?v.cdata+="]":(v.cdata+="]]"+P,v.state=N.CDATA);continue;case N.PROC_INST:P==="?"?v.state=N.PROC_INST_ENDING:w(P)?v.state=N.PROC_INST_BODY:v.procInstName+=P;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(P))continue;P==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(R(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+P,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(C,P)?v.tagName+=P:(at(v),P===">"?$t(v):P==="/"?v.state=N.OPEN_TAG_SLASH:(w(P)||Q(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?($t(v,!0),un(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(P))continue;P===">"?$t(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?v.state=N.ATTRIB_VALUE:P===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,qa(v),$t(v)):w(P)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(C,P)?v.attribName+=P:Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")v.state=N.ATTRIB_VALUE;else{if(w(P))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",R(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",P===">"?$t(v):_(b,P)?(v.attribName=P,v.state=N.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(P))continue;y(P)?(v.q=P,v.state=N.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==v.q){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=P;continue}qa(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(P)?v.state=N.ATTRIB:P===">"?$t(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(Q(v,"No whitespace between attributes"),v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(P)){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=P;continue}qa(v),P===">"?$t(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)P===">"?un(v):_(C,P)?v.tagName+=P:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(P)||Q(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(P))continue;O
Line truncated
|
||||
`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=h1.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Y5.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ye.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof BO))&&(a.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):IO.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};ye.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&f1(s,a.header);var p;for(var d in s)s.hasOwnProperty(d)&&(p=s[d],p!=null&&(Array.isArray(p)||(p=[p]),p.length&&(n+=d+": "+p.join("; ")+ye.LINE_BREAK)));return"--"+this.getBoundary()+ye.LINE_BREAK+n+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=m1.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=m1.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=m1.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ye.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=u1.lookup(t.name)),!a&&t.path&&(a=u1.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=u1.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ye.DEFAULT_CONTENT_TYPE),a};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};ye.prototype.setBoundary=function(t){this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ye.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ye.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ye.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ye.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}AO.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ye.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=DO(t),i=f1({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=f1(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=RO.request(i):a=PO.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,d=o(function(l,c){return a.removeListener("error",d),a.removeListener("response",p),e.call(this,l,c)},"callback");p=d.bind(this,null),a.on("error",d),a.on("response",p)}}.bind(this)),a};ye.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit
Line truncated
|
||||
${TI.sanitize(this)}`}};la.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";la.PARSE_ERROR="PARSE_ERROR";var Va=ED.createClientLogger("core-http");function Qg(t,e){return t?e.httpsAgent:e.httpAgent}o(Qg,"getCachedAgent");var Fl=class extends RD.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function ql(t){return t&&typeof t.pipe=="function"}o(ql,"isReadableStream");function Jg(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(Jg,"isStreamComplete");function OI(t){let e=new lr;return t.forEach((a,i)=>{e.set(i,a)}),e}o(OI,"parseHeaders");var Vl=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Ll.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ll.AbortError("The operation was aborted.");r=o(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,c=new BD.default,m=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(l)){let h=l[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)m(f,h[b]);else m(f,h)}e.body=c,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,c=new Fl(l);ql(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),d;try{let l=await this.fetch(e.url,p),c=OI(l.headers),m=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(l.status))||e.streamResponseBody;d={headers:c,request:e,status:l.status,readableStreamBody:m?l.body:void 0,bodyAsText:m?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let f=l.body||void 0;if(ql(f)){let h=new Fl(u);f.pipe(h),d.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&u({loadedBytes:h})}}return await this.processRequest(d),d}catch(l){let c=l;throw c.code==="ENOTFOUND"?new la(c.message,la.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new Ll.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let l=Promise.resolve();ql(n)&&(l=Jg(n));let c=Promise.resolve();ql(d?.readableStreamBody)&&(c=Jg(d.readableStreamBody,i)),Promise.all([l,c]).then(()=>{var m;(m=e.abortSignal)===null||m===void 0||m.removeEventListener("abort",r)}).catch(m=>{Va.warning("Error when cleaning up abortListener on httpRequest",m)})}}}getOrCreateAgent(e){var a;let i=Ef(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,d=`${r}:${n}:${s}:${p}`,l=(a=this.proxyAgentMap.get(d))!==null&&a!==void 0?a:{},c=Qg(i,l);if(c)return c;let m=_I(e.url,e.proxySettings,e.headers);return c=m.agent,m.isHttps?l.httpsAgent=m.agent:l.httpAgent=m.agent,this.proxyAgentMap.set(d,l),c}else if(e.keepAlive){let r=Qg(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new Gg.Agent(n):r=this.keepAliveAgents.httpAgent=new $g.Agent(n),r}else return i?Gg.globalAgent:$g.globalAgent}async fetch(e,a){return AD.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function PI(t){let{requestOptions:e,tracingOptions:a}=t,r=_D.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(PI,"operationOptionsToRequestOptionsBase");var ut=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},$l=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},vy={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:mt,explicitArray:!0,ignore
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},jl=Object.assign({},vy);jl.explicitArray=!1;var Uo=Object.assign({},vy);Uo.explicitArray=!1;Uo.renderOpts={pretty:!1};function Cf(t,e={}){var a;return Uo.rootName=e.rootName,Uo.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi,new oy.Builder(Uo).buildObject(t)}o(Cf,"stringifyXML");function by(t,e={}){var a;jl.explicitRoot=!!e.includeRoot,jl.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi;let i=new oy.Parser(jl);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(by,"parseXML");function Yf(t,e){return{create:(a,i)=>new Tf(a,i,t,e)}}o(Yf,"deserializationPolicy");var xy=["application/json","text/json"],wy=["application/xml","application/atom+xml"],RI={expectedContentTypes:{json:xy,xml:wy}},Tf=class extends ut{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||xy,this.xmlContentTypes=i&&i.xml||wy,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Bi}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Ny(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function DI(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(DI,"getOperationResponse");function II(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(II,"shouldDeserializeResponse");function Ny(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Bi};return MI(t,e,a,p).then(d=>{if(!II(d))return d;let l=d.request.operationSpec;if(!l||!l.responses)return d;let c=DI(d),{error:m,shouldReturnResponse:u}=AI(d,l,c);if(m)throw m;if(u)return d;if(c){if(c.bodyMapper){let f=d.parsedBody;l.isXML&&c.bodyMapper.type.name===Gr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{d.parsedBody=l.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new la(`Error ${h} occurred in deserializing the responseBody - ${d.bodyAsText}`,void 0,d.status,d.request,d)}}else l.httpMethod==="HEAD"&&(d.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(d.parsedHeaders=l.serializer.deserialize(c.headersMapper,d.headers.toJson(),"operationRes.parsedHeaders",i))}return d})}o(Ny,"deserializeResponseBody");function BI(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(BI,"isOperationSpecEmpty");function AI(t,e,a){var i;let r=200<=t.status&&t.status<300;if(BI(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,d=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new la(d,void 0,t.status,t.request,t);if(!s)throw l;let c=s.bodyMapper,m=s.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,f;if(c){let b=u;e.isXML&&c.type.name===Gr.Sequence&&(b=typeof u=="object"?u[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=u.error||f||u;l.code=h.code,h.message&&(l.message=h.message),c&&(l.response.parsedBody=f)}t.headers&&m&&(l.response.parsedHeaders=e.serializer.deserialize(m,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(AI,"handleErrorResponse");function MI(t,e,a,i){var r;let n=o(p=>{let d=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,l=p.code||la.PARSE_ERROR,c=new la(d,l,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,d=a.headers.get("Content-Type")||"",l=d?d.split(";").map(c=>c.toLowerCase()):[];if(l.length===0||l.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(l.some(c=>e.indexOf(c)!==-1))return by(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(MI,"parse");var _y={enable:!0};function Sy(t){return{create:(e,a)=>new Of(e,a,t||_y)}}o(Sy,"keepAlivePolicy");var Of=class extends ut{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Zg=["GET","HEAD"],qI={handleRedirects:!0,maxRetries:20};function Qf(t=20){return{create:(e,a)=>new Pf(e,a,t)}}o(Qf,"redirectPolicy");var Pf=class extends ut{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Ey(this,a,0))}};functi
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},Dy=[],Iy=!1,KI=new Map;function YI(){if(!process)return;let t=zl(Ea.HTTPS_PROXY),e=zl(Ea.ALL_PROXY),a=zl(Ea.HTTP_PROXY);return t||e||a}o(YI,"loadEnvironmentProxyValue");function QI(t,e,a){if(e.length===0)return!1;let i=li.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(QI,"isBypassed");function JI(){let t=zl(Ea.NO_PROXY);return Iy=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(JI,"loadNoProxy");function By(t){if(!t&&(t=YI(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=ZI(t),r=li.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(By,"getDefaultProxySettings");function n0(t,e){return t||(t=By()),Iy||Dy.push(...JI()),{create:(a,i)=>new Lf(a,i,t,e?.customNoProxyList)}}o(n0,"proxyPolicy");function ZI(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,d=s?r.substring(n+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:p,password:d,urlWithoutAuth:l}}o(ZI,"extractAuthFromUrl");var Lf=class extends ut{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!QI(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:Dy,this.customNoProxyList?void 0:KI)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function eB(t=30){return{create:(e,a)=>new zf(e,a,t)}}o(eB,"rpRegistrationPolicy");var zf=class extends ut{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>tB(this,e,a))}};function tB(t,e,a){if(a.status===409){let i=aB(a.bodyAsText);if(i){let r=iB(e.url);return rB(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Wl()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(tB,"registerIfNeeded");function Ay(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Wl()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(Ay,"getRequestEssentials");function aB(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(aB,"checkRPNotRegisteredError");function iB(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(iB,"extractSubscriptionUrl");async function rB(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=Ay(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return My(t,n,i)}o(rB,"registerRP");async function My(t,e,a){let i=Ay(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await di.delay(t._retryTimeout*1e3),My(t,e,a))}o(My,"getRegistrationStatus");function qy(t){return{create:(e,a)=>new jf(e,a,t)}}o(qy,"signingPolicy");var jf=class extends ut{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function s0(t,e,a,i){return{create:(r,n)=>new kf(r,n,t,e,a,i)}}o(s0,"systemErrorRetryPolicy");var kf=class extends ut{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=$r(i)?i:Jf,this.retryInterval=$r(r)?r:Zf,this.minRetryInterval=$r(n)?n:LI,this.maxRetryInterval=$r(s)?s:e0}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>Ly(this,e,a.response,a))}};async function Ly(t,e,a,i,r){r=Ty(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),Cy(t.retryCount,n,r,a,i))try{return await di.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return Ly(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(Ly,"retry");var nB=3,ey=Ea.HttpConstants.StatusCodes;function o0(){return{create:(t,e)=>new Uf(t,e)}}o(o0,"throttlingRetryPolicy");var ty="The operation was aborted.",Uf=class t extends ut{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this.
Line truncated
|
||||
Polling from: ${a.config.operationLocation}
|
||||
Operation status: ${l}
|
||||
Polling status: ${o8.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let c=s(d,a);if(c!==void 0)return{response:await e(c).catch(n8({state:a,stateProxy:i,isOperationError:o})),status:l}}return{response:d,status:l}}async function c8(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:p,withOperationLocation:d,getPollingInterval:l,processResult:c,getError:m,updateState:u,setDelay:h,isDone:v,setErrorAsResult:E}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:R,status:b}=await QO({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:p,options:r});if(d8({status:b,response:R,state:a,stateProxy:i,isDone:v,processResult:c,getError:m,setErrorAsResult:E}),!o8.includes(b)){let g=l?.(R);g&&h(g);let f=o?.(R,a);if(f!==void 0){let N=S!==f;a.config.operationLocation=f,d?.(f,N)}else d?.(S,!1)}u?.(a,R)}}function m8(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}function u8(t){return t.headers.location}function f8(t){return t.headers["operation-location"]}function h8(t){return t.headers["azure-asyncoperation"]}function YO(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}}function g8(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=f8(e),s=h8(e),o=m8({operationLocation:n,azureAsyncOperation:s}),p=u8(e),d=a?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:YO({requestMethod:d,location:p,requestPath:i,resourceLocationConfig:r})}:p!==void 0?{mode:"ResourceLocation",operationLocation:p}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function y8(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return pu(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return cr.verbose(`LRO: unrecognized operation status: ${e}`),e}}function ZO(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return y8({status:a,statusCode:t.statusCode})}function JO(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return y8({status:n,statusCode:t.statusCode})}function pu(t){return t===202?"running":t<300?"succeeded":"failed"}function v8({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?eR(new Date(e)):a*1e3}}function x8(t){let e=t.flatResponse.error;if(!e){cr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){cr.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function eR(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}function b8(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return pu(e.rawResponse.statusCode);case"Body":return du(e,a);default:return"running"}}let n=r();return n==="running"&&i===void 0?"succeeded":n}async function tR(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return l8({init:async()=>{let s=await r.sendInitialRequest(),o=g8({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},o)=>i(s,o):({flatResponse:s})=>s,getOperationStatus:b8,setErrorAsResult:n})}function w8({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?void 0:a.mode){case"OperationLocation":return m8({operationLocation:f8(t),azureAsyncOperation:h8(t)});case"ResourceLocation":return u8(t);case"Body":default:return}}function du({rawResponse:t},e){var a;let i=(a=e.config.metadata)===null||a===void 0?void 0:a.mode;switch(i){case"OperationLocation":return ZO(t);case"ResourceLocation":return pu(t.statusCode);case"Body":return JO(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function N8({flatResponse:t},e){if(typeof t=="object"){let a=t.resLine truncated
|
||||
`,nv="HTTP/1.1",iB="AES256",rB="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",nB=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"],sB=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],oB="BlobUsesCustomerSpecifiedEncryption",pB="BlobDoesNotUseCustomerSpecifiedEncryption",dB=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function lB(t){let e=M.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=mB(a),e.setPath(a),e.toString()}function cB(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function nn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}function En(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=cB(t),t=rB);let a=nn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=nn(t,"AccountName"),n=Buffer.from(nn(t,"AccountKey"),"base64"),!a){i=nn(t,"DefaultEndpointsProtocol");let o=i.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=nn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=nn(t,"SharedAccessSignature"),r=ov(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}function mB(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function ze(t,e){let a=M.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}function yr(t,e,a){let i=M.URLBuilder.parse(t);return i.setQueryParameter(e,a),i.toString()}function C8(t,e){return M.URLBuilder.parse(t).getQueryParameterValue(e)}function uB(t,e
Line truncated
|
||||
Operation status: ${c}
|
||||
Polling status: ${Gy.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let m=s(l,a);if(m!==void 0)return{response:await e(m).catch(Vy({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:l,status:c}}o(NB,"pollOperationHelper");async function Yy(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:d,withOperationLocation:l,getPollingInterval:c,processResult:m,getError:u,updateState:f,setDelay:h,isDone:b,setErrorAsResult:C}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:D,status:w}=await NB({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:d,options:r});if(Wy({status:w,response:D,state:a,stateProxy:i,isDone:b,processResult:m,getError:u,setErrorAsResult:C}),!Gy.includes(w)){let y=c?.(D);y&&h(y);let g=p?.(D,a);if(g!==void 0){let _=S!==g;a.config.operationLocation=g,l?.(g,_)}else l?.(S,!1)}f?.(a,D)}}o(Yy,"pollOperation");function Qy(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(Qy,"getOperationLocationPollingUrl");function Jy(t){return t.headers.location}o(Jy,"getLocationHeader");function Zy(t){return t.headers["operation-location"]}o(Zy,"getOperationLocationHeader");function e7(t){return t.headers["azure-asyncoperation"]}o(e7,"getAzureAsyncOperationHeader");function _B(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(_B,"findResourceLocation");function t7(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=Zy(e),s=e7(e),p=Qy({operationLocation:n,azureAsyncOperation:s}),d=Jy(e),l=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:_B({requestMethod:l,location:d,requestPath:i,resourceLocationConfig:r})}:d!==void 0?{mode:"ResourceLocation",operationLocation:d}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(t7,"inferLroMode");function a7(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return c0(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Wr.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(a7,"transformStatus");function SB(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return a7({status:a,statusCode:t.statusCode})}o(SB,"getStatus");function EB(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return a7({status:n,statusCode:t.statusCode})}o(EB,"getProvisioningState");function c0(t){return t===202?"running":t<300?"succeeded":"failed"}o(c0,"toOperationStatus");function i7({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?CB(new Date(e)):a*1e3}}o(i7,"parseRetryAfter");function r7(t){let e=t.flatResponse.error;if(!e){Wr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Wr.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(r7,"getErrorFromResponse");function CB(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(CB,"calculatePollingIntervalFromDate");function n7(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return c0(e.rawResponse.statusCode);case"Body":return m0(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(n7,"getStatusFromInitialResponse");async function TB(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return Ky({init:async()=>{let s=await r.sendInitialRequest(),p=t7({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:n7,setErrorAsResult:n})}o(TB,"initHttpOperation");function s7({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
|
||||
`,Vx="HTTP/1.1",Pq="AES256",Rq="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Dq=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"],Iq=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Bq="BlobUsesCustomerSpecifiedEncryption",Aq="BlobDoesNotUseCustomerSpecifiedEncryption",Mq=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function qq(t){let e=L.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=zq(a),e.setPath(a),e.toString()}o(qq,"escapeURLPath");function Lq(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(Lq,"getProxyUriFromDevConnString");function Kn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Kn,"getValueInConnString");function hs(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Lq(t),t=Rq);let a=Kn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Kn(t,"AccountName"),n=Buffer.from(Kn(t,"AccountKey"),"base64"),!a){i=Kn(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Kn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Kn(t,"SharedAccessSignature"),r=Gx(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(hs,"extractConnectionStringParts");function zq(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(zq,"escape");function He(t,e){let a=L.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(He,"appendToURLPath");function en(t,e
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Re.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let a=u0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=gB(e.url),n={};if(r){let s=[];for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let p=o.toLowerCase();n[p]=r[o],s.push(p)}s.sort();for(let o of s)i+=`
|
||||
${o}:${decodeURIComponent(n[o])}`}return i}},Ve=class extends ks{constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Ud(e,a,this)}computeHMACSHA256(e){return L8.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},DB="azure-storage-blob",IB="12.15.0",Us=class extends H.ServiceClient{constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${DB}/${IB} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},Fs=class{constructor(e,a){this.url=lB(e),this.accountName=ov(e),this.pipeline=a,this.storageClientContext=new Us(this.url,a.toServiceClientOptions()),this.isHttps=sv(fB(this.url)||"","https"),this.credential=new Te;for(let r of this.pipeline.factories)M.isNode&&r instanceof Ve||r instanceof Te?this.credential=r:M.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},L=q.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function G(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}var ii=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},ri=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},Su=class{constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return L8.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function ni(t){return t.end?`${t.start}-${t.end}`:t.start}Y.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Y.SASProtocol||(Y.SASProtocol={}));var La=class{constructor(e,a,i,r,n,s,o,p,d,l,c,m,u,h,v,E,S,R,b,g){this.version=e,this.signature=a,i!==void 0&&typeof i!="string"?(this.permissions=i.permissions,this.services=i.services,this.resourceTypes=i.resourceTypes,this.protocol=i.protocol,this.startsOn=i.startsOn,this.expiresOn=i.expiresOn,this.ipRangeInner=i.ipRange,this.identifier=i.identifier,this.encryptionScope=i.encryptionSco
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new La(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function AB(t,e){if(t=Tn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ii.parse(t.permissions.toString()).toString():r=ri.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new La(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function zB(t,e){if(t=Tn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ii.parse(t.permissions.toString()).toString():r=ri.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new La(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function MB(t,e){if(t=Tn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ii.parse(t.permissions.toString()).toString():r=ri.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new La(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function qB(t,e){if(t=Tn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ii.parse(t.permissions.toString()).toString():r=ri.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new La(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function LB(t,e){if(t=Tn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ii.parse(t.permissions.toString()).toString():r=ri.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new La(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function Cn(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}function Tn(t){let e=t.version?t.version:c0;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Vs=class{constructor(e,a){let i=new Us(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new gr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new qs(i)),a||(a=M.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==qa||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==qa||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},G(l)))}catch(c){throw d.setStatus({code:q.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==qa||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==qa||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{let c=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions})},G(l)));return this._leaseId=e,c}catch(c){throw d.setStatus({code:q.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,o;let{span:p,updatedOptions:d}=L("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==qa||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==qa||!((s=e.conditions)===null||s===void 0)&&s.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default v
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?Ne(t.startsOn,!1):"",Ne(t.expiresOn,!1),t.ipRange?ni(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let o=e.computeHMACSHA256(s);return new La(a,o,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}var Xu=class t extends Fs{constructor(e,a,i){let r;Fi(a)?r=a:M.isNode&&a instanceof Ve||a instanceof Te||M.isTokenCredential(a)?r=Oe(a,i):r=Oe(new Te,i),super(e,r),this.serviceContext=new zd(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=En(e);if(i.kind==="AccountConnString")if(M.isNode){let r=new Ve(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=M.getDefaultProxySettings(i.proxyUri));let n=Oe(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Oe(new Te,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Vd(ze(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:q.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:q.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=L("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),p=await new gr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:p}}catch(s){throw r.setStatus({code:q.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=L("BlobServiceClient-renameContainer",i);try{let o=this.getContainerClient(a),d=await new gr(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:o,containerRenameResponse:d}}catch(o){throw n.setStatus({code:q.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:q.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},G(r)))}catch(n){throw i.setStatus({code:q.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:q.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:q.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),G(r)))}catch(n){throw i.setStatus({code:q.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=L("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},G(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(p=>{var d;let l="";return((d=p.tags)===null||d===void 0?void 0:d.blobTagSet.length)===1&&(l=p.tags.blobTagSet[0].value),Object.assign(Object.assign({},p),{tags:As(p.tags),tagValue:l})})})}catch(s){throw r.setStatus({code:q.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return k.__asyncGenerator(this,arguments,function*(){let n;if(a||a===void 0)do n=yield k.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield k.__await(n);while(a)})}findBlobsByTagsItems(e,a={}){return k.__asyncGenerator(this,arguments,
Line truncated
|
||||
Other caches with similar key:`);for(let o of n?.artifactCaches||[])Wt.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function BA(t,e,a){return Ht(this,void 0,void 0,function*(){let i=new TA.URL(t),r=(0,wv.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,tl.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,tl.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,tl.downloadCacheHttpClient)(t,e):yield(0,tl.downloadCacheHttpClient)(t,e)})}Qe.downloadCache=BA;function AA(t,e,a){return Ht(this,void 0,void 0,function*(){let i=w0(),r=N0(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,$i.retryTypedResponse)("reserveCache",()=>Ht(this,void 0,void 0,function*(){return i.postJson(io("caches"),n)}))})}Qe.reserveCache=AA;function bv(t,e){return`bytes ${t}-${e}/*`}function zA(t,e,a,i,r){return Ht(this,void 0,void 0,function*(){Wt.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${bv(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":bv(i,r)},s=yield(0,$i.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>Ht(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,$i.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}function MA(t,e,a,i){return Ht(this,void 0,void 0,function*(){let r=al.getArchiveFileSizeInBytes(a),n=io(`caches/${e.toString()}`),s=b0.openSync(a,"r"),o=(0,wv.getUploadOptions)(i),p=al.assertDefined("uploadConcurrency",o.uploadConcurrency),d=al.assertDefined("uploadChunkSize",o.uploadChunkSize),l=[...new Array(p).keys()];Wt.debug("Awaiting all uploads");let c=0;try{yield Promise.all(l.map(()=>Ht(this,void 0,void 0,function*(){for(;c<r;){let m=Math.min(r-c,d),u=c,h=c+m-1;c+=d,yield zA(t,n,()=>b0.createReadStream(a,{fd:s,start:u,end:h,autoClose:!1}).on("error",v=>{throw new Error(`Cache upload failed because file read failed with ${v.message}`)}),u,h)}})))}finally{b0.closeSync(s)}})}function qA(t,e,a){return Ht(this,void 0,void 0,function*(){let i={size:a};return yield(0,$i.retryTypedResponse)("commitCache",()=>Ht(this,void 0,void 0,function*(){return t.postJson(io(`caches/${e.toString()}`),i)}))})}function LA(t,e,a){return Ht(this,void 0,void 0,function*(){let i=w0();Wt.debug("Upload cache"),yield MA(i,t,e,a),Wt.debug("Commiting cache");let r=al.getArchiveFileSizeInBytes(e);Wt.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);let n=yield qA(i,t,r);if(!(0,$i.isSuccessStatusCode)(n.statusCode))throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`);Wt.info("Cache saved successfully")})}Qe.saveCache=LA});var Ev=T(_t=>{"use strict";var jA=_t&&_t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),kA=_t&&_t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_0=_t&&_t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&jA(e,t,a);return kA(e,t),e},pi=_t&&_t.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(_t,"__esModule",{value:!0});_t.createTar=_t.extractTar=_t.listTar=void 0;var HA=kn(),rl=_0(jn()),_v=require("fs"),Na=_0(require("path")),S0=_0(ts()),Ie=Jn(),Gi=process.platform==="win32";function UA(){return pi(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield S0.getGnuTarPathOnWindows(),e=Ie.SystemTarPathOnWindows;if(t)return{path:t,type:Ie.ArchiveToolType.GNU};if((0,_v.existsSync)(e))return{path:e,type:Ie.ArchiveToolType.BSD};break}case"darwin":{let t=yield rl.which("gtar",!1);return t?{path:t,type:Ie.ArchiveToolType.GNU}:{path:yield rl.which("tar",!0),type:Ie.ArchiveToolType.BSD}}default:break}return{path:yield rl.which("tar",!0),type:Ie.ArchiveToolType.GNU}})}function FA(t,e,a,i=""){return pi(this,void 0,void 0,function*(){let r=[`"${t.path}"`],n=S0.getCacheFileName(e),s="cache.tar",o=Sv(),p=t.type===Ie.ArchiveToolType.BSD&&e!==Ie.CompressionMethod.Gzip&&Gi;switch(a){case"create":r.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${Na.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${Na.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${Na.sep}`,"g"),"/"),"--f
Line truncated
|
||||
`));let i=yield E0(a,"create");yield C0(i,t)})}_t.createTar=WA});var Rv=T(Ye=>{"use strict";var KA=Ye&&Ye.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),QA=Ye&&Ye.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ol=Ye&&Ye.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&KA(e,t,a);return QA(e,t),e},Cv=Ye&&Ye.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.saveCache=Ye.restoreCache=Ye.isFeatureAvailable=Ye.ReserveCacheError=Ye.ValidationError=void 0;var it=ol(nt()),Tv=ol(require("path")),pa=ol(ts()),nl=ol(Nv()),sl=Ev(),di=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Ye.ValidationError=di;var ro=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Ye.ReserveCacheError=ro;function Pv(t){if(!t||t.length===0)throw new di("Path Validation Error: At least one directory or file path is required")}function Ov(t){if(t.length>512)throw new di(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new di(`Key Validation Error: ${t} cannot contain commas.`)}function YA(){return!!process.env.ACTIONS_CACHE_URL}Ye.isFeatureAvailable=YA;function ZA(t,e,a,i,r=!1){return Cv(this,void 0,void 0,function*(){Pv(t),a=a||[];let n=[e,...a];if(it.debug("Resolved Keys:"),it.debug(JSON.stringify(n)),n.length>10)throw new di("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Ov(p);let s=yield pa.getCompressionMethod(),o="";try{let p=yield nl.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!p?.archiveLocation)return;if(i?.lookupOnly)return it.info("Lookup only - skipping download"),p.cacheKey;o=Tv.join(yield pa.createTempDirectory(),pa.getCacheFileName(s)),it.debug(`Archive Path: ${o}`),yield nl.downloadCache(p.archiveLocation,o,i),it.isDebug()&&(yield(0,sl.listTar)(o,s));let d=pa.getArchiveFileSizeInBytes(o);return it.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,sl.extractTar)(o,s),it.info("Cache restored successfully"),p.cacheKey}catch(p){if(p.name===di.name)throw p;it.warning(`Failed to restore: ${p.message}`)}finally{try{yield pa.unlinkFile(o)}catch(p){it.debug(`Failed to delete archive: ${p}`)}}})}Ye.restoreCache=ZA;function JA(t,e,a,i=!1){var r,n,s,o,p;return Cv(this,void 0,void 0,function*(){Pv(t),Ov(e);let d=yield pa.getCompressionMethod(),l=-1,c=yield pa.resolvePaths(t);if(it.debug("Cache Paths:"),it.debug(`${JSON.stringify(c)}`),c.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield pa.createTempDirectory(),u=Tv.join(m,pa.getCacheFileName(d));it.debug(`Archive Path: ${u}`);try{yield(0,sl.createTar)(m,c,d),it.isDebug()&&(yield(0,sl.listTar)(u,d));let h=10*1024*1024*1024,v=pa.getArchiveFileSizeInBytes(u);if(it.debug(`File Size: ${v}`),v>h&&!pa.isGhes())throw new Error(`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the 10GB limit, not saving cache.`);it.debug("Reserving Cache");let E=yield nl.reserveCache(e,t,{compressionMethod:d,enableCrossOsArchive:i,cacheSize:v});if(!((r=E?.result)===null||r===void 0)&&r.cacheId)l=(n=E?.result)===null||n===void 0?void 0:n.cacheId;else throw E?.statusCode===400?new Error((o=(s=E?.error)===null||s===void 0?void 0:s.message)!==null&&o!==void 0?o:`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the data cap limit, not saving cache.`):new ro(`Unable to reserve cache with key ${e}, another job may be creating this cache. More details: ${(p=E?.error)===null||p===void 0?void 0:p.message}`);it.debug(`Saving Cache (ID: ${l})`),yield nl.saveCache(l,u,a)}catch(h){let v=h;if(v.name===di.name)throw h;v.name===ro.name?it.info(`Failed to save: ${v.message}`):it.warning(`Failed to save: ${v.message}`)}finally{try{yield pa.unlinkFile(u)}catch(h){it.debug(`Failed to delete archive: ${h}`)}}return l})}Ye.saveCache=JA});var Bv=T((St,P0)=>{"use strict";var ez=St&&St.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),tz=St&&St.__setModuleDefault||(Object.create?fun
Line truncated
|
||||
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}St._getOsVersion=sz;function oz(){let t="/etc/lsb-release",e="/etc/os-release",a="";return pl.existsSync(t)?a=pl.readFileSync(t).toString():pl.existsSync(e)&&(a=pl.readFileSync(e).toString()),a}St._readLinuxVersionFile=oz});var Mv=T(da=>{"use strict";var pz=da&&da.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),dz=da&&da.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lz=da&&da.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&pz(e,t,a);return dz(e,t),e},Av=da&&da.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(da,"__esModule",{value:!0});da.RetryHelper=void 0;var zv=lz(nt()),O0=class{constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return Av(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;zv.info(n.message)}let r=this.getSleepAmount();zv.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Av(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};da.RetryHelper=O0});var Vv=T(re=>{"use strict";var cz=re&&re.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),mz=re&&re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ka=re&&re.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&cz(e,t,a);return mz(e,t),e},Pt=re&&re.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})},uz=re&&re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(re,"__esModule",{value:!0});re.evaluateVersions=re.isExplicitVersion=re.findFromManifest=re.getManifestFromRepo=re.findAllVersions=re.find=re.cacheFile=re.cacheDir=re.extractZip=re.extractXar=re.extractTar=re.extract7z=re.downloadTool=re.HTTPError=void 0;var he=ka(nt()),Kt=ka(jn()),la=ka(require("fs")),fz=ka(Bv()),so=ka(require("os")),_a=ka(require("path")),qv=ka(Or()),li=ka(qo()),hz=ka(require("stream")),gz=ka(require("util")),Rn=require("assert"),Lv=uz(xc()),Xi=kn(),yz=Mv(),no=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};re.HTTPError=no;var D0=process.platform==="win32",vz=process.platform==="darwin",xz="actions/tool-cache";function bz(t,e,a,i){return Pt(this,void 0,void 0,function*(){e=e||_a.join(Fv(),Lv.default()),yield Kt.mkdirP(_a.dirname(e)),he.debug(`Downloading ${t}`),he.debug(`Destination ${e}`);let r=3,n=R0("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=R0("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new yz.RetryHelper(r,n,s).execute(()=>Pt(this,void 0,void 0,function*(){return yield wz(t,e||"",a,i)}),p=>!(p instanceof no&&p.httpStatusCode&&p.httpStatusCode<500&&p.httpStatusCode!==408&&p.httpStatusCode!==429))})}re.downloadTool=bz;function wz(t,e,a,i){return Pt(this,void 0,void 0,function*(){if(la.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let r=new qv.HttpClient(xz,[],{allowRetries:!1});a&&(he.debug("set auth"),i===void 0&&(i={}),i.authorization=a);let n=yield r.get(t,i);if(n.message.statusCode!==200){let l=new no(n.message.statusCode);throw he.debug(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),l}let s=gz.promisify(hz.pipeline),p=R0("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),d=!1;try{return yield s(p,la.c
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Ae.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Ae.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let a=g2(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=Hq(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let d=p.toLowerCase();n[d]=r[p],s.push(d)}s.sort();for(let p of s)i+=`
|
||||
${p}:${decodeURIComponent(n[p])}`}return i}},Qe=class extends Qo{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new mc(e,a,this)}computeHMACSHA256(e){return _7.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},iL="azure-storage-blob",rL="12.15.0",Zo=class extends H.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${iL}/${rL} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},ep=class{static{o(this,"StorageClient")}constructor(e,a){this.url=qq(e),this.accountName=Gx(e),this.pipeline=a,this.storageClientContext=new Zo(this.url,a.toServiceClientOptions()),this.isHttps=$x(kq(this.url)||"","https"),this.credential=new Re;for(let r of this.pipeline.factories)L.isNode&&r instanceof Qe||r instanceof Re?this.credential=r:L.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},j=z.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function W(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(W,"convertTracingToRequestOptionsBase");var qi=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Li=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},T0=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return _7.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function zi(t){return t.end?`${t.start}-${t.end}`:t.start}o(zi,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var mi=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,d,l,c,m,u,f,h,b
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new mi(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(nL,"generateBlobSASQueryParameters20150405");function sL(t,e){if(t=ys(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=Li.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ee(t.startsOn,!1):"",t.expiresOn?Ee(t.expiresOn,!1):"",gs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(sL,"generateBlobSASQueryParameters20181109");function oL(t,e){if(t=ys(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=Li.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ee(t.startsOn,!1):"",t.expiresOn?Ee(t.expiresOn,!1):"",gs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(oL,"generateBlobSASQueryParameters20201206");function pL(t,e){if(t=ys(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=Li.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ee(t.startsOn,!1):"",t.expiresOn?Ee(t.expiresOn,!1):"",gs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ee(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ee(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(pL,"generateBlobSASQueryParametersUDK20181109");function dL(t,e){if(t=ys(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=Li.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ee(t.startsOn,!1):"",t.expiresOn?Ee(t.expiresOn,!1):"",gs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ee(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ee(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(dL,"generateBlobSASQueryParametersUDK20200210");function lL(t,e){if(t=ys(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=Li.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ee(t.startsOn,!1):"",t.expiresOn?Ee(t.expiresOn,!1):"",gs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ee(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ee(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(lL,"generateBlobSASQueryParametersUDK20201206");function gs(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(gs,"getCanonicalName");function ys(t){let e=t.version?t.version:f2;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(ys,"SASSignatureValuesSanityCheckAndAutofill");var tp=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new Zo(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Zr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new Wo(i)),a||(a=L.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=j("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ci||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ci||!((p=a.conditions)===null||p===void 0)&&p.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions}),proposedLeaseId:this._leaseId},W(c)))}catch(m){throw l.setStatus({code:z.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async changeLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=j("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ci||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ci||!((p=a.conditions)===null||p===void 0)&&p.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{let m=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions})},W(c)));return this._leaseId=e,m}catch(m){throw l.setStatus({code:z.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:d,updatedOptions:l}=j("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ci||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ci||!((s=e.conditions)===null||s===void 0)&&s.tagCon
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?Ee(t.startsOn,!1):"",Ee(t.expiresOn,!1),t.ipRange?zi(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let p=e.computeHMACSHA256(s);return new mi(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(Wx,"generateAccountSASQueryParameters");var Y0=class t extends ep{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;wr(a)?r=a:L.isNode&&a instanceof Qe||a instanceof Re||L.isTokenCredential(a)?r=Ie(a,i):r=Ie(new Re,i),super(e,r),this.serviceContext=new nc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=hs(e);if(i.kind==="AccountConnString")if(L.isNode){let r=new Qe(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=L.getDefaultProxySettings(i.proxyUri));let n=Ie(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Ie(new Re,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new fc(He(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),d=await new Zr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:d}}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=j("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),l=await new Zr(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:l}}catch(p){throw n.setStatus({code:z.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},W(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),W(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},W(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(d=>{var l;let c="";return((l=d.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(c=d.tags.blobTagSet[0].value),Object.assign(Object.assign({},d),{tags:$o(d.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(a),this.code=e,this.name="NetworkError"}};aa.NetworkError=_c;_c.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sc=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};aa.UsageError=Sc;Sc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Kx=T(ia=>{"use strict";var _L=ia&&ia.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),SL=ia&&ia.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),EL=ia&&ia.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&_L(e,t,a);return SL(e,t),e},CL=ia&&ia.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ia,"__esModule",{value:!0});ia.uploadCacheArchiveSDK=ia.UploadProgress=void 0;var C2=EL(rt()),TL=x2(),OL=E2(),Ec=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);C2.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};ia.UploadProgress=Ec;function PL(t,e,a){var i;return CL(this,void 0,void 0,function*(){let r=new TL.BlobClient(t),n=r.getBlockBlobClient(),s=new Ec((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),C2.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let d=yield n.uploadFile(e,p);if(d._response.status>=400)throw new OL.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${d._response.status}`);return d}catch(d){throw C2.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${d.message}`),d}finally{s.stopDisplayTimer()}})}o(PL,"uploadCacheArchiveSDK");ia.uploadCacheArchiveSDK=PL});var O2=T(Je=>{"use strict";var RL=Je&&Je.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),DL=Je&&Je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),IL=Je&&Je.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&RL(e,t,a);return DL(e,t),e},Tc=Je&&Je.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Je,"__esModule",{value:!0});Je.retryHttpClientResponse=Je.retryTypedResponse=Je.retry=Je.isRetryableStatusCode=Je.isServerErrorStatusCode=Je.isSuccessStatusCode=void 0;var Yx=IL(rt()),Cc=Rr(),vs=Cn();function BL(t){return t?t>=200&&t<300:!1}o(BL,"isSuccessStatusCode");Je.isSuccessStatusCode=BL;function Qx(t){return t?t>=500:!0}o(Qx,"isServerErrorStatusCode");Je.isServerErrorStatusCode=Qx;function Jx(t){return t?[Cc.HttpCodes.BadGateway,Cc.HttpCodes.ServiceUnavailable,Cc.HttpCodes.GatewayTimeout].includes(t):!1}o(Jx,"isRetryableStatusCode");Je.isRetryableStatusCode=Jx;function AL(t){return Tc(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(AL,"sleep");function T2(t,e,a,i=vs.DefaultRetryAttempts,r=vs.DefaultRetryDelay,n=
Line truncated
|
||||
Other caches with similar key:`);for(let p of n?.artifactCaches||[])ua.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(gz,"printCachesListForDiagnostics");function yz(t,e,a){return ra(this,void 0,void 0,function*(){let i=new dz.URL(t),r=(0,B2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Rc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Rc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Rc.downloadCacheHttpClient)(t,e):yield(0,Rc.downloadCacheHttpClient)(t,e)})}o(yz,"downloadCache");Tt.downloadCache=yz;function vz(t,e,a){return ra(this,void 0,void 0,function*(){let i=A2(),r=xs.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,_r.retryTypedResponse)("reserveCache",()=>ra(this,void 0,void 0,function*(){return i.postJson(fp("caches"),n)}))})}o(vz,"reserveCache");Tt.reserveCache=vz;function pw(t,e){return`bytes ${t}-${e}/*`}o(pw,"getContentRange");function bz(t,e,a,i,r){return ra(this,void 0,void 0,function*(){ua.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${pw(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":pw(i,r)},s=yield(0,_r.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>ra(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,_r.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(bz,"uploadChunk");function xz(t,e,a,i){return ra(this,void 0,void 0,function*(){let r=xs.getArchiveFileSizeInBytes(a),n=fp(`caches/${e.toString()}`),s=D2.openSync(a,"r"),p=(0,B2.getUploadOptions)(i),d=xs.assertDefined("uploadConcurrency",p.uploadConcurrency),l=xs.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(d).keys()];ua.debug("Awaiting all uploads");let m=0;try{yield Promise.all(c.map(()=>ra(this,void 0,void 0,function*(){for(;m<r;){let u=Math.min(r-m,l),f=m,h=m+u-1;m+=l,yield bz(t,n,()=>D2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{D2.closeSync(s)}})}o(xz,"uploadFile");function wz(t,e,a){return ra(this,void 0,void 0,function*(){let i={size:a};return yield(0,_r.retryTypedResponse)("commitCache",()=>ra(this,void 0,void 0,function*(){return t.postJson(fp(`caches/${e.toString()}`),i)}))})}o(wz,"commitCache");function Nz(t,e,a,i){return ra(this,void 0,void 0,function*(){if((0,B2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,lz.uploadCacheArchiveSDK)(a,e,i)}else{let n=A2();ua.debug("Upload cache"),yield xz(n,t,e,i),ua.debug("Commiting cache");let s=xs.getArchiveFileSizeInBytes(e);ua.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield wz(n,t,s);if(!(0,_r.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);ua.info("Cache saved successfully")}})}o(Nz,"saveCache");Tt.saveCache=Nz});var Dc=T(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.isJsonObject=ws.typeofJsonValue=void 0;function _z(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(_z,"typeofJsonValue");ws.typeofJsonValue=_z;function Sz(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(Sz,"isJsonObject");ws.isJsonObject=Sz});var Bc=T(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.base64encode=Ns.base64decode=void 0;var Hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ic=[];for(let t=0;t<Hi.length;t++)Ic[Hi[t].charCodeAt(0)]=t;Ic["-".charCodeAt(0)]=Hi.indexOf("+");Ic["_".charCodeAt(0)]=Hi.indexOf("/");function Ez(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=Ic[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(Ez,"base64decode");Ns.base64decode=Ez;function Cz(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Hi[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Hi[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Hi[r|i>>6],e+=Hi[i&63],a=0;break}return a&&(e+=Hi[r],e+="=",a==1&&(e+="=")),e}o(Cz,"base64encode");Ns.base64encode=Cz});var lw=T(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.utf8read=void 0;var M2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Tz(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(M2(i)),r=0);return a.length?(r&&a.push(M2(i.slice(0,r))),a.join("")):M2(i.slice(0,r))}o(Tz,"utf8read");Ac.utf8read=Tz});var hp=T(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.WireType=fi.mergeBinaryOptions=fi.UnknownFieldHandler=void 0;var Oz;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(Oz=fi.UnknownFieldHandler||(fi.UnknownFieldHandler={}));function Pz(t,e){return Object.assign(Object.assign({},t),e)}o(Pz,"mergeBinaryOptions");fi.mergeBinaryOptions=Pz;var Rz;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Rz=fi.WireType||(fi.WireType={}))});var qc=T(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function Dz(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(Dz,"varint64read");na.varint64read=Dz;function Iz(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),d=(p?s|128:s)&255;if(a.push(d),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),d=(p?s|128:s)&255;if(a.push(d),!p)return}a.push(e>>>31&1)}}o(Iz,"varint64write");na.varint64write=Iz;var Mc=65536*65536;function Bz(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let d=Number(t.slice(s,p));r*=a,i=i*a+d,i>=Mc&&(r=r+(i/Mc|0),i=i%Mc)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(Bz,"int64fromString");na.int64fromString=Bz;function Az(t,e){if(e>>>0<=2097151)return""+(Mc*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,d=1e7;n>=d&&(s+=Math.floor(n/d),n%=d),s>=d&&(p+=Math.floor(s/d),s%=d);function l(c,m){let u=c?String(c):"";return m?"0000000".slice(u.length)+u:u}return o(l,"decimalFrom1e7"),l(p,0)+l(s,p)+l(n,1)}o(Az,"int64toString");na.int64toString=Az;function Mz(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Mz,"varint32write");na.varint32write=Mz;function qz(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(qz,"varint32read");na.varint32read=qz});var Er=T(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.PbLong=Sr.PbULong=Sr.detectBi=void 0;var gp=qc(),Be;function cw(){let t=new DataView(new ArrayBuffer(8));Be=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:
Line truncated
|
||||
`)}};dm.RpcError=ph});var lh=T(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.mergeRpcOptions=void 0;var Hw=pt();function rk(t,e){if(!e)return t;let a={};lm(t,a),lm(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=Hw.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=Hw.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},lm(t.meta,a.meta),lm(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(rk,"mergeRpcOptions");cm.mergeRpcOptions=rk;function lm(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(lm,"copy")});var mh=T(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Deferred=dn.DeferredState=void 0;var yi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(yi=dn.DeferredState||(dn.DeferredState={}));var ch=class{static{o(this,"Deferred")}constructor(e=!0){this._state=yi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==yi.PENDING)throw new Error(`cannot resolve ${yi[this.state].toLowerCase()}`);this._resolve(e),this._state=yi.RESOLVED}reject(e){if(this.state!==yi.PENDING)throw new Error(`cannot reject ${yi[this.state].toLowerCase()}`);this._reject(e),this._state=yi.REJECTED}resolvePending(e){this._state===yi.PENDING&&this.resolve(e)}rejectPending(e){this._state===yi.PENDING&&this.reject(e)}};dn.Deferred=ch});var fh=T(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.RpcOutputStreamController=void 0;var Fw=mh(),ln=pt(),uh=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){ln.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){ln.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){ln.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){ln.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;ln.assert(e,"bad state"),ln.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new Fw.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;ln.assert(i.state==Fw.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};mm.RpcOutputStreamController=uh});var gh=T(Ps=>{"use strict";var nk=Ps&&Ps.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.UnaryCall=void 0;var hh=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return nk(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};Ps.UnaryCall=hh});var vh=T(Rs=>{"use strict";var sk=Rs&&Rs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function
Line truncated
|
||||
`));let i=yield kh(a,"create");yield Uh(i,t)})}o(eU,"createTar");zt.createTar=eU});var cN=T(dt=>{"use strict";var tU=dt&&dt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),aU=dt&&dt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rp=dt&&dt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&tU(e,t,a);return aU(e,t),e},$s=dt&&dt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(dt,"__esModule",{value:!0});dt.saveCache=dt.restoreCache=dt.isFeatureAvailable=dt.ReserveCacheError=dt.ValidationError=void 0;var re=Rp(rt()),xm=Rp(require("path")),ke=Rp(On()),Vs=Rp(dw()),dN=Rp(nN()),wm=Oc(),Or=pN(),iU=Cn(),Ba=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};dt.ValidationError=Ba;var cn=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};dt.ReserveCacheError=cn;function lN(t){if(!t||t.length===0)throw new Ba("Path Validation Error: At least one directory or file path is required")}o(lN,"checkPaths");function Hh(t){if(t.length>512)throw new Ba(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ba(`Key Validation Error: ${t} cannot contain commas.`)}o(Hh,"checkKey");function rU(){return!!process.env.ACTIONS_CACHE_URL}o(rU,"isFeatureAvailable");dt.isFeatureAvailable=rU;function nU(t,e,a,i,r=!1){return $s(this,void 0,void 0,function*(){let n=(0,wm.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),lN(t),n){case"v2":return yield oU(t,e,a,i,r);case"v1":default:return yield sU(t,e,a,i,r)}})}o(nU,"restoreCache");dt.restoreCache=nU;function sU(t,e,a,i,r=!1){return $s(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ba("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of n)Hh(d);let s=yield ke.getCompressionMethod(),p="";try{let d=yield Vs.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!d?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),d.cacheKey;p=xm.join(yield ke.createTempDirectory(),ke.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Vs.downloadCache(d.archiveLocation,p,i),re.isDebug()&&(yield(0,Or.listTar)(p,s));let l=ke.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,Or.extractTar)(p,s),re.info("Cache restored successfully"),d.cacheKey}catch(d){if(d.name===Ba.name)throw d;re.warning(`Failed to restore: ${d.message}`)}finally{try{yield ke.unlinkFile(p)}catch(d){re.debug(`Failed to delete archive: ${d}`)}}})}o(sU,"restoreCacheV1");function oU(t,e,a,i,r=!1){return $s(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ba("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Hh(p);let s="";try{let p=dN.internalCacheTwirpClient(),d=yield ke.getCompressionMethod(),l={key:e,restoreKeys:a,version:ke.getCacheVersion(t,d,r)},c=yield p.GetCacheEntryDownloadURL(l);if(!c.ok){re.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=xm.join(yield ke.createTempDirectory(),ke.getCacheFileName(d)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Vs.downloadCache(c.signedDownloadUrl,s,i);let m=ke.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),re.isDebug()&&(yield(0,Or.listTar)(s,d)),yield(0,Or.extractTar)(s,d),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Ba.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield ke.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(oU,"restoreCacheV2");function pU(t,e,a,i=!1){return $s(this,void 0,void 0,function*(){let r=(0,wm.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
|
||||
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}o(yU,"_getOsVersion");jt._getOsVersion=yU;function vU(){let t="/etc/lsb-release",e="/etc/os-release",a="";return Nm.existsSync(t)?a=Nm.readFileSync(t).toString():Nm.existsSync(e)&&(a=Nm.readFileSync(e).toString()),a}o(vU,"_readLinuxVersionFile");jt._readLinuxVersionFile=vU});var gN=T((PK,hN)=>{var bU=require("crypto");hN.exports=o(function(){return bU.randomBytes(16)},"nodeRNG")});var bN=T((DK,vN)=>{var yN=[];for(Dp=0;Dp<256;++Dp)yN[Dp]=(Dp+256).toString(16).substr(1);var Dp;function xU(t,e){var a=e||0,i=yN;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}o(xU,"bytesToUuid");vN.exports=xU});var wN=T((BK,xN)=>{var wU=gN(),NU=bN();function _U(t,e,a){var i=e&&a||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||wU)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var n=0;n<16;++n)e[i+n]=r[n];return e||NU(r)}o(_U,"v4");xN.exports=_U});var SN=T(Aa=>{"use strict";var SU=Aa&&Aa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),EU=Aa&&Aa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),CU=Aa&&Aa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&SU(e,t,a);return EU(e,t),e},NN=Aa&&Aa.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.RetryHelper=void 0;var _N=CU(rt()),$h=class{static{o(this,"RetryHelper")}constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return NN(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;_N.info(n.message)}let r=this.getSleepAmount();_N.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return NN(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};Aa.RetryHelper=$h});var IN=T(oe=>{"use strict";var TU=oe&&oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),OU=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vi=oe&&oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&TU(e,t,a);return OU(e,t),e},Vt=oe&&oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},PU=oe&&oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oe,"__esModule",{value:!0});oe.evaluateVersions=oe.isExplicitVersion=oe.findFromManifest=oe.getManifestFromRepo=oe.findAllVersions=oe.find=oe.cacheFile=oe.cacheDir=oe.extractZip=oe.extractXar=oe.extractTar=oe.extract7z=oe.downloadTool=oe.HTTPError=void 0;var xe=vi(rt()),ha=vi(Js()),Ma=vi(require("fs")),RU=vi(fN()),Bp=vi(require("os")),Qa=vi(require("path")),EN=vi(Rr()),$i=vi(pd()),DU=vi(require("stream")),IU=vi(require("util")),Gs=require("assert"),CN=PU(wN()),Pr=xn(),BU=SN(),Ip=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};oe.HTTPError=Ip;var Xh=process.platform==="win32",AU=process.platform==="darwin",MU="actions/tool-cache";function qU(t,e,a,i){return Vt(this,void 0,void 0,function*(){e=e||Qa.join(DN(),CN.default()),yield ha.mkdirP(Qa.dirname(e)),xe.debug(`Downloading ${tLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
sax/lib/sax.js:
|
||||
|
||||
Generated
+83
-18
@@ -9,8 +9,8 @@
|
||||
"version": "2.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.1.4",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.11.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/glob": "^0.4.0",
|
||||
"@actions/io": "^1.1.2",
|
||||
@@ -24,10 +24,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache": {
|
||||
"version": "3.2.2",
|
||||
"license": "MIT",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.3.tgz",
|
||||
"integrity": "sha512-SvrqFtYJ7I48A/uXNkoJrnukx5weQv1fGquhs3+4nkByZThBH109KTIqj5x/cGV7JGNvb8dLPVywUOqX1fjiXg==",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
"@actions/glob": "^0.1.0",
|
||||
"@actions/http-client": "^2.1.1",
|
||||
@@ -35,8 +36,8 @@
|
||||
"@azure/abort-controller": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^2.6.0",
|
||||
"@azure/storage-blob": "^12.13.0",
|
||||
"semver": "^6.1.0",
|
||||
"uuid": "^3.3.3"
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"semver": "^6.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache/node_modules/@actions/glob": {
|
||||
@@ -48,18 +49,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/core": {
|
||||
"version": "1.10.1",
|
||||
"license": "MIT",
|
||||
"version": "1.11.1",
|
||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz",
|
||||
"integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==",
|
||||
"dependencies": {
|
||||
"@actions/http-client": "^2.0.1",
|
||||
"uuid": "^8.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/core/node_modules/uuid": {
|
||||
"version": "8.3.2",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/http-client": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/exec": {
|
||||
@@ -283,6 +278,76 @@
|
||||
"node": ">=8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin": {
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.9.6.tgz",
|
||||
"integrity": "sha512-Wpv5rkXeu6E5Y4r0TjWE0bzRGddiTYl/RM+tLgVlS0r8CqOBqNAmlWv+s8ltf/F75rVrahUal0cpyhFwha9GRA==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/plugin-framework": "^2.9.6",
|
||||
"@protobuf-ts/protoc": "^2.9.6",
|
||||
"@protobuf-ts/runtime": "^2.9.6",
|
||||
"@protobuf-ts/runtime-rpc": "^2.9.6",
|
||||
"typescript": "^3.9"
|
||||
},
|
||||
"bin": {
|
||||
"protoc-gen-dump": "bin/protoc-gen-dump",
|
||||
"protoc-gen-ts": "bin/protoc-gen-ts"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin-framework": {
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.6.tgz",
|
||||
"integrity": "sha512-w7A1RXrDCiVzcaRE6YJP7FCARuAFe/Vc4SNQnHAi4CF0V6mEtyjAYEIC5BNYgIRaJEqB26zzsBQjIem3R02SCA==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/runtime": "^2.9.6",
|
||||
"typescript": "^3.9"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin-framework/node_modules/typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/plugin/node_modules/typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/protoc": {
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.9.6.tgz",
|
||||
"integrity": "sha512-c0XvAPDIBAovH9HxV8gBv8gzOTreQIqibcusrB1+DxvFiSvy+2V1tjbUmG5gJEbjk3aAOaoj0a3+QuE+P28xUw==",
|
||||
"bin": {
|
||||
"protoc": "protoc.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobuf-ts/runtime": {
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.6.tgz",
|
||||
"integrity": "sha512-C0CfpKx4n4LBbUrajOdRj2BTbd3qBoK0SiKWLq7RgCoU6xiN4wesBMFHUOBp3fFzKeZwgU8Q2KtzaqzIvPLRXg=="
|
||||
},
|
||||
"node_modules/@protobuf-ts/runtime-rpc": {
|
||||
"version": "2.9.6",
|
||||
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.6.tgz",
|
||||
"integrity": "sha512-0UeqDRzNxgsh08lY5eWzFJNfD3gZ8Xf+WG1HzbIAbVAigzigwjwsYNNhTeas5H3gco1U5owTzCg177aambKOOw==",
|
||||
"dependencies": {
|
||||
"@protobuf-ts/runtime": "^2.9.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.1.tgz",
|
||||
|
||||
+3
-3
@@ -18,12 +18,12 @@
|
||||
"author": "xHyroM",
|
||||
"scripts": {
|
||||
"format": "prettier --write src *.yml *.json *.md",
|
||||
"build": "esbuild --target=node20 --outfile=dist/setup/index.js --bundle --minify --platform=node --format=cjs src/index.ts && esbuild --target=node20 --outfile=dist/cache-save/index.js --bundle --minify --platform=node --format=cjs src/cache-save.ts",
|
||||
"build": "esbuild --target=node20 --outfile=dist/setup/index.js --bundle --keep-names --minify --platform=node --format=cjs src/index.ts && esbuild --target=node20 --outfile=dist/cache-save/index.js --bundle --keep-names --minify --platform=node --format=cjs src/cache-save.ts",
|
||||
"start": "npm run build && node dist/setup/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.1.4",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.11.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/glob": "^0.4.0",
|
||||
"@actions/io": "^1.1.2",
|
||||
|
||||
Reference in new issue
Block a user