setup-bun/dist/setup/index.js

70 lines
1.1 MiB
JavaScript
Raw Permalink Normal View History

var ex=Object.create;var po=Object.defineProperty;var tx=Object.getOwnPropertyDescriptor;var ax=Object.getOwnPropertyNames;var ix=Object.getPrototypeOf,rx=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),ml=(t,e)=>{for(var a in e)po(t,a,{get:e[a],enumerable:!0})},j0=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ax(e))!rx.call(t,r)&&r!==a&&po(t,r,{get:()=>e[r],enumerable:!(i=tx(e,r))||i.enumerable});return t};var Ht=(t,e,a)=>(a=t!=null?ex(ix(t)):{},j0(e||!t||!t.__esModule?po(a,"default",{value:t,enumerable:!0}):a,t)),An=t=>j0(po({},"__esModule",{value:!0}),t);var lo=T(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.toCommandProperties=Cr.toCommandValue=void 0;function nx(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}Cr.toCommandValue=nx;function sx(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=sx});var F0=T(Qt=>{"use strict";var ox=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]}),px=Qt&&Qt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dx=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)&&ox(e,t,a);return px(e,t),e};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.issue=Qt.issueCommand=void 0;var lx=dx(require("os")),H0=lo();function U0(t,e,a){let i=new ul(t,e,a);process.stdout.write(i.toString()+lx.EOL)}Qt.issueCommand=U0;function cx(t,e=""){U0(t,{},e)}Qt.issue=cx;var k0="::",ul=class{constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=k0+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}=${ux(r)}`)}}return e+=`${k0}${mx(this.message)}`,e}};function mx(t){return H0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function ux(t){return H0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function zn(){return co>mo.length-16&&(V0.default.randomFillSync(mo),co=0),mo.slice(co,co+=16)}var V0,mo,co,fl=ge(()=>{V0=Ht(require("crypto")),mo=new Uint8Array(256),co=mo.length});var $0,G0=ge(()=>{$0=/^(?:[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 fx(t){return typeof t=="string"&&$0.test(t)}var ci,Mn=ge(()=>{G0();ci=fx});function hx(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(!ci(a))throw TypeError("Stringified UUID is invalid");return a}var ht,mi,qn=ge(()=>{Mn();ht=[];for(let t=0;t<256;++t)ht.push((t+256).toString(16).substr(1));mi=hx});function gx(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||X0,s=t.clockseq!==void 0?t.clockseq:hl;if(n==null||s==null){let m=t.random||(t.rng||zn)();n==null&&(n=X0=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=hl=(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-gl+(p-yl)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>gl)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");gl=o,yl=p,hl=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+
`,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 w2(t,e){var a=this;Fa.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Nl({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=Ax.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}function N2(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}function Nl(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 _l=T((CM,S2)=>{S2.exports=_2()});var Or=T(Ce=>{"use strict";var Hx=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]}),Ux=Ce&&Ce.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bo=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)&&Hx(e,t,a);return Ux(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 ho=bo(require("http")),Sl=bo(require("https")),E2=bo(x2()),go=bo(_l()),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 Fx(t){let e=E2.getProxyUrl(new URL(t));return e?e.href:""}Ce.getProxyUrl=Fx;var Vx=[ma.MovedPermanently,ma.ResourceMoved,ma.SeeOther,ma.TemporaryRedirect,ma.PermanentRedirect],$x=[ma.BadGateway,ma.ServiceUnavailable,ma.GatewayTimeout],Gx=["OPTIONS","GET","DELETE","HEAD"],Xx=10,Wx=5,vo=class t extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Ce.HttpClientError=vo;var xo=class{constructor(e){this.message=e}readBody(){return Xe
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 C2(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}T2.debug(`ID token url is ${a}`);let i=yield t.getCall(a);return T2.setSecret(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};Rr.OidcClient=Dl});var zl=T(Dt=>{"use strict";var Il=Dt&&Dt.__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(Dt,"__esModule",{value:!0});Dt.summary=Dt.markdownSummary=Dt.SUMMARY_DOCS_URL=Dt.SUMMARY_ENV_VAR=void 0;var Zx=require("os"),Bl=require("fs"),{access:Jx,appendFile:eb,writeFile:tb}=Bl.promises;Dt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Dt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Al=class{constructor(){this._buffer=""}filePath(){return Il(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Dt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Dt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Jx(e,Bl.constants.R_OK|Bl.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 Il(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?tb:eb)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Il(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(Zx.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()}},O2=new Al;Dt.markdownSummary=O2;Dt.summary=O2});var R2=T(It=>{"use strict";var ab=It&&It.__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]}),ib=It&&It.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:functio
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}Z.getMultilineInput=gb;function yb(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Ml(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=yb;function vb(t,e){if(process.env.GITHUB_OUTPUT||"")return Wi.issueFileCommand("OUTPUT",Wi.prepareKeyValueMessage(t,e));process.stdout.write(B2.EOL),Zt.issueCommand("set-output",{name:t},Dr.toCommandValue(e))}Z.setOutput=vb;function xb(t){Zt.issue("echo",t?"on":"off")}Z.setCommandEcho=xb;function bb(t){process.exitCode=A2.Failure,z2(t)}Z.setFailed=bb;function wb(){return process.env.RUNNER_DEBUG==="1"}Z.isDebug=wb;function Nb(t){Zt.issueCommand("debug",{},t)}Z.debug=Nb;function z2(t,e={}){Zt.issueCommand("error",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.error=z2;function _b(t,e={}){Zt.issueCommand("warning",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.warning=_b;function Sb(t,e={}){Zt.issueCommand("notice",Dr.toCommandProperties(e),t instanceof Error?t.toString():t)}Z.notice=Sb;function Eb(t){process.stdout.write(t+B2.EOL)}Z.info=Eb;function M2(t){Zt.issue("group",t)}Z.startGroup=M2;function q2(){Zt.issue("endgroup")}Z.endGroup=q2;function Cb(t,e){return I2(this,void 0,void 0,function*(){M2(t);let a;try{a=yield e()}finally{q2()}return a})}Z.group=Cb;function Tb(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=Tb;function Pb(t){return process.env[`STATE_${t}`]||""}Z.getState=Pb;function Ob(t){return I2(this,void 0,void 0,function*(){return yield mb.OidcClient.getIDToken(t)})}Z.getIDToken=Ob;var Rb=zl();Object.defineProperty(Z,"summary",{enumerable:!0,get:function(){return Rb.summary}});var Db=zl();Object.defineProperty(Z,"markdownSummary",{enumerable:!0,get:function(){return Db.markdownSummary}});var ql=R2();Object.defineProperty(Z,"toPosixPath",{enumerable:!0,get:function(){return ql.toPosixPath}});Object.defineProperty(Z,"toWin32Path",{enumerable:!0,get:function(){return ql.toWin32Path}});Object.defineProperty(Z,"toPlatformPath",{enumerable:!0,get:function(){return ql.toPlatformPath}})});var jl=T(Q=>{"use strict";var Ib=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]}),Bb=Q&&Q.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),j2=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)&&Ib(e,t,a);return Bb(e,t),e},Ll=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())})},Bt;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 k2=j2(require("fs")),wo=j2(require("path"));Bt=k2.promises,Q.chmod=Bt.chmod,Q.copyFile=Bt.copyFile,Q.lstat=Bt.lstat,Q.mkdir=Bt.mkdir,Q.open=Bt.open,Q.readdir=Bt.readdir,Q.readlink=Bt.readlink,Q.rename=Bt.rename,Q.rm=Bt.rm,Q.rmdir=Bt.rmdir,Q.stat=Bt.stat,Q.symlink=Bt.symlink,Q.unlink=Bt.unlink;Q.IS_WINDOWS=process.platform==="win32";Q.UV_FS_O_EXLOCK=268435456;Q.READONLY=k2.constants.O_RDONLY;function Ab(t){return Ll(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=Ab;function zb(t,e=!1){return Ll(this,void 0,void 0,function*(){return(e?yield Q.stat(t):yield Q.lstat(t)).isDirectory()})}Q.isDirectory=zb;function Mb(t){if(t=Lb(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=Mb;functi
%s`,f,f,R,i);var N=R.type==="*"?Kl:R.type==="?"?Wl:"\\"+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!==To&&(K="$");var Ge=_+O+j+K+B;i=Ge}if(i!==""&&r&&(i="(?=.)"+i),C&&(i=m+i),e===To)return[i,r];if(!r)return Hw(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=kw;function kw(){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?Kl:e.dot?Iw:Bw,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Ql?a:typeof s=="string"?Uw(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;Un.sep!=="/"&&(e=e.split(Un.sep).join("/")),e=e.split(_f),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===Ql){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 Hw(t){return t.replace(/\\(.)/g,"$1")}function Uw(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Pf=T(Jt=>{"use strict";var Fw=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]}),Vw=Jt&&Jt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Tf=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)&&Fw(e,t,a);return Vw(e,t),e},$w=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Path=void 0;var Fn=Tf(require("path")),vi=Tf(Eo()),Vn=$w(require("assert")),Gw=process.platform==="win32",Yl=class{constructor(e){if(this.segments=[],typeof e=="string")if(Vn.default(e,"Parameter 'itemPath' must not be empty"),e=vi.safeTrimTrailingSeparator(e),!vi.hasRoot(e))this.segments=e.split(Fn.sep);else{let a=e,i=vi.dirname(a);for(;i!==a;){let r=Fn.basename(a);this.segments.unshift(r),a=i,i=vi.dirname(a)}this.segments.unshift(a)}else{Vn.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];Vn.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=vi.normalizeSeparators(e[a]),a===0&&vi.hasRoot(i)?(i=vi.safeTrimTrailingSeparator(i),Vn.default(i===vi.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(Vn.default(!i.includes(Fn.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Fn.sep)||Gw&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Fn.sep,e+=this.segments[i];return e}};Jt.Path=Yl});var Of=T(ea=>{"use strict";var Xw=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]}),Ww=ea&&ea.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ec=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)&&Xw(e,t,a);return Ww(e,t),e},Kw=ea&&ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ea,"__esModule",{value:!0});ea.Pattern=void 0;var Qw=ec(require("os")),$n=ec(require("path")),qt=ec(Eo()),Qi=Kw(require("assert")),Yw=Cf(),Zl=Co(),Oo=Pf(),Va=process.platform==="win32",Jl=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&&qt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new Oo.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 Oo.Path(n).segments,this.trailingSeparator=qt.normalizeSeparators(n).endsWith($n.sep),n=qt.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new Oo.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 Yw.Minimatch(n,p)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qt.normalizeSeparators(e),!e.endsWith($n.sep)&&this.isImplicitPattern===!1&&(e=`
`),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 Bf.Pattern(n));return i.searchPaths.push(...Do.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return ac(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Gn.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){ic.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 Gn.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Gn.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){ic.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};nt.DefaultGlobber=rc});var Mf=T(Ar=>{"use strict";var rN=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 nN=zf();function sN(t,e){return rN(this,void 0,void 0,function*(){return yield nN.DefaultGlobber.create(t,e)})}Ar.create=sN});var Mo=T((te,Hf)=>{te=Hf.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 Wn=256,Io=Number.MAX_SAFE_INTEGER||9007199254740991,nc=16,oN=Wn-6,zr=te.re=[],xe=te.safeRe=[],A=te.src=[],I=te.tokens={},jf=0;function se(t){I[t]=jf++}var oc="[a-zA-Z0-9-]",sc=[["\\s",1],["\\d",Wn],[oc,oN]];function Qn(t){for(var e=0;e<sc.length;e++){var a=sc[e][0],i=sc[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-]"+oc+"*";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]=oc+"+";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]+"$";s
`),{implicitDescendants:!1});try{for(var d=!0,l=r_(p.globGenerator()),c;c=yield l.next(),e=c.done,!e;){r=c.value,d=!1;try{let m=r,u=qo.relative(o,m).replace(new RegExp(`\\${qo.sep}`,"g"),"/");Jn.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=m_;function u_(t){return qr(this,void 0,void 0,function*(){return p_.promisify(xc.unlink)(t)})}we.unlinkFile=u_;function Jf(t,e=[]){return qr(this,void 0,void 0,function*(){let a="";e.push("--version"),Jn.debug(`Checking ${t} ${e.join(" ")}`);try{yield n_.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){Jn.debug(i.message)}return a=a.trim(),Jn.debug(a),a})}function f_(){return qr(this,void 0,void 0,function*(){let t=yield Jf("zstd",["--quiet"]),e=o_.clean(t);return Jn.debug(`zstd version: ${e}`),t===""?Ji.CompressionMethod.Gzip:Ji.CompressionMethod.ZstdWithoutLong})}we.getCompressionMethod=f_;function h_(t){return t===Ji.CompressionMethod.Gzip?Ji.CacheFilename.Gzip:Ji.CacheFilename.Zstd}we.getCacheFileName=h_;function g_(){return qr(this,void 0,void 0,function*(){return xc.existsSync(Ji.GnuTarPathOnWindows)?Ji.GnuTarPathOnWindows:(yield Jf("tar")).toLowerCase().includes("gnu tar")?Zf.which("tar"):""})}we.getGnuTarPathOnWindows=g_;function y_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}we.assertDefined=y_;function v_(){return new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()!=="GITHUB.COM"}we.isGhes=v_});function ts(){return Lo>jo.length-16&&(e6.default.randomFillSync(jo),Lo=0),jo.slice(Lo,Lo+=16)}var e6,jo,Lo,bc=ge(()=>{e6=Ht(require("crypto")),jo=new Uint8Array(256),Lo=jo.length});var t6,a6=ge(()=>{t6=/^(?:[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 x_(t){return typeof t=="string"&&t6.test(t)}var wi,as=ge(()=>{a6();wi=x_});function b_(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,is=ge(()=>{as();vt=[];for(let t=0;t<256;++t)vt.push((t+256).toString(16).substr(1));Ni=b_});function w_(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||i6,s=t.clockseq!==void 0?t.clockseq:wc;if(n==null||s==null){let m=t.random||(t.rng||ts)();n==null&&(n=i6=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=wc=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:_c+1,d=o-Nc+(p-_c)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Nc)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nc=o,_c=p,wc=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 i6,wc,Nc,_c,r6,n6=ge(()=>{bc();is();Nc=0,_c=0;r6=w_});function N_(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 ko,Sc=ge(()=>{as();ko=N_});function __(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=__(r)),typeof n=="string"&&(n=ko(n)),n.length!==16)throw TypeError("N
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Pc)});var Oa=T((G6,_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(G6)});var Oc=T((X6,W6)=>{(function(){var t;W6.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(X6)});var Y6=T((K6,Q6)=>{(function(){var t;Q6.exports=t=function(){function e(){}return e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(K6)});var eh=T((Z6,J6)=>{(function(){var t;J6.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(Z6)});var ih=T((th,ah)=>{(function(){var t,e,a;e=Y6(),a=eh(),ah.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(th)});var We=T((rh,nh)=>{(function(){nh.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(rh)});var Rc=T((sh,oh)=>{(function(){var t,e,a;t=We(),a=Ft(),oh.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.defin
`,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.processingInstr
`||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+=`
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(L0){O(x,"onopennamespace",{prefix:L0,uri:z.ns[L0]})});for(var Ze=0,rt=x.attribList.length;Ze<rt;Ze++){var Rt=x.attribList[Ze],Sa=Rt[0],Er=Rt[1],ft=ce(Sa,!0),Ua=ft.prefix,Jv=ft.local,q0=Ua===""?"":z.ns[Ua]||"",cl={name:Sa,value:Er,prefix:Ua,local:Jv,uri:q0};Ua&&Ua!=="xmlns"&&!q0&&(K(x,"Unbound namespace prefix: "+JSON.stringify(Ua)),cl.uri=Ua),x.tag.attributes[Sa]=cl,O(x,"onattribute",cl)}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(ft){var Ua=rt.ns[ft];O(x,"onclosenamespace",{prefix:ft,uri:Ua})})}y===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=w.TEXT}function Bn(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 z0(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 M0(x,y){var z="";return y<x.length&&(z=x.charAt(y)),z}function Zv(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=M0(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;z0(y,P);continue;case w.BEGIN_WHITESPACE:z0(y,P);continue;case w.TEXT:if(y.sawRoot&&!y.closedRoot){for(var Ee=z-1;P&&P!=="<"&&P!=="&";)P=M0(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)?
`;ue.DEFAULT_CONTENT_TYPE="application/octet-stream";ue.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=cm.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),l3.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 aE))&&(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)):tE.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"&&lm(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=pm.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=pm.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=pm.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=dm.lookup(t.name)),!a&&t.path&&(a=dm.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=dm.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.l
${QP.sanitize(this)}`}};$t.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";$t.PARSE_ERROR="PARSE_ERROR";var va=WT.createClientLogger("core-http");function c5(t,e){return t?e.httpsAgent:e.httpAgent}var vd=class extends JT.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 cd(t){return t&&typeof t.pipe=="function"}function m5(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}function YP(t){let e=new Ii;return t.forEach((a,i)=>{e.set(i,a)}),e}var xd=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 md.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new md.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 aP.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 vd(d);cd(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=YP(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(cd(u)){let h=new vd(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 md.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&r){let d=Promise.resolve();cd(n)&&(d=m5(n));let l=Promise.resolve();cd(p?.readableStreamBody)&&(l=m5(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=b1(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=c5(i,d);if(l)return l;let c=GP(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=c5(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new s5.Agent(n):r=this.keepAliveAgents.httpAgent=new n5.Agent(n),r}else return i?s5.globalAgent:n5.globalAgent}async fetch(e,a){return iP.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 ZP(t){let{requestOptions:e,tracingOptions:a}=t,r=GT.__rest(t,["requestOptions","tr
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},fd=Object.assign({},I5);fd.explicitArray=!1;var Os=Object.assign({},I5);Os.explicitArray=!1;Os.renderOpts={pretty:!1};function w1(t,e={}){var a;return Os.rootName=e.rootName,Os.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:ei,new w5.Builder(Os).buildObject(t)}function B5(t,e={}){var a;fd.explicitRoot=!!e.includeRoot,fd.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:ei;let i=new w5.Parser(fd);return new Promise((r,n)=>{t?i.parseString(t,(s,o)=>{s?n(s):r(o)}):n(new Error("Document is empty"))})}function $1(t,e){return{create:(a,i)=>new N1(a,i,t,e)}}var A5=["application/json","text/json"],z5=["application/xml","application/atom+xml"],JP={expectedContentTypes:{json:A5,xml:z5}},N1=class extends tt{constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||A5,this.xmlContentTypes=i&&i.xml||z5,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:ei}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>M5(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function eO(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 tO(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}function M5(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 rO(t,e,a,o).then(p=>{if(!tO(p))return p;let d=p.request.operationSpec;if(!d||!d.responses)return p;let l=eO(p),{error:c,shouldReturnResponse:m}=iO(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 aO(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function iO(t,e,a){var i;let r=200<=t.status&&t.status<300;if(aO(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 rO(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 B5(o,i).then(l=>(a.parsedBody=l,a)).catch(n)}return Promise.resolve(a)}var q5={enable:!0};func
`).join(""))}return this._nextPolicy.sendRequest(e)}},$5=[],G5=!1,vO=new Map;function xO(){if(!process)return;let t=ud(na.HTTPS_PROXY),e=ud(na.ALL_PROXY),a=ud(na.HTTP_PROXY);return t||e||a}function bO(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 wO(){let t=ud(na.NO_PROXY);return G5=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function X5(t){if(!t&&(t=xO(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=NO(t),r=Ma.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}function eu(t,e){return t||(t=X5()),G5||$5.push(...wO()),{create:(a,i)=>new I1(a,i,t,e?.customNoProxyList)}}function NO(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 I1=class extends tt{constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!bO(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:$5,this.customNoProxyList?void 0:vO)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function _O(t=30){return{create:(e,a)=>new B1(e,a,t)}}var B1=class extends tt{constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>SO(this,e,a))}};function SO(t,e,a){if(a.status===409){let i=EO(a.bodyAsText);if(i){let r=CO(e.url);return TO(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",_d()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}function W5(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",_d()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}function EO(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 CO(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 TO(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=W5(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 K5(t,n,i)}async function K5(t,e,a){let i=W5(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),K5(t,e,a))}function Q5(t){return{create:(e,a)=>new A1(e,a,t)}}var A1=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 tu(t,e,a,i){return{create:(r,n)=>new z1(r,n,t,e,a,i)}}var z1=class extends tt{constructor(e,a,i,r,n,s){super(e,a),this.retryCount=pr(i)?i:X1,this.retryInterval=pr(r)?r:W1,this.minRetryInterval=pr(n)?n:sO,this.maxRetryInterval=pr(s)?s:K1}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=H5(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(k5(t.retryCount,n,r,a,i))try{return await za.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 PO=3,f5=na.HttpConstants.Status
Polling from: ${a.config.operationLocation}
Operation status: ${l}
Polling status: ${s8.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let c=s(d,a);if(c!==void 0)return{response:await e(c).catch(r8({state:a,stateProxy:i,isOperationError:o})),status:l}}return{response:d,status:l}}async function l8(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 $O({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:p,options:r});if(p8({status:b,response:R,state:a,stateProxy:i,isDone:v,processResult:c,getError:m,setErrorAsResult:E}),!s8.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 c8(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}function m8(t){return t.headers.location}function u8(t){return t.headers["operation-location"]}function f8(t){return t.headers["azure-asyncoperation"]}function GO(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 h8(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=u8(e),s=f8(e),o=c8({operationLocation:n,azureAsyncOperation:s}),p=m8(e),d=a?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:GO({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 g8(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 su(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 XO(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return g8({status:a,statusCode:t.statusCode})}function WO(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 g8({status:n,statusCode:t.statusCode})}function su(t){return t===202?"running":t<300?"succeeded":"failed"}function y8({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?KO(new Date(e)):a*1e3}}function v8(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 KO(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}function x8(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 su(e.rawResponse.statusCode);case"Body":return ou(e,a);default:return"running"}}let n=r();return n==="running"&&i===void 0?"succeeded":n}async function QO(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return d8({init:async()=>{let s=await r.sendInitialRequest(),o=h8({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,re
`,rv="HTTP/1.1",ZI="AES256",JI="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",eB=["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"],tB=["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"],aB="BlobUsesCustomerSpecifiedEncryption",iB="BlobDoesNotUseCustomerSpecifiedEncryption",rB=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function nB(t){let e=M.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=oB(a),e.setPath(a),e.toString()}function sB(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=sB(t),t=JI);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 t
`)+`
`+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=c0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=cB(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 js{constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Hd(e,a,this)}computeHMACSHA256(e){return q8.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},CB="azure-storage-blob",TB="12.15.0",Hs=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=`${CB}/${TB} ${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"}},Us=class{constructor(e,a){this.url=nB(e),this.accountName=sv(e),this.pipeline=a,this.storageClientContext=new Hs(this.url,a.toServiceClientOptions()),this.isHttps=nv(dB(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.execu
`),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 OB(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 RB(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 DB(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 IB(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 BB(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:d0;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 Fs=class{constructor(e,a){let i=new Hs(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 Ms(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._containerOrBlobOperatio
`):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 $u=class t extends Us{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 Ad(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 Fd(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
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 PA(t,e,a){return kt(this,void 0,void 0,function*(){let i=new NA.URL(t),r=(0,bv.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,el.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,el.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,el.downloadCacheHttpClient)(t,e):yield(0,el.downloadCacheHttpClient)(t,e)})}Qe.downloadCache=PA;function OA(t,e,a){return kt(this,void 0,void 0,function*(){let i=x0(),r=b0(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,$i.retryTypedResponse)("reserveCache",()=>kt(this,void 0,void 0,function*(){return i.postJson(ao("caches"),n)}))})}Qe.reserveCache=OA;function xv(t,e){return`bytes ${t}-${e}/*`}function RA(t,e,a,i,r){return kt(this,void 0,void 0,function*(){Wt.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${xv(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":xv(i,r)},s=yield(0,$i.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>kt(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 DA(t,e,a,i){return kt(this,void 0,void 0,function*(){let r=tl.getArchiveFileSizeInBytes(a),n=ao(`caches/${e.toString()}`),s=v0.openSync(a,"r"),o=(0,bv.getUploadOptions)(i),p=tl.assertDefined("uploadConcurrency",o.uploadConcurrency),d=tl.assertDefined("uploadChunkSize",o.uploadChunkSize),l=[...new Array(p).keys()];Wt.debug("Awaiting all uploads");let c=0;try{yield Promise.all(l.map(()=>kt(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 RA(t,n,()=>v0.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{v0.closeSync(s)}})}function IA(t,e,a){return kt(this,void 0,void 0,function*(){let i={size:a};return yield(0,$i.retryTypedResponse)("commitCache",()=>kt(this,void 0,void 0,function*(){return t.postJson(ao(`caches/${e.toString()}`),i)}))})}function BA(t,e,a){return kt(this,void 0,void 0,function*(){let i=x0();Wt.debug("Upload cache"),yield DA(i,t,e,a),Wt.debug("Commiting cache");let r=tl.getArchiveFileSizeInBytes(e);Wt.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);let n=yield IA(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=BA});var Sv=T(_t=>{"use strict";var AA=_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]}),zA=_t&&_t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),w0=_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)&&AA(e,t,a);return zA(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 MA=jn(),il=w0(Ln()),Nv=require("fs"),Na=w0(require("path")),N0=w0(es()),Ie=Zn(),Gi=process.platform==="win32";function qA(){return pi(this,
`));let i=yield _0(a,"create");yield S0(i,t)})}_t.createTar=FA});var Ov=T(Ye=>{"use strict";var VA=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]}),$A=Ye&&Ye.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),sl=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)&&VA(e,t,a);return $A(e,t),e},Ev=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=sl(gt()),Cv=sl(require("path")),pa=sl(es()),rl=sl(wv()),nl=Sv(),di=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Ye.ValidationError=di;var io=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Ye.ReserveCacheError=io;function Tv(t){if(!t||t.length===0)throw new di("Path Validation Error: At least one directory or file path is required")}function Pv(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 GA(){return!!process.env.ACTIONS_CACHE_URL}Ye.isFeatureAvailable=GA;function XA(t,e,a,i,r=!1){return Ev(this,void 0,void 0,function*(){Tv(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)Pv(p);let s=yield pa.getCompressionMethod(),o="";try{let p=yield rl.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!p?.archiveLocation)return;if(i?.lookupOnly)return it.info("Lookup only - skipping download"),p.cacheKey;o=Cv.join(yield pa.createTempDirectory(),pa.getCacheFileName(s)),it.debug(`Archive Path: ${o}`),yield rl.downloadCache(p.archiveLocation,o,i),it.isDebug()&&(yield(0,nl.listTar)(o,s));let d=pa.getArchiveFileSizeInBytes(o);return it.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,nl.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=XA;function WA(t,e,a,i=!1){var r,n,s,o,p;return Ev(this,void 0,void 0,function*(){Tv(t),Pv(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=Cv.join(m,pa.getCacheFileName(d));it.debug(`Archive Path: ${u}`);try{yield(0,nl.createTar)(m,c,d),it.isDebug()&&(yield(0,nl.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 rl.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?v
`);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=tz;function az(){let t="/etc/lsb-release",e="/etc/os-release",a="";return ol.existsSync(t)?a=ol.readFileSync(t).toString():ol.existsSync(e)&&(a=ol.readFileSync(e).toString()),a}St._readLinuxVersionFile=az});var zv=T(da=>{"use strict";var iz=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]}),rz=da&&da.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nz=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)&&iz(e,t,a);return rz(e,t),e},Bv=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 Av=nz(gt()),T0=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 Bv(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;Av.info(n.message)}let r=this.getSleepAmount();Av.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 Bv(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};da.RetryHelper=T0});var Fv=T(re=>{"use strict";var sz=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]}),oz=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)&&sz(e,t,a);return oz(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())})},pz=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(gt()),Kt=ka(Ln()),la=ka(require("fs")),dz=ka(Iv()),no=ka(require("os")),_a=ka(require("path")),Mv=ka(Or()),li=ka(Mo()),lz=ka(require("stream")),cz=ka(require("util")),Rn=require("assert"),qv=pz(yc()),Xi=jn(),mz=zv(),ro=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};re.HTTPError=ro;var O0=process.platform==="win32",uz=process.platform==="darwin",fz="actions/tool-cache";function hz(t,e,a,i){return Pt(this,void 0,void 0,function*(){e=e||_a.join(Uv(),qv.default()),yield Kt.mkdirP(_a.dirname(e)),he.debug(`Downloading ${t}`),he.debug(`Destination ${e}`);let r=3,n=P0("TEST_DOWNLOAD_TOOL_RETRY_M
/*! Bundled license information:
sax/lib/sax.js:
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
mime-db/index.js:
(*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*)
mime-types/index.js:
(*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/