69 lines
1.1 MiB
JavaScript
Raw Normal View History

var Zy=Object.create;var js=Object.defineProperty;var ev=Object.getOwnPropertyDescriptor;var tv=Object.getOwnPropertyNames;var av=Object.getPrototypeOf,iv=Object.prototype.hasOwnProperty;var fe=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kd=(t,e)=>{for(var a in e)js(t,a,{get:e[a],enumerable:!0})},i0=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of tv(e))!iv.call(t,r)&&r!==a&&js(t,r,{get:()=>e[r],enumerable:!(i=ev(e,r))||i.enumerable});return t};var Ja=(t,e,a)=>(a=t!=null?Zy(av(t)):{},i0(e||!t||!t.__esModule?js(a,"default",{value:t,enumerable:!0}):a,t)),gn=t=>i0(js({},"__esModule",{value:!0}),t);var ks=T(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.toCommandProperties=mr.toCommandValue=void 0;function rv(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}mr.toCommandValue=rv;function nv(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}mr.toCommandProperties=nv});var o0=T(Ut=>{"use strict";var sv=Ut&&Ut.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),ov=Ut&&Ut.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pv=Ut&&Ut.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&sv(e,t,a);return ov(e,t),e};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.issue=Ut.issueCommand=void 0;var dv=pv(require("os")),n0=ks();function s0(t,e,a){let i=new Hd(t,e,a);process.stdout.write(i.toString()+dv.EOL)}Ut.issueCommand=s0;function lv(t,e=""){s0(t,{},e)}Ut.issue=lv;var r0="::",Hd=class{constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=r0+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${mv(r)}`)}}return e+=`${r0}${cv(this.message)}`,e}};function cv(t){return n0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function mv(t){return n0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function yn(){return Hs>Us.length-16&&(p0.default.randomFillSync(Us),Hs=0),Us.slice(Hs,Hs+=16)}var p0,Us,Hs,Ud=fe(()=>{p0=Ja(require("crypto")),Us=new Uint8Array(256),Hs=Us.length});var d0,l0=fe(()=>{d0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function uv(t){return typeof t=="string"&&d0.test(t)}var Za,vn=fe(()=>{l0();Za=uv});function fv(t,e=0){let a=(ut[t[e+0]]+ut[t[e+1]]+ut[t[e+2]]+ut[t[e+3]]+"-"+ut[t[e+4]]+ut[t[e+5]]+"-"+ut[t[e+6]]+ut[t[e+7]]+"-"+ut[t[e+8]]+ut[t[e+9]]+"-"+ut[t[e+10]]+ut[t[e+11]]+ut[t[e+12]]+ut[t[e+13]]+ut[t[e+14]]+ut[t[e+15]]).toLowerCase();if(!Za(a))throw TypeError("Stringified UUID is invalid");return a}var ut,ei,xn=fe(()=>{vn();ut=[];for(let t=0;t<256;++t)ut.push((t+256).toString(16).substr(1));ei=fv});function hv(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||c0,s=t.clockseq!==void 0?t.clockseq:Fd;if(n==null||s==null){let m=t.random||(t.rng||yn)();n==null&&(n=c0=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=Fd=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:$d+1,d=o-Vd+(p-$d)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Vd)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Vd=o,$d=p,Fd=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i+
`,c.message,c.stack);var m=new Error("tunneling socket could not be established, cause="+c.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}};Da.prototype.removeSocket=function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function j0(t,e){var a=this;Da.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Qd({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=Bv.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}function k0(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}function Qd(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var o=r[n];i[o]!==void 0&&(t[o]=i[o])}}return t}var ti;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ti=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:ti=function(){};fr.debug=ti});var Yd=T((jA,U0)=>{U0.exports=H0()});var bn=T(Se=>{"use strict";var kv=Se&&Se.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Hv=Se&&Se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qs=Se&&Se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&kv(e,t,a);return Hv(e,t),e},$e=Se&&Se.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Se,"__esModule",{value:!0});Se.HttpClient=Se.isHttps=Se.HttpClientResponse=Se.HttpClientError=Se.getProxyUrl=Se.MediaTypes=Se.Headers=Se.HttpCodes=void 0;var $s=Qs(require("http")),Jd=Qs(require("https")),F0=Qs(M0()),Gs=Qs(Yd()),aa;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(aa=Se.HttpCodes||(Se.HttpCodes={}));var Nt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Nt=Se.Headers||(Se.Headers={}));var ai;(function(t){t.ApplicationJson="application/json"})(ai=Se.MediaTypes||(Se.MediaTypes={}));function Uv(t){let e=F0.getProxyUrl(new URL(t));return e?e.href:""}Se.getProxyUrl=Uv;var Fv=[aa.MovedPermanently,aa.ResourceMoved,aa.SeeOther,aa.TemporaryRedirect,aa.PermanentRedirect],Vv=[aa.BadGateway,aa.ServiceUnavailable,aa.GatewayTimeout],$v=["OPTIONS","GET","DELETE","HEAD"],Gv=10,Xv=5,Ks=class t extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Se.HttpClientError=Ks;var Ws=class{constructor(e){this.message=e}readBody(){return $e
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return V0(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}$0.debug(`ID token url is ${a}`);let i=yield t.getCall(a);return $0.setSecret(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};hr.OidcClient=nl});var dl=T(Et=>{"use strict";var sl=Et&&Et.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Et,"__esModule",{value:!0});Et.summary=Et.markdownSummary=Et.SUMMARY_DOCS_URL=Et.SUMMARY_ENV_VAR=void 0;var Yv=require("os"),ol=require("fs"),{access:Jv,appendFile:Zv,writeFile:ex}=ol.promises;Et.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Et.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var pl=class{constructor(){this._buffer=""}filePath(){return sl(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Et.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Et.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Jv(e,ol.constants.R_OK|ol.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return sl(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?ex:Zv)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return sl(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(Yv.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:p,colspan:d,rowspan:l}=s,c=o?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),l&&{rowspan:l});return this.wrap(c,p,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(o).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},X0=new pl;Et.markdownSummary=X0;Et.summary=X0});var K0=T(Ct=>{"use strict";var tx=Ct&&Ct.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),ax=Ct&&Ct.__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())}J.getMultilineInput=hx;function gx(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=ll(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}J.getBooleanInput=gx;function yx(t,e){if(process.env.GITHUB_OUTPUT||"")return zi.issueFileCommand("OUTPUT",zi.prepareKeyValueMessage(t,e));process.stdout.write(Y0.EOL),Vt.issueCommand("set-output",{name:t},gr.toCommandValue(e))}J.setOutput=yx;function vx(t){Vt.issue("echo",t?"on":"off")}J.setCommandEcho=vx;function xx(t){process.exitCode=J0.Failure,Z0(t)}J.setFailed=xx;function bx(){return process.env.RUNNER_DEBUG==="1"}J.isDebug=bx;function Nx(t){Vt.issueCommand("debug",{},t)}J.debug=Nx;function Z0(t,e={}){Vt.issueCommand("error",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.error=Z0;function wx(t,e={}){Vt.issueCommand("warning",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.warning=wx;function _x(t,e={}){Vt.issueCommand("notice",gr.toCommandProperties(e),t instanceof Error?t.toString():t)}J.notice=_x;function Sx(t){process.stdout.write(t+Y0.EOL)}J.info=Sx;function e2(t){Vt.issue("group",t)}J.startGroup=e2;function t2(){Vt.issue("endgroup")}J.endGroup=t2;function Ex(t,e){return Q0(this,void 0,void 0,function*(){e2(t);let a;try{a=yield e()}finally{t2()}return a})}J.group=Ex;function Cx(t,e){if(process.env.GITHUB_STATE||"")return zi.issueFileCommand("STATE",zi.prepareKeyValueMessage(t,e));Vt.issueCommand("save-state",{name:t},gr.toCommandValue(e))}J.saveState=Cx;function Tx(t){return process.env[`STATE_${t}`]||""}J.getState=Tx;function Px(t){return Q0(this,void 0,void 0,function*(){return yield cx.OidcClient.getIDToken(t)})}J.getIDToken=Px;var Ox=dl();Object.defineProperty(J,"summary",{enumerable:!0,get:function(){return Ox.summary}});var Rx=dl();Object.defineProperty(J,"markdownSummary",{enumerable:!0,get:function(){return Rx.markdownSummary}});var cl=K0();Object.defineProperty(J,"toPosixPath",{enumerable:!0,get:function(){return cl.toPosixPath}});Object.defineProperty(J,"toWin32Path",{enumerable:!0,get:function(){return cl.toWin32Path}});Object.defineProperty(J,"toPlatformPath",{enumerable:!0,get:function(){return cl.toPlatformPath}})});var ul=T(Q=>{"use strict";var Dx=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]}),Ix=Q&&Q.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i2=Q&&Q.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Dx(e,t,a);return Ix(e,t),e},ml=Q&&Q.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})},Tt;Object.defineProperty(Q,"__esModule",{value:!0});Q.getCmdPath=Q.tryGetExecutablePath=Q.isRooted=Q.isDirectory=Q.exists=Q.READONLY=Q.UV_FS_O_EXLOCK=Q.IS_WINDOWS=Q.unlink=Q.symlink=Q.stat=Q.rmdir=Q.rm=Q.rename=Q.readlink=Q.readdir=Q.open=Q.mkdir=Q.lstat=Q.copyFile=Q.chmod=void 0;var r2=i2(require("fs")),Ys=i2(require("path"));Tt=r2.promises,Q.chmod=Tt.chmod,Q.copyFile=Tt.copyFile,Q.lstat=Tt.lstat,Q.mkdir=Tt.mkdir,Q.open=Tt.open,Q.readdir=Tt.readdir,Q.readlink=Tt.readlink,Q.rename=Tt.rename,Q.rm=Tt.rm,Q.rmdir=Tt.rmdir,Q.stat=Tt.stat,Q.symlink=Tt.symlink,Q.unlink=Tt.unlink;Q.IS_WINDOWS=process.platform==="win32";Q.UV_FS_O_EXLOCK=268435456;Q.READONLY=r2.constants.O_RDONLY;function Bx(t){return ml(this,void 0,void 0,function*(){try{yield Q.stat(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}Q.exists=Bx;function Ax(t,e=!1){return ml(this,void 0,void 0,function*(){return(e?yield Q.stat(t):yield Q.lstat(t)).isDirectory()})}Q.isDirectory=Ax;function zx(t){if(t=Mx(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=zx;functi
%s`,f,f,R,i);var w=R.type==="*"?Sl:R.type==="?"?_l:"\\"+R.type;r=!0,i=i.slice(0,R.reStart)+w+"\\("+f}h(),n&&(i+="\\\\");var C=!1;switch(i.charAt(0)){case"[":case".":case"(":C=!0}for(var N=o.length-1;N>-1;N--){var D=o[N],_=i.slice(0,D.reStart),O=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);B+=j;var re=_.split("(").length-1,ce=j;for(v=0;v<re;v++)ce=ce.replace(/\)[+*?]?/,"");j=ce;var W="";j===""&&e!==ro&&(W="$");var Ve=_+O+j+W+B;i=Ve}if(i!==""&&r&&(i="(?=.)"+i),C&&(i=m+i),e===ro)return[i,r];if(!r)return kb(t);var le=a.nocase?"i":"";try{var ta=new RegExp("^"+i+"$",le)}catch{return new RegExp("$.")}return ta._glob=t,ta._src=i,ta}zt.makeRe=function(t,e){return new ft(t,e||{}).makeRe()};ft.prototype.makeRe=jb;function jb(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Sl:e.dot?Db:Ib,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===El?a:typeof s=="string"?Hb(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}zt.match=function(t,e,a){a=a||{};var i=new ft(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};ft.prototype.match=function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;_n.sep!=="/"&&(e=e.split(_n.sep).join("/")),e=e.split(k2),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var o=r[s],p=e;i.matchBase&&o.length===1&&(p=[n]);var d=this.matchOne(p,o,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};ft.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,o=e.length;r<s&&n<o;r++,n++){this.debug("matchOne loop");var p=e[n],d=t[r];if(this.debug(e,p,d),p===!1)return!1;if(p===El){this.debug("GLOBSTAR",[e,p,d]);var l=r,c=n+1;if(c===o){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;l<s;){var m=t[l];if(this.debug(`
globstar while`,t,l,e,c,m),this.matchOne(t.slice(l),e.slice(c),a))return this.debug("globstar found match!",l,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,l,e,c);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(a&&(this.debug(`
>>> no match, partial?`,t,l,e,c),l===s))}var u;if(typeof p=="string"?(u=d===p,this.debug("string match",p,d,u)):(u=d.match(p),this.debug("pattern match",p,d,u)),!u)return!1}if(r===s&&n===o)return!0;if(r===s)return a;if(n===o)return r===s-1&&t[r]==="";throw new Error("wtf?")};function kb(t){return t.replace(/\\(.)/g,"$1")}function Hb(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var $2=T($t=>{"use strict";var Ub=$t&&$t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Fb=$t&&$t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),V2=$t&&$t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Ub(e,t,a);return Fb(e,t),e},Vb=$t&&$t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($t,"__esModule",{value:!0});$t.Path=void 0;var Sn=V2(require("path")),si=V2(ao()),En=Vb(require("assert")),$b=process.platform==="win32",Cl=class{constructor(e){if(this.segments=[],typeof e=="string")if(En.default(e,"Parameter 'itemPath' must not be empty"),e=si.safeTrimTrailingSeparator(e),!si.hasRoot(e))this.segments=e.split(Sn.sep);else{let a=e,i=si.dirname(a);for(;i!==a;){let r=Sn.basename(a);this.segments.unshift(r),a=i,i=si.dirname(a)}this.segments.unshift(a)}else{En.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];En.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=si.normalizeSeparators(e[a]),a===0&&si.hasRoot(i)?(i=si.safeTrimTrailingSeparator(i),En.default(i===si.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(En.default(!i.includes(Sn.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Sn.sep)||$b&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Sn.sep,e+=this.segments[i];return e}};$t.Path=Cl});var G2=T(Gt=>{"use strict";var Gb=Gt&&Gt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Xb=Gt&&Gt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ol=Gt&&Gt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Gb(e,t,a);return Xb(e,t),e},Kb=Gt&&Gt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Pattern=void 0;var Wb=Ol(require("os")),Cn=Ol(require("path")),Dt=Ol(ao()),Mi=Kb(require("assert")),Qb=F2(),Tl=io(),so=$2(),Ia=process.platform==="win32",Pl=class t{constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Mi.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Mi.default(d&&Dt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new so.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new so.Path(n).segments,this.trailingSeparator=Dt.normalizeSeparators(n).endsWith(Cn.sep),n=Dt.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new so.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),Ia?"i":""),this.isImplicitPattern=a;let p={dot:!0,nobrace:!0,nocase:Ia,nocomment:!0,noext:!0,nonegate:!0};n=Ia?n.replace(/\\/g,"/"):n,this.minimatch=new Qb.Minimatch(n,p)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Dt.normalizeSeparators(e),!e.endsWith(Cn.sep)&&this.isImplicitPattern===!1&&(e=`
`),e=e.replace(/\r/g,`
`));let r=e.split(`
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new Q2.Pattern(n));return i.searchPaths.push(...po.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Dl(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Tn.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){Il.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield Tn.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Tn.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){Il.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};it.DefaultGlobber=Bl});var Z2=T(xr=>{"use strict";var iN=xr&&xr.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(xr,"__esModule",{value:!0});xr.create=void 0;var rN=J2();function nN(t,e){return iN(this,void 0,void 0,function*(){return yield rN.DefaultGlobber.create(t,e)})}xr.create=nN});var sf=T((te,nf)=>{te=nf.exports=ie;var ve;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?ve=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:ve=function(){};te.SEMVER_SPEC_VERSION="2.0.0";var On=256,lo=Number.MAX_SAFE_INTEGER||9007199254740991,Al=16,sN=On-6,br=te.re=[],ye=te.safeRe=[],A=te.src=[],I=te.tokens={},af=0;function ne(t){I[t]=af++}var ql="[a-zA-Z0-9-]",zl=[["\\s",1],["\\d",On],[ql,sN]];function Dn(t){for(var e=0;e<zl.length;e++){var a=zl[e][0],i=zl[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}ne("NUMERICIDENTIFIER");A[I.NUMERICIDENTIFIER]="0|[1-9]\\d*";ne("NUMERICIDENTIFIERLOOSE");A[I.NUMERICIDENTIFIERLOOSE]="\\d+";ne("NONNUMERICIDENTIFIER");A[I.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ql+"*";ne("MAINVERSION");A[I.MAINVERSION]="("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")\\.("+A[I.NUMERICIDENTIFIER]+")";ne("MAINVERSIONLOOSE");A[I.MAINVERSIONLOOSE]="("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")\\.("+A[I.NUMERICIDENTIFIERLOOSE]+")";ne("PRERELEASEIDENTIFIER");A[I.PRERELEASEIDENTIFIER]="(?:"+A[I.NUMERICIDENTIFIER]+"|"+A[I.NONNUMERICIDENTIFIER]+")";ne("PRERELEASEIDENTIFIERLOOSE");A[I.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[I.NUMERICIDENTIFIERLOOSE]+"|"+A[I.NONNUMERICIDENTIFIER]+")";ne("PRERELEASE");A[I.PRERELEASE]="(?:-("+A[I.PRERELEASEIDENTIFIER]+"(?:\\."+A[I.PRERELEASEIDENTIFIER]+")*))";ne("PRERELEASELOOSE");A[I.PRERELEASELOOSE]="(?:-?("+A[I.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[I.PRERELEASEIDENTIFIERLOOSE]+")*))";ne("BUILDIDENTIFIER");A[I.BUILDIDENTIFIER]=ql+"+";ne("BUILD");A[I.BUILD]="(?:\\+("+A[I.BUILDIDENTIFIER]+"(?:\\."+A[I.BUILDIDENTIFIER]+")*))";ne("FULL");ne("FULLPLAIN");A[I.FULLPLAIN]="v?"+A[I.MAINVERSION]+A[I.PRERELEASE]+"?"+A[I.BUILD]+"?";A[I.FULL]="^"+A[I.FULLPLAIN]+"$";ne("LOOSEPLAIN");A[I.LOOSEPLAIN]="[v=\\s]*"+A[I.MAINVERSIONLOOSE]+A[I.PRERELEASELOOSE]+"?"+A[I.BUILD]+"?";ne("LOOSE");A[I.LOOSE]="^"+A[I.LOOSEPLAIN]+"$";ne("GTLT");A[I.GTLT]="((?:<|>)?=?)";ne("XRANGEIDENTIFIERLOOSE");A[I.XRANGEIDENTIFIERLOOSE]=A[I.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";ne("XRANGEIDENTIFIER");A[I.XRANGEIDENTIFIER]=A[I.NUMERICIDENTIFIER]+"|x|X|\\*";ne("XRANGEPLAIN");A[I.XRANGEPLAIN]="[v=\\s]*("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:\\.("+A[I.XRANGEIDENTIFIER]+")(?:"+A[I.PRERELEASE]+")?"+A[I.BUILD]+"?)?)?";ne("XRANGEPLAINLOOSE");A[I.XRANGEPLAINLOOSE]="[v=\\s]*("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[I.XRANGEIDENTIFIERLOOSE]+")(?:"+A[I.PRERELEASELOOSE]+")?"+A[I.BUILD]+"?)?)?";ne("XRANGE");A[I.XRANGE]="^"+A[I.GTLT]+"\\s*"+A[I.XRANGEPLAIN]+"$";n
`),{implicitDescendants:!1});try{for(var d=!0,l=iw(p.globGenerator()),c;c=yield l.next(),e=c.done,!e;){r=c.value,d=!1;try{let m=r,u=fo.relative(o,m).replace(new RegExp(`\\${fo.sep}`,"g"),"/");An.debug(`Matched: ${u}`),u===""?s.push("."):s.push(`${u}`)}finally{d=!0}}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(a)throw a.error}}return s})}xe.resolvePaths=cw;function mw(t){return wr(this,void 0,void 0,function*(){return ow.promisify(Xl.unlink)(t)})}xe.unlinkFile=mw;function xf(t,e=[]){return wr(this,void 0,void 0,function*(){let a="";e.push("--version"),An.debug(`Checking ${t} ${e.join(" ")}`);try{yield rw.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){An.debug(i.message)}return a=a.trim(),An.debug(a),a})}function uw(){return wr(this,void 0,void 0,function*(){let t=yield xf("zstd",["--quiet"]),e=sw.clean(t);return An.debug(`zstd version: ${e}`),t===""?ki.CompressionMethod.Gzip:ki.CompressionMethod.ZstdWithoutLong})}xe.getCompressionMethod=uw;function fw(t){return t===ki.CompressionMethod.Gzip?ki.CacheFilename.Gzip:ki.CacheFilename.Zstd}xe.getCacheFileName=fw;function hw(){return wr(this,void 0,void 0,function*(){return Xl.existsSync(ki.GnuTarPathOnWindows)?ki.GnuTarPathOnWindows:(yield xf("tar")).toLowerCase().includes("gnu tar")?vf.which("tar"):""})}xe.getGnuTarPathOnWindows=hw;function gw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}xe.assertDefined=gw;function yw(){return new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()!=="GITHUB.COM"}xe.isGhes=yw});function qn(){return ho>go.length-16&&(bf.default.randomFillSync(go),ho=0),go.slice(ho,ho+=16)}var bf,go,ho,Kl=fe(()=>{bf=Ja(require("crypto")),go=new Uint8Array(256),ho=go.length});var Nf,wf=fe(()=>{Nf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function vw(t){return typeof t=="string"&&Nf.test(t)}var di,Mn=fe(()=>{wf();di=vw});function xw(t,e=0){let a=(ht[t[e+0]]+ht[t[e+1]]+ht[t[e+2]]+ht[t[e+3]]+"-"+ht[t[e+4]]+ht[t[e+5]]+"-"+ht[t[e+6]]+ht[t[e+7]]+"-"+ht[t[e+8]]+ht[t[e+9]]+"-"+ht[t[e+10]]+ht[t[e+11]]+ht[t[e+12]]+ht[t[e+13]]+ht[t[e+14]]+ht[t[e+15]]).toLowerCase();if(!di(a))throw TypeError("Stringified UUID is invalid");return a}var ht,li,Ln=fe(()=>{Mn();ht=[];for(let t=0;t<256;++t)ht.push((t+256).toString(16).substr(1));li=xw});function bw(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||_f,s=t.clockseq!==void 0?t.clockseq:Wl;if(n==null||s==null){let m=t.random||(t.rng||qn)();n==null&&(n=_f=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=Wl=(m[6]<<8|m[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),p=t.nsecs!==void 0?t.nsecs:Yl+1,d=o-Ql+(p-Yl)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||o>Ql)&&t.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ql=o,Yl=p,Wl=s,o+=122192928e5;let l=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;let c=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||li(r)}var _f,Wl,Ql,Yl,Sf,Ef=fe(()=>{Kl();Ln();Ql=0,Yl=0;Sf=bw});function Nw(t){if(!di(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var yo,Jl=fe(()=>{Mn();yo=Nw});function ww(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function vo(t,e,a){function i(r,n,s,o){if(typeof r=="string"&&(r=ww(r)),typeof n=="string"&&(n=yo(n)),n.length!==16)throw TypeError("N
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(ac)});var xa=T((m6,ci)=>{(function(){var t,e,a,i,r,n,s,o=[].slice,p={}.hasOwnProperty;t=function(){var d,l,c,m,u,h;if(h=arguments[0],u=2<=arguments.length?o.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,c=u.length;d<c;d++)if(m=u[d],m!=null)for(l in m)p.call(m,l)&&(h[l]=m[l]);return h},r=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var l;return!!d&&((l=typeof d)=="function"||l==="object")},a=function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},i=function(d){var l;if(a(d))return!d.length;for(l in d)if(p.call(d,l))return!1;return!0},s=function(d){var l,c;return n(d)&&(c=Object.getPrototypeOf(d))&&(l=c.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(d){return r(d.valueOf)?d.valueOf():d},ci.exports.assign=t,ci.exports.isFunction=r,ci.exports.isObject=n,ci.exports.isArray=a,ci.exports.isEmpty=i,ci.exports.isPlainObject=s,ci.exports.getValue=e}).call(m6)});var ic=T((u6,f6)=>{(function(){var t;f6.exports=t=function(){function e(){}return e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(u6)});var y6=T((h6,g6)=>{(function(){var t;g6.exports=t=function(){function e(){}return e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(h6)});var b6=T((v6,x6)=>{(function(){var t;x6.exports=t=function(){function e(a){this.arr=a||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(v6)});var _6=T((N6,w6)=>{(function(){var t,e,a;e=y6(),a=b6(),w6.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(N6)});var Ge=T((S6,E6)=>{(function(){E6.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(S6)});var rc=T((C6,T6)=>{(function(){var t,e,a;t=Ge(),a=qt(),T6.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defin
`,g.offset=(C=b.offset)!=null?C:0,g.dontPrettyTextNodes=(N=(D=b.dontPrettyTextNodes)!=null?D:b.dontprettytextnodes)!=null?N:0,g.spaceBeforeSlash=(_=(O=b.spaceBeforeSlash)!=null?O:b.spacebeforeslash)!=null?_:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=e.None,g},R.prototype.indent=function(b,g,f){var w;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(w=(f||0)+g.offset+1,w>0)?new Array(w).join(g.indent):""},R.prototype.endline=function(b,g,f){return!g.pretty||g.suppressPrettyCount?"":g.newline},R.prototype.attribute=function(b,g,f){var w;return this.openAttribute(b,g,f),w=" "+b.name+'="'+b.value+'"',this.closeAttribute(b,g,f),w},R.prototype.cdata=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<![CDATA[",g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+="]]>"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.comment=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<!-- ",g.state=e.InsideTag,w+=b.value,g.state=e.CloseTag,w+=" -->"+this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.declaration=function(b,g,f){var w;return this.openNode(b,g,f),g.state=e.OpenTag,w=this.indent(b,g,f)+"<?xml",g.state=e.InsideTag,w+=' version="'+b.version+'"',b.encoding!=null&&(w+=' encoding="'+b.encoding+'"'),b.standalone!=null&&(w+=' standalone="'+b.standalone+'"'),g.state=e.CloseTag,w+=g.spaceBeforeSlash+"?>",w+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),w},R.prototype.docType=function(b,g,f){var w,C,N,D,_;if(f||(f=0),this.openNode(b,g,f),g.state=e.OpenTag,D=this.indent(b,g,f),D+="<!DOCTYPE "+b.root().name,b.pubID&&b.sysID?D+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(D+=' SYSTEM "'+b.sysID+'"'),b.children.length>0){for(D+=" [",D+=this.endline(b,g,f),g.state=e.InsideTag,_=b.children,C=0,N=_.length;C<N;C++)w=_[C],D+=this.writeChildNode(w,g,f+1);g.state=e.CloseTag,D+="]"}return g.state=e.CloseTag,D+=g.spaceBeforeSlash+">",D+=this.endline(b,g,f),g.state=e.None,this.closeNode(b,g,f),D},R.prototype.element=function(b,g,f){var w,C,N,D,_,O,B,j,re,ce,W,Ve,le,ta;f||(f=0),ce=!1,W="",this.openNode(b,g,f),g.state=e.OpenTag,W+=this.indent(b,g,f)+"<"+b.name,Ve=b.attribs;for(re in Ve)S.call(Ve,re)&&(w=Ve[re],W+=this.attribute(w,g,f));if(N=b.children.length,D=N===0?null:b.children[0],N===0||b.children.every(function(_t){return(_t.type===t.Text||_t.type===t.Raw)&&_t.value===""}))g.allowEmpty?(W+=">",g.state=e.CloseTag,W+="</"+b.name+">"+this.endline(b,g,f)):(g.state=e.CloseTag,W+=g.spaceBeforeSlash+"/>"+this.endline(b,g,f));else if(g.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)W+=">",g.state=e.InsideTag,g.suppressPrettyCount++,ce=!0,W+=this.writeChildNode(D,g,f+1),g.suppressPrettyCount--,ce=!1,g.state=e.CloseTag,W+="</"+b.name+">"+this.endline(b,g,f);else{if(g.dontPrettyTextNodes){for(le=b.children,_=0,B=le.length;_<B;_++)if(C=le[_],(C.type===t.Text||C.type===t.Raw)&&C.value!=null){g.suppressPrettyCount++,ce=!0;break}}for(W+=">"+this.endline(b,g,f),g.state=e.InsideTag,ta=b.children,O=0,j=ta.length;O<j;O++)C=ta[O],W+=this.writeChildNode(C,g,f+1);g.state=e.CloseTag,W+=this.indent(b,g,f)+"</"+b.name+">",ce&&g.suppressPrettyCount--,W+=this.endline(b,g,f),g.state=e.None}return this.closeNode(b,g,f),W},R.prototype.writeChildNode=function(b,g,f){switch(b.type){case t.CData:return this.cdata(b,g,f);case t.Comment:return this.comment(b,g,f);case t.Element:return this.element(b,g,f);case t.Raw:return this.raw(b,g,f);case t.Text:return this.text(b,g,f);case t.ProcessingInstruction:return this.processingInstruction(b,g,f);case t.Dummy:return"";case t.Declaration:return this.declaration(b,g,f);case t.DocType:return this.docType(b,g,f);case t.AttributeDeclaration:return this.dtdAttList(b,g,f);case t.ElementDeclaration:return this.dtdElement(b,g,f);case t.EntityDeclaration:return this.dtdEntity(b,g,f);case t.NotationDeclaration:return this.dtdNotation(b,g,f);default:throw new Error("Unknown XML node type: "+b.constructor.name)}},R.prototype.processingInstr
`||x==="\r"||x===" "}function g(x){return x==='"'||x==="'"}function f(x){return x===">"||b(x)}function w(x,y){return x.test(y)}function C(x,y){return!w(x,y)}var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var y=t.ENTITIES[x],z=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[x]=z});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function _(x,y,z){x[y]&&x[y](z)}function O(x,y,z){x.textNode&&B(x),_(x,y,z)}function B(x){x.textNode=j(x.opt,x.textNode),x.textNode&&_(x,"ontext",x.textNode),x.textNode=""}function j(x,y){return x.trim&&(y=y.trim()),x.normalize&&(y=y.replace(/\s+/g," ")),y}function re(x,y){return B(x),x.trackPosition&&(y+=`
Line: `+x.line+`
Column: `+x.column+`
Char: `+x.c),y=new Error(y),x.error=y,_(x,"onerror",y),x}function ce(x){return x.sawRoot&&!x.closedRoot&&W(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&re(x,"Unexpected end"),B(x),x.c="",x.closed=!0,_(x,"onend"),a.call(x,x.strict,x.opt),x}function W(x,y){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&re(x,y)}function Ve(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var y=x.tags[x.tags.length-1]||x,z=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(z.ns=y.ns),x.attribList.length=0,O(x,"onopentagstart",z)}function le(x,y){var z=x.indexOf(":"),P=z<0?["",x]:x.split(":"),_e=P[0],Qe=P[1];return y&&x==="xmlns"&&(_e="xmlns",Qe=""),{prefix:_e,local:Qe}}function ta(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var y=le(x.attribName,!0),z=y.prefix,P=y.local;if(z==="xmlns")if(P==="xml"&&x.attribValue!==m)W(x,"xml: prefix must be bound to "+m+`
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==u)W(x,"xmlns: prefix must be bound to "+u+`
Actual: `+x.attribValue);else{var _e=x.tag,Qe=x.tags[x.tags.length-1]||x;_e.ns===Qe.ns&&(_e.ns=Object.create(Qe.ns)),_e.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,O(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}function _t(x,y){if(x.opt.xmlns){var z=x.tag,P=le(x.tagName);z.prefix=P.prefix,z.local=P.local,z.uri=z.ns[P.prefix]||"",z.prefix&&!z.uri&&(W(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),z.uri=P.prefix);var _e=x.tags[x.tags.length-1]||x;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(a0){O(x,"onopennamespace",{prefix:a0,uri:z.ns[a0]})});for(var Qe=0,at=x.attribList.length;Qe<at;Qe++){var St=x.attribList[Qe],fa=St[0],cr=St[1],mt=le(fa,!0),Ra=mt.prefix,Jy=mt.local,t0=Ra===""?"":z.ns[Ra]||"",jd={name:fa,value:cr,prefix:Ra,local:Jy,uri:t0};Ra&&Ra!=="xmlns"&&!t0&&(W(x,"Unbound namespace prefix: "+JSON.stringify(Ra)),jd.uri=Ra),x.tag.attributes[fa]=jd,O(x,"onattribute",jd)}x.attribList.length=0}x.tag.isSelfClosing=!!y,x.sawRoot=!0,x.tags.push(x.tag),O(x,"onopentag",x.tag),y||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}function lr(x){if(!x.tagName){W(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}O(x,"onscript",x.script),x.script=""}var y=x.tags.length,z=x.tagName;x.strict||(z=z[x.looseCase]());for(var P=z;y--;){var _e=x.tags[y];if(_e.name!==P)W(x,"Unexpected close tag");else break}if(y<0){W(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=z;for(var Qe=x.tags.length;Qe-- >y;){var at=x.tag=x.tags.pop();x.tagName=x.tag.name,O(x,"onclosetag",x.tagName);var St={};for(var fa in at.ns)St[fa]=at.ns[fa];var cr=x.tags[x.tags.length-1]||x;x.opt.xmlns&&at.ns!==cr.ns&&Object.keys(at.ns).forEach(function(mt){var Ra=at.ns[mt];O(x,"onclosenamespace",{prefix:mt,uri:Ra})})}y===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}function hn(x){var y=x.entity,z=y.toLowerCase(),P,_e="";return x.ENTITIES[y]?x.ENTITIES[y]:x.ENTITIES[z]?x.ENTITIES[z]:(y=z,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),P=parseInt(y,16),_e=P.toString(16)):(y=y.slice(1),P=parseInt(y,10),_e=P.toString(10))),y=y.replace(/^0+/,""),isNaN(P)||_e.toLowerCase()!==y?(W(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}function Zu(x,y){y==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):b(y)||(W(x,"Non-whitespace before first tag."),x.textNode=y,x.state=N.TEXT)}function e0(x,y){var z="";return y<x.length&&(z=x.charAt(y)),z}function Yy(x){var y=this;if(this.error)throw this.error;if(y.closed)return re(y,"Cannot write after close. Assign an onready handler.");if(x===null)return ce(y);typeof x=="object"&&(x=x.toString());for(var z=0,P="";P=e0(x,z++),y.c=P,!!P;)switch(y.trackPosition&&(y.position++,P===`
`?(y.line++,y.column=0):y.column++),y.state){case N.BEGIN:if(y.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;Zu(y,P);continue;case N.BEGIN_WHITESPACE:Zu(y,P);continue;case N.TEXT:if(y.sawRoot&&!y.closedRoot){for(var _e=z-1;P&&P!=="<"&&P!=="&";)P=e0(x,z++),P&&y.trackPosition&&(y.position++,P===`
`?(y.line++,y.column=0):y.column++);y.textNode+=x.substring(_e,z-1)}P==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=N.OPEN_WAKA,y.startTagPosition=y.position):(!b(P)&&(!y.sawRoot||y.closedRoot)&&W(y,"Text data outside of root node."),P==="&"?y.state=N.TEXT_ENTITY:y.textNode+=P);continue;case N.SCRIPT:P==="<"?y.state=N.SCRIPT_ENDING:y.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?y.state=N.CLOSE_TAG:(y.script+="<"+P,y.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")y.state=N.SGML_DECL,y.sgmlDecl="";else if(!b(P))if(w(v,P))y.state=N.OPEN_TAG,y.tagName=P;else if(P==="/")y.state=N.CLOSE_TAG,y.tagName="";else if(P==="?")y.state=N.PROC_INST,y.procInstName=y.procInstBody="";else{if(W(y,"Unencoded <"),y.startTagPosition+1<y.position){var Qe=y.position-y.startTagPosition;P=new Array(Qe).join(" ")+P}y.textNode+="<"+P,y.state=N.TEXT}continue;case N.SGML_DECL:(y.sgmlDecl+P).toUpperCase()===l?(O(y,"onopencdata"),y.state=N.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+P==="--"?(y.state=N.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+P).toUpperCase()===c?(y.state=N.DOCTYPE,(y.doctype||y.sawRoot)&&W(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):P===">"?(O(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=N.TEXT):(g(P)&&(y.state=N.SGML_DECL_QUOTED),y.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===y.q&&(y.state=N.SGML_DECL,y.q=""),y.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(y.state=N.TEXT,O(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=P,P==="["?y.state=N.DOCTYPE_DTD:g(P)&&(y.state=N.DOCTYPE_QUOTED,y.q=P));continue;case N.DOCTYPE_QUOTED:y.doctype+=P,P===y.q&&(y.q="",y.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:y.doctype+=P,P==="]"?y.state=N.DOCTYPE:g(P)&&(y.state=N.DOCTYPE_DTD_QUOTED,y.q=P);continue;case N.DOCTYPE_DTD_QUOTED:y.doctype+=P,P===y.q&&(y.state=N.DOCTYPE_DTD,y.q="");continue;case N.COMMENT:P==="-"?y.state=N.COMMENT_ENDING:y.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(y.state=N.COMMENT_ENDED,y.comment=j(y.opt,y.comment),y.comment&&O(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+P,y.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(W(y,"Malformed comment"),y.comment+="--"+P,y.state=N.COMMENT):y.state=N.TEXT;continue;case N.CDATA:P==="]"?y.state=N.CDATA_ENDING:y.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?y.state=N.CDATA_ENDING_2:(y.cdata+="]"+P,y.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(y.cdata&&O(y,"oncdata",y.cdata),O(y,"onclosecdata"),y.cdata="",y.state=N.TEXT):P==="]"?y.cdata+="]":(y.cdata+="]]"+P,y.state=N.CDATA);continue;case N.PROC_INST:P==="?"?y.state=N.PROC_INST_ENDING:b(P)?y.state=N.PROC_INST_BODY:y.procInstName+=P;continue;case N.PROC_INST_BODY:if(!y.procInstBody&&b(P))continue;P==="?"?y.state=N.PROC_INST_ENDING:y.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(O(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=N.TEXT):(y.procInstBody+="?"+P,y.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:w(E,P)?y.tagName+=P:(Ve(y),P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:(b(P)||W(y,"Invalid character in tag name"),y.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(_t(y,!0),lr(y)):(W(y,"Forward-slash in opening tag not followed by >"),y.state=N.ATTRIB);continue;case N.ATTRIB:if(b(P))continue;P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:w(v,P)?(y.attribName=P,y.attribValue="",y.state=N.ATTRIB_NAME):W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?y.state=N.ATTRIB_VALUE:P===">"?(W(y,"Attribute without value"),y.attribValue=y.attribName,ta(y),_t(y)):b(P)?y.state=N.ATTRIB_NAME_SAW_WHITE:w(E,P)?y.attribName+=P:W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")y.state=N.ATTRIB_VALUE;else{if(b(P))continue;W(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",O(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",P===">"?_t(y):w(v,P)?(y.attribName=P,y.state=N.ATTRIB_NAME):(W(y,"Invalid attribute name"),y.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(b(P))continue;g(P)?
`;me.DEFAULT_CONTENT_TYPE="application/octet-stream";me.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=jc.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Rh.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};me.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+me.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof tS))&&(a.knownLength||this._valuesToMeasure.push(e))};me.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):eS.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};me.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&Lc(s,a.header);var o;for(var p in s)s.hasOwnProperty(p)&&(o=s[p],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=p+": "+o.join("; ")+me.LINE_BREAK)));return"--"+this.getBoundary()+me.LINE_BREAK+n+me.LINE_BREAK};me.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=qc.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=qc.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=qc.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};me.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=Mc.lookup(t.name)),!a&&t.path&&(a=Mc.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=Mc.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=me.DEFAULT_CONTENT_TYPE),a};me.prototype._multiPartFooter=function(){return function(t){var e=me.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};me.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+me.LINE_BREAK};me.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};me.prototype.setBoundary=function(t){this._boundary=t};me.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};me.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(me.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};me.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};me.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};me.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};me.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.l
${WT.sanitize(this)}`}};Lt.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";Lt.PARSE_ERROR="PARSE_ERROR";var da=XC.createClientLogger("core-http");function D9(t,e){return t?e.httpsAgent:e.httpAgent}var Wp=class extends JC.Transform{constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Up(t){return t&&typeof t.pipe=="function"}function I9(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}function QT(t){let e=new bi;return t.forEach((a,i)=>{e.set(i,a)}),e}var Qp=class{constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Fp.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fp.AbortError("The operation was aborted.");r=d=>{d.type==="abort"&&i.abort()},e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,l=new tT.default,c=(u,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?l.append(u,h.value,h.options):l.append(u,h)};for(let u of Object.keys(d)){let h=d[u];if(Array.isArray(h))for(let v=0;v<h.length;v++)c(u,h[v]);else c(u,h)}e.body=l,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof l.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${l.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,l=new Wp(d);Up(n)?n.pipe(l):l.end(n),n=l}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),p;try{let d=await this.fetch(e.url,o),l=QT(d.headers),c=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;p={headers:l,request:e,status:d.status,readableStreamBody:c?d.body:void 0,bodyAsText:c?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let u=d.body||void 0;if(Up(u)){let h=new Wp(m);u.pipe(h),p.readableStreamBody=h}else{let h=parseInt(l.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(p),p}catch(d){let l=d;throw l.code==="ENOTFOUND"?new Lt(l.message,Lt.REQUEST_SEND_ERROR,void 0,e):l.type==="aborted"?new Fp.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&r){let d=Promise.resolve();Up(n)&&(d=I9(n));let l=Promise.resolve();Up(p?.readableStreamBody)&&(l=I9(p.readableStreamBody,i)),Promise.all([d,l]).then(()=>{var c;(c=e.abortSignal)===null||c===void 0||c.removeEventListener("abort",r)}).catch(c=>{da.warning("Error when cleaning up abortListener on httpRequest",c)})}}}getOrCreateAgent(e){var a;let i=Km(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:o}=e.proxySettings,p=`${r}:${n}:${s}:${o}`,d=(a=this.proxyAgentMap.get(p))!==null&&a!==void 0?a:{},l=D9(i,d);if(l)return l;let c=$T(e.url,e.proxySettings,e.headers);return l=c.agent,c.isHttps?d.httpsAgent=c.agent:d.httpAgent=c.agent,this.proxyAgentMap.set(p,d),l}else if(e.keepAlive){let r=D9(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new C9.Agent(n):r=this.keepAliveAgents.httpAgent=new E9.Agent(n),r}else return i?C9.globalAgent:E9.globalAgent}async fetch(e,a){return aT.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 YT(t){let{requestOptions:e,tracingOptions:a}=t,r=$C.__rest(t,["requestOptions","tr
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},$p=Object.assign({},J9);$p.explicitArray=!1;var ls=Object.assign({},J9);ls.explicitArray=!1;ls.renderOpts={pretty:!1};function Wm(t,e={}){var a;return ls.rootName=e.rootName,ls.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Ua,new H9.Builder(ls).buildObject(t)}function Z9(t,e={}){var a;$p.explicitRoot=!!e.includeRoot,$p.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Ua;let i=new H9.Parser($p);return new Promise((r,n)=>{t?i.parseString(t,(s,o)=>{s?n(s):r(o)}):n(new Error("Document is empty"))})}function x1(t,e){return{create:(a,i)=>new Qm(a,i,t,e)}}var e5=["application/json","text/json"],t5=["application/xml","application/atom+xml"],JT={expectedContentTypes:{json:e5,xml:t5}},Qm=class extends Ze{constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||e5,this.xmlContentTypes=i&&i.xml||t5,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Ua}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>a5(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function ZT(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 eP(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}function a5(t,e,a,i={}){var r,n,s;let o={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Ua};return iP(t,e,a,o).then(p=>{if(!eP(p))return p;let d=p.request.operationSpec;if(!d||!d.responses)return p;let l=ZT(p),{error:c,shouldReturnResponse:m}=aP(p,d,l);if(c)throw c;if(m)return p;if(l){if(l.bodyMapper){let u=p.parsedBody;d.isXML&&l.bodyMapper.type.name===Qi.Sequence&&(u=typeof u=="object"?u[l.bodyMapper.xmlElementName]:[]);try{p.parsedBody=d.serializer.deserialize(l.bodyMapper,u,"operationRes.parsedBody",i)}catch(h){throw new Lt(`Error ${h} occurred in deserializing the responseBody - ${p.bodyAsText}`,void 0,p.status,p.request,p)}}else d.httpMethod==="HEAD"&&(p.parsedBody=a.status>=200&&a.status<300);l.headersMapper&&(p.parsedHeaders=d.serializer.deserialize(l.headersMapper,p.headers.toJson(),"operationRes.parsedHeaders",i))}return p})}function tP(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function aP(t,e,a){var i;let r=200<=t.status&&t.status<300;if(tP(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,p=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new Lt(p,void 0,t.status,t.request,t);if(!s)throw d;let l=s.bodyMapper,c=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,u;if(l){let v=m;e.isXML&&l.type.name===Qi.Sequence&&(v=typeof m=="object"?m[l.xmlElementName]:[]),u=e.serializer.deserialize(l,v,"error.response.parsedBody")}let h=m.error||u||m;d.code=h.code,h.message&&(d.message=h.message),l&&(d.response.parsedBody=u)}t.headers&&c&&(d.response.parsedHeaders=e.serializer.deserialize(c,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}function iP(t,e,a,i){var r;let n=o=>{let p=`Error "${o}" occurred while parsing the response body - ${a.bodyAsText}.`,d=o.code||Lt.PARSE_ERROR,l=new Lt(p,d,a.status,a.request,a);return Promise.reject(l)};if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let o=a.bodyAsText,p=a.headers.get("Content-Type")||"",d=p?p.split(";").map(l=>l.toLowerCase()):[];if(d.length===0||d.some(l=>t.indexOf(l)!==-1))return new Promise(l=>{a.parsedBody=JSON.parse(o),l(a)}).catch(n);if(d.some(l=>e.indexOf(l)!==-1))return Z9(o,i).then(l=>(a.parsedBody=l,a)).catch(n)}return Promise.resolve(a)}var i5={enable:!0};func
`).join(""))}return this._nextPolicy.sendRequest(e)}},c5=[],m5=!1,yP=new Map;function vP(){if(!process)return;let t=Vp(Yt.HTTPS_PROXY),e=Vp(Yt.ALL_PROXY),a=Vp(Yt.HTTP_PROXY);return t||e||a}function xP(t,e,a){if(e.length===0)return!1;let i=Ca.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}function bP(){let t=Vp(Yt.NO_PROXY);return m5=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function u5(t){if(!t&&(t=vP(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=NP(t),r=Ca.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}function P1(t,e){return t||(t=u5()),m5||c5.push(...bP()),{create:(a,i)=>new s1(a,i,t,e?.customNoProxyList)}}function NP(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,o=s?r.substring(0,n):r,p=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:o,password:p,urlWithoutAuth:d}}var s1=class extends Ze{constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!xP(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:c5,this.customNoProxyList?void 0:yP)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function wP(t=30){return{create:(e,a)=>new o1(e,a,t)}}var o1=class extends Ze{constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>_P(this,e,a))}};function _P(t,e,a){if(a.status===409){let i=SP(a.bodyAsText);if(i){let r=EP(e.url);return CP(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ed()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}function f5(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",ed()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}function SP(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 EP(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 CP(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=f5(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return h5(t,n,i)}async function h5(t,e,a){let i=f5(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Ea.delay(t._retryTimeout*1e3),h5(t,e,a))}function g5(t){return{create:(e,a)=>new p1(e,a,t)}}var p1=class extends Ze{constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function O1(t,e,a,i){return{create:(r,n)=>new d1(r,n,t,e,a,i)}}var d1=class extends Ze{constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Wi(i)?i:N1,this.retryInterval=Wi(r)?r:w1,this.minRetryInterval=Wi(n)?n:nP,this.maxRetryInterval=Wi(s)?s:_1}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>y5(this,e,a.response,a))}};async function y5(t,e,a,i,r){r=o5(t,r,i);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(s5(t.retryCount,n,r,a,i))try{return await Ea.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return y5(t,e,a,s,r)}else return i?Promise.reject(r.error):a}var TP=3,A9=Yt.HttpConstants.Status
Polling from: ${a.config.operationLocation}
Operation status: ${l}
Polling status: ${C5.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let c=s(d,a);if(c!==void 0)return{response:await e(c).catch(S5({state:a,stateProxy:i,isOperationError:o})),status:l}}return{response:d,status:l}}async function R5(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:p,withOperationLocation:d,getPollingInterval:l,processResult:c,getError:m,updateState:u,setDelay:h,isDone:v,setErrorAsResult:E}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:R,status:b}=await VP({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:p,options:r});if(P5({status:b,response:R,state:a,stateProxy:i,isDone:v,processResult:c,getError:m,setErrorAsResult:E}),!C5.includes(b)){let g=l?.(R);g&&h(g);let f=o?.(R,a);if(f!==void 0){let w=S!==f;a.config.operationLocation=f,d?.(f,w)}else d?.(S,!1)}u?.(a,R)}}function D5(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}function I5(t){return t.headers.location}function B5(t){return t.headers["operation-location"]}function A5(t){return t.headers["azure-asyncoperation"]}function $P(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}}function z5(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=B5(e),s=A5(e),o=D5({operationLocation:n,azureAsyncOperation:s}),p=I5(e),d=a?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:$P({requestMethod:d,location:p,requestPath:i,resourceLocationConfig:r})}:p!==void 0?{mode:"ResourceLocation",operationLocation:p}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function q5(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return A1(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ji.verbose(`LRO: unrecognized operation status: ${e}`),e}}function GP(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return q5({status:a,statusCode:t.statusCode})}function XP(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return q5({status:n,statusCode:t.statusCode})}function A1(t){return t===202?"running":t<300?"succeeded":"failed"}function M5({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?KP(new Date(e)):a*1e3}}function L5(t){let e=t.flatResponse.error;if(!e){Ji.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ji.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function KP(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}function j5(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return A1(e.rawResponse.statusCode);case"Body":return z1(e,a);default:return"running"}}let n=r();return n==="running"&&i===void 0?"succeeded":n}async function WP(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return O5({init:async()=>{let s=await r.sendInitialRequest(),o=z5({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,re
`,Sy="HTTP/1.1",YD="AES256",JD="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",ZD=["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"],eI=["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"],tI="BlobUsesCustomerSpecifiedEncryption",aI="BlobDoesNotUseCustomerSpecifiedEncryption",iI=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function rI(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=sI(a),e.setPath(a),e.toString()}function nI(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function Fr(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}function ln(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=nI(t),t=JD);let a=Fr(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Fr(t,"AccountName"),n=Buffer.from(Fr(t,"AccountKey"),"base64"),!a){i=Fr(t,"DefaultEndpointsProtocol");let o=i.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Fr(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else t
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Pe.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let a=ju(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=lI(e.url),n={};if(r){let s=[];for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let p=o.toLowerCase();n[p]=r[o],s.push(p)}s.sort();for(let o of s)i+=`
${o}:${decodeURIComponent(n[o])}`}return i}},Ue=class extends bs{constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new vd(e,a,this)}computeHMACSHA256(e){return i8.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},EI="azure-storage-blob",CI="12.15.0",ws=class extends H.ServiceClient{constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${EI}/${CI} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},_s=class{constructor(e,a){this.url=rI(e),this.accountName=Cy(e),this.pipeline=a,this.storageClientContext=new ws(this.url,a.toServiceClientOptions()),this.isHttps=Ey(pI(this.url)||"","https"),this.credential=new Ee;for(let r of this.pipeline.factories)q.isNode&&r instanceof Ue||r instanceof Ee?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},L=M.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function G(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}var $a=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ga=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execu
`),n=e.computeHMACSHA256(r);return new Pa(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function PI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function OI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function RI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function DI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function II(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function cn(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}function mn(t){let e=t.version?t.version:Mu;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Ss=class{constructor(e,a){let i=new ws(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new ir(i)):(this._isContainer=!1,this._containerOrBlobOperation=new ys(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},G(l)))}catch(c){throw d.setStatus({code:M.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");try{let c=await this._containerOrBlobOperatio
`):s=[e.accountName,i,r,n,t.startsOn?be(t.startsOn,!1):"",be(t.expiresOn,!1),t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
`);let o=e.computeHMACSHA256(s);return new Pa(a,o,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}var xu=class t extends _s{constructor(e,a,i){let r;Di(a)?r=a:q.isNode&&a instanceof Ue||a instanceof Ee||q.isTokenCredential(a)?r=Te(a,i):r=Te(new Ee,i),super(e,r),this.serviceContext=new cd(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=ln(e);if(i.kind==="AccountConnString")if(q.isNode){let r=new Ue(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=q.getDefaultProxySettings(i.proxyUri));let n=Te(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Te(new Ee,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new bd(Be(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=L("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),p=await new ir(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:p}}catch(s){throw r.setStatus({code:M.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=L("BlobServiceClient-renameContainer",i);try{let o=this.getContainerClient(a),d=await new ir(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:o,containerRenameResponse:d}}catch(o){throw n.setStatus({code:M.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},G(r)))}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=L("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},G(i)))}catch(r){throw a.setStatus({code:M.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=L("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),G(r)))}catch(n){throw i.setStatus({code:M.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a
Other caches with similar key:`);for(let o of n?.artifactCaches||[])Ht.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function TB(t,e,a){return At(this,void 0,void 0,function*(){let i=new NB.URL(t),r=(0,ky.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Dd.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Dd.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Dd.downloadCacheHttpClient)(t,e):yield(0,Dd.downloadCacheHttpClient)(t,e)})}Ke.downloadCache=TB;function PB(t,e,a){return At(this,void 0,void 0,function*(){let i=Xu(),r=Ku(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Bi.retryTypedResponse)("reserveCache",()=>At(this,void 0,void 0,function*(){return i.postJson(Ms("caches"),n)}))})}Ke.reserveCache=PB;function jy(t,e){return`bytes ${t}-${e}/*`}function OB(t,e,a,i,r){return At(this,void 0,void 0,function*(){Ht.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${jy(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":jy(i,r)},s=yield(0,Bi.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>At(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Bi.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}function RB(t,e,a,i){return At(this,void 0,void 0,function*(){let r=Id.getArchiveFileSizeInBytes(a),n=Ms(`caches/${e.toString()}`),s=Gu.openSync(a,"r"),o=(0,ky.getUploadOptions)(i),p=Id.assertDefined("uploadConcurrency",o.uploadConcurrency),d=Id.assertDefined("uploadChunkSize",o.uploadChunkSize),l=[...new Array(p).keys()];Ht.debug("Awaiting all uploads");let c=0;try{yield Promise.all(l.map(()=>At(this,void 0,void 0,function*(){for(;c<r;){let m=Math.min(r-c,d),u=c,h=c+m-1;c+=d,yield OB(t,n,()=>Gu.createReadStream(a,{fd:s,start:u,end:h,autoClose:!1}).on("error",v=>{throw new Error(`Cache upload failed because file read failed with ${v.message}`)}),u,h)}})))}finally{Gu.closeSync(s)}})}function DB(t,e,a){return At(this,void 0,void 0,function*(){let i={size:a};return yield(0,Bi.retryTypedResponse)("commitCache",()=>At(this,void 0,void 0,function*(){return t.postJson(Ms(`caches/${e.toString()}`),i)}))})}function IB(t,e,a){return At(this,void 0,void 0,function*(){let i=Xu();Ht.debug("Upload cache"),yield RB(i,t,e,a),Ht.debug("Commiting cache");let r=Id.getArchiveFileSizeInBytes(e);Ht.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);let n=yield DB(i,t,r);if(!(0,Bi.isSuccessStatusCode)(n.statusCode))throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`);Ht.info("Cache saved successfully")})}Ke.saveCache=IB});var Vy=T(bt=>{"use strict";var BB=bt&&bt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),AB=bt&&bt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wu=bt&&bt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&BB(e,t,a);return AB(e,t),e},Qa=bt&&bt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(bt,"__esModule",{value:!0});bt.createTar=bt.extractTar=bt.listTar=void 0;var zB=yl(),Ad=Wu(Js()),Uy=require("fs"),ua=Wu(require("path")),Qu=Wu(zn()),Re=Bn(),Ai=process.platform==="win32";function qB(){return Qa(this,
`));let i=yield Yu(a,"create");yield Ju(i,t)})}bt.createTar=UB});var Wy=T(We=>{"use strict";var FB=We&&We.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),VB=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Md=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&FB(e,t,a);return VB(e,t),e},$y=We&&We.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.saveCache=We.restoreCache=We.isFeatureAvailable=We.ReserveCacheError=We.ValidationError=void 0;var tt=Md(ia()),Gy=Md(require("path")),ea=Md(zn()),zd=Md(Hy()),qd=Vy(),Ya=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};We.ValidationError=Ya;var Ls=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};We.ReserveCacheError=Ls;function Xy(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}function Ky(t){if(t.length>512)throw new Ya(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`Key Validation Error: ${t} cannot contain commas.`)}function $B(){return!!process.env.ACTIONS_CACHE_URL}We.isFeatureAvailable=$B;function GB(t,e,a,i,r=!1){return $y(this,void 0,void 0,function*(){Xy(t),a=a||[];let n=[e,...a];if(tt.debug("Resolved Keys:"),tt.debug(JSON.stringify(n)),n.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Ky(p);let s=yield ea.getCompressionMethod(),o="";try{let p=yield zd.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!p?.archiveLocation)return;if(i?.lookupOnly)return tt.info("Lookup only - skipping download"),p.cacheKey;o=Gy.join(yield ea.createTempDirectory(),ea.getCacheFileName(s)),tt.debug(`Archive Path: ${o}`),yield zd.downloadCache(p.archiveLocation,o,i),tt.isDebug()&&(yield(0,qd.listTar)(o,s));let d=ea.getArchiveFileSizeInBytes(o);return tt.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,qd.extractTar)(o,s),tt.info("Cache restored successfully"),p.cacheKey}catch(p){if(p.name===Ya.name)throw p;tt.warning(`Failed to restore: ${p.message}`)}finally{try{yield ea.unlinkFile(o)}catch(p){tt.debug(`Failed to delete archive: ${p}`)}}})}We.restoreCache=GB;function XB(t,e,a,i=!1){var r,n,s,o,p;return $y(this,void 0,void 0,function*(){Xy(t),Ky(e);let d=yield ea.getCompressionMethod(),l=-1,c=yield ea.resolvePaths(t);if(tt.debug("Cache Paths:"),tt.debug(`${JSON.stringify(c)}`),c.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield ea.createTempDirectory(),u=Gy.join(m,ea.getCacheFileName(d));tt.debug(`Archive Path: ${u}`);try{yield(0,qd.createTar)(m,c,d),tt.isDebug()&&(yield(0,qd.listTar)(u,d));let h=10*1024*1024*1024,v=ea.getArchiveFileSizeInBytes(u);if(tt.debug(`File Size: ${v}`),v>h&&!ea.isGhes())throw new Error(`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the 10GB limit, not saving cache.`);tt.debug("Reserving Cache");let E=yield zd.reserveCache(e,t,{compressionMethod:d,enableCrossOsArchive:i,cacheSize:v});if(!((r=E?.result)===null||r===void 0)&&r.cacheId)l=(n=E?.result)===null||n===void 0?void 0:n.cacheId;else throw E?.statusCode===400?new Error((o=(s=E?.error)===null||s===void 0?v
/*! 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
*)
*/