@catladder/cli 0.0.0-next-52feb889 → 0.0.0-next-1869fe5b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/bundles/catci/index.js +19 -0
  2. package/dist/bundles/catenv/index.js +83 -12
  3. package/dist/bundles/cli/index.js +83 -12
  4. package/dist/bundles/runner-images/semantic-release/Dockerfile +2 -7
  5. package/dist/bundles/runner-images/semantic-release/scripts/semanticRelease +18 -1
  6. package/dist/bundles/runner-images/semantic-release-central.Dockerfile +34 -0
  7. package/dist/cli/src/catci.d.ts +1 -0
  8. package/dist/cli/src/catci.js +100 -0
  9. package/dist/cli/src/catci.js.map +1 -0
  10. package/dist/pipeline/src/backends/github/GithubBackend.js +4 -1
  11. package/dist/pipeline/src/backends/github/GithubBackend.js.map +1 -1
  12. package/dist/pipeline/src/backends/gitlab/GitlabBackend.js +9 -2
  13. package/dist/pipeline/src/backends/gitlab/GitlabBackend.js.map +1 -1
  14. package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.d.ts +2 -1
  15. package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.js +11 -4
  16. package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.js.map +1 -1
  17. package/dist/pipeline/src/build/types.d.ts +1 -1
  18. package/dist/pipeline/src/catci/shippedCatci.d.ts +8 -0
  19. package/dist/pipeline/src/catci/shippedCatci.js +39 -0
  20. package/dist/pipeline/src/catci/shippedCatci.js.map +1 -0
  21. package/dist/pipeline/src/constants.js +1 -1
  22. package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +1 -1
  23. package/dist/pipeline/src/customImages/shippedImages.d.ts +5 -3
  24. package/dist/pipeline/src/customImages/shippedImages.js +6 -4
  25. package/dist/pipeline/src/customImages/shippedImages.js.map +1 -1
  26. package/dist/pipeline/src/deploy/types/index.d.ts +2 -2
  27. package/dist/pipeline/src/pipeline/generatePipelineFiles.js +6 -0
  28. package/dist/pipeline/src/pipeline/generatePipelineFiles.js.map +1 -1
  29. package/dist/pipeline/src/types/config.d.ts +3 -3
  30. package/dist/runner-images/semantic-release/Dockerfile +2 -7
  31. package/dist/runner-images/semantic-release/scripts/semanticRelease +18 -1
  32. package/dist/runner-images/semantic-release-central.Dockerfile +34 -0
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/scripts/bundle +4 -0
  36. package/src/catci.ts +123 -0
@@ -0,0 +1,19 @@
1
+ (()=>{var e={7166:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateDocument=t.makeTemplate=void 0;const n=s(r(1678));const o=n.default;const i="✅";const a="❌";const u=`${i}/${a}`;const p="@...";const c=[["Responsible",u,"Description","Note","More Information"]].concat(o.map((e=>[Array(e.responsibles).fill(p).join(", "),u,e.description,"",e.more])));function makeTable(e){const t=calculateColumnWidths(e);return`\n${makeRow(e[0],t," ")}\n${makeRow(e[0].map((()=>"")),t,"-")}\n${e.slice(1).map((e=>makeRow(e,t," "))).join("\n")}\n`}function calculateColumnWidths(e){const t=e[0].length;return Array.from({length:t},((e,t)=>t)).map((t=>Math.max(...e.map((e=>e[t].length)))))}function makeRow(e,t,r){return`| ${e.map(((e,s)=>e.padEnd(t[s],r))).join(" | ")} |`}function makeTemplate(){return`\n# Security Audit Report\n\nA security audit report document is a comprehensive assessment of an application's security posture, containing security topics that auditors can mark to indicate the state of various security aspects.\n\nIt serves as a structured guide for security team to evaluate different security factors such as authentication, authorization, data encryption, input validation, and more.\n\n## General Information\n\n- Project Owner is @...\n- Dev team:\n - @...\n - @...\n - @...\n\n## Project Security\n\n${makeTable(c)}\n\n`}t.makeTemplate=makeTemplate;function evaluateDocument(e){var t,r;const s=(r=(t=e.match(/^\s*\|.*?\|\s*$/gm))===null||t===void 0?void 0:t.map((e=>e.trim())))!==null&&r!==void 0?r:[];const n=s.map((e=>e.split("|").map((e=>e.trim())))).slice(2);const a=new Set(o.map((e=>e.description)));const c=n.map((e=>{const t=e[1].split(", ");const r=e[2];const s=e[3];const n=e[4];const o=!a.has(s);const c=!o&&!r.includes(u)&&!t.some((e=>e.includes(p)));const l=!o&&c&&r.includes(i);return{responsibles:t,answer:r,description:s,note:n,isUnknown:o,isAnswered:c,isSecured:l}}));const l=o.length;const d=c.filter((e=>e.isAnswered)).length;const f=c.filter((e=>e.isSecured)).length;const h=c.filter((e=>e.isUnknown)).length;const g=Math.round(f/l*100);return{topics:c,score:{rating:g,totalTopics:l,answeredTopics:d,securedTopics:f,unknownTopics:h}}}t.evaluateDocument=evaluateDocument},960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createSecurityAuditMergeRequest=t.SECURITY_AUDIT_FILE_NAME=void 0;const s=r(5572);const n=r(7166);function makeDatedBranchName(e){const t=(new Date).toISOString().slice(0,-5).replaceAll(/[:.T]/g,"-");return`${e}-${t}`}const o="Draft: chore(security): add security audit document";t.SECURITY_AUDIT_FILE_NAME="SECURITY.md";async function createSecurityAuditMergeRequest({projectId:e,mainBranch:r,userId:i,api:a}){const u=(await s.Result.wrapAsync((()=>a.MergeRequests.all({state:"opened",wip:"yes",labels:"security-audit"})))).mapErr((()=>`could not search for existing merge requests`));if(u.isErr())return u;const p=u.value[0];if(p)return(0,s.Err)(`open merge request with security audit already exists: ${p.web_url}`);const c=s.Result.wrap((()=>(0,n.makeTemplate)())).mapErr((()=>"could not make security audit template document"));if(c.isErr())return c;const l=(await s.Result.wrapAsync((()=>a.Branches.create(e,makeDatedBranchName("chore/security-audit"),r)))).mapErr((e=>{console.log(e);return"could not create branch"}));if(l.isErr())return l;const d=(await s.Result.wrapAsync((()=>a.Commits.create(e,l.value.name,"chore(security): add empty security audit document template",[{action:"create",filePath:t.SECURITY_AUDIT_FILE_NAME,content:c.value,encoding:"text"}])))).mapErr((()=>"could not create commit"));if(d.isErr())return d;const f=(await s.Result.wrapAsync((()=>a.MergeRequests.create(e,l.value.name,r,o,{description:`Please follow and update security audit document in \`${t.SECURITY_AUDIT_FILE_NAME}\`.`,assigneeId:i,squash:true,labels:"security-audit",removeSourceBranch:true})))).mapErr((()=>"could not create merge request"));return f}t.createSecurityAuditMergeRequest=createSecurityAuditMergeRequest},4556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeSecurityAuditOverview=t.evaluateSecurityAudit=void 0;const s=r(5572);const n=r(6928);const o=r(1943);const i=r(960);const a=r(7166);async function evaluateSecurityAudit({path:e}){return(await s.Result.wrapAsync((async()=>{const t=(0,n.join)(e,i.SECURITY_AUDIT_FILE_NAME);const r=await(0,o.readFile)(t);const s=r.toString("utf-8");return(0,a.evaluateDocument)(s)}))).mapErr((e=>`could not evaluate ${i.SECURITY_AUDIT_FILE_NAME}: ${e}`))}t.evaluateSecurityAudit=evaluateSecurityAudit;function makeSecurityAuditOverview(e){const ratingToEmo=e=>e<33?"🟥":e<66?"🟨":"🟩";return`Project security posture overview:\n 🧐 Total topics: ${e.score.totalTopics}\n 🔒 Secured topics: ${e.score.securedTopics}\n 📢 Answered topics: ${e.score.answeredTopics}\n ❔ Unknown topics: ${e.score.unknownTopics}\n 📊 Rating: ${ratingToEmo(e.score.rating)} ${e.score.rating}/100`}t.makeSecurityAuditOverview=makeSecurityAuditOverview},9879:(e,t,r)=>{"use strict";var s=r(4710);var n=r(7022);var o=r(114);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var i=_interopDefault(o);function appendFormFromObject(e){const t=new FormData;Object.entries(e).forEach((([e,r])=>{if(!r)return;if(Array.isArray(r))t.append(e,r[0],r[1]);else t.append(e,r)}));return t}function endpoint(e,...t){return t.reduce(((t,r,s)=>t+encodeURIComponent(r)+e[s+1]),e[0])}function parseLinkHeader(e){const t={};const r=/<([^>]+)>; rel="([^"]+)"/g;let s;while(s=r.exec(e)){const[,e,r]=s;t[r]=e}return t}function reformatObjectOptions(e,t,r=false){const s=r?n.decamelizeKeys(e):e;return i.default.stringify({[t]:s},{encode:false}).split("&").reduce(((e,t)=>{const[r,s]=t.split("=");e[r]=s;return e}),{})}function packageResponse(e,t){return t?{data:e.body,status:e.status,headers:e.headers}:e.body}function getStream(e,t){return packageResponse(e,t)}function getSingle(e,t,r){const{status:s,headers:o}=t;let{body:i}=t;if(e)i=n.camelizeKeys(i);return packageResponse({body:i,status:s,headers:o},r)}async function getManyMore(e,t,r,s,i,a){const{sudo:u,showExpanded:p,maxPages:c,pagination:l,page:d,perPage:f,idAfter:h,orderBy:g,sort:m}=i;if(e)s.body=n.camelizeKeys(s?.body);const y=[...a||[],...s.body];const v=c&&f?y.length/+f<c:true;const{next:$=""}=parseLinkHeader(s.headers.link);if(!(d&&(a||[]).length===0)&&$&&v){const s=o.parse($.split("?")[1]);const i={...n.camelizeKeys(s)};const a={...i,maxPages:c,sudo:u,showExpanded:p};const l=await t(r,{searchParams:i,sudo:u});return getManyMore(e,t,r,l,a,y)}if(!p)return y;const b=l==="keyset"?{idAfter:h?+h:null,perPage:f?+f:null,orderBy:g,sort:m}:{total:parseInt(s.headers["x-total"],10),next:parseInt(s.headers["x-next-page"],10)||null,current:parseInt(s.headers["x-page"],10)||1,previous:parseInt(s.headers["x-prev-page"],10)||null,perPage:parseInt(s.headers["x-per-page"],10),totalPages:parseInt(s.headers["x-total-pages"],10)};return{data:y,paginationInfo:b}}function get(){return async(e,t,r)=>{const{asStream:s,sudo:n,showExpanded:o,maxPages:i,...a}=r||{};const u=e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0;const p=await e.requester.get(t,{searchParams:a,sudo:n,asStream:s,signal:u});const c=e.camelize||false;if(s)return getStream(p,o);if(!Array.isArray(p.body))return getSingle(c,p,o);const l={sudo:n,showExpanded:o,maxPages:i,...a};return getManyMore(c,((t,r)=>e.requester.get(t,{...r,signal:u})),t,p,l)}}function post(){return async(e,t,{searchParams:r,isForm:s,sudo:o,showExpanded:i,...a}={})=>{const u=s?appendFormFromObject(a):a;const p=await e.requester.post(t,{searchParams:r,body:u,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)p.body=n.camelizeKeys(p.body);return packageResponse(p,i)}}function put(){return async(e,t,{searchParams:r,isForm:s,sudo:o,showExpanded:i,...a}={})=>{const u=s?appendFormFromObject(a):a;const p=await e.requester.put(t,{body:u,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)p.body=n.camelizeKeys(p.body);return packageResponse(p,i)}}function patch(){return async(e,t,{searchParams:r,isForm:s,sudo:o,showExpanded:i,...a}={})=>{const u=s?appendFormFromObject(a):a;const p=await e.requester.patch(t,{body:u,searchParams:r,sudo:o,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});if(e.camelize)p.body=n.camelizeKeys(p.body);return packageResponse(p,i)}}function del(){return async(e,t,{sudo:r,showExpanded:s,searchParams:n,...o}={})=>{const i=await e.requester.delete(t,{body:o,searchParams:n,sudo:r,signal:e.queryTimeout?AbortSignal.timeout(e.queryTimeout):void 0});return packageResponse(i,s)}}var a={post:post,put:put,patch:patch,get:get,del:del};var u=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/cluster_agents`,t)}allTokens(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,r)}createToken(e,t,r,s){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens`,{name:r,...s})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}showToken(e,t,r,s){return a.get()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,s)}register(e,t,r){return a.post()(this,endpoint`projects/${e}/cluster_agents`,{name:t,...r})}removeToken(e,t,r,s){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}/tokens/${r}`,s)}unregister(e,t,r){return a.del()(this,endpoint`projects/${e}/cluster_agents/${t}`,r)}};var p=class extends s.BaseResource{allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,r)}editMetricImage(e,t,r,s){return a.put()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,s)}removeMetricImage(e,t,r,s){return a.del()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images/${r}`,s)}uploadMetricImage(e,t,r,s){return a.post()(this,endpoint`projects/${e}/alert_management_alerts/${t}/metric_images`,{isForm:true,file:[r.content,r.filename],...s})}};var c=class extends s.BaseResource{show(e){return a.get()(this,"application/appearence",e)}edit({logo:e,pwaIcon:t,...r}={}){if(e||t){const s={...r,isForm:true};if(e)s.logo=[e.content,e.filename];if(t)s.pwaIcon=[t.content,t.filename];return a.put()(this,"application/appearence",s)}return a.put()(this,"application/appearence",r)}};var l=class extends s.BaseResource{show(e){return a.get()(this,"application/plan_limits",e)}edit(e,t={}){const{ciPipelineSize:r,ciActiveJobs:s,ciActivePipelines:n,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:u,ciRegisteredGroupRunners:p,ciRegisteredProjectRunners:c,conanMaxFileSize:l,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$,...b}=t;return a.put()(this,"application/plan_limits",{...b,searchParams:{planName:e,ciPipelineSize:r,ciActiveJobs:s,ciActivePipelines:n,ciProjectSubscriptions:o,ciPipelineSchedules:i,ciNeedsSizeLimit:u,ciRegisteredGroupRunners:p,ciRegisteredProjectRunners:c,conanMaxFileSize:l,genericPackagesMaxFileSize:d,helmMaxFileSize:f,mavenMaxFileSize:h,npmMaxFileSize:g,nugetMaxFileSize:m,pypiMaxFileSize:y,terraformModuleMaxFileSize:v,storageSizeLimit:$}})}};var d=class extends s.BaseResource{all(e){return a.get()(this,"applications",e)}create(e,t,r,s){return a.post()(this,"applications",{name:e,redirectUri:t,scopes:r,...s})}remove(e,t){return a.del()(this,`applications/${e}`,t)}};var f=class extends s.BaseResource{show(e){return a.get()(this,"application/settings",e)}edit(e){return a.put()(this,"application/settings",e)}};var h=class extends s.BaseResource{show(e){return a.get()(this,"application/statistics",e)}};function url({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;else if(t)r=endpoint`groups/${t}/`;return`${r}audit_events`}var g=class extends s.BaseResource{all({projectId:e,groupId:t,...r}={}){const s=url({projectId:e,groupId:t});return a.get()(this,s,r)}show(e,{projectId:t,groupId:r,...s}={}){const n=url({projectId:t,groupId:r});return a.get()(this,`${n}/${e}`,s)}};var m=class extends s.BaseResource{show(e,t){return a.get()(this,"avatar",{email:e,...t})}};var y=class extends s.BaseResource{all(e){return a.get()(this,"broadcast_messages",e)}create(e){return a.post()(this,"broadcast_messages",e)}edit(e,t){return a.put()(this,`broadcast_messages/${e}`,t)}remove(e,t){return a.del()(this,`broadcast_messages/${e}`,t)}show(e,t){return a.get()(this,`broadcast_messages/${e}`,t)}};var v=class extends s.BaseResource{createAccessToken(e){return a.post()(this,"code_suggestions/tokens",e)}generateCompletion(e){return a.post()(this,"code_suggestions/completions",e)}};var $=class extends s.BaseResource{create(e,t){return a.post()(this,endpoint`projects/${e}/packages/composer`,t)}download(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/composer/archives/${t}`,{searchParams:{sha:r},...s})}showMetadata(e,t,r){let s;if(r&&r.sha){s=endpoint`groups/${e}/-/packages/composer/${t}$${r.sha}`}else{s=endpoint`groups/${e}/-/packages/composer/p2/${t}`}return a.get()(this,s,r)}showPackages(e,t,r){return a.get()(this,endpoint`groups/${e}/-/packages/composer/p/${t}`,r)}showBaseRepository(e,t){const r={...this};if(t&&t.composerVersion==="2"){r.headers["User-Agent"]="Composer/2"}return a.get()(r,endpoint`groups/${e}/-/packages/composer/packages`,t)}};function url2(e){return e?endpoint`projects/${e}/packages/conan/v1`:"packages/conan/v1"}var b=class extends s.BaseResource{authenticate({projectId:e,...t}={}){return a.get()(this,`${url2(e)}/users/authenticate`,t)}checkCredentials({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/users/check_credentials`,t)}downloadPackageFile(e,t,r,s,n,o,i,u,{projectId:p,...c}={}){const l=url2(p);return a.get()(this,`${l}/conans/${e}/${t}/${r}/${s}/${o}/package/${n}/${i}/${u}`,c)}downloadRecipeFile(e,t,r,s,n,o,{projectId:i,...u}={}){const p=url2(i);return a.get()(this,`${p}/conans/${e}/${t}/${r}/${s}/${n}/export/${o}`,u)}showPackageUploadUrls(e,t,r,s,n,{projectId:o,...i}={}){const u=url2(o);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${s}/packages/${n}/upload_urls`,i)}showPackageDownloadUrls(e,t,r,s,n,{projectId:o,...i}={}){const u=url2(o);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${s}/packages/${n}/download_urls`,i)}showPackageManifest(e,t,r,s,n,{projectId:o,...i}={}){const u=url2(o);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${s}/packages/${n}/digest`,i)}showPackageSnapshot(e,t,r,s,n,{projectId:o,...i}={}){const u=url2(o);return a.get()(this,`${u}/conans/${e}/${t}/${r}/${s}/packages/${n}`,i)}ping({projectId:e,...t}={}){return a.post()(this,`${url2(e)}/ping`,t)}showRecipeUploadUrls(e,t,r,s,{projectId:n,...o}={}){const i=url2(n);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${s}/upload_urls`,o)}showRecipeDownloadUrls(e,t,r,s,{projectId:n,...o}={}){const i=url2(n);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${s}/download_urls`,o)}showRecipeManifest(e,t,r,s,{projectId:n,...o}={}){const i=url2(n);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${s}/digest`,o)}showRecipeSnapshot(e,t,r,s,{projectId:n,...o}={}){const i=url2(n);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${s}`,o)}removePackageFile(e,t,r,s,{projectId:n,...o}={}){const i=url2(n);return a.get()(this,`${i}/conans/${e}/${t}/${r}/${s}`,o)}search({projectId:e,...t}={}){const r=url2(e);return a.get()(this,`${r}/conans/search`,t)}uploadPackageFile(e,t,r,s,n,o,i,u,p){const c=url2();return a.get()(this,`${c}/files/${t}/${r}/${s}/${n}/${i}/package/${o}/${u}/${e.filename}`,{isForm:true,...p,file:[e.content,e.filename]})}uploadRecipeFile(e,t,r,s,n,o,i){const u=url2();return a.get()(this,`${u}/files/${t}/${r}/${s}/${n}/${o}/export/${e.filename}`,{isForm:true,...i,file:[e.content,e.filename]})}};var _=class extends s.BaseResource{create(e,t,r,{environmentId:s,clusterId:n,...o}={}){let i;if(s)i=endpoint`environments/${s}/metrics_dashboard/annotations`;else if(n)i=endpoint`clusters/${n}/metrics_dashboard/annotations`;else throw new Error("Missing required argument. Please supply a environmentId or a cluserId in the options parameter.");return a.post()(this,i,{dashboardPath:e,startingAt:t,description:r,...o})}};function url3({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/debian`;if(t)return endpoint`/groups/${t}/-/packages/debian`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var j=class extends s.BaseResource{downloadBinaryFileIndex(e,t,r,{projectId:s,groupId:n,...o}){const i=url3({projectId:s,groupId:n});return a.get()(this,`${i}/dists/${e}/${t}/binary-${r}/Packages`,o)}downloadDistributionReleaseFile(e,{projectId:t,groupId:r,...s}){const n=url3({projectId:t,groupId:r});return a.get()(this,`${n}/dists/${e}/Release`,s)}downloadSignedDistributionReleaseFile(e,{projectId:t,groupId:r,...s}){const n=url3({projectId:t,groupId:r});return a.get()(this,`${n}/dists/${e}/InRelease`,s)}downloadReleaseFileSignature(e,{projectId:t,groupId:r,...s}){const n=url3({projectId:t,groupId:r});return a.get()(this,`${n}/dists/${e}/Release.gpg`,s)}downloadPackageFile(e,t,r,s,n,o,i){return a.get()(this,endpoint`projects/${e}/packages/debian/pool/${t}/${r}/${s}/${n}/${o}`,i)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/debian/${t.filename}`,{isForm:true,...r,file:[t.content,t.filename]})}};var R=class extends s.BaseResource{remove(e,t){return a.post()(this,`groups/${e}/dependency_proxy/cache`,t)}};var A=class extends s.BaseResource{all({projectId:e,userId:t,...r}={}){let s;if(e){s=endpoint`projects/${e}/deploy_keys`}else if(t){s=endpoint`users/${t}/project_deploy_keys`}else{s="deploy_keys"}return a.get()(this,s,r)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/deploy_keys`,{title:t,key:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/deploy_keys/${t}/enable`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deploy_keys/${t}`,r)}};var w=class extends s.BaseResource{all({projectId:e,groupId:t,...r}={}){let s;if(e)s=endpoint`projects/${e}/deploy_tokens`;else if(t)s=endpoint`groups/${t}/deploy_tokens`;else s="deploy_tokens";return a.get()(this,s,r)}create(e,t,{projectId:r,groupId:s,...n}={}){let o;if(r)o=endpoint`projects/${r}/deploy_tokens`;else if(s)o=endpoint`groups/${s}/deploy_tokens`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.post()(this,o,{name:e,scopes:t,...n})}remove(e,{projectId:t,groupId:r,...s}={}){let n;if(t)n=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)n=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.del()(this,n,s)}show(e,{projectId:t,groupId:r,...s}={}){let n;if(t)n=endpoint`projects/${t}/deploy_tokens/${e}`;else if(r)n=endpoint`groups/${r}/deploy_tokens/${e}`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,n,s)}};var S=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_requests`,t)}request(e,t){return a.post()(this,endpoint`${e}/access_requests`,t)}approve(e,t,r){return a.post()(this,endpoint`${e}/access_requests/${t}/approve`,r)}deny(e,t,r){return a.del()(this,endpoint`${e}/access_requests/${t}`,r)}};var E=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/access_tokens`,t)}create(e,t,r,s){return a.post()(this,endpoint`${e}/access_tokens`,{name:t,scopes:r,...s})}revoke(e,t,r){return a.del()(this,endpoint`${e}/access_tokens/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/access_tokens/${t}`,r)}};function url4(e,t,r,s){const[n,o]=[e,r].map(encodeURIComponent);const i=[n,t,o];i.push("award_emoji");if(s)i.push(s);return i.join("/")}var x=class extends s.BaseResource{resourceType2;constructor(e,t,r){super({prefixUrl:e,...r});this.resourceType2=t}all(e,t,r){return a.get()(this,url4(e,this.resourceType2,t),r)}award(e,t,r,s){return a.post()(this,url4(e,this.resourceType2,t),{name:r,...s})}remove(e,t,r,s){return a.del()(this,url4(e,this.resourceType2,t,r),s)}show(e,t,r,s){return a.get()(this,url4(e,this.resourceType2,t,r),s)}};function url5(e,t,r,s,n){const[o,i]=[e,r].map(encodeURIComponent);const a=[o,t,i];a.push("notes");a.push(s);a.push("award_emoji");if(n)a.push(n);return a.join("/")}var k=class extends s.BaseResource{resourceType;constructor(e,t){super({prefixUrl:"projects",...t});this.resourceType=e}all(e,t,r,s){return a.get()(this,url5(e,this.resourceType,t,r),s)}award(e,t,r,s,n){return a.post()(this,url5(e,this.resourceType,t,r),{name:s,...n})}remove(e,t,r,s,n){return a.del()(this,url5(e,this.resourceType,t,r,s),n)}show(e,t,r,s,n){return a.get()(this,url5(e,this.resourceType,t,r,s),n)}};var I=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,s){return a.post()(this,endpoint`${e}/badges`,{linkUrl:t,imageUrl:r,...s})}all(e,t){return a.get()(this,endpoint`${e}/badges`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/badges/${t}`,r)}preview(e,t,r,s){return a.get()(this,endpoint`${e}/badges/render`,{linkUrl:t,imageUrl:r,...s})}remove(e,t,r){return a.del()(this,endpoint`${e}/badges/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/badges/${t}`,r)}};var P=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/custom_attributes`,t)}remove(e,t,r){return a.del()(this,endpoint`${e}/custom_attributes/${t}`,r)}set(e,t,r,s){return a.put()(this,endpoint`${e}/custom_attributes/${t}`,{value:r,...s})}show(e,t,r){return a.get()(this,endpoint`${e}/custom_attributes/${t}`,r)}};var T=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t,r){return a.get()(this,endpoint`${e}/dora/metrics`,{metric:t,...r})}};var C=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}addNote(e,t,r,s,n,o){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes`,{...o,body:n,noteId:s})}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,r)}create(e,t,r,{position:s,...n}={}){const o={...n,body:r};if(s){Object.assign(o,reformatObjectOptions(s,"position",true));o.isForm=true}return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions`,o)}editNote(e,t,r,s,n){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${s}`,n)}removeNote(e,t,r,s,n){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}/notes/${s}`,n)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/discussions/${r}`,s)}};var O=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}/lists`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/boards`,{name:t,...r})}createList(e,t,r){return a.post()(this,endpoint`${e}/boards/${t}/lists`,r)}edit(e,t,r){return a.put()(this,endpoint`${e}/boards/${t}`,r)}editList(e,t,r,s,n){return a.put()(this,endpoint`${e}/boards/${t}/lists/${r}`,{position:s,...n})}remove(e,t,r){return a.del()(this,endpoint`${e}/boards/${t}`,r)}removeList(e,t,r,s){return a.del()(this,endpoint`${e}/boards/${t}/lists/${r}`,s)}show(e,t,r){return a.get()(this,endpoint`${e}/boards/${t}`,r)}showList(e,t,r,s){return a.get()(this,endpoint`${e}/boards/${t}/lists/${r}`,s)}};var M=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/labels`,t)}create(e,t,r,s){return a.post()(this,endpoint`${e}/labels`,{name:t,color:r,...s})}edit(e,t,r){if(!r?.newName&&!r?.color)throw new Error("Missing required argument. Please supply a color or a newName in the options parameter.");return a.put()(this,endpoint`${e}/labels/${t}`,r)}promote(e,t,r){return a.put()(this,endpoint`${e}/labels/${t}/promote`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/labels/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/labels/${t}`,r)}subscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`${e}/issues/${t}/unsubscribe`,r)}};var L=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r,s){return a.post()(this,endpoint`${e}/members`,{userId:String(t),accessLevel:r,...s})}all(e,{includeInherited:t,...r}={}){let s=endpoint`${e}/members`;if(t)s+="/all";return a.get()(this,s,r)}edit(e,t,r,s){return a.put()(this,endpoint`${e}/members/${t}`,{accessLevel:r,...s})}show(e,t,{includeInherited:r,...s}={}){const[n,o]=[e,t].map(encodeURIComponent);const i=[n,"members"];if(r)i.push("all");i.push(o);return a.get()(this,i.join("/"),s)}remove(e,t,r){return a.del()(this,endpoint`${e}/members/${t}`,r)}};var B=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/milestones`,t)}allAssignedIssues(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/issues`,r)}allAssignedMergeRequests(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/merge_requests`,r)}allBurndownChartEvents(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}/burndown_events`,r)}create(e,t,r){return a.post()(this,endpoint`${e}/milestones`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`${e}/milestones/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/milestones/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/milestones/${t}`,r)}};var N=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,r)}create(e,t,r,s){return a.post()(this,endpoint`${e}/${this.resource2Type}/${t}/notes`,{body:r,...s})}edit(e,t,r,s){return a.put()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,s)}remove(e,t,r,s){return a.del()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,s)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/notes/${r}`,s)}};var q=class extends s.BaseResource{constructor(e,t){super({prefixUrl:["templates",e].join("/"),...t})}all(e){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,"",e)}show(e,t){process.emitWarning('This API will be deprecated as of Gitlabs v5 API. Please make the switch to "ProjectTemplates".',"DeprecationWarning");return a.get()(this,encodeURIComponent(e),t)}};var G=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/variables`,t)}create(e,t,r,s){return a.post()(this,endpoint`${e}/variables`,{key:t,value:r,...s})}edit(e,t,r,s){return a.put()(this,endpoint`${e}/variables/${t}`,{value:r,...s})}show(e,t,r){return a.get()(this,endpoint`${e}/variables/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/variables/${t}`,r)}};var D=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/wikis`,t)}create(e,t,r,s){return a.post()(this,endpoint`${e}/wikis`,{content:t,title:r,...s})}edit(e,t,r){return a.put()(this,endpoint`${e}/wikis/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`${e}/wikis/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/wikis/${t}`,r)}uploadAttachment(e,t,r){return a.post()(this,endpoint`${e}/wikis/attachments`,{...r,isForm:true,file:[t.content,t.filename]})}};var F=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){return a.post()(this,endpoint`${e}/hooks`,{url:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/hooks`,t)}edit(e,t,r,s){return a.put()(this,endpoint`${e}/hooks/${t}`,{url:r,...s})}remove(e,t,r){return a.del()(this,endpoint`${e}/hooks/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`${e}/hooks/${t}`,r)}};var H=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}create(e,t){return a.post()(this,endpoint`${e}/push_rule`,t)}edit(e,t){return a.put()(this,endpoint`${e}/push_rule`,t)}remove(e,t){return a.del()(this,endpoint`${e}/push_rule`,t)}show(e,t){return a.get()(this,endpoint`${e}/push_rule`,t)}};var U=class extends s.BaseResource{resourceType;resourceTypeSingular;constructor(e,t){super(t);this.resourceType=e;this.resourceTypeSingular=e.substring(0,e.length-1)}all(e){const t=e?.[`${this.resourceTypeSingular}Id`];const r=t?endpoint`${this.resourceType}/${t}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,r,e)}show(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const s=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.get()(this,`${s}/${e}`,t)}schedule(e,t){const r=t?.[`${this.resourceTypeSingular}Id`];const s=r?endpoint`${this.resourceType}/${r}/repository_storage_moves`:`${this.resourceTypeSingular}_repository_storage_moves`;return a.post()(this,s,{sourceStorageName:e,...t})}};var z=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}add(e,t,r){if(!r?.email&&!r?.userId)throw new Error("Missing required argument. Please supply a email or a userId in the options parameter.");return a.post()(this,endpoint`${e}/invitations`,{accessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`${e}/invitations`,t)}edit(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}remove(e,t,r){return a.put()(this,endpoint`${e}/invitations/${t}`,r)}};var K=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,endpoint`${e}/iterations`,t)}};var W=class extends s.BaseResource{constructor(e,t){super({prefixUrl:e,...t})}all(e,t){return a.get()(this,`${e}/protected_environments`,t)}create(e,t,r,s){return a.post()(this,`${e}/protected_environments`,{name:t,deployAccessLevel:r,...s})}edit(e,t,r){return a.put()(this,`${e}/protected_environments/${t}`,r)}show(e,t,r){return a.get()(this,`${e}/protected_environments/${t}`,r)}remove(e,t,r){return a.del()(this,`${e}/protected_environments/${t}`,r)}};var Q=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events`,r)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_iteration_events/${r}`,s)}};var V=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events`,r)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_label_events/${r}`,s)}};var J=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events`,r)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_milestone_events/${r}`,s)}};var Y=class extends s.BaseResource{resource2Type;constructor(e,t,r){super({prefixUrl:e,...r});this.resource2Type=t}all(e,t,r){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events`,r)}show(e,t,r,s){return a.get()(this,endpoint`${e}/${this.resource2Type}/${t}/resource_state_events/${r}`,s)}};var X=class extends q{constructor(e){super("dockerfiles",e)}};var Z=class extends s.BaseResource{all({projectId:e,userId:t,...r}={}){let s;if(e)s=endpoint`projects/${e}/events`;else if(t)s=endpoint`users/${t}/events`;else s="events";return a.get()(this,s,r)}};var ee=class extends s.BaseResource{all(e){return a.get()(this,"experiments",e)}};var te=class extends s.BaseResource{all(e){return a.get()(this,"geo_nodes",e)}allStatuses(e){return a.get()(this,"geo_nodes/statuses",e)}allFailures(e){return a.get()(this,"geo_nodes/current/failures",e)}create(e,t,r){return a.post()(this,"geo_nodes",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_nodes/${e}`,t)}repair(e,t){return a.post()(this,`geo_nodes/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_nodes/${e}`,t)}show(e,t){return a.get()(this,`geo_nodes/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_nodes/${e}/status`,t)}};var re=class extends s.BaseResource{all(e){return a.get()(this,"geo_sites",e)}allStatuses(e){return a.get()(this,"geo_sites/statuses",e)}allFailures(e){return a.get()(this,"geo_sites/current/failures",e)}create(e,t,r){return a.post()(this,"geo_sites",{name:e,url:t,...r})}edit(e,t){return a.put()(this,`geo_sites/${e}`,t)}repair(e,t){return a.post()(this,`geo_sites/${e}/repair`,t)}remove(e,t){return a.del()(this,`geo_sites/${e}`,t)}show(e,t){return a.get()(this,`geo_sites/${e}`,t)}showStatus(e,t){return a.get()(this,`geo_sites/${e}/status`,t)}};var se=class extends q{constructor(e){super("gitignores",e)}};var ne=class extends q{constructor(e){super("gitlab_ci_ymls",e)}};var oe=class extends s.BaseResource{importGithubRepository(e,t,r,s){return a.post()(this,"import/github",{personalAccessToken:e,repoId:t,targetNamespace:r,...s})}cancelGithubRepositoryImport(e,t){return a.post()(this,"import/github/cancel",{projectId:e,...t})}importGithubGists(e,t){return a.post()(this,"import/github/gists",{personalAccessToken:e,...t})}importBitbucketServerRepository(e,t,r,s,n,o){return a.post()(this,"import/bitbucket_server",{bitbucketServerUrl:e,bitbucketServerUsername:t,personalAccessToken:r,bitbucketServerProject:s,bitbucketServerRepo:n,...o})}};var ie=class extends s.BaseResource{all(e){return a.get()(this,"admin/ci/variables",e)}create(e,t,r){return a.post()(this,"admin/ci/variables",{key:e,value:t,...r})}edit(e,t,r){return a.put()(this,endpoint`admin/ci/variables/${e}`,{value:t,...r})}show(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}remove(e,t){return a.get()(this,endpoint`admin/ci/variables/${e}`,t)}};var ae=class extends s.BaseResource{show({keyId:e,fingerprint:t,...r}={}){let s;if(e)s=`keys/${e}`;else if(t)s=`keys?fingerprint=${t}`;else{throw new Error("Missing required argument. Please supply a fingerprint or a keyId in the options parameter")}return a.get()(this,s,r)}};var ue=class extends s.BaseResource{add(e,t){return a.post()(this,"license",{searchParams:{license:e},...t})}all(e){return a.get()(this,"licenses",e)}show(e){return a.get()(this,"license",e)}remove(e,t){return a.del()(this,`license/${e}`,t)}recalculateBillableUsers(e,t){return a.put()(this,`license/${e}/refresh_billable_users`,t)}};var pe=class extends q{constructor(e){super("Licenses",e)}};var ce=class extends s.BaseResource{check(e,t){return a.get()(this,endpoint`projects/${e}/ci/lint`,t)}lint(e,t,r){return a.post()(this,endpoint`projects/${e}/ci/lint`,{...r,content:t})}};var le=class extends s.BaseResource{render(e,t){return a.post()(this,"markdown",{text:e,...t})}};var de=class extends s.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:s,...n}){let o=endpoint`packages/maven/${e}/${t}`;if(r)o=endpoint`projects/${r}/${o}`;else if(s)o=endpoint`groups/${s}/-/${o}`;return a.get()(this,o,n)}uploadPackageFile(e,t,r,s){return a.put()(this,endpoint`projects/${e}/packages/maven/${t}/${r.filename}`,{isForm:true,...s,file:[r.content,r.filename]})}};var fe=class extends s.BaseResource{show(e){return a.get()(this,"metadata",e)}};var he=class extends s.BaseResource{all(e){return a.get()(this,"bulk_imports",e)}create(e,t,r){return a.post()(this,"bulk_imports",{configuration:e,entities:t,...r})}allEntities({bulkImportId:e,...t}={}){const r=e?endpoint`bulk_imports/${e}/entities`:"bulk_imports/entities";return a.get()(this,r,t)}show(e,t){return a.get()(this,`bulk_imports/${e}`,t)}showEntity(e,t,r){return a.get()(this,`bulk_imports/${e}/entities/${t}`,r)}};var ge=class extends s.BaseResource{all(e){return a.get()(this,"namespaces",e)}exists(e,t){return a.get()(this,endpoint`namespaces/${e}/exists`,t)}show(e,t){return a.get()(this,endpoint`namespaces/${e}`,t)}};function url6({projectId:e,groupId:t}={}){let r="";if(e)r=endpoint`projects/${e}/`;if(t)r=endpoint`groups/${t}/`;return`${r}notification_settings`}var me=class extends s.BaseResource{edit({groupId:e,projectId:t,...r}={}){const s=url6({groupId:e,projectId:t});return a.put()(this,s,r)}show({groupId:e,projectId:t,...r}={}){const s=url6({groupId:e,projectId:t});return a.get()(this,s,r)}};function url7(e){return e?endpoint`/projects/${e}/packages/npm`:"packages/npm"}var ye=class extends s.BaseResource{downloadPackageFile(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/npm/${t}/-/${r}`,s)}removeDistTag(e,t,r){const s=url7(r?.projectId);return a.del()(this,`${s}/-/package/${e}/dist-tags/${t}`,r)}setDistTag(e,t,r){const s=url7(r?.projectId);return a.put()(this,`${s}/-/package/${e}/dist-tags/${t}`,r)}showDistTags(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/-/package/${e}/dist-tags`,t)}showMetadata(e,t){const r=url7(t?.projectId);return a.get()(this,`${r}/${e}`,t)}uploadPackageFile(e,t,r,s,n){return a.put()(this,endpoint`projects/${e}/packages/npm/${t}`,{...n,versions:r,...s})}};function url8({projectId:e,groupId:t}={}){if(e)return endpoint`/projects/${e}/packages/nuget`;if(t)return endpoint`/groups/${t}/-/packages/nuget`;throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}var ve=class extends s.BaseResource{downloadPackageFile(e,t,r,s,n){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/${r}/${s}`,n)}search(e,{projectId:t,groupId:r,...s}){const n=url8({projectId:t,groupId:r});return a.get()(this,`${n}/query`,{q:e,...s})}showMetadata(e,{projectId:t,groupId:r,...s}){const n=url8({projectId:t,groupId:r});return a.get()(this,`${n}/metadata/${e}/index`,s)}showPackageIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/nuget/download/${t}/index`,r)}showServiceIndex({projectId:e,groupId:t,...r}){const s=url8({projectId:e,groupId:t});return a.get()(this,`${s}/index`,r)}showVersionMetadata(e,t,{projectId:r,groupId:s,...n}){const o=url8({projectId:r,groupId:s});return a.get()(this,`${o}/metadata/${e}/${t}`,n)}uploadPackageFile(e,t,r,s,n){return a.put()(this,endpoint`projects/${e}/packages/nuget`,{isForm:true,...n,packageName:t,packageVersion:r,file:[s.content,s.filename]})}uploadSymbolPackage(e,t,r,s,n){return a.put()(this,endpoint`projects/${e}/packages/nuget/symbolpackage`,{isForm:true,...n,packageName:t,packageVersion:r,file:[s.content,s.filename]})}};var $e=class extends s.BaseResource{all(e){return a.get()(this,"personal_access_tokens",e)}create(e,t,r,s){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...s})}remove({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.del()(this,r,t)}rotate(e,t){return a.post()(this,endpoint`personal_access_tokens/${e}/rotate`,t)}show({tokenId:e,...t}={}){const r=e?endpoint`personal_access_tokens/${e}`:"personal_access_tokens/self";return a.get()(this,r,t)}};var be=class extends s.BaseResource{downloadPackageFile(e,t,{projectId:r,groupId:s,...n}={}){let o;if(r){o=endpoint`projects/${r}/packages/pypi/files/${e}/${t}`}else if(s){o=endpoint`groups/${s}/packages/pypi/files/${e}/${t}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,o,n)}showPackageDescriptor(e,{projectId:t,groupId:r,...s}){let n;if(t){n=endpoint`projects/${t}/packages/pypi/simple/${e}`}else if(r){n=endpoint`groups/${r}/packages/pypi/simple/${e}`}else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter")}return a.get()(this,n,s)}uploadPackageFile(e,t,r){return a.put()(this,endpoint`projects/${e}/packages/pypi`,{...r,isForm:true,file:[t.content,t.filename]})}};var _e=class extends s.BaseResource{allDependencies(e,t){return a.get()(this,endpoint`projects/${e}/packages/rubygems/api/v1/dependencies`,t)}downloadGemFile(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/rubygems/gems/${t}`,r)}uploadGemFile(e,t,r){return a.post()(this,`projects/${e}/packages/rubygems/api/v1/gems`,{isForm:true,...r,file:[t.content,t.filename]})}};var je=class extends s.BaseResource{all(e,t,r){const{projectId:s,groupId:n,...o}=r||{};let i;if(s)i=endpoint`projects/${s}/`;else if(n)i=endpoint`groups/${n}/`;else i="";return a.get()(this,`${i}search`,{scope:e,search:t,...o})}};var Re=class extends s.BaseResource{all(e){return a.get()(this,"admin/search/migrations",e)}show(e,t){return a.get()(this,endpoint`admin/search/migrations/${e}`,t)}};var Ae=class extends s.BaseResource{create(e){return a.post()(this,endpoint`service_accounts`,e)}};var we=class extends s.BaseResource{showMetricDefinitions(e){return a.get()(this,"usage_data/metric_definitions",e)}showServicePingSQLQueries(e){return a.get()(this,"usage_data/queries",e)}showUsageDataNonSQLMetrics(e){return a.get()(this,"usage_data/non_sql_metrics",e)}};var Se=class extends s.BaseResource{queueMetrics(){return a.get()(this,"sidekiq/queue_metrics")}processMetrics(){return a.get()(this,"sidekiq/process_metrics")}jobStats(){return a.get()(this,"sidekiq/job_stats")}compoundMetrics(){return a.get()(this,"sidekiq/compound_metrics")}};var Ee=class extends s.BaseResource{remove(e,t){return a.get()(this,endpoint`admin/sidekiq/queues/${e}`,t)}};var xe=class extends U{constructor(e){super("snippets",e)}};var ke=class extends s.BaseResource{all({public:e,...t}={}){const r=e?"snippets/public":"snippets";return a.get()(this,r,t)}create(e,t){return a.post()(this,"snippets",{title:e,...t})}edit(e,t){return a.put()(this,`snippets/${e}`,t)}remove(e,t){return a.del()(this,`snippets/${e}`,t)}show(e,t){return a.get()(this,`snippets/${e}`,t)}showContent(e,t){return a.get()(this,`snippets/${e}/raw`,t)}showRepositoryFileContent(e,t,r,s){return a.get()(this,endpoint`snippets/${e}/files/${t}/${r}/raw`,s)}showUserAgentDetails(e,t){return a.get()(this,`snippets/${e}/user_agent_detail`,t)}};var Ie=class extends s.BaseResource{edit(e,t){return a.put()(this,`suggestions/${e}/apply`,t)}editBatch(e,t){return a.put()(this,`suggestions/batch_apply`,{...t,ids:e})}};var Pe=class extends s.BaseResource{all(e){return a.get()(this,"hooks",e)}add(e,t){return this.create(e,t)}create(e,t){return a.post()(this,"hooks",{url:e,...t})}test(e,t){return a.post()(this,`hooks/${e}`,t)}remove(e,t){return a.del()(this,`hooks/${e}`,t)}show(e,t){return a.post()(this,`hooks/${e}`,t)}};var Te=class extends s.BaseResource{all(e){return a.get()(this,"todos",e)}done({todoId:e,...t}={}){let r="todos";if(e)r+=`/${e}`;return a.post()(this,`${r}/mark_as_done`,t)}};var Ce=class extends s.BaseResource{all(e){return a.get()(this,"topics",e)}create(e,{avatar:t,...r}={}){const s={name:e,...r};if(t){s.isForm=true;s.file=[t.content,t.filename]}return a.post()(this,"topics",s)}edit(e,{avatar:t,...r}={}){const s={...r};if(t){s.isForm=true;s.file=[t.content,t.filename]}return a.put()(this,`topics/${e}`,s)}merge(e,t,r){return a.post()(this,`topics/merge`,{sourceTopicId:e,targetTopicId:t,...r})}remove(e,t){return a.del()(this,`topics/${e}`,t)}show(e,t){return a.get()(this,`topics/${e}`,t)}};var Oe=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/branches`,t)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/repository/branches`,{branch:t,ref:r,...s})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}removeMerged(e,t){return a.del()(this,endpoint`projects/${e}/repository/merged_branches`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/branches/${t}`,r)}};var Me=class extends C{constructor(e){super("projects","repository/commits",e)}};var Le=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/commits`,t)}allComments(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,r)}allDiscussions(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/discussions`,r)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/merge_requests`,r)}allReferences(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/refs`,r)}allStatuses(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/statuses`,r)}cherryPick(e,t,r,s){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/cherry_pick`,{branch:r,...s})}create(e,t,r,s=[],n={}){return a.post()(this,endpoint`projects/${e}/repository/commits`,{branch:t,commitMessage:r,actions:s,...n})}createComment(e,t,r,s){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/comments`,{note:r,...s})}editStatus(e,t,r,s){return a.post()(this,endpoint`projects/${e}/statuses/${t}`,{state:r,...s})}revert(e,t,r,s){return a.post()(this,endpoint`projects/${e}/repository/commits/${t}/revert`,{...s,branch:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}`,r)}showDiff(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/diff`,r)}showGPGSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/commits/${t}/signature`,r)}};var Be=class extends s.BaseResource{allRepositories({groupId:e,projectId:t,...r}={}){let s;if(e)s=endpoint`groups/${e}/registry/repositories`;else if(t)s=endpoint`projects/${t}/registry/repositories`;else throw new Error("Missing required argument. Please supply a groupId or a projectId in the options parameter.");return a.get()(this,s,r)}allTags(e,t,r){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,r)}editRegistryVisibility(e,t){return a.get()(this,endpoint`projects/${e}`,t)}removeRepository(e,t,r){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}`,r)}removeTag(e,t,r,s){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,s)}removeTags(e,t,r,s){return a.del()(this,endpoint`projects/${e}/registry/repositories/${t}/tags`,{nameRegexDelete:r,...s})}showRepository(e,t){return a.get()(this,endpoint`registry/repositories/${e}`,t)}showTag(e,t,r,s){return a.get()(this,endpoint`projects/${e}/registry/repositories/${t}/tags/${r}`,s)}};var Ne=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/deployments`,t)}allMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}/merge_requests`,r)}create(e,t,r,s,n,o){return a.post()(this,endpoint`projects/${e}/deployments`,{environment:t,sha:r,ref:s,tag:n,...o})}edit(e,t,r,s){return a.put()(this,endpoint`projects/${e}/deployments/${t}`,{...s,status:r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/deployments/${t}`,r)}setApproval(e,t,r,s){return a.post()(this,endpoint`projects/${e}/deployments/${t}/approval`,{...s,status:r})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/deployments/${t}`,r)}};var qe=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/environments`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/environments`,{name:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/environments/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/environments/${t}`,r)}removeReviewApps(e,t){return a.del()(this,endpoint`projects/${e}/environments/review_apps`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/environments/${t}`,r)}stop(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/${t}/stop`,r)}stopStale(e,t,r){return a.post()(this,endpoint`projects/${e}/environments/stop_stale`,{searchParams:{before:t},...r})}};var Ge=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}remove(e,t){return a.del()(this,endpoint`projects/${e}/error_tracking/client_keys`,t)}};var De=class extends s.BaseResource{create(e,t,r,s){return a.put()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...s})}edit(e,t,{integrated:r,...s}={}){return a.patch()(this,endpoint`projects/${e}/error_tracking/settings`,{searchParams:{active:t,integrated:r},...s})}show(e,t){return a.get()(this,endpoint`projects/${e}/error_tracking/settings`,t)}};var Fe=class extends s.BaseResource{all(e,t){const{mergerequestIId:r,...s}=t||{};let n=endpoint`projects/${e}`;if(r){n+=endpoint`/merge_requests/${r}/status_checks`}else{n+="/external_status_checks"}return a.get()(this,n,s)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/external_status_checks`,{name:t,externalUrl:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/external_status_checks/${t}`,r)}set(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/status_check_responses`,{sha:r,externalStatusCheckId:s,...n})}};var He=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags`,t)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/feature_flags`,{name:t,version:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags/${t}`,r)}};var Ue=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists`,t)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/feature_flags_user_lists`,{name:t,userXids:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/feature_flags_user_lists/${t}`,r)}};var ze=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/freeze_periods`,t)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/freeze_periods`,{freezeStart:t,freezeEnd:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/freeze_periods/${t}`,r)}};var Ke=class extends s.BaseResource{remove(e,t){return a.del()(this,endpoint`projects/${e}/pages`,t)}};var We=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/list`,r)}showVersionMetadata(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.info`,s)}downloadModuleFile(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.mod`,s)}downloadModuleSource(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/go/${t}/@v/${r}.zip`,s)}};var Qe=class extends s.BaseResource{downloadChartIndex(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/index.yaml`,r)}downloadChart(e,t,r,s){return a.get()(this,endpoint`projects/${e}/packages/helm/${t}/charts/${r}.tgz`,s)}import(e,t,r,s){return a.post()(this,endpoint`projects/${e}/packages/helm/api/${t}/charts`,{isForm:true,...s,chart:[r.content,r.filename]})}};var Ve=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/integrations`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/integrations/${t}`,r)}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/integrations/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/integrations/${t}`,r)}};var Je=class extends x{constructor(e){super("projects","issues",e)}};var Ye=class extends C{constructor(e){super("projects","issues",e)}};var Xe=class extends Q{constructor(e){super("projects","issues",e)}};var Ze=class extends V{constructor(e){super("projects","issues",e)}};var et=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/links`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/issues/${t}/links`,{targetProjectId:r,targetIssueIid:s,...n})}remove(e,t,r,s){return a.del()(this,endpoint`projects/${e}/issues/${t}/links/${r}`,s)}};var tt=class extends J{constructor(e){super("projects","issues",e)}};var rt=class extends k{constructor(e){super("issues",e)}};var st=class extends N{constructor(e){super("projects","issues",e)}};var nt=class extends s.BaseResource{addSpentTime(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/add_spent_time`,{duration:r,...s})}addTimeEstimate(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/time_estimate`,{duration:r,...s})}all({projectId:e,groupId:t,...r}={}){let s;if(e)s=endpoint`projects/${e}/issues`;else if(t)s=endpoint`groups/${t}/issues`;else s="issues";return a.get()(this,s,r)}allMetricImages(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/metric_images`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/participants`,r)}allRelatedMergeRequests(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/related_merge_requests`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/issues`,{...r,title:t})}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/todo`,r)}clone(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/clone`,{toProjectId:r,...s})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}`,r)}editMetricImage(e,t,r,s){return a.put()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,s)}move(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/move`,{toProjectId:r,...s})}promote(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/notes`,{searchParams:{body:`${r} \n /promote`},...s})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/issues/${t}`,r)}removeMetricImage(e,t,r,s){return a.del()(this,endpoint`projects/${e}/issues/${t}/metric_images/${r}`,s)}reorder(e,t,r){return a.put()(this,endpoint`projects/${e}/issues/${t}/reorder`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/reset_time_estimate`,r)}show(e,{projectId:t,...r}={}){const s=t?endpoint`projects/${t}/issues/${e}`:`issues/${e}`;return a.get()(this,s,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/subscribe`,r)}allClosedByMergeRequestst(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/closed_by`,r)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/time_stats`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/issues/${t}/unsubscribe`,r)}uploadMetricImage(e,t,r,s){return a.post()(this,endpoint`projects/${e}/issues/${t}/metric_images`,{isForm:true,...s,file:[r.content,r.filename]})}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/issues/${t}/user_agent_details`,r)}};var ot=class extends s.BaseResource{all({projectId:e,groupId:t,...r}={}){let s;if(e)s=endpoint`projects/${e}/issues_statistics`;else if(t)s=endpoint`groups/${t}/issues_statistics`;else s="issues_statistics";return a.get()(this,s,r)}};var it=class extends Y{constructor(e){super("projects","issues",e)}};var at=class extends Y{constructor(e){super("projects","issues",e)}};function generateDownloadPathForJob(e,t,r){let s=endpoint`projects/${e}/jobs/${t}/artifacts`;if(r)s+=`/${r}`;return s}function generateDownloadPath(e,t,r){let s=endpoint`projects/${e}/jobs/artifacts/${t}`;if(r){s+=endpoint`/raw/${r}`}else{s+=endpoint`/download`}return s}var ut=class extends s.BaseResource{downloadArchive(e,{jobId:t,artifactPath:r,ref:s,...n}={}){let o;if(t)o=generateDownloadPathForJob(e,t,r);else if(n?.job&&s)o=generateDownloadPath(e,s,r);else throw new Error("Missing one of the required parameters. See typing documentation for available arguments.");return a.get()(this,o,n)}keep(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/artifacts/keep`,r)}remove(e,{jobId:t,...r}={}){let s;if(t){s=endpoint`projects/${e}/jobs/${t}/artifacts`}else{s=endpoint`projects/${e}/artifacts`}return a.del()(this,s,r)}};var pt=class extends s.BaseResource{all(e,{pipelineId:t,...r}={}){const s=t?endpoint`projects/${e}/pipelines/${t}/jobs`:endpoint`projects/${e}/jobs`;return a.get()(this,s,r)}allPipelineBridges(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/bridges`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/cancel`,r)}erase(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/erase`,r)}play(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/play`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/jobs/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}`,r)}showConnectedJob(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job",e)}showConnectedJobK8Agents(e){if(!this.headers["job-token"])throw new Error('Missing required header "job-token"');return a.get()(this,"job/allowed_agents",e)}showLog(e,t,r){return a.get()(this,endpoint`projects/${e}/jobs/${t}/trace`,r)}};var ct=class extends s.BaseResource{allApprovalRules(e,{mergerequestIId:t,...r}={}){let s;if(t){s=endpoint`projects/${e}/merge_requests/${t}/approval_rules`}else{s=endpoint`projects/${e}/approval_rules`}return a.get()(this,s,r)}approve(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/approve`,r)}createApprovalRule(e,t,r,{mergerequestIId:s,...n}={}){let o;if(s){o=endpoint`projects/${e}/merge_requests/${s}/approval_rules`}else{o=endpoint`projects/${e}/approval_rules`}return a.post()(this,o,{name:t,approvalsRequired:r,...n})}editApprovalRule(e,t,r,s,{mergerequestIId:n,...o}={}){let i;if(n){i=endpoint`projects/${e}/merge_requests/${n}/approval_rules/${t}`}else{i=endpoint`projects/${e}/approval_rules/${t}`}return a.put()(this,i,{name:r,approvalsRequired:s,...o})}editConfiguration(e,t){return a.post()(this,endpoint`projects/${e}/approvals`,t)}removeApprovalRule(e,t,{mergerequestIId:r,...s}={}){let n;if(r){n=endpoint`projects/${e}/merge_requests/${r}/approval_rules/${t}`}else{n=endpoint`projects/${e}/approval_rules/${t}`}return a.del()(this,n,s)}showApprovalRule(e,t,r){return a.get()(this,endpoint`projects/${e}/approval_rules/${t}`,r)}showApprovalState(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/approval_state`,r)}showConfiguration(e,{mergerequestIId:t,...r}={}){let s;if(t){s=endpoint`projects/${e}/merge_requests/${t}/approvals`}else{s=endpoint`projects/${e}/approvals`}return a.get()(this,s,r)}unapprove(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unapprove`,r)}};var lt=class extends x{constructor(e){super("projects","merge_requests",e)}};var dt=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}create(e,t,{mergerequestIId:r,...s}={}){const n=endpoint`projects/${e}/merge_requests`;const o=r?`${n}/${r}/context_commits`:n;return a.post()(this,o,{commits:t,...s})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/context_commits`,r)}};var ft=class extends C{constructor(e){super("projects","merge_requests",e)}resolve(e,t,r,s,n){return a.put()(this,endpoint`${e}/merge_requests/${t}/discussions/${r}`,{searchParams:{resolved:s},...n})}};var ht=class extends V{constructor(e){super("projects","merge_requests",e)}};var gt=class extends J{constructor(e){super("projects","merge_requests",e)}};var mt=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,r)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes`,{...s,note:r})}edit(e,t,r,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,s)}publish(e,t,r,s){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}/publish`,s)}publishBulk(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/bulk_publish`,r)}remove(e,t,r,s){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,s)}show(e,t,r,s){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/draft_notes/${r}`,s)}};var yt=class extends N{constructor(e){super("projects","merge_requests",e)}};var vt=class extends k{constructor(e){super("merge_requests",e)}};var $t=class extends s.BaseResource{accept(e,t,r){return this.merge(e,t,r)}addSpentTime(e,t,r,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/add_spent_time`,{duration:r,...s})}all({projectId:e,groupId:t,...r}={}){let s="";if(e){s=endpoint`projects/${e}/`}else if(t){s=endpoint`groups/${t}/`}return a.get()(this,`${s}merge_requests`,r)}allDiffs(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/diffs`,r)}allCommits(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/commits`,r)}allDiffVersions(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions`,r)}allIssuesClosed(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/closes_issues`,r)}allParticipants(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/participants`,r)}allPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}cancelOnPipelineSuccess(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/cancel_merge_when_pipeline_succeeds`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/merge_requests`,{sourceBranch:t,targetBranch:r,title:s,...n})}createPipeline(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/pipelines`,r)}createTodo(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/todo`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}merge(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge`,r)}mergeToDefault(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/merge_ref`,r)}rebase(e,t,r){return a.put()(this,endpoint`projects/${e}/merge_requests/${t}/rebase`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}resetSpentTime(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_spent_time`,r)}resetTimeEstimate(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/reset_time_estimate`,r)}setTimeEstimate(e,t,r,s){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/time_estimate`,{duration:r,...s})}show(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}`,r)}showChanges(e,t,r){process.emitWarning('This endpoint was deprecated in Gitlab API 15.7 and will be removed in API v5. Please use the "allDiffs" function instead.',"DeprecationWarning");return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/changes`,r)}showDiffVersion(e,t,r,s){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/versions/${r}`,s)}showTimeStats(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_requests/${t}/time_stats`,r)}subscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/subscribe`,r)}unsubscribe(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_requests/${t}/unsubscribe`,r)}};var bt=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/merge_trains`,t)}showStatus(e,t,r){return a.get()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}addMergeRequest(e,t,r){return a.post()(this,endpoint`projects/${e}/merge_trains/merge_requests/${t}`,r)}};var _t=class extends s.BaseResource{publish(e,t,r,s,{contentType:n,...o}={}){return a.put()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${s.filename}`,{isForm:true,file:[s.content,s.filename],...o})}download(e,t,r,s,n){return a.get()(this,endpoint`projects/${e}/packages/generic/${t}/${r}/${s}`,n)}};var jt=class extends s.BaseResource{all({projectId:e,groupId:t,...r}={}){let s;if(e)s=endpoint`projects/${e}/packages`;else if(t)s=endpoint`groups/${t}/packages`;else{throw new Error("Missing required argument. Please supply a projectId or a groupId in the options parameter.")}return a.get()(this,s,r)}allFiles(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}/package_files`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/packages/${t}`,r)}removeFile(e,t,r,s){return a.del()(this,endpoint`projects/${e}/packages/${t}/package_files/${r}`,s)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/packages/${t}`,r)}};var Rt=class extends s.BaseResource{all({projectId:e,...t}={}){const r=e?endpoint`projects/${e}/`:"";return a.get()(this,`${r}pages/domains`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pages/domains`,{domain:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pages/domains/${t}`,r)}};var At=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipelines`,t)}allVariables(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/variables`,r)}cancel(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/cancel`,r)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline`,{ref:t,...r})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipelines/${t}`,r)}retry(e,t,r){return a.post()(this,endpoint`projects/${e}/pipelines/${t}/retry`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}`,r)}showTestReport(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report`,r)}showTestReportSummary(e,t,r){return a.get()(this,endpoint`projects/${e}/pipelines/${t}/test_report_summary`,r)}};var wt=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/pipeline_schedules`,t)}allTriggeredPipelines(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/pipelines`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/pipeline_schedules`,{description:t,ref:r,cron:s,...n})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}run(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/play`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}`,r)}takeOwnership(e,t,r){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/take_ownership`,r)}};var St=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables`,{...n,key:r,value:s})}edit(e,t,r,s,n){return a.put()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,{...n,value:s})}remove(e,t,r,s){return a.del()(this,endpoint`projects/${e}/pipeline_schedules/${t}/variables/${r}`,s)}};var Et=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/triggers`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/triggers`,{description:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/triggers/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/triggers/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/triggers/${t}`,r)}trigger(e,t,r,{variables:s,...n}={}){const o={...n,searchParams:{token:r,ref:t}};if(s){o.isForm=true;Object.assign(o,reformatObjectOptions(s,"variables"))}return a.post()(this,endpoint`projects/${e}/trigger/pipeline`,o)}};var xt=class extends s.BaseResource{allFunnels(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/funnels`,t)}load(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/load`,t)}dryRun(e,t){return a.post()(this,endpoint`projects/${e}/product_analytics/request/dry-run`,t)}showMetadata(e,t){return a.get()(this,endpoint`projects/${e}/product_analytics/request/meta`,t)}};var kt=class extends S{constructor(e){super("projects",e)}};var It=class extends E{constructor(e){super("projects",e)}};var Pt=class extends s.BaseResource{all(e){return a.get()(this,"project_aliases",e)}create(e,t,r){return a.post()(this,"project_aliases",{name:t,projectId:e,...r})}edit(e,t){return a.post()(this,`project_aliases/${e}`,t)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}};var Tt=class extends I{constructor(e){super("projects",e)}};var Ct=class extends P{constructor(e){super("projects",e)}};var Ot=class extends T{constructor(e){super("projects",e)}};var Mt=class extends F{constructor(e){super("projects",e)}};var Lt=class extends s.BaseResource{download(e,t){return a.get()(this,endpoint`projects/${e}/export/download`,t)}import(e,t,r){return a.post()(this,"projects/import",{isForm:true,...r,file:[e.content,e.filename],path:t})}importRemote(e,t,r){return a.post()(this,"projects/remote-import",{...r,path:t,url:e})}importRemoteS3(e,t,r,s,n,o,i){return a.post()(this,"projects/remote-import",{...i,accessKeyId:e,bucketName:t,fileKey:r,path:s,region:n,secretAccessKey:o})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export`,t)}showImportStatus(e,t){return a.get()(this,endpoint`projects/${e}/import`,t)}scheduleExport(e,t,r){return a.post()(this,endpoint`projects/${e}/export`,{...r,upload:t})}};var Bt=class extends z{constructor(e){super("projects",e)}};var Nt=class extends O{constructor(e){super("projects",e)}};var qt=class extends K{constructor(e){super("project",e)}};var Gt=class extends M{constructor(e){super("projects",e)}};var Dt=class extends L{constructor(e){super("projects",e)}};var Ft=class extends B{constructor(e){super("projects",e)}promote(e,t,r){return a.post()(this,endpoint`${e}/milestones/${t}/promote`,r)}};var Ht=class extends W{constructor(e){super("groups",e)}};var Ut=class extends H{constructor(e){super("projects",e)}};var zt=class extends s.BaseResource{download(e,t,r){return a.get()(this,endpoint`projects/${e}/export_relations/download`,{relation:t,...r})}showExportStatus(e,t){return a.get()(this,endpoint`projects/${e}/export_relations/status`,t)}scheduleExport(e,t){return a.post()(this,endpoint`projects/${e}/export_relations`,t)}};var Kt=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/releases`,t)}create(e,t){return a.post()(this,endpoint`projects/${e}/releases`,t)}createEvidence(e,t,r){return a.post()(this,endpoint`projects/${e}/releases/${t}/evidence`,r)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/releases/${t}`,r)}download(e,t,r,s){return a.get()(this,endpoint`projects/${e}/releases/${t}/downloads/${r}`,s)}downloadLatest(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/downloads/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/releases/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}`,r)}showLatest(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest`,t)}showLatestEvidence(e,t){return a.get()(this,endpoint`projects/${e}/releases/permalink/latest/evidence`,t)}};var Wt=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/remote_mirrors`,t)}createPullMirror(e,t,r,s){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...s})}createPushMirror(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors`,{url:t,...r})}edit(e,t,r){return a.post()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}remove(e,t){return a.del()(this,`project_aliases/${e}`,t)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/remote_mirrors/${t}`,r)}};var Qt=class extends U{constructor(e){super("projects",e)}};var Vt=class extends s.BaseResource{all({userId:e,starredOnly:t,...r}={}){let s;if(e&&t)s=endpoint`users/${e}/starred_projects`;else if(e)s=endpoint`users/${e}/projects`;else s="projects";return a.get()(this,s,r)}allTransferLocations(e,t){return a.get()(this,endpoint`projects/${e}/transfer_locations`,t)}allUsers(e,t){return a.get()(this,endpoint`projects/${e}/users`,t)}allGroups(e,t){return a.get()(this,endpoint`projects/${e}/groups`,t)}allSharableGroups(e,t){return a.get()(this,endpoint`projects/${e}/share_locations`,t)}allForks(e,t){return a.get()(this,endpoint`projects/${e}/forks`,t)}allStarrers(e,t){return a.get()(this,endpoint`projects/${e}/starrers`,t)}allStoragePaths(e,t){return a.get()(this,endpoint`projects/${e}/storage`,t)}archive(e,t){return a.post()(this,endpoint`projects/${e}/archive`,t)}create({userId:e,avatar:t,...r}={}){const s=e?`projects/user/${e}`:"projects";if(t){return a.post()(this,s,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.post()(this,s,{...r,avatar:t})}createForkRelationship(e,t,r){return a.post()(this,endpoint`projects/${e}/fork/${t}`,r)}createPullMirror(e,t,r,s){return a.post()(this,endpoint`projects/${e}/mirror/pull`,{importUrl:t,mirror:r,...s})}downloadSnapshot(e,t){return a.get()(this,endpoint`projects/${e}/snapshot`,t)}edit(e,{avatar:t,...r}={}){const s=endpoint`projects/${e}`;if(t){return a.put()(this,s,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,s,{...r,avatar:t})}fork(e,t){return a.post()(this,endpoint`projects/${e}/fork`,t)}housekeeping(e,t){return a.post()(this,endpoint`projects/${e}/housekeeping`,t)}importProjectMembers(e,t,r){return a.post()(this,endpoint`projects/${e}/import_project_members/${t}`,r)}remove(e,t){return a.del()(this,endpoint`projects/${e}`,t)}removeForkRelationship(e,t){return a.del()(this,endpoint`projects/${e}/fork`,t)}removeAvatar(e,t){return a.put()(this,endpoint`projects/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`projects/${e}/restore`,t)}search(e,t){return a.get()(this,"projects",{search:e,...t})}share(e,t,r,s){return a.post()(this,endpoint`projects/${e}/share`,{groupId:t,groupAccess:r,...s})}show(e,t){return a.get()(this,endpoint`projects/${e}`,t)}showLanguages(e,t){return a.get()(this,endpoint`projects/${e}/languages`,t)}showPullMirror(e,t){return a.get()(this,endpoint`projects/${e}/mirror/pull`,t)}star(e,t){return a.post()(this,endpoint`projects/${e}/star`,t)}transfer(e,t,r){return a.put()(this,endpoint`projects/${e}/transfer`,{...r,namespace:t})}unarchive(e,t){return a.post()(this,endpoint`projects/${e}/unarchive`,t)}unshare(e,t,r){return a.del()(this,endpoint`projects/${e}/share/${t}`,r)}unstar(e,t){return a.post()(this,endpoint`projects/${e}/unstar`,t)}uploadForReference(e,t,r){return a.post()(this,endpoint`projects/${e}/uploads`,{...r,isForm:true,file:[t.content,t.filename]})}uploadAvatar(e,t,r){return a.put()(this,endpoint`projects/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}};var Jt=class extends x{constructor(e){super("projects","snippets",e)}};var Yt=class extends C{constructor(e){super("projects","snippets",e)}};var Xt=class extends N{constructor(e){super("projects","snippets",e)}};var Zt=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/snippets`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/snippets`,{title:t,...r})}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/snippets/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/snippets/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}`,r)}showContent(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/raw`,r)}showRepositoryFileContent(e,t,r,s,n){return a.get()(this,endpoint`projects/${e}/snippets/${t}/files/${r}/${s}/raw`,n)}showUserAgentDetails(e,t,r){return a.get()(this,endpoint`projects/${e}/snippets/${t}/user_agent_detail`,r)}};var er=class extends s.BaseResource{show(e,t){return a.get()(this,endpoint`projects/${e}/statistics`,t)}};var tr=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/templates/${t}`,r)}show(e,t,r,s){return a.get()(this,endpoint`projects/${e}/templates/${t}/${r}`,s)}};var rr=class extends G{constructor(e){super("projects",e)}};var sr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/vulnerabilities`,t)}create(e,t,r){return a.post()(this,endpoint`projects/${e}/vulnerabilities`,{...r,searchParams:{findingId:t}})}};var nr=class extends D{constructor(e){super("projects",e)}};var or=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_branches`,t)}create(e,t,r){const{sudo:s,showExpanded:n,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_branches`,{searchParams:{...o,name:t},sudo:s,showExpanded:n})}protect(e,t,r){return this.create(e,t,r)}edit(e,t,r){return a.patch()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_branches/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var ir=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/protected_tags`,t)}create(e,t,r){const{sudo:s,showExpanded:n,...o}=r||{};return a.post()(this,endpoint`projects/${e}/protected_tags`,{searchParams:{name:t,...o},sudo:s,showExpanded:n})}protect(e,t,r){return this.create(e,t,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/protected_tags/${t}`,r)}unprotect(e,t,r){return this.remove(e,t,r)}};var ar=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`projects/${e}/releases/${t}/assets/links`,{name:r,url:s,...n})}edit(e,t,r,s){return a.put()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,s)}remove(e,t,r,s){return a.del()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,s)}show(e,t,r,s){return a.get()(this,endpoint`projects/${e}/releases/${t}/assets/links/${r}`,s)}};var ur=class extends s.BaseResource{allContributors(e,t){return a.get()(this,endpoint`projects/${e}/repository/contributors`,t)}allRepositoryTrees(e,t){return a.get()(this,endpoint`projects/${e}/repository/tree`,t)}compare(e,t,r,s){return a.get()(this,endpoint`projects/${e}/repository/compare`,{from:t,to:r,...s})}editChangelog(e,t,r){return a.post()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}mergeBase(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/merge_base`,{...r,refs:t})}showArchive(e,{fileType:t="tar.gz",...r}={}){return a.get()(this,endpoint`projects/${e}/repository/archive.${t}`,r)}showBlob(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}`,r)}showBlobRaw(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/blobs/${t}/raw`,r)}showChangelog(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/changelog`,{...r,version:t})}};var pr=class extends s.BaseResource{allFileBlames(e,t,r,s){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/blame`,{ref:r,...s})}create(e,t,r,s,n,o){return a.post()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:s,commitMessage:n,...o})}edit(e,t,r,s,n,o){return a.put()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,content:s,commitMessage:n,...o})}remove(e,t,r,s,n){return a.del()(this,endpoint`projects/${e}/repository/files/${t}`,{branch:r,commitMessage:s,...n})}show(e,t,r,s){return a.get()(this,endpoint`projects/${e}/repository/files/${t}`,{ref:r,...s})}showRaw(e,t,r,s){return a.get()(this,endpoint`projects/${e}/repository/files/${t}/raw`,{ref:r,...s})}};var cr=class extends s.BaseResource{edit(e,t,r,s,n){return a.put()(this,endpoint`projects/${e}/repository/submodules/${t}`,{branch:r,commitSha:s,...n})}};var lr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups`,t)}edit(e,t,r){return a.put()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/resource_groups/${t}`,r)}allUpcomingJobs(e,t){return a.get()(this,endpoint`projects/${e}/resource_groups/upcoming_jobs`,t)}};var dr=class extends s.BaseResource{all({projectId:e,groupId:t,owned:r,...s}={}){let n;if(e)n=endpoint`projects/${e}/runners`;else if(t)n=endpoint`groups/${t}/runners`;else if(r)n="runners";else n="runners/all";return a.get()(this,n,s)}allJobs(e,t){return a.get()(this,`runners/${e}/jobs`,t)}create(e,t){return a.post()(this,`runners`,{token:e,...t})}edit(e,t){return a.put()(this,`runners/${e}`,t)}enable(e,t,r){return a.post()(this,endpoint`projects/${e}/runners`,{runnerId:t,...r})}disable(e,t,r){return a.del()(this,endpoint`projects/${e}/runners/${t}`,r)}register(e,t){return this.create(e,t)}remove({runnerId:e,token:t,...r}){let s;if(e)s=`runners/${e}`;else if(t){s="runners"}else throw new Error("Missing required argument. Please supply a runnerId or a token in the options parameter");return a.del()(this,s,{token:t,...r})}resetRegistrationToken({runnerId:e,token:t,...r}={}){let s;if(e)s=endpoint`runners/${e}/reset_registration_token`;else if(t)s="runners/reset_registration_token";else{throw new Error("Missing either runnerId or token parameters")}return a.post()(this,s,{token:t,...r})}show(e,t){return a.get()(this,`runners/${e}`,t)}verify(e){return a.post()(this,`runners/verify`,e)}};var fr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/secure_files`,t)}create(e,t,r,s){return a.post()(this,`projects/${e}/secure_files`,{isForm:true,...s,file:[r.content,r.filename],name:t})}download(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}/download`,r)}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/secure_files/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/secure_files/${t}`,r)}};var hr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`projects/${e}/repository/tags`,t)}create(e,t,r,s){return a.post()(this,endpoint`projects/${e}/repository/tags`,{searchParams:{tagName:t,ref:r},...s})}remove(e,t,r){return a.del()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}`,r)}showSignature(e,t,r){return a.get()(this,endpoint`projects/${e}/repository/tags/${t}/signature`,r)}};var gr=class extends s.BaseResource{create(e,t,r){return a.get()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,{dashboardPath:t,...r})}remove(e,t){return a.del()(this,endpoint`projects/${e}/metrics/user_starred_dashboards`,t)}};var mr=class extends x{constructor(e){super("epics","issues",e)}};var yr=class extends C{constructor(e){super("groups","epics",e)}};var vr=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/issues`,r)}assign(e,t,r,s){return a.post()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,s)}edit(e,t,r,s){return a.put()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,s)}remove(e,t,r,s){return a.del()(this,endpoint`groups/${e}/epics/${t}/issues/${r}`,s)}};var $r=class extends V{constructor(e){super("groups","epic",e)}};var br=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/links`,r)}assign(e,t,r,s){return a.post()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,s)}create(e,t,r,s){return a.post()(this,endpoint`groups/${e}/epics/${t}/links`,{searchParams:{title:r},...s})}reorder(e,t,r,s){return a.put()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,s)}unassign(e,t,r,s){return a.del()(this,endpoint`groups/${e}/epics/${t}/links/${r}`,s)}};var _r=class extends N{constructor(e){super("groups","epics",e)}};var jr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epics`,t)}create(e,t,r){return a.post()(this,endpoint`groups/${e}/epics`,{title:t,...r})}createTodo(e,t,r){return a.post()(this,endpoint`groups/${e}/epics/${t}/todos`,r)}edit(e,t,r){return a.put()(this,endpoint`groups/${e}/epics/${t}`,r)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/epics/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}`,r)}};var Rr=class extends S{constructor(e){super("groups",e)}};var Ar=class extends E{constructor(e){super("groups",e)}};var wr=class extends s.BaseResource{showIssuesCount(e,t){return a.get()(this,"analytics/group_activity/issues_count",{searchParams:{groupPath:e},...t})}showMergeRequestsCount(e,t){return a.get()(this,"analytics/group_activity/merge_requests_count",{searchParams:{groupPath:e},...t})}showNewMembersCount(e,t){return a.get()(this,"analytics/group_activity/new_members_count",{searchParams:{groupPath:e},...t})}};var Sr=class extends I{constructor(e){super("groups",e)}};var Er=class extends P{constructor(e){super("groups",e)}};var xr=class extends T{constructor(e){super("groups",e)}};var kr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/epic_boards`,t)}allLists(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}`,r)}showList(e,t,r,s){return a.get()(this,endpoint`groups/${e}/epic_boards/${t}/lists/${r}`,s)}};var Ir=class extends F{constructor(e){super("groups",e)}};var Pr=class extends s.BaseResource{download(e,t){return a.get()(this,endpoint`groups/${e}/export/download`,t)}import(e,t,{parentId:r,name:s,...n}){return a.post()(this,"groups/import",{isForm:true,...n,file:[e.content,e.filename],path:t,name:s||t.split("/").at(0),parentId:r})}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export`,t)}};var Tr=class extends z{constructor(e){super("groups",e)}};var Cr=class extends O{constructor(e){super("groups",e)}};var Or=class extends K{constructor(e){super("groups",e)}};var Mr=class extends M{constructor(e){super("groups",e)}};var Lr=class extends s.BaseResource{add(e,t,r,s){return a.post()(this,endpoint`groups/${e}/ldap_group_links`,{groupAccess:t,provider:r,...s})}all(e,t){return a.get()(this,endpoint`groups/${e}/ldap_group_links`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/ldap_group_links`,{provider:t,...r})}sync(e,t){return a.post()(this,endpoint`groups/${e}/ldap_sync`,t)}};var Br=class extends L{constructor(e){super("groups",e)}allBillable(e,t){return a.get()(this,endpoint`${e}/billable_members`,t)}allPending(e,t){return a.get()(this,endpoint`${e}/pending_members`,t)}allBillableMemberships(e,t,r){return a.get()(this,endpoint`${e}/billable_members/${t}/memberships`,r)}approve(e,t,r){return a.put()(this,endpoint`${e}/members/${t}/approve`,r)}approveAll(e,t){return a.put()(this,endpoint`${e}/members/approve_all`,t)}removeBillable(e,t,r){return a.del()(this,endpoint`${e}/billable_members/${t}`,r)}removeOverrideFlag(e,t,r){return a.del()(this,endpoint`${e}/members/${t}/override`,r)}setOverrideFlag(e,t,r){return a.post()(this,endpoint`${e}/members/${t}/override`,r)}};var Nr=class extends s.BaseResource{add(e,t,r){return a.post()(this,endpoint`groups/${e}/members`,{baseAccessLevel:t,...r})}all(e,t){return a.get()(this,endpoint`groups/${e}/member_roles`,t)}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/member_roles/${t}`,r)}};var qr=class extends B{constructor(e){super("groups",e)}};var Gr=class extends W{constructor(e){super("groups",e)}};var Dr=class extends H{constructor(e){super("groups",e)}};var Fr=class extends s.BaseResource{download(e,t,r){return a.get()(this,endpoint`groups/${e}/export_relations/download`,{searchParams:{relation:t},...r})}exportStatus(e,t){return a.get()(this,endpoint`groups/${e}/export_relations`,t)}scheduleExport(e,t){return a.post()(this,endpoint`groups/${e}/export_relations`,t)}};var Hr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/releases`,t)}};var Ur=class extends U{constructor(e){super("groups",e)}};var zr=class extends s.BaseResource{all(e){return a.get()(this,"groups",e)}allDescendantGroups(e,t){return a.get()(this,endpoint`groups/${e}/descendant_groups`,t)}allProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects`,t)}allSharedProjects(e,t){return a.get()(this,endpoint`groups/${e}/projects/shared`,t)}allSubgroups(e,t){return a.get()(this,endpoint`groups/${e}/subgroups`,t)}allProvisionedUsers(e,t){return a.get()(this,endpoint`groups/${e}/provisioned_users`,t)}allTransferLocations(e,t){return a.get()(this,endpoint`groups/${e}/transfer_locations`,t)}create(e,t,{avatar:r,...s}={}){if(r){return a.post()(this,"groups",{...s,isForm:true,avatar:[r.content,r.filename],name:e,path:t})}return a.post()(this,"groups",{name:e,path:t,...s})}downloadAvatar(e,t){return a.get()(this,endpoint`groups/${e}/avatar`,t)}edit(e,{avatar:t,...r}={}){if(t){return a.post()(this,endpoint`groups/${e}`,{...r,isForm:true,avatar:[t.content,t.filename]})}return a.put()(this,endpoint`groups/${e}`,r)}remove(e,t){return a.del()(this,endpoint`groups/${e}`,t)}removeAvatar(e,t){return a.put()(this,endpoint`groups/${e}`,{...t,avatar:""})}restore(e,t){return a.post()(this,endpoint`groups/${e}/restore`,t)}search(e,t){return a.get()(this,"groups",{search:e,...t})}share(e,t,r,s){return a.post()(this,endpoint`groups/${e}/share`,{groupId:t,groupAccess:r,...s})}show(e,t){return a.get()(this,endpoint`groups/${e}`,t)}transfer(e,t){return a.post()(this,endpoint`groups/${e}/transfer`,t)}transferProject(e,t,r){return a.post()(this,endpoint`groups/${e}/projects/${t}`,r)}unshare(e,t,r){return a.del()(this,endpoint`groups/${e}/share/${t}`,r)}uploadAvatar(e,t,{filename:r,...s}={}){return a.put()(this,endpoint`groups/${e}/avatar`,{isForm:true,...s,file:[t,r]})}};var Kr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/saml/${t}`,r)}};var Wr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/saml_group_links`,t)}create(e,t,r,s){return a.post()(this,endpoint`groups/${e}/saml_group_links`,{accessLevel:r,samlGroupName:t,...s})}remove(e,t,r){return a.del()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}show(e,t,r){return a.get()(this,endpoint`groups/${e}/saml_group_links/${t}`,r)}};var Qr=class extends s.BaseResource{all(e,t){return a.get()(this,endpoint`groups/${e}/scim/identities`,t)}edit(e,t,r){return a.patch()(this,endpoint`groups/${e}/scim/${t}`,r)}};var Vr=class extends s.BaseResource{create(e,t){return a.post()(this,endpoint`groups/${e}/service_accounts`,t)}addPersonalAccessToken(e,t,r){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}`,r)}rotatePersonalAccessToken(e,t,r,s){return a.post()(this,endpoint`groups/${e}/service_accounts/${t}/personal_access_tokens/${r}/rotate`,s)}};var Jr=class extends G{constructor(e){super("groups",e)}};var Yr=class extends D{constructor(e){super("groups",e)}};var Xr=class extends s.BaseResource{all(e,t,r){return a.get()(this,endpoint`groups/${e}/epics/${t}/related_epics`,r)}create(e,t,r,s,n){return a.post()(this,endpoint`groups/${e}/epics/${t}/related_epics`,{searchParams:{targetGroupId:s,targetEpicIid:r},...n})}remove(e,t,r,s){return a.del()(this,endpoint`groups/${e}/epics/${t}/related_epics/${r}`,s)}};var Zr=class extends P{constructor(e){super("users",e)}};var url9=e=>e?`users/${e}/emails`:"user/emails";var es=class extends s.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url9(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url9(t),{email:e,...r})}show(e,t){return a.get()(this,`user/emails/${e}`,t)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url9(t)}/${e}`,r)}};var url10=e=>e?`users/${e}/gpg_keys`:"user/gpg_keys";var ts=class extends s.BaseResource{add(e,t){return this.create(e,t)}all({userId:e,...t}={}){return a.get()(this,url10(e),t)}create(e,{userId:t,...r}={}){return a.post()(this,url10(t),{key:e,...r})}show(e,{userId:t,...r}={}){return a.get()(this,`${url10(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url10(t)}/${e}`,r)}};var rs=class extends s.BaseResource{all(e,t){return a.get()(this,`users/${e}/impersonation_tokens`,t)}create(e,t,r,s){return a.post()(this,`users/${e}/impersonation_tokens`,{name:t,scopes:r,...s})}show(e,t,r){return a.get()(this,`users/${e}/impersonation_tokens/${t}`,r)}remove(e,t,r){return a.del()(this,`users/${e}/impersonation_tokens/${t}`,r)}revoke(e,t,r){return this.remove(e,t,r)}};var ss=class extends s.BaseResource{activate(e,t){return a.post()(this,endpoint`users/${e}/activate`,t)}all(e){return a.get()(this,"users",e)}allActivities(e){return a.get()(this,"user/activities",e)}allEvents(e,t){return a.get()(this,endpoint`users/${e}/events`,t)}allFollowers(e,t){return a.get()(this,endpoint`users/${e}/followers`,t)}allFollowing(e,t){return a.get()(this,endpoint`users/${e}/following`,t)}allMemberships(e,t){return a.get()(this,endpoint`users/${e}/memberships`,t)}allProjects(e,t){return a.get()(this,endpoint`users/${e}/projects`,t)}allContributedProjects(e,t){return a.get()(this,endpoint`users/${e}/contributed_projects`,t)}allStarredProjects(e,t){return a.get()(this,endpoint`users/${e}/starred_projects`,t)}approve(e,t){return a.post()(this,endpoint`users/${e}/approve`,t)}ban(e,t){return a.post()(this,endpoint`users/${e}/ban`,t)}block(e,t){return a.post()(this,endpoint`users/${e}/block`,t)}create(e){return a.post()(this,"users",e)}createPersonalAccessToken(e,t,r,s){return a.post()(this,endpoint`users/${e}/personal_access_tokens`,{name:t,scopes:r,...s})}createCIRunner(e,t){return a.post()(this,"user/runners",{...t,runnerType:e})}deactivate(e,t){return a.post()(this,endpoint`users/${e}/deactivate`,t)}disableTwoFactor(e,t){return a.patch()(this,endpoint`users/${e}/disable_two_factor`,t)}edit(e,t){return a.put()(this,endpoint`users/${e}`,t)}editStatus(e){return a.put()(this,"user/status",e)}editCurrentUserPreferences(e,t,r){return a.put()(this,"user/preferences",{viewDiffsFileByFile:e,showWhitespaceInDiffs:t,...r})}follow(e,t){return a.post()(this,endpoint`users/${e}/follow`,t)}reject(e,t){return a.post()(this,endpoint`users/${e}/reject`,t)}show(e,t){return a.get()(this,endpoint`users/${e}`,t)}showCount(e){return a.get()(this,"user_counts",e)}showAssociationsCount(e,t){return a.get()(this,`users/${e}/associations_count`,t)}showCurrentUser(e){return a.get()(this,"user",e)}showCurrentUserPreferences(e){return a.get()(this,"user/preferences",e)}showStatus({iDOrUsername:e,...t}={}){let r;if(e)r=`users/${e}/status`;else r="user/status";return a.get()(this,r,t)}remove(e,t){return a.del()(this,endpoint`users/${e}`,t)}removeAuthenticationIdentity(e,t,r){return a.del()(this,endpoint`users/${e}/identities/${t}`,r)}unban(e,t){return a.post()(this,endpoint`users/${e}/unban`,t)}unblock(e,t){return a.post()(this,endpoint`users/${e}/unblock`,t)}unfollow(e,t){return a.post()(this,endpoint`users/${e}/unfollow`,t)}};var url11=e=>e?`users/${e}/keys`:"user/keys";var ns=class extends s.BaseResource{add(e,t,r){return this.create(e,t,r)}all({userId:e,...t}={}){return a.get()(this,url11(e),t)}create(e,t,{userId:r,...s}={}){return a.post()(this,url11(r),{title:e,key:t,...s})}show(e,{userId:t,...r}={}){return a.get()(this,`${url11(t)}/${e}`,r)}remove(e,{userId:t,...r}={}){return a.del()(this,`${url11(t)}/${e}`,r)}};var os={Agents:u,AlertManagement:p,ApplicationAppearance:c,ApplicationPlanLimits:l,Applications:d,ApplicationSettings:f,ApplicationStatistics:h,AuditEvents:g,Avatar:m,BroadcastMessages:y,CodeSuggestions:v,Composer:$,Conan:b,DashboardAnnotations:_,Debian:j,DependencyProxy:R,DeployKeys:A,DeployTokens:w,DockerfileTemplates:X,Events:Z,Experiments:ee,GeoNodes:te,GeoSites:re,GitignoreTemplates:se,GitLabCIYMLTemplates:ne,Import:oe,InstanceLevelCICDVariables:ie,Keys:ae,License:ue,LicenseTemplates:pe,Lint:ce,Markdown:le,Maven:de,Metadata:fe,Migrations:he,Namespaces:ge,NotificationSettings:me,NPM:ye,NuGet:ve,PersonalAccessTokens:$e,PyPI:be,RubyGems:_e,Search:je,SearchAdmin:Re,ServiceAccounts:Ae,ServiceData:we,SidekiqMetrics:Se,SidekiqQueues:Ee,SnippetRepositoryStorageMoves:xe,Snippets:ke,Suggestions:Ie,SystemHooks:Pe,TodoLists:Te,Topics:Ce,Branches:Oe,CommitDiscussions:Me,Commits:Le,ContainerRegistry:Be,Deployments:Ne,Environments:qe,ErrorTrackingClientKeys:Ge,ErrorTrackingSettings:De,ExternalStatusChecks:Fe,FeatureFlags:He,FeatureFlagUserLists:Ue,FreezePeriods:ze,GitlabPages:Ke,GoProxy:We,Helm:Qe,Integrations:Ve,IssueAwardEmojis:Je,IssueDiscussions:Ye,IssueIterationEvents:Xe,IssueLabelEvents:Ze,IssueLinks:et,IssueMilestoneEvents:tt,IssueNoteAwardEmojis:rt,IssueNotes:st,Issues:nt,IssuesStatistics:ot,IssueStateEvents:it,IssueWeightEvents:at,JobArtifacts:ut,Jobs:pt,MergeRequestApprovals:ct,MergeRequestAwardEmojis:lt,MergeRequestContextCommits:dt,MergeRequestDiscussions:ft,MergeRequestLabelEvents:ht,MergeRequestMilestoneEvents:gt,MergeRequestDraftNotes:mt,MergeRequestNotes:yt,MergeRequestNoteAwardEmojis:vt,MergeRequests:$t,MergeTrains:bt,PackageRegistry:_t,Packages:jt,PagesDomains:Rt,Pipelines:At,PipelineSchedules:wt,PipelineScheduleVariables:St,PipelineTriggerTokens:Et,ProductAnalytics:xt,ProjectAccessRequests:kt,ProjectAccessTokens:It,ProjectAliases:Pt,ProjectBadges:Tt,ProjectCustomAttributes:Ct,ProjectDORA4Metrics:Ot,ProjectHooks:Mt,ProjectImportExports:Lt,ProjectInvitations:Bt,ProjectIssueBoards:Nt,ProjectIterations:qt,ProjectLabels:Gt,ProjectMembers:Dt,ProjectMilestones:Ft,ProjectProtectedEnvironments:Ht,ProjectPushRules:Ut,ProjectRelationsExport:zt,ProjectReleases:Kt,ProjectRemoteMirrors:Wt,ProjectRepositoryStorageMoves:Qt,Projects:Vt,ProjectSnippetAwardEmojis:Jt,ProjectSnippetDiscussions:Yt,ProjectSnippetNotes:Xt,ProjectSnippets:Zt,ProjectStatistics:er,ProjectTemplates:tr,ProjectVariables:rr,ProjectVulnerabilities:sr,ProjectWikis:nr,ProtectedBranches:or,ProtectedTags:ir,ReleaseLinks:ar,Repositories:ur,RepositoryFiles:pr,RepositorySubmodules:cr,ResourceGroups:lr,Runners:dr,SecureFiles:fr,Tags:hr,UserStarredMetricsDashboard:gr,EpicAwardEmojis:mr,EpicDiscussions:yr,EpicIssues:vr,EpicLabelEvents:$r,EpicLinks:br,EpicNotes:_r,Epics:jr,GroupAccessRequests:Rr,GroupAccessTokens:Ar,GroupActivityAnalytics:wr,GroupBadges:Sr,GroupCustomAttributes:Er,GroupDORA4Metrics:xr,GroupEpicBoards:kr,GroupHooks:Ir,GroupImportExports:Pr,GroupInvitations:Tr,GroupIssueBoards:Cr,GroupIterations:Or,GroupLabels:Mr,GroupLDAPLinks:Lr,GroupMembers:Br,GroupMemberRoles:Nr,GroupMilestones:qr,GroupProtectedEnvironments:Gr,GroupPushRules:Dr,GroupRelationExports:Fr,GroupReleases:Hr,GroupRepositoryStorageMoves:Ur,Groups:zr,GroupSAMLIdentities:Kr,GroupSAMLLinks:Wr,GroupSCIMIdentities:Qr,GroupServiceAccounts:Vr,GroupVariables:Jr,GroupWikis:Yr,LinkedEpics:Xr,UserCustomAttributes:Zr,UserEmails:es,UserGPGKeys:ts,UserImpersonationTokens:rs,Users:ss,UserSSHKeys:ns};var is=class extends s.BaseResource{constructor(e){super(e);Object.keys(os).forEach((t=>{this[t]=new os[t](e)}))}};var as=(e=>{e[e["NO_ACCESS"]=0]="NO_ACCESS";e[e["MINIMAL_ACCESS"]=5]="MINIMAL_ACCESS";e[e["GUEST"]=10]="GUEST";e[e["REPORTER"]=20]="REPORTER";e[e["DEVELOPER"]=30]="DEVELOPER";e[e["MAINTAINER"]=40]="MAINTAINER";e[e["OWNER"]=50]="OWNER";e[e["ADMIN"]=60]="ADMIN";return e})(as||{});t.AccessLevel=as;t.Agents=u;t.AlertManagement=p;t.ApplicationAppearance=c;t.ApplicationPlanLimits=l;t.ApplicationSettings=f;t.ApplicationStatistics=h;t.Applications=d;t.AuditEvents=g;t.Avatar=m;t.Branches=Oe;t.BroadcastMessages=y;t.CodeSuggestions=v;t.CommitDiscussions=Me;t.Commits=Le;t.Composer=$;t.Conan=b;t.ContainerRegistry=Be;t.DashboardAnnotations=_;t.Debian=j;t.DependencyProxy=R;t.DeployKeys=A;t.DeployTokens=w;t.Deployments=Ne;t.DockerfileTemplates=X;t.Environments=qe;t.EpicAwardEmojis=mr;t.EpicDiscussions=yr;t.EpicIssues=vr;t.EpicLabelEvents=$r;t.EpicLinks=br;t.EpicNotes=_r;t.Epics=jr;t.ErrorTrackingClientKeys=Ge;t.ErrorTrackingSettings=De;t.Events=Z;t.Experiments=ee;t.ExternalStatusChecks=Fe;t.FeatureFlagUserLists=Ue;t.FeatureFlags=He;t.FreezePeriods=ze;t.GeoNodes=te;t.GeoSites=re;t.GitLabCIYMLTemplates=ne;t.GitignoreTemplates=se;t.Gitlab=is;t.GitlabPages=Ke;t.GoProxy=We;t.GroupAccessRequests=Rr;t.GroupAccessTokens=Ar;t.GroupActivityAnalytics=wr;t.GroupBadges=Sr;t.GroupCustomAttributes=Er;t.GroupDORA4Metrics=xr;t.GroupEpicBoards=kr;t.GroupHooks=Ir;t.GroupImportExports=Pr;t.GroupInvitations=Tr;t.GroupIssueBoards=Cr;t.GroupIterations=Or;t.GroupLDAPLinks=Lr;t.GroupLabels=Mr;t.GroupMemberRoles=Nr;t.GroupMembers=Br;t.GroupMilestones=qr;t.GroupProtectedEnvironments=Gr;t.GroupPushRules=Dr;t.GroupRelationExports=Fr;t.GroupReleases=Hr;t.GroupRepositoryStorageMoves=Ur;t.GroupSAMLIdentities=Kr;t.GroupSAMLLinks=Wr;t.GroupSCIMIdentities=Qr;t.GroupServiceAccounts=Vr;t.GroupVariables=Jr;t.GroupWikis=Yr;t.Groups=zr;t.Helm=Qe;t.Import=oe;t.InstanceLevelCICDVariables=ie;t.Integrations=Ve;t.IssueAwardEmojis=Je;t.IssueDiscussions=Ye;t.IssueIterationEvents=Xe;t.IssueLabelEvents=Ze;t.IssueLinks=et;t.IssueMilestoneEvents=tt;t.IssueNoteAwardEmojis=rt;t.IssueNotes=st;t.IssueStateEvents=it;t.IssueWeightEvents=at;t.Issues=nt;t.IssuesStatistics=ot;t.JobArtifacts=ut;t.Jobs=pt;t.Keys=ae;t.License=ue;t.LicenseTemplates=pe;t.LinkedEpics=Xr;t.Lint=ce;t.Markdown=le;t.Maven=de;t.MergeRequestApprovals=ct;t.MergeRequestAwardEmojis=lt;t.MergeRequestContextCommits=dt;t.MergeRequestDiscussions=ft;t.MergeRequestDraftNotes=mt;t.MergeRequestLabelEvents=ht;t.MergeRequestMilestoneEvents=gt;t.MergeRequestNoteAwardEmojis=vt;t.MergeRequestNotes=yt;t.MergeRequests=$t;t.MergeTrains=bt;t.Metadata=fe;t.Migrations=he;t.NPM=ye;t.Namespaces=ge;t.NotificationSettings=me;t.NuGet=ve;t.PackageRegistry=_t;t.Packages=jt;t.PagesDomains=Rt;t.PersonalAccessTokens=$e;t.PipelineScheduleVariables=St;t.PipelineSchedules=wt;t.PipelineTriggerTokens=Et;t.Pipelines=At;t.ProductAnalytics=xt;t.ProjectAccessRequests=kt;t.ProjectAccessTokens=It;t.ProjectAliases=Pt;t.ProjectBadges=Tt;t.ProjectCustomAttributes=Ct;t.ProjectDORA4Metrics=Ot;t.ProjectHooks=Mt;t.ProjectImportExports=Lt;t.ProjectInvitations=Bt;t.ProjectIssueBoards=Nt;t.ProjectIterations=qt;t.ProjectLabels=Gt;t.ProjectMembers=Dt;t.ProjectMilestones=Ft;t.ProjectProtectedEnvironments=Ht;t.ProjectPushRules=Ut;t.ProjectRelationsExport=zt;t.ProjectReleases=Kt;t.ProjectRemoteMirrors=Wt;t.ProjectRepositoryStorageMoves=Qt;t.ProjectSnippetAwardEmojis=Jt;t.ProjectSnippetDiscussions=Yt;t.ProjectSnippetNotes=Xt;t.ProjectSnippets=Zt;t.ProjectStatistics=er;t.ProjectTemplates=tr;t.ProjectVariables=rr;t.ProjectVulnerabilities=sr;t.ProjectWikis=nr;t.Projects=Vt;t.ProtectedBranches=or;t.ProtectedTags=ir;t.PyPI=be;t.ReleaseLinks=ar;t.Repositories=ur;t.RepositoryFiles=pr;t.RepositorySubmodules=cr;t.ResourceGroups=lr;t.RubyGems=_e;t.Runners=dr;t.Search=je;t.SearchAdmin=Re;t.SecureFiles=fr;t.ServiceAccounts=Ae;t.ServiceData=we;t.SidekiqMetrics=Se;t.SidekiqQueues=Ee;t.SnippetRepositoryStorageMoves=xe;t.Snippets=ke;t.Suggestions=Ie;t.SystemHooks=Pe;t.Tags=hr;t.TodoLists=Te;t.Topics=Ce;t.UserCustomAttributes=Zr;t.UserEmails=es;t.UserGPGKeys=ts;t.UserImpersonationTokens=rs;t.UserSSHKeys=ns;t.UserStarredMetricsDashboard=gr;t.Users=ss},4710:(e,t,r)=>{"use strict";var s=r(114);var n=r(7022);var o=r(7927);var i=r(287);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(i);function formatQuery(e={}){const t=n.decamelizeKeys(e);return s.stringify(t,{arrayFormat:"brackets"})}async function defaultOptionsHandler(e,{body:t,searchParams:r,sudo:s,signal:o,asStream:i=false,method:a="GET"}={}){const{headers:u,authHeaders:p,url:c}=e;const l={...u};const d={method:a,asStream:i,signal:o,prefixUrl:c};d.headers=l;if(s)d.headers.sudo=`${s}`;if(t){if(t instanceof FormData){d.body=t}else{d.body=JSON.stringify(n.decamelizeKeys(t));d.headers["content-type"]="application/json"}}const[f,h]=Object.entries(p)[0];d.headers[f]=await h();const g=formatQuery(r);if(g)d.searchParams=g;return Promise.resolve(d)}function createRateLimiters(e={}){const t={};Object.entries(e).forEach((([e,r])=>{if(typeof r==="number")t[e]=o.RateLimit(r,{timeUnit:6e4});else t[e]={method:r.method.toUpperCase(),limit:o.RateLimit(r.limit,{timeUnit:6e4})}}));return t}function createRequesterFn(e,t){const r=["get","post","put","patch","delete"];return s=>{const n={};const o=createRateLimiters(s.rateLimits);r.forEach((r=>{n[r]=async(n,i)=>{const a=await defaultOptionsHandler(s,{...i,method:r.toUpperCase()});const u=await e(s,a);return t(n,{...u,rateLimiters:o})}}));return n}}function extendClass(e,t){return class extends e{constructor(...e){const[r,...s]=e;super({...t,...r},...s)}}}function presetResourceArguments(e,t={}){const r={};Object.entries(e).filter((([,e])=>typeof e==="function")).forEach((([e,s])=>{r[e]=extendClass(s,t)}));return r}function getMatchingRateLimiter(e,t={},r="GET"){const s=Object.keys(t).sort().reverse();const n=s.find((t=>a.default.isMatch(e,t)));const i=n&&t[n];if(i&&typeof i!=="object"){return i}if(i&&i.method.toUpperCase()===r.toUpperCase()){return i.limit}return o.RateLimit(3e3,{timeUnit:6e4})}function getDynamicToken(e){return e instanceof Function?e():Promise.resolve(e)}var u=Object.freeze({"**":3e3,"projects/import":6,"projects/*/export":6,"projects/*/download":1,"groups/import":6,"groups/*/export":6,"groups/*/download":1,"projects/*/issues/*/notes":{method:"post",limit:300},"projects/*/snippets/*/notes":{method:"post",limit:300},"projects/*/merge_requests/*/notes":{method:"post",limit:300},"groups/*/epics/*/notes":{method:"post",limit:300},"projects/*/repository/archive*":5,"projects/*/jobs":600,"projects/*/members":60,"groups/*/members":60});var p=class{url;requester;queryTimeout;headers;authHeaders;camelize;rejectUnauthorized;constructor({sudo:e,profileToken:t,camelize:r,requesterFn:s,profileMode:n="execution",host:o="https://gitlab.com",prefixUrl:i="",rejectUnauthorized:a=true,queryTimeout:p=3e5,rateLimits:c=u,...l}){if(!s)throw new ReferenceError("requesterFn must be passed");this.url=[o,"api","v4",i].join("/");this.headers={};this.authHeaders={};this.rejectUnauthorized=a;this.camelize=r;this.queryTimeout=p;if("oauthToken"in l)this.authHeaders.authorization=async()=>{const e=await getDynamicToken(l.oauthToken);return`Bearer ${e}`};else if("jobToken"in l)this.authHeaders["job-token"]=async()=>getDynamicToken(l.jobToken);else if("token"in l)this.authHeaders["private-token"]=async()=>getDynamicToken(l.token);else{throw new ReferenceError("A token, oauthToken or jobToken must be passed")}if(t){this.headers["X-Profile-Token"]=t;this.headers["X-Profile-Mode"]=n}if(e)this.headers.Sudo=`${e}`;this.requester=s({...this,rateLimits:c})}};var c=class extends Error{constructor(e,t){super(e,t);this.name="GitbeakerRequestError"}};var l=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};var d=class extends Error{constructor(e){super(e);this.name="GitbeakerTimeoutError"}};t.BaseResource=p;t.GitbeakerRequestError=c;t.GitbeakerRetryError=d;t.GitbeakerTimeoutError=l;t.createRateLimiters=createRateLimiters;t.createRequesterFn=createRequesterFn;t.defaultOptionsHandler=defaultOptionsHandler;t.formatQuery=formatQuery;t.getMatchingRateLimiter=getMatchingRateLimiter;t.presetResourceArguments=presetResourceArguments},6856:(e,t,r)=>{"use strict";var s=r(9879);var n=r(4710);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var o=_interopNamespace(s);async function defaultOptionsHandler(e,t){const s={...t};if(e.url.includes("https")&&e.rejectUnauthorized!=null&&e.rejectUnauthorized===false){if(typeof window!=="object"){const{Agent:e}=await Promise.resolve().then(r.t.bind(r,5692,23));s.agent=new e({rejectUnauthorized:false})}}return s}async function processBody(e){const t=(e.headers.get("content-type")||"").split(";")[0].trim();if(t==="application/json"){return e.json().then((e=>e||{}))}if(t.startsWith("text/")){return e.text().then((e=>e||""))}return e.blob()}function delay(e){return new Promise((t=>{setTimeout(t,e)}))}async function parseResponse(e,t=false){const{status:r,headers:s}=e;const n=Object.fromEntries(s.entries());let o;if(t){o=e.body}else{o=r===204?null:await processBody(e)}return{body:o,headers:n,status:r}}async function throwFailedRequestError(e,t){const r=await t.text();const s=t.headers.get("Content-Type");let o="API Request Error";if(s?.includes("application/json")){const e=JSON.parse(r);o=JSON.stringify(e.error||e.message,null,2)}else{o=r}throw new n.GitbeakerRequestError(t.statusText,{cause:{description:o,request:e,response:t}})}function getConditionalMode(e){if(e.includes("repository/archive"))return"same-origin";return void 0}async function defaultRequestHandler(e,t){const r=[429,502];const s=10;const{prefixUrl:o,asStream:i,searchParams:a,rateLimiters:u,method:p,...c}=t||{};const l=n.getMatchingRateLimiter(e,u,p);let d;if(o)d=o.endsWith("/")?o:`${o}/`;const f=new URL(e,d);f.search=a||"";const h=getConditionalMode(e);for(let e=0;e<s;e+=1){const t=new Request(f,{...c,method:p,mode:h});await l();const s=await fetch(t).catch((e=>{if(e.name==="TimeoutError"||e.name==="AbortError"){throw new n.GitbeakerTimeoutError("Query timeout was reached")}throw e}));if(s.ok)return parseResponse(s,i);if(!r.includes(s.status))await throwFailedRequestError(t,s);await delay(2**e*.25);continue}throw new n.GitbeakerRetryError(`Could not successfully complete this request due to Error 429. Check the applicable rate limits for this endpoint.`)}var i=n.createRequesterFn(defaultOptionsHandler,defaultRequestHandler);var{AccessLevel:a,...u}=o;var p=n.presetResourceArguments(u,{requesterFn:i});var c=a;var{Agents:l,AlertManagement:d,ApplicationAppearance:f,ApplicationPlanLimits:h,Applications:g,ApplicationSettings:m,ApplicationStatistics:y,AuditEvents:v,Avatar:$,BroadcastMessages:b,CodeSuggestions:_,Composer:j,Conan:R,DashboardAnnotations:A,Debian:w,DependencyProxy:S,DeployKeys:E,DeployTokens:x,DockerfileTemplates:k,Events:I,Experiments:P,GeoNodes:T,GeoSites:C,GitignoreTemplates:O,GitLabCIYMLTemplates:M,Import:L,InstanceLevelCICDVariables:B,Keys:N,License:q,LicenseTemplates:G,Lint:D,Markdown:F,Maven:H,Metadata:U,Migrations:z,Namespaces:K,NotificationSettings:W,NPM:Q,NuGet:V,PersonalAccessTokens:J,PyPI:Y,RubyGems:X,Search:Z,SearchAdmin:ee,ServiceAccounts:te,ServiceData:re,SidekiqMetrics:se,SidekiqQueues:ne,SnippetRepositoryStorageMoves:oe,Snippets:ie,Suggestions:ae,SystemHooks:ue,TodoLists:pe,Topics:ce,Branches:le,CommitDiscussions:de,Commits:fe,ContainerRegistry:he,Deployments:ge,Environments:me,ErrorTrackingClientKeys:ye,ErrorTrackingSettings:ve,ExternalStatusChecks:$e,FeatureFlags:be,FeatureFlagUserLists:_e,FreezePeriods:je,GitlabPages:Re,GoProxy:Ae,Helm:we,Integrations:Se,IssueAwardEmojis:Ee,IssueDiscussions:xe,IssueIterationEvents:ke,IssueLabelEvents:Ie,IssueLinks:Pe,IssueMilestoneEvents:Te,IssueNoteAwardEmojis:Ce,IssueNotes:Oe,Issues:Me,IssuesStatistics:Le,IssueStateEvents:Be,IssueWeightEvents:Ne,JobArtifacts:qe,Jobs:Ge,MergeRequestApprovals:De,MergeRequestAwardEmojis:Fe,MergeRequestContextCommits:He,MergeRequestDiscussions:Ue,MergeRequestLabelEvents:ze,MergeRequestMilestoneEvents:Ke,MergeRequestDraftNotes:We,MergeRequestNotes:Qe,MergeRequestNoteAwardEmojis:Ve,MergeRequests:Je,MergeTrains:Ye,PackageRegistry:Xe,Packages:Ze,PagesDomains:et,Pipelines:tt,PipelineSchedules:rt,PipelineScheduleVariables:st,PipelineTriggerTokens:nt,ProductAnalytics:ot,ProjectAccessRequests:it,ProjectAccessTokens:at,ProjectAliases:ut,ProjectBadges:pt,ProjectCustomAttributes:ct,ProjectDORA4Metrics:lt,ProjectHooks:dt,ProjectImportExports:ft,ProjectInvitations:ht,ProjectIssueBoards:gt,ProjectIterations:mt,ProjectLabels:yt,ProjectMembers:vt,ProjectMilestones:$t,ProjectProtectedEnvironments:bt,ProjectPushRules:_t,ProjectRelationsExport:jt,ProjectReleases:Rt,ProjectRemoteMirrors:At,ProjectRepositoryStorageMoves:wt,Projects:St,ProjectSnippetAwardEmojis:Et,ProjectSnippetDiscussions:xt,ProjectSnippetNotes:kt,ProjectSnippets:It,ProjectStatistics:Pt,ProjectTemplates:Tt,ProjectVariables:Ct,ProjectVulnerabilities:Ot,ProjectWikis:Mt,ProtectedBranches:Lt,ProtectedTags:Bt,ReleaseLinks:Nt,Repositories:qt,RepositoryFiles:Gt,RepositorySubmodules:Dt,ResourceGroups:Ft,Runners:Ht,SecureFiles:Ut,Tags:zt,UserStarredMetricsDashboard:Kt,EpicAwardEmojis:Wt,EpicDiscussions:Qt,EpicIssues:Vt,EpicLabelEvents:Jt,EpicLinks:Yt,EpicNotes:Xt,Epics:Zt,GroupAccessRequests:er,GroupAccessTokens:tr,GroupActivityAnalytics:rr,GroupBadges:sr,GroupCustomAttributes:nr,GroupDORA4Metrics:or,GroupEpicBoards:ir,GroupHooks:ar,GroupImportExports:ur,GroupInvitations:pr,GroupIssueBoards:cr,GroupIterations:lr,GroupLabels:dr,GroupLDAPLinks:fr,GroupMembers:hr,GroupMemberRoles:gr,GroupMilestones:mr,GroupProtectedEnvironments:yr,GroupPushRules:vr,GroupRelationExports:$r,GroupReleases:br,GroupRepositoryStorageMoves:_r,Groups:jr,GroupSAMLIdentities:Rr,GroupSAMLLinks:Ar,GroupSCIMIdentities:wr,GroupServiceAccounts:Sr,GroupVariables:Er,GroupWikis:xr,LinkedEpics:kr,UserCustomAttributes:Ir,UserEmails:Pr,UserGPGKeys:Tr,UserImpersonationTokens:Cr,Users:Or,UserSSHKeys:Mr,Gitlab:Lr}=p;t.AccessLevel=c;t.Agents=l;t.AlertManagement=d;t.ApplicationAppearance=f;t.ApplicationPlanLimits=h;t.ApplicationSettings=m;t.ApplicationStatistics=y;t.Applications=g;t.AuditEvents=v;t.Avatar=$;t.Branches=le;t.BroadcastMessages=b;t.CodeSuggestions=_;t.CommitDiscussions=de;t.Commits=fe;t.Composer=j;t.Conan=R;t.ContainerRegistry=he;t.DashboardAnnotations=A;t.Debian=w;t.DependencyProxy=S;t.DeployKeys=E;t.DeployTokens=x;t.Deployments=ge;t.DockerfileTemplates=k;t.Environments=me;t.EpicAwardEmojis=Wt;t.EpicDiscussions=Qt;t.EpicIssues=Vt;t.EpicLabelEvents=Jt;t.EpicLinks=Yt;t.EpicNotes=Xt;t.Epics=Zt;t.ErrorTrackingClientKeys=ye;t.ErrorTrackingSettings=ve;t.Events=I;t.Experiments=P;t.ExternalStatusChecks=$e;t.FeatureFlagUserLists=_e;t.FeatureFlags=be;t.FreezePeriods=je;t.GeoNodes=T;t.GeoSites=C;t.GitLabCIYMLTemplates=M;t.GitignoreTemplates=O;t.Gitlab=Lr;t.GitlabPages=Re;t.GoProxy=Ae;t.GroupAccessRequests=er;t.GroupAccessTokens=tr;t.GroupActivityAnalytics=rr;t.GroupBadges=sr;t.GroupCustomAttributes=nr;t.GroupDORA4Metrics=or;t.GroupEpicBoards=ir;t.GroupHooks=ar;t.GroupImportExports=ur;t.GroupInvitations=pr;t.GroupIssueBoards=cr;t.GroupIterations=lr;t.GroupLDAPLinks=fr;t.GroupLabels=dr;t.GroupMemberRoles=gr;t.GroupMembers=hr;t.GroupMilestones=mr;t.GroupProtectedEnvironments=yr;t.GroupPushRules=vr;t.GroupRelationExports=$r;t.GroupReleases=br;t.GroupRepositoryStorageMoves=_r;t.GroupSAMLIdentities=Rr;t.GroupSAMLLinks=Ar;t.GroupSCIMIdentities=wr;t.GroupServiceAccounts=Sr;t.GroupVariables=Er;t.GroupWikis=xr;t.Groups=jr;t.Helm=we;t.Import=L;t.InstanceLevelCICDVariables=B;t.Integrations=Se;t.IssueAwardEmojis=Ee;t.IssueDiscussions=xe;t.IssueIterationEvents=ke;t.IssueLabelEvents=Ie;t.IssueLinks=Pe;t.IssueMilestoneEvents=Te;t.IssueNoteAwardEmojis=Ce;t.IssueNotes=Oe;t.IssueStateEvents=Be;t.IssueWeightEvents=Ne;t.Issues=Me;t.IssuesStatistics=Le;t.JobArtifacts=qe;t.Jobs=Ge;t.Keys=N;t.License=q;t.LicenseTemplates=G;t.LinkedEpics=kr;t.Lint=D;t.Markdown=F;t.Maven=H;t.MergeRequestApprovals=De;t.MergeRequestAwardEmojis=Fe;t.MergeRequestContextCommits=He;t.MergeRequestDiscussions=Ue;t.MergeRequestDraftNotes=We;t.MergeRequestLabelEvents=ze;t.MergeRequestMilestoneEvents=Ke;t.MergeRequestNoteAwardEmojis=Ve;t.MergeRequestNotes=Qe;t.MergeRequests=Je;t.MergeTrains=Ye;t.Metadata=U;t.Migrations=z;t.NPM=Q;t.Namespaces=K;t.NotificationSettings=W;t.NuGet=V;t.PackageRegistry=Xe;t.Packages=Ze;t.PagesDomains=et;t.PersonalAccessTokens=J;t.PipelineScheduleVariables=st;t.PipelineSchedules=rt;t.PipelineTriggerTokens=nt;t.Pipelines=tt;t.ProductAnalytics=ot;t.ProjectAccessRequests=it;t.ProjectAccessTokens=at;t.ProjectAliases=ut;t.ProjectBadges=pt;t.ProjectCustomAttributes=ct;t.ProjectDORA4Metrics=lt;t.ProjectHooks=dt;t.ProjectImportExports=ft;t.ProjectInvitations=ht;t.ProjectIssueBoards=gt;t.ProjectIterations=mt;t.ProjectLabels=yt;t.ProjectMembers=vt;t.ProjectMilestones=$t;t.ProjectProtectedEnvironments=bt;t.ProjectPushRules=_t;t.ProjectRelationsExport=jt;t.ProjectReleases=Rt;t.ProjectRemoteMirrors=At;t.ProjectRepositoryStorageMoves=wt;t.ProjectSnippetAwardEmojis=Et;t.ProjectSnippetDiscussions=xt;t.ProjectSnippetNotes=kt;t.ProjectSnippets=It;t.ProjectStatistics=Pt;t.ProjectTemplates=Tt;t.ProjectVariables=Ct;t.ProjectVulnerabilities=Ot;t.ProjectWikis=Mt;t.Projects=St;t.ProtectedBranches=Lt;t.ProtectedTags=Bt;t.PyPI=Y;t.ReleaseLinks=Nt;t.Repositories=qt;t.RepositoryFiles=Gt;t.RepositorySubmodules=Dt;t.ResourceGroups=Ft;t.RubyGems=X;t.Runners=Ht;t.Search=Z;t.SearchAdmin=ee;t.SecureFiles=Ut;t.ServiceAccounts=te;t.ServiceData=re;t.SidekiqMetrics=se;t.SidekiqQueues=ne;t.SnippetRepositoryStorageMoves=oe;t.Snippets=ie;t.Suggestions=ae;t.SystemHooks=ue;t.Tags=zt;t.TodoLists=pe;t.Topics=ce;t.UserCustomAttributes=Ir;t.UserEmails=Pr;t.UserGPGKeys=Tr;t.UserImpersonationTokens=Cr;t.UserSSHKeys=Mr;t.UserStarredMetricsDashboard=Kt;t.Users=Or},7927:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RateLimit=t.Sema=void 0;const n=s(r(4434));function arrayMove(e,t,r,s,n){for(let o=0;o<n;++o){r[o+s]=e[o+t];e[o+t]=void 0}}function pow2AtLeast(e){e=e>>>0;e=e-1;e=e|e>>1;e=e|e>>2;e=e|e>>4;e=e|e>>8;e=e|e>>16;return e+1}function getCapacity(e){return pow2AtLeast(Math.min(Math.max(16,e),1073741824))}class Deque{constructor(e){this._capacity=getCapacity(e);this._length=0;this._front=0;this.arr=[]}push(e){const t=this._length;this.checkCapacity(t+1);const r=this._front+t&this._capacity-1;this.arr[r]=e;this._length=t+1;return t+1}pop(){const e=this._length;if(e===0){return void 0}const t=this._front+e-1&this._capacity-1;const r=this.arr[t];this.arr[t]=void 0;this._length=e-1;return r}shift(){const e=this._length;if(e===0){return void 0}const t=this._front;const r=this.arr[t];this.arr[t]=void 0;this._front=t+1&this._capacity-1;this._length=e-1;return r}get length(){return this._length}checkCapacity(e){if(this._capacity<e){this.resizeTo(getCapacity(this._capacity*1.5+16))}}resizeTo(e){const t=this._capacity;this._capacity=e;const r=this._front;const s=this._length;if(r+s>t){const e=r+s&t-1;arrayMove(this.arr,0,this.arr,t,e)}}}class ReleaseEmitter extends n.default{}function isFn(e){return typeof e==="function"}function defaultInit(){return"1"}class Sema{constructor(e,{initFn:t=defaultInit,pauseFn:r,resumeFn:s,capacity:n=10}={}){if(isFn(r)!==isFn(s)){throw new Error("pauseFn and resumeFn must be both set for pausing")}this.nrTokens=e;this.free=new Deque(e);this.waiting=new Deque(n);this.releaseEmitter=new ReleaseEmitter;this.noTokens=t===defaultInit;this.pauseFn=r;this.resumeFn=s;this.paused=false;this.releaseEmitter.on("release",(e=>{const t=this.waiting.shift();if(t){t.resolve(e)}else{if(this.resumeFn&&this.paused){this.paused=false;this.resumeFn()}this.free.push(e)}}));for(let r=0;r<e;r++){this.free.push(t())}}tryAcquire(){return this.free.pop()}async acquire(){let e=this.tryAcquire();if(e!==void 0){return e}return new Promise(((e,t)=>{if(this.pauseFn&&!this.paused){this.paused=true;this.pauseFn()}this.waiting.push({resolve:e,reject:t})}))}release(e){this.releaseEmitter.emit("release",this.noTokens?"1":e)}drain(){const e=new Array(this.nrTokens);for(let t=0;t<this.nrTokens;t++){e[t]=this.acquire()}return Promise.all(e)}nrWaiting(){return this.waiting.length}}t.Sema=Sema;function RateLimit(e,{timeUnit:t=1e3,uniformDistribution:r=false}={}){const s=new Sema(r?1:e);const n=r?t/e:t;return async function rl(){await s.acquire();setTimeout((()=>s.release()),n)}}t.RateLimit=RateLimit},9834:(e,t,r)=>{"use strict";const s=r(3907);const n=r(4987);const o=r(2428);const i=r(5069);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(const s of e){const e=braces.create(s,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>i(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return s(braces.parse(e,t),t)}return s(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return n(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=o(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},4987:(e,t,r)=>{"use strict";const s=r(3227);const n=r(7695);const compile=(e,t={})=>{const walk=(e,r={})=>{const o=n.isInvalidBrace(r);const i=e.invalid===true&&t.escapeInvalid===true;const a=o===true||i===true;const u=t.escapeInvalid===true?"\\":"";let p="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){console.log("node.isClose",u,e.value);return u+e.value}if(e.type==="open"){return a?u+e.value:"("}if(e.type==="close"){return a?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){const r=n.reduce(e.nodes);const o=s(...r,{...t,wrap:false,toRegex:true,strictZeros:true});if(o.length!==0){return r.length>1&&o.length>1?`(${o})`:o}}if(e.nodes){for(const t of e.nodes){p+=walk(t,e)}}return p};return walk(e)};e.exports=compile},1071:e=>{"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},2428:(e,t,r)=>{"use strict";const s=r(3227);const n=r(3907);const o=r(7695);const append=(e="",t="",r=false)=>{const s=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?o.flatten(t).map((e=>`{${e}}`)):t}for(const n of e){if(Array.isArray(n)){for(const e of n){s.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;s.push(Array.isArray(e)?append(n,e,r):n+e)}}}return o.flatten(s)};const expand=(e,t={})=>{const r=t.rangeLimit===undefined?1e3:t.rangeLimit;const walk=(e,i={})=>{e.queue=[];let a=i;let u=i.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(e.invalid||e.dollar){u.push(append(u.pop(),n(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){const i=o.reduce(e.nodes);if(o.exceedsLimit(...i,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=s(...i,t);if(a.length===0){a=n(e,t)}u.push(append(u.pop(),a));e.nodes=[];return}const p=o.encloseBrace(e);let c=e.queue;let l=e;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;c=l.queue}for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)c.push("");c.push("");continue}if(r.type==="close"){u.push(append(u.pop(),c,p));continue}if(r.value&&r.type!=="open"){c.push(append(c.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return c};return o.flatten(walk(e))};e.exports=expand},5069:(e,t,r)=>{"use strict";const s=r(3907);const{MAX_LENGTH:n,CHAR_BACKSLASH:o,CHAR_BACKTICK:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:p,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(1071);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const r=t||{};const $=typeof r.maxLength==="number"?Math.min(n,r.maxLength):n;if(e.length>$){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${$})`)}const b={type:"root",input:e,nodes:[]};const _=[b];let j=b;let R=b;let A=0;const w=e.length;let S=0;let E=0;let x;const advance=()=>e[S++];const push=e=>{if(e.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&e.type==="text"){R.value+=e.value;return}j.nodes.push(e);e.parent=j;e.prev=R;R=e;return e};push({type:"bos"});while(S<w){j=_[_.length-1];x=advance();if(x===v||x===y){continue}if(x===o){push({type:"text",value:(t.keepEscaping?x:"")+advance()});continue}if(x===h){push({type:"text",value:"\\"+x});continue}if(x===f){A++;let e;while(S<w&&(e=advance())){x+=e;if(e===f){A++;continue}if(e===o){x+=advance();continue}if(e===h){A--;if(A===0){break}}}push({type:"text",value:x});continue}if(x===p){j=push({type:"paren",nodes:[]});_.push(j);push({type:"text",value:x});continue}if(x===c){if(j.type!=="paren"){push({type:"text",value:x});continue}j=_.pop();push({type:"text",value:x});j=_[_.length-1];continue}if(x===g||x===m||x===i){const e=x;let r;if(t.keepQuotes!==true){x=""}while(S<w&&(r=advance())){if(r===o){x+=r+advance();continue}if(r===e){if(t.keepQuotes===true)x+=r;break}x+=r}push({type:"text",value:x});continue}if(x===l){E++;const e=R.value&&R.value.slice(-1)==="$"||j.dollar===true;const t={type:"brace",open:true,close:false,dollar:e,depth:E,commas:0,ranges:0,nodes:[]};j=push(t);_.push(j);push({type:"open",value:x});continue}if(x===d){if(j.type!=="brace"){push({type:"text",value:x});continue}const e="close";j=_.pop();j.close=true;push({type:e,value:x});E--;j=_[_.length-1];continue}if(x===a&&E>0){if(j.ranges>0){j.ranges=0;const e=j.nodes.shift();j.nodes=[e,{type:"text",value:s(j)}]}push({type:"comma",value:x});j.commas++;continue}if(x===u&&E>0&&j.commas===0){const e=j.nodes;if(E===0||e.length===0){push({type:"text",value:x});continue}if(R.type==="dot"){j.range=[];R.value+=x;R.type="range";if(j.nodes.length!==3&&j.nodes.length!==5){j.invalid=true;j.ranges=0;R.type="text";continue}j.ranges++;j.args=[];continue}if(R.type==="range"){e.pop();const t=e[e.length-1];t.value+=R.value+x;R=t;j.ranges--;continue}push({type:"dot",value:x});continue}push({type:"text",value:x})}do{j=_.pop();if(j.type!=="root"){j.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));const e=_[_.length-1];const t=e.nodes.indexOf(j);e.nodes.splice(t,1,...j.nodes)}}while(_.length>0);push({type:"eos"});return b};e.exports=parse},3907:(e,t,r)=>{"use strict";const s=r(7695);e.exports=(e,t={})=>{const stringify=(e,r={})=>{const n=t.escapeInvalid&&s.isInvalidBrace(r);const o=e.invalid===true&&t.escapeInvalid===true;let i="";if(e.value){if((n||o)&&s.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){i+=stringify(t)}}return i};return stringify(e)}},7695:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,s=1,n)=>{if(n===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(s)>=n};t.escapeNode=(e,t=0,r)=>{const s=e.nodes[t];if(!s)return;if(r&&s.type===r||s.type==="open"||s.type==="close"){if(s.escaped!==true){s.value="\\"+s.value;s.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){const s=e[r];if(Array.isArray(s)){flat(s);continue}if(s!==undefined){t.push(s)}}return t};flat(e);return t}},4122:(e,t,r)=>{"use strict";var s=r(4784);var n=r(2290);var o=n(s("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,t){var r=s(e,!!t);if(typeof r==="function"&&o(e,".prototype.")>-1){return n(r)}return r}},2290:(e,t,r)=>{"use strict";var s=r(7650);var n=r(4784);var o=r(1628);var i=r(7052);var a=n("%Function.prototype.apply%");var u=n("%Function.prototype.call%");var p=n("%Reflect.apply%",true)||s.call(u,a);var c=r(5868);var l=n("%Math.max%");e.exports=function callBind(e){if(typeof e!=="function"){throw new i("a function is required")}var t=p(s,u,arguments);return o(t,1+l(0,e.length-(arguments.length-1)),true)};var d=function applyBind(){return p(s,a,arguments)};if(c){c(e.exports,"apply",{value:d})}else{e.exports.apply=d}},2126:(e,t,r)=>{"use strict";var s=r(5868);var n=r(3155);var o=r(7052);var i=r(6424);e.exports=function defineDataProperty(e,t,r){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new o("`obj` must be an object or a function`")}if(typeof t!=="string"&&typeof t!=="symbol"){throw new o("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new o("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new o("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new o("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new o("`loose`, if provided, must be a boolean")}var a=arguments.length>3?arguments[3]:null;var u=arguments.length>4?arguments[4]:null;var p=arguments.length>5?arguments[5]:null;var c=arguments.length>6?arguments[6]:false;var l=!!i&&i(e,t);if(s){s(e,t,{configurable:p===null&&l?l.configurable:!p,enumerable:a===null&&l?l.enumerable:!a,value:r,writable:u===null&&l?l.writable:!u})}else if(c||!a&&!u&&!p){e[t]=r}else{throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},5868:(e,t,r)=>{"use strict";var s=r(4784);var n=s("%Object.defineProperty%",true)||false;if(n){try{n({},"a",{value:1})}catch(e){n=false}}e.exports=n},3446:e=>{"use strict";e.exports=EvalError},6190:e=>{"use strict";e.exports=Error},1219:e=>{"use strict";e.exports=RangeError},2671:e=>{"use strict";e.exports=ReferenceError},3155:e=>{"use strict";e.exports=SyntaxError},7052:e=>{"use strict";e.exports=TypeError},2492:e=>{"use strict";e.exports=URIError},3227:(e,t,r)=>{"use strict";
2
+ /*!
3
+ * fill-range <https://github.com/jonschlinkert/fill-range>
4
+ *
5
+ * Copyright (c) 2014-present, Jon Schlinkert.
6
+ * Licensed under the MIT License.
7
+ */const s=r(9023);const n=r(389);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t,r)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let s=t.capture?"":"?:";let n="";let o="";let i;if(e.positives.length){n=e.positives.map((e=>toMaxLen(String(e),r))).join("|")}if(e.negatives.length){o=`-(${s}${e.negatives.map((e=>toMaxLen(String(e),r))).join("|")})`}if(n&&o){i=`${n}|${o}`}else{i=n||o}if(t.wrap){return`(${s}${i})`}return i};const toRange=(e,t,r,s)=>{if(r){return n(e,t,{wrap:false,...s})}let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let s=r.capture?"":"?:";return t?`(${s}${e.join("|")})`:e.join("|")}return n(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+s.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,s={})=>{let n=Number(e);let o=Number(t);if(!Number.isInteger(n)||!Number.isInteger(o)){if(s.strictRanges===true)throw rangeError([e,t]);return[]}if(n===0)n=0;if(o===0)o=0;let i=n>o;let a=String(e);let u=String(t);let p=String(r);r=Math.max(Math.abs(r),1);let c=zeros(a)||zeros(u)||zeros(p);let l=c?Math.max(a.length,u.length,p.length):0;let d=c===false&&stringify(e,t,s)===false;let f=s.transform||transform(d);if(s.toRegex&&r===1){return toRange(toMaxLen(e,l),toMaxLen(t,l),true,s)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(i?n>=o:n<=o){if(s.toRegex===true&&r>1){push(n)}else{g.push(pad(f(n,m),l,d))}n=i?n-r:n+r;m++}if(s.toRegex===true){return r>1?toSequence(h,s,l):toRegex(g,null,{wrap:false,...s})}return g};const fillLetters=(e,t,r=1,s={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,s)}let n=s.transform||(e=>String.fromCharCode(e));let o=`${e}`.charCodeAt(0);let i=`${t}`.charCodeAt(0);let a=o>i;let u=Math.min(o,i);let p=Math.max(o,i);if(s.toRegex&&r===1){return toRange(u,p,false,s)}let c=[];let l=0;while(a?o>=i:o<=i){c.push(n(o,l));o=a?o-r:o+r;l++}if(s.toRegex===true){return toRegex(c,null,{wrap:false,options:s})}return c};const fill=(e,t,r,s={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,s)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let n={...s};if(n.capture===true)n.wrap=true;r=r||n.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,n);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,n)}return fillLetters(e,t,Math.max(Math.abs(r),1),n)};e.exports=fill},8074:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var r=Object.prototype.toString;var s=Math.max;var n="[object Function]";var o=function concatty(e,t){var r=[];for(var s=0;s<e.length;s+=1){r[s]=e[s]}for(var n=0;n<t.length;n+=1){r[n+e.length]=t[n]}return r};var i=function slicy(e,t){var r=[];for(var s=t||0,n=0;s<e.length;s+=1,n+=1){r[n]=e[s]}return r};var joiny=function(e,t){var r="";for(var s=0;s<e.length;s+=1){r+=e[s];if(s+1<e.length){r+=t}}return r};e.exports=function bind(e){var a=this;if(typeof a!=="function"||r.apply(a)!==n){throw new TypeError(t+a)}var u=i(arguments,1);var p;var binder=function(){if(this instanceof p){var t=a.apply(this,o(u,arguments));if(Object(t)===t){return t}return this}return a.apply(e,o(u,arguments))};var c=s(0,a.length-u.length);var l=[];for(var d=0;d<c;d++){l[d]="$"+d}p=Function("binder","return function ("+joiny(l,",")+"){ return binder.apply(this,arguments); }")(binder);if(a.prototype){var f=function Empty(){};f.prototype=a.prototype;p.prototype=new f;f.prototype=null}return p}},7650:(e,t,r)=>{"use strict";var s=r(8074);e.exports=Function.prototype.bind||s},4784:(e,t,r)=>{"use strict";var s;var n=r(6190);var o=r(3446);var i=r(1219);var a=r(2671);var u=r(3155);var p=r(7052);var c=r(2492);var l=Function;var getEvalledConstructor=function(e){try{return l('"use strict"; return ('+e+").constructor;")()}catch(e){}};var d=Object.getOwnPropertyDescriptor;if(d){try{d({},"")}catch(e){d=null}}var throwTypeError=function(){throw new p};var f=d?function(){try{arguments.callee;return throwTypeError}catch(e){try{return d(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var h=r(6966)();var g=r(1333)();var m=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null);var y={};var v=typeof Uint8Array==="undefined"||!m?s:m(Uint8Array);var $={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?s:ArrayBuffer,"%ArrayIteratorPrototype%":h&&m?m([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics==="undefined"?s:Atomics,"%BigInt%":typeof BigInt==="undefined"?s:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?s:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array==="undefined"?s:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?s:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?s:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array==="undefined"?s:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?s:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&m?m(m([][Symbol.iterator]())):s,"%JSON%":typeof JSON==="object"?JSON:s,"%Map%":typeof Map==="undefined"?s:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!h||!m?s:m((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?s:Promise,"%Proxy%":typeof Proxy==="undefined"?s:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect==="undefined"?s:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?s:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!h||!m?s:m((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&m?m(""[Symbol.iterator]()):s,"%Symbol%":h?Symbol:s,"%SyntaxError%":u,"%ThrowTypeError%":f,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array==="undefined"?s:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?s:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?s:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?s:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap==="undefined"?s:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?s:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?s:WeakSet};if(m){try{null.error}catch(e){var b=m(m(e));$["%Error.prototype%"]=b}}var _=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var s=doEval("%AsyncGenerator%");if(s&&m){t=m(s.prototype)}}$[e]=t;return t};var j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var R=r(7650);var A=r(8714);var w=R.call(Function.call,Array.prototype.concat);var S=R.call(Function.apply,Array.prototype.splice);var E=R.call(Function.call,String.prototype.replace);var x=R.call(Function.call,String.prototype.slice);var k=R.call(Function.call,RegExp.prototype.exec);var I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var P=/\\(\\)?/g;var T=function stringToPath(e){var t=x(e,0,1);var r=x(e,-1);if(t==="%"&&r!=="%"){throw new u("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new u("invalid intrinsic syntax, expected opening `%`")}var s=[];E(e,I,(function(e,t,r,n){s[s.length]=r?E(n,P,"$1"):t||e}));return s};var C=function getBaseIntrinsic(e,t){var r=e;var s;if(A(j,r)){s=j[r];r="%"+s[0]+"%"}if(A($,r)){var n=$[r];if(n===y){n=_(r)}if(typeof n==="undefined"&&!t){throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:s,name:r,value:n}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new p("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new p('"allowMissing" argument must be a boolean')}if(k(/^%?[^%]*%?$/,e)===null){throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=T(e);var n=r.length>0?r[0]:"";var o=C("%"+n+"%",t);var i=o.name;var a=o.value;var c=false;var l=o.alias;if(l){n=l[0];S(r,w([0,1],l))}for(var f=1,h=true;f<r.length;f+=1){var g=r[f];var m=x(g,0,1);var y=x(g,-1);if((m==='"'||m==="'"||m==="`"||(y==='"'||y==="'"||y==="`"))&&m!==y){throw new u("property names with quotes must have matching quotes")}if(g==="constructor"||!h){c=true}n+="."+g;i="%"+n+"%";if(A($,i)){a=$[i]}else if(a!=null){if(!(g in a)){if(!t){throw new p("base intrinsic for "+e+" exists, but the property is not available.")}return void s}if(d&&f+1>=r.length){var v=d(a,g);h=!!v;if(h&&"get"in v&&!("originalValue"in v.get)){a=v.get}else{a=a[g]}}else{h=A(a,g);a=a[g]}if(h&&!c){$[i]=a}}}return a}},6424:(e,t,r)=>{"use strict";var s=r(4784);var n=s("%Object.getOwnPropertyDescriptor%",true);if(n){try{n([],"length")}catch(e){n=null}}e.exports=n},7975:(e,t,r)=>{"use strict";var s=r(5868);var n=function hasPropertyDescriptors(){return!!s};n.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!s){return null}try{return s([],"length",{value:1}).length!==1}catch(e){return true}};e.exports=n},1333:e=>{"use strict";var t={__proto__:null,foo:{}};var r=Object;e.exports=function hasProto(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},6966:(e,t,r)=>{"use strict";var s=typeof Symbol!=="undefined"&&Symbol;var n=r(6396);e.exports=function hasNativeSymbols(){if(typeof s!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof s("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return n()}},6396:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var s=42;e[t]=s;for(t in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==s||o.enumerable!==true){return false}}return true}},8714:(e,t,r)=>{"use strict";var s=Function.prototype.call;var n=Object.prototype.hasOwnProperty;var o=r(7650);e.exports=o.call(s,n)},7416:e=>{"use strict";
8
+ /*!
9
+ * is-number <https://github.com/jonschlinkert/is-number>
10
+ *
11
+ * Copyright (c) 2014-present, Jon Schlinkert.
12
+ * Released under the MIT License.
13
+ */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},287:(e,t,r)=>{"use strict";const s=r(9023);const n=r(9834);const o=r(5180);const i=r(2561);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let s=new Set;let n=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i<t.length;i++){let u=o(String(t[i]),{...r,onResult:onResult},true);let p=u.state.negated||u.state.negatedExtglob;if(p)a++;for(let t of e){let e=u(t,true);let r=p?!e.isMatch:e.isMatch;if(!r)continue;if(p){s.add(e.output)}else{s.delete(e.output);n.add(e.output)}}}let u=a===t.length?[...i]:[...n];let p=u.filter((e=>!s.has(e)));if(r&&p.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return p};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set;let n=[];let onResult=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let o=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of n){if(!o.has(e)){s.add(e)}}return[...s]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let s=micromatch(Object.keys(e),t,r);let n={};for(let t of s)n[t]=e[t];return n};micromatch.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(s.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!s.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let s=i.isWindows(r);let n=o.makeRe(String(e),{...r,capture:true});let a=n.exec(s?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[])){for(let e of n(String(s),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return n(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},6164:(e,t,r)=>{var s=typeof Map==="function"&&Map.prototype;var n=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var o=s&&n&&typeof n.get==="function"?n.get:null;var i=s&&Map.prototype.forEach;var a=typeof Set==="function"&&Set.prototype;var u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var p=a&&u&&typeof u.get==="function"?u.get:null;var c=a&&Set.prototype.forEach;var l=typeof WeakMap==="function"&&WeakMap.prototype;var d=l?WeakMap.prototype.has:null;var f=typeof WeakSet==="function"&&WeakSet.prototype;var h=f?WeakSet.prototype.has:null;var g=typeof WeakRef==="function"&&WeakRef.prototype;var m=g?WeakRef.prototype.deref:null;var y=Boolean.prototype.valueOf;var v=Object.prototype.toString;var $=Function.prototype.toString;var b=String.prototype.match;var _=String.prototype.slice;var j=String.prototype.replace;var R=String.prototype.toUpperCase;var A=String.prototype.toLowerCase;var w=RegExp.prototype.test;var S=Array.prototype.concat;var E=Array.prototype.join;var x=Array.prototype.slice;var k=Math.floor;var I=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var P=Object.getOwnPropertySymbols;var T=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var C=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var O=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null;var M=Object.prototype.propertyIsEnumerable;var L=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var s=e<0?-k(-e):k(e);if(s!==e){var n=String(s);var o=_.call(t,n.length+1);return j.call(n,r,"$&_")+"."+j.call(j.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return j.call(t,r,"$&_")}var B=r(5912);var N=B.custom;var q=isSymbol(N)?N:null;e.exports=function inspect_(e,t,r,s){var n=t||{};if(has(n,"quoteStyle")&&(n.quoteStyle!=="single"&&n.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(n,"maxStringLength")&&(typeof n.maxStringLength==="number"?n.maxStringLength<0&&n.maxStringLength!==Infinity:n.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=has(n,"customInspect")?n.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(n,"indent")&&n.indent!==null&&n.indent!=="\t"&&!(parseInt(n.indent,10)===n.indent&&n.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(n,"numericSeparator")&&typeof n.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var u=n.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,n)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var l=String(e);return u?addNumericSeparator(e,l):l}if(typeof e==="bigint"){var d=String(e)+"n";return u?addNumericSeparator(e,d):d}var f=typeof n.depth==="undefined"?5:n.depth;if(typeof r==="undefined"){r=0}if(r>=f&&f>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var h=getIndent(n,r);if(typeof s==="undefined"){s=[]}else if(indexOf(s,e)>=0){return"[Circular]"}function inspect(e,t,o){if(t){s=x.call(s);s.push(t)}if(o){var i={depth:n.depth};if(has(n,"quoteStyle")){i.quoteStyle=n.quoteStyle}return inspect_(e,i,r+1,s)}return inspect_(e,n,r+1,s)}if(typeof e==="function"&&!isRegExp(e)){var g=nameOf(e);var m=arrObjKeys(e,inspect);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+E.call(m,", ")+" }":"")}if(isSymbol(e)){var v=C?j.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(e);return typeof e==="object"&&!C?markBoxed(v):v}if(isElement(e)){var $="<"+A.call(String(e.nodeName));var b=e.attributes||[];for(var R=0;R<b.length;R++){$+=" "+b[R].name+"="+wrapQuotes(quote(b[R].value),"double",n)}$+=">";if(e.childNodes&&e.childNodes.length){$+="..."}$+="</"+A.call(String(e.nodeName))+">";return $}if(isArray(e)){if(e.length===0){return"[]"}var w=arrObjKeys(e,inspect);if(h&&!singleLineValues(w)){return"["+indentedJoin(w,h)+"]"}return"[ "+E.call(w,", ")+" ]"}if(isError(e)){var k=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!M.call(e,"cause")){return"{ ["+String(e)+"] "+E.call(S.call("[cause]: "+inspect(e.cause),k),", ")+" }"}if(k.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+E.call(k,", ")+" }"}if(typeof e==="object"&&a){if(q&&typeof e[q]==="function"&&B){return B(e,{depth:f-r})}else if(a!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var P=[];if(i){i.call(e,(function(t,r){P.push(inspect(r,e,true)+" => "+inspect(t,e))}))}return collectionOf("Map",o.call(e),P,h)}if(isSet(e)){var N=[];if(c){c.call(e,(function(t){N.push(inspect(t,e))}))}return collectionOf("Set",p.call(e),N,h)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(I.call(e)))}if(isBoolean(e)){return markBoxed(y.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(!isDate(e)&&!isRegExp(e)){var G=arrObjKeys(e,inspect);var D=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object;var F=e instanceof Object?"":"null prototype";var H=!D&&O&&Object(e)===e&&O in e?_.call(toStr(e),8,-1):F?"Object":"";var U=D||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var z=U+(H||F?"["+E.call(S.call([],H||[],F||[]),": ")+"] ":"");if(G.length===0){return z+"{}"}if(h){return z+"{"+indentedJoin(G,h)+"}"}return z+"{ "+E.call(G,", ")+" }"}return String(e)};function wrapQuotes(e,t,r){var s=(r.quoteStyle||t)==="double"?'"':"'";return s+e+s}function quote(e){return j.call(String(e),/"/g,"&quot;")}function isArray(e){return toStr(e)==="[object Array]"&&(!O||!(typeof e==="object"&&O in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!O||!(typeof e==="object"&&O in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!O||!(typeof e==="object"&&O in e))}function isError(e){return toStr(e)==="[object Error]"&&(!O||!(typeof e==="object"&&O in e))}function isString(e){return toStr(e)==="[object String]"&&(!O||!(typeof e==="object"&&O in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!O||!(typeof e==="object"&&O in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!O||!(typeof e==="object"&&O in e))}function isSymbol(e){if(C){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!T){return false}try{T.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!I){return false}try{I.call(e);return true}catch(e){}return false}var G=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return G.call(e,t)}function toStr(e){return v.call(e)}function nameOf(e){if(e.name){return e.name}var t=b.call($.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,s=e.length;r<s;r++){if(e[r]===t){return r}}return-1}function isMap(e){if(!o||!e||typeof e!=="object"){return false}try{o.call(e);try{p.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!d||!e||typeof e!=="object"){return false}try{d.call(e,d);try{h.call(e,h)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!m||!e||typeof e!=="object"){return false}try{m.call(e);return true}catch(e){}return false}function isSet(e){if(!p||!e||typeof e!=="object"){return false}try{p.call(e);try{o.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!h||!e||typeof e!=="object"){return false}try{h.call(e,h);try{d.call(e,d)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var s="... "+r+" more character"+(r>1?"s":"");return inspectString(_.call(e,0,t.maxStringLength),t)+s}var n=j.call(j.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(n,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+R.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,s){var n=s?indentedJoin(r,s):E.call(r,", ");return e+" ("+t+") {"+n+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=E.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:E.call(Array(t+1),r)}}function indentedJoin(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r=isArray(e);var s=[];if(r){s.length=e.length;for(var n=0;n<e.length;n++){s[n]=has(e,n)?t(e[n],e):""}}var o=typeof P==="function"?P(e):[];var i;if(C){i={};for(var a=0;a<o.length;a++){i["$"+o[a]]=o[a]}}for(var u in e){if(!has(e,u)){continue}if(r&&String(Number(u))===u&&u<e.length){continue}if(C&&i["$"+u]instanceof Symbol){continue}else if(w.call(/[^\w$]/,u)){s.push(t(u,e)+": "+t(e[u],e))}else{s.push(u+": "+t(e[u],e))}}if(typeof P==="function"){for(var p=0;p<o.length;p++){if(M.call(e,o[p])){s.push("["+t(o[p])+"]: "+t(e[o[p]],e))}}}return s}},5912:(e,t,r)=>{e.exports=r(9023).inspect},5180:(e,t,r)=>{"use strict";e.exports=r(1062)},4157:(e,t,r)=>{"use strict";const s=r(6928);const n="\\\\/";const o=`[^${n}]`;const i="\\.";const a="\\+";const u="\\?";const p="\\/";const c="(?=.)";const l="[^/]";const d=`(?:${p}|$)`;const f=`(?:^|${p})`;const h=`${i}{1,2}${d}`;const g=`(?!${i})`;const m=`(?!${f}${h})`;const y=`(?!${i}{0,1}${d})`;const v=`(?!${h})`;const $=`[^.${p}]`;const b=`${l}*?`;const _={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:p,ONE_CHAR:c,QMARK:l,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:v,QMARK_NO_DOT:$,STAR:b,START_ANCHOR:f};const j={..._,SLASH_LITERAL:`[${n}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${n}])${i}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};const R={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?j:_}}},8731:(e,t,r)=>{"use strict";const s=r(4157);const n=r(2561);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:p}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>n.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=p[e]||e;const r={...t};const c=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let l=e.length;if(l>c){throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${c}`)}const d={type:"bos",value:"",output:r.prepend||""};const f=[d];const h=r.capture?"":"?:";const g=n.isWindows(t);const m=s.globChars(g);const y=s.extglobChars(m);const{DOT_LITERAL:v,PLUS_LITERAL:$,SLASH_LITERAL:b,ONE_CHAR:_,DOTS_SLASH:j,NO_DOT:R,NO_DOT_SLASH:A,NO_DOTS_SLASH:w,QMARK:S,QMARK_NO_DOT:E,STAR:x,START_ANCHOR:k}=m;const globstar=e=>`(${h}(?:(?!${k}${e.dot?j:v}).)*?)`;const I=r.dot?"":R;const P=r.dot?S:E;let T=r.bash===true?globstar(r):x;if(r.capture){T=`(${T})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const C={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:f};e=n.removePrefix(e,C);l=e.length;const O=[];const M=[];const L=[];let B=d;let N;const eos=()=>C.index===l-1;const q=C.peek=(t=1)=>e[C.index+t];const G=C.advance=()=>e[++C.index]||"";const remaining=()=>e.slice(C.index+1);const consume=(e="",t=0)=>{C.consumed+=e;C.index+=t};const append=e=>{C.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(q()==="!"&&(q(2)!=="("||q(3)==="?")){G();C.start++;e++}if(e%2===0){return false}C.negated=true;C.start++;return true};const increment=e=>{C[e]++;L.push(e)};const decrement=e=>{C[e]--;L.pop()};const push=e=>{if(B.type==="globstar"){const t=C.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||O.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){C.output=C.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=T;C.output+=B.output}}if(O.length&&e.type!=="paren"){O[O.length-1].inner+=e.value}if(e.value||e.output)append(e);if(B&&B.type==="text"&&e.type==="text"){B.value+=e.value;B.output=(B.output||"")+e.value;return}e.prev=B;f.push(e);B=e};const extglobOpen=(e,t)=>{const s={...y[t],conditions:1,inner:""};s.prev=B;s.parens=C.parens;s.output=C.output;const n=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:C.output?"":_});push({type:"paren",extglob:true,value:G(),output:n});O.push(s)};const extglobClose=e=>{let s=e.close+(r.capture?")":"");let n;if(e.type==="negate"){let o=T;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==T||eos()||/^\)+$/.test(remaining())){s=e.close=`)$))${o}`}if(e.inner.includes("*")&&(n=remaining())&&/^\.[^\\/.]+$/.test(n)){const r=parse(n,{...t,fastpaths:false}).output;s=e.close=`)${r})${o})`}if(e.prev.type==="bos"){C.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:s});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(u,((e,t,r,n,o,i)=>{if(n==="\\"){s=true;return e}if(n==="?"){if(t){return t+n+(o?S.repeat(o.length):"")}if(i===0){return P+(o?S.repeat(o.length):"")}return S.repeat(r.length)}if(n==="."){return v.repeat(r.length)}if(n==="*"){if(t){return t+n+(o?T:"")}return T}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){C.output=e;return C}C.output=n.wrapOutput(o,C,t);return C}while(!eos()){N=G();if(N==="\0"){continue}if(N==="\\"){const e=q();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){N+="\\";push({type:"text",value:N});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;C.index+=s;if(s%2!==0){N+="\\"}}if(r.unescape===true){N=G()}else{N+=G()}if(C.brackets===0){push({type:"text",value:N});continue}}if(C.brackets>0&&(N!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==false&&N===":"){const e=B.value.slice(1);if(e.includes("[")){B.posix=true;if(e.includes(":")){const e=B.value.lastIndexOf("[");const t=B.value.slice(0,e);const r=B.value.slice(e+2);const s=i[r];if(s){B.value=t+s;C.backtrack=true;G();if(!d.output&&f.indexOf(B)===1){d.output=_}continue}}}}if(N==="["&&q()!==":"||N==="-"&&q()==="]"){N=`\\${N}`}if(N==="]"&&(B.value==="["||B.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&B.value==="["){N="^"}B.value+=N;append({value:N});continue}if(C.quotes===1&&N!=='"'){N=n.escapeRegex(N);B.value+=N;append({value:N});continue}if(N==='"'){C.quotes=C.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(C.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=O[O.length-1];if(e&&C.parens===e.parens+1){extglobClose(O.pop());continue}push({type:"paren",value:N,output:C.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(C.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const e=B.value.slice(1);if(B.posix!==true&&e[0]==="^"&&!e.includes("/")){N=`/${N}`}B.value+=N;append({value:N});if(r.literalBrackets===false||n.hasRegexChars(e)){continue}const t=n.escapeRegex(B.value);C.output=C.output.slice(0,-B.value.length);if(r.literalBrackets===true){C.output+=t;B.value=t;continue}B.value=`(${h}${t}|${B.value})`;C.output+=B.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:N,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};M.push(e);push(e);continue}if(N==="}"){const e=M[M.length-1];if(r.nobrace===true||!e){push({type:"text",value:N,output:N});continue}let t=")";if(e.dots===true){const e=f.slice();const s=[];for(let t=e.length-1;t>=0;t--){f.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);C.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=C.output.slice(0,e.outputIndex);const s=C.tokens.slice(e.tokensIndex);e.value=e.output="\\{";N=t="\\}";C.output=r;for(const e of s){C.output+=e.output||e.value}}push({type:"brace",value:N,output:t});decrement("braces");M.pop();continue}if(N==="|"){if(O.length>0){O[O.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let e=N;const t=M[M.length-1];if(t&&L[L.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:N,output:e});continue}if(N==="/"){if(B.type==="dot"&&C.index===C.start+1){C.start=C.index+1;C.consumed="";C.output="";f.pop();B=d;continue}push({type:"slash",value:N,output:b});continue}if(N==="."){if(C.braces>0&&B.type==="dot"){if(B.value===".")B.output=v;const e=M[M.length-1];B.type="dots";B.output+=N;B.value+=N;e.dots=true;continue}if(C.braces+C.parens===0&&B.type!=="bos"&&B.type!=="slash"){push({type:"text",value:N,output:v});continue}push({type:"dot",value:N,output:v});continue}if(N==="?"){const e=B&&B.value==="(";if(!e&&r.noextglob!==true&&q()==="("&&q(2)!=="?"){extglobOpen("qmark",N);continue}if(B&&B.type==="paren"){const e=q();let t=N;if(e==="<"&&!n.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${N}`}push({type:"text",value:N,output:t});continue}if(r.dot!==true&&(B.type==="slash"||B.type==="bos")){push({type:"qmark",value:N,output:E});continue}push({type:"qmark",value:N,output:S});continue}if(N==="!"){if(r.noextglob!==true&&q()==="("){if(q(2)!=="?"||!/[!=<:]/.test(q(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&C.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&q()==="("&&q(2)!=="?"){extglobOpen("plus",N);continue}if(B&&B.value==="("||r.regex===false){push({type:"plus",value:N,output:$});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||C.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:$});continue}if(N==="@"){if(r.noextglob!==true&&q()==="("&&q(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const e=a.exec(remaining());if(e){N+=e[0];C.index+=e[0].length}push({type:"text",value:N});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=N;B.output=T;C.backtrack=true;C.globstar=true;consume(N);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",N);continue}if(B.type==="star"){if(r.noglobstar===true){consume(N);continue}const s=B.prev;const n=s.prev;const o=s.type==="slash"||s.type==="bos";const i=n&&(n.type==="star"||n.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=C.braces>0&&(s.type==="comma"||s.type==="brace");const u=O.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!a&&!u){push({type:"star",value:N,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[C.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){B.type="globstar";B.value+=N;B.output=globstar(r);C.output=B.output;C.globstar=true;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!i&&eos()){C.output=C.output.slice(0,-(s.output+B.output).length);s.output=`(?:${s.output}`;B.type="globstar";B.output=globstar(r)+(r.strictSlashes?")":"|$)");B.value+=N;C.globstar=true;C.output+=s.output+B.output;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(s.output+B.output).length);s.output=`(?:${s.output}`;B.type="globstar";B.output=`${globstar(r)}${b}|${b}${e})`;B.value+=N;C.output+=s.output+B.output;C.globstar=true;consume(N+G());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){B.type="globstar";B.value+=N;B.output=`(?:^|${b}|${globstar(r)}${b})`;C.output=B.output;C.globstar=true;consume(N+G());push({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-B.output.length);B.type="globstar";B.output=globstar(r);B.value+=N;C.output+=B.output;C.globstar=true;consume(N);continue}const s={type:"star",value:N,output:T};if(r.bash===true){s.output=".*?";if(B.type==="bos"||B.type==="slash"){s.output=I+s.output}push(s);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===true){s.output=N;push(s);continue}if(C.index===C.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){C.output+=A;B.output+=A}else if(r.dot===true){C.output+=w;B.output+=w}else{C.output+=I;B.output+=I}if(q()!=="*"){C.output+=_;B.output+=_}}push(s)}while(C.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));C.output=n.escapeLast(C.output,"[");decrement("brackets")}while(C.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));C.output=n.escapeLast(C.output,"(");decrement("parens")}while(C.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));C.output=n.escapeLast(C.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){push({type:"maybe_slash",value:"",output:`${b}?`})}if(C.backtrack===true){C.output="";for(const e of C.tokens){C.output+=e.output!=null?e.output:e.value;if(e.suffix){C.output+=e.suffix}}}return C};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=p[e]||e;const u=n.isWindows(t);const{DOT_LITERAL:c,SLASH_LITERAL:l,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:v}=s.globChars(u);const $=r.dot?g:h;const b=r.dot?m:h;const _=r.capture?"":"?:";const j={negated:false,prefix:""};let R=r.bash===true?".*?":y;if(r.capture){R=`(${R})`}const globstar=e=>{if(e.noglobstar===true)return R;return`(${_}(?:(?!${v}${e.dot?f:c}).)*?)`};const create=e=>{switch(e){case"*":return`${$}${d}${R}`;case".*":return`${c}${d}${R}`;case"*.*":return`${$}${R}${c}${d}${R}`;case"*/*":return`${$}${R}${l}${d}${b}${R}`;case"**":return $+globstar(r);case"**/*":return`(?:${$}${globstar(r)}${l})?${b}${d}${R}`;case"**/*.*":return`(?:${$}${globstar(r)}${l})?${b}${R}${c}${d}${R}`;case"**/.*":return`(?:${$}${globstar(r)}${l})?${c}${d}${R}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+c+t[2]}}};const A=n.removePrefix(e,j);let w=create(A);if(w&&r.strictSlashes!==true){w+=`${l}?`}return w};e.exports=parse},1062:(e,t,r)=>{"use strict";const s=r(6928);const n=r(3495);const o=r(8731);const i=r(2561);const a=r(4157);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const n=t||{};const o=i.isWindows(t);const a=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(n.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:i,match:p,output:c}=picomatch.test(r,a,t,{glob:e,posix:o});const l={glob:e,state:u,regex:a,posix:o,input:r,output:c,match:p,isMatch:i};if(typeof n.onResult==="function"){n.onResult(l)}if(i===false){l.isMatch=false;return s?l:false}if(isIgnored(r)){if(typeof n.onIgnore==="function"){n.onIgnore(l)}l.isMatch=false;return s?l:false}if(typeof n.onMatch==="function"){n.onMatch(l)}return s?l:true};if(r){matcher.state=u}return matcher};picomatch.test=(e,t,r,{glob:s,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(n?i.toPosixSlashes:null);let u=e===s;let p=u&&a?a(e):e;if(u===false){p=a?a(e):e;u=p===s}if(u===false||o.capture===true){if(o.matchBase===true||o.basename===true){u=picomatch.matchBase(e,t,r,n)}else{u=t.exec(p)}}return{isMatch:Boolean(u),match:u,output:p}};picomatch.matchBase=(e,t,r,n=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const n=t||{};const o=n.contains?"":"^";const i=n.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,t);if(s===true){u.state=e}return u};picomatch.makeRe=(e,t={},r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let n={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){n.output=o.fastpaths(e,t)}if(!n.output){n=o(e,t)}return picomatch.compileRe(n,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},3495:(e,t,r)=>{"use strict";const s=r(2561);const{CHAR_ASTERISK:n,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:v}=r(4157);const isPathSeparator=e=>e===c||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const $=e.length-1;const b=r.parts===true||r.scanToEnd===true;const _=[];const j=[];const R=[];let A=e;let w=-1;let S=0;let E=0;let x=false;let k=false;let I=false;let P=false;let T=false;let C=false;let O=false;let M=false;let L=false;let B=false;let N=0;let q;let G;let D={value:"",depth:0,isGlob:false};const eos=()=>w>=$;const peek=()=>A.charCodeAt(w+1);const advance=()=>{q=G;return A.charCodeAt(++w)};while(w<$){G=advance();let e;if(G===i){O=D.backslashes=true;G=advance();if(G===l){C=true}continue}if(C===true||G===l){N++;while(eos()!==true&&(G=advance())){if(G===i){O=D.backslashes=true;advance();continue}if(G===l){N++;continue}if(C!==true&&G===u&&(G=advance())===u){x=D.isBrace=true;I=D.isGlob=true;B=true;if(b===true){continue}break}if(C!==true&&G===a){x=D.isBrace=true;I=D.isGlob=true;B=true;if(b===true){continue}break}if(G===m){N--;if(N===0){C=false;x=D.isBrace=true;B=true;break}}}if(b===true){continue}break}if(G===c){_.push(w);j.push(D);D={value:"",depth:0,isGlob:false};if(B===true)continue;if(q===u&&w===S+1){S+=2;continue}E=w+1;continue}if(r.noext!==true){const e=G===h||G===o||G===n||G===g||G===p;if(e===true&&peek()===d){I=D.isGlob=true;P=D.isExtglob=true;B=true;if(G===p&&w===S){L=true}if(b===true){while(eos()!==true&&(G=advance())){if(G===i){O=D.backslashes=true;G=advance();continue}if(G===y){I=D.isGlob=true;B=true;break}}continue}break}}if(G===n){if(q===n)T=D.isGlobstar=true;I=D.isGlob=true;B=true;if(b===true){continue}break}if(G===g){I=D.isGlob=true;B=true;if(b===true){continue}break}if(G===f){while(eos()!==true&&(e=advance())){if(e===i){O=D.backslashes=true;advance();continue}if(e===v){k=D.isBracket=true;I=D.isGlob=true;B=true;break}}if(b===true){continue}break}if(r.nonegate!==true&&G===p&&w===S){M=D.negated=true;S++;continue}if(r.noparen!==true&&G===d){I=D.isGlob=true;if(b===true){while(eos()!==true&&(G=advance())){if(G===d){O=D.backslashes=true;G=advance();continue}if(G===y){B=true;break}}continue}break}if(I===true){B=true;if(b===true){continue}break}}if(r.noext===true){P=false;I=false}let F=A;let H="";let U="";if(S>0){H=A.slice(0,S);A=A.slice(S);E-=S}if(F&&I===true&&E>0){F=A.slice(0,E);U=A.slice(E)}else if(I===true){F="";U=A}else{F=A}if(F&&F!==""&&F!=="/"&&F!==A){if(isPathSeparator(F.charCodeAt(F.length-1))){F=F.slice(0,-1)}}if(r.unescape===true){if(U)U=s.removeBackslashes(U);if(F&&O===true){F=s.removeBackslashes(F)}}const z={prefix:H,input:e,start:S,base:F,glob:U,isBrace:x,isBracket:k,isGlob:I,isExtglob:P,isGlobstar:T,negated:M,negatedExtglob:L};if(r.tokens===true){z.maxDepth=0;if(!isPathSeparator(G)){j.push(D)}z.tokens=j}if(r.parts===true||r.tokens===true){let t;for(let s=0;s<_.length;s++){const n=t?t+1:S;const o=_[s];const i=e.slice(n,o);if(r.tokens){if(s===0&&S!==0){j[s].isPrefix=true;j[s].value=H}else{j[s].value=i}depth(j[s]);z.maxDepth+=j[s].depth}if(s!==0||i!==""){R.push(i)}t=o}if(t&&t+1<e.length){const s=e.slice(t+1);R.push(s);if(r.tokens){j[j.length-1].value=s;depth(j[j.length-1]);z.maxDepth+=j[j.length-1].depth}}z.slashes=_;z.parts=R}return z};e.exports=scan},2561:(e,t,r)=>{"use strict";const s=r(6928);const n=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r(4157);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(u,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return n===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const n=r.contains?"":"$";let o=`${s}(?:${e})${n}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},3542:e=>{"use strict";var t=String.prototype.replace;var r=/%20/g;var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:s.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:s.RFC1738,RFC3986:s.RFC3986}},114:(e,t,r)=>{"use strict";var s=r(5983);var n=r(2353);var o=r(3542);e.exports={formats:o,parse:n,stringify:s}},2353:(e,t,r)=>{"use strict";var s=r(3747);var n=Object.prototype.hasOwnProperty;var o=Array.isArray;var i={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:s.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var a="utf8=%26%2310003%3B";var u="utf8=%E2%9C%93";var p=function parseQueryStringValues(e,t){var r={__proto__:null};var p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var c=t.parameterLimit===Infinity?undefined:t.parameterLimit;var l=p.split(t.delimiter,c);var d=-1;var f;var h=t.charset;if(t.charsetSentinel){for(f=0;f<l.length;++f){if(l[f].indexOf("utf8=")===0){if(l[f]===u){h="utf-8"}else if(l[f]===a){h="iso-8859-1"}d=f;f=l.length}}}for(f=0;f<l.length;++f){if(f===d){continue}var g=l[f];var m=g.indexOf("]=");var y=m===-1?g.indexOf("="):m+1;var v,$;if(y===-1){v=t.decoder(g,i.decoder,h,"key");$=t.strictNullHandling?null:""}else{v=t.decoder(g.slice(0,y),i.decoder,h,"key");$=s.maybeMap(parseArrayValue(g.slice(y+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))}if($&&t.interpretNumericEntities&&h==="iso-8859-1"){$=interpretNumericEntities($)}if(g.indexOf("[]=")>-1){$=o($)?[$]:$}if(n.call(r,v)){r[v]=s.combine(r[v],$)}else{r[v]=$}}return r};var parseObject=function(e,t,r,s){var n=s?t:parseArrayValue(t,r);for(var o=e.length-1;o>=0;--o){var i;var a=e[o];if(a==="[]"&&r.parseArrays){i=[].concat(n)}else{i=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var p=parseInt(u,10);if(!r.parseArrays&&u===""){i={0:n}}else if(!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&(r.parseArrays&&p<=r.arrayLimit)){i=[];i[p]=n}else if(u!=="__proto__"){i[u]=n}}n=i}return n};var c=function parseQueryStringKeys(e,t,r,s){if(!e){return}var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var u=r.depth>0&&i.exec(o);var p=u?o.slice(0,u.index):o;var c=[];if(p){if(!r.plainObjects&&n.call(Object.prototype,p)){if(!r.allowPrototypes){return}}c.push(p)}var l=0;while(r.depth>0&&(u=a.exec(o))!==null&&l<r.depth){l+=1;if(!r.plainObjects&&n.call(Object.prototype,u[1].slice(1,-1))){if(!r.allowPrototypes){return}}c.push(u[1])}if(u){c.push("["+o.slice(u.index)+"]")}return parseObject(c,t,r,s)};var l=function normalizeParseOptions(e){if(!e){return i}if(e.decoder!==null&&e.decoder!==undefined&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=typeof e.charset==="undefined"?i.charset:e.charset;return{allowDots:typeof e.allowDots==="undefined"?i.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||s.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=l(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?Object.create(null):{}}var n=typeof e==="string"?p(e,r):e;var o=r.plainObjects?Object.create(null):{};var i=Object.keys(n);for(var a=0;a<i.length;++a){var u=i[a];var d=c(u,n[u],r,typeof e==="string");o=s.merge(o,d,r)}if(r.allowSparse===true){return o}return s.compact(o)}},5983:(e,t,r)=>{"use strict";var s=r(1319);var n=r(3747);var o=r(3542);var i=Object.prototype.hasOwnProperty;var a={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var u=Array.isArray;var p=Array.prototype.push;var pushToArray=function(e,t){p.apply(e,u(t)?t:[t])};var c=Date.prototype.toISOString;var l=o["default"];var d={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,format:l,formatter:o.formatters[l],indices:false,serializeDate:function serializeDate(e){return c.call(e)},skipNulls:false,strictNullHandling:false};var f=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var h={};var g=function stringify(e,t,r,o,i,a,p,c,l,g,m,y,v,$,b,_){var j=e;var R=_;var A=0;var w=false;while((R=R.get(h))!==void undefined&&!w){var S=R.get(e);A+=1;if(typeof S!=="undefined"){if(S===A){throw new RangeError("Cyclic object value")}else{w=true}}if(typeof R.get(h)==="undefined"){A=0}}if(typeof c==="function"){j=c(t,j)}else if(j instanceof Date){j=m(j)}else if(r==="comma"&&u(j)){j=n.maybeMap(j,(function(e){if(e instanceof Date){return m(e)}return e}))}if(j===null){if(i){return p&&!$?p(t,d.encoder,b,"key",y):t}j=""}if(f(j)||n.isBuffer(j)){if(p){var E=$?t:p(t,d.encoder,b,"key",y);return[v(E)+"="+v(p(j,d.encoder,b,"value",y))]}return[v(t)+"="+v(String(j))]}var x=[];if(typeof j==="undefined"){return x}var k;if(r==="comma"&&u(j)){if($&&p){j=n.maybeMap(j,p)}k=[{value:j.length>0?j.join(",")||null:void undefined}]}else if(u(c)){k=c}else{var I=Object.keys(j);k=l?I.sort(l):I}var P=o&&u(j)&&j.length===1?t+"[]":t;for(var T=0;T<k.length;++T){var C=k[T];var O=typeof C==="object"&&typeof C.value!=="undefined"?C.value:j[C];if(a&&O===null){continue}var M=u(j)?typeof r==="function"?r(P,C):P:P+(g?"."+C:"["+C+"]");_.set(e,A);var L=s();L.set(h,_);pushToArray(x,stringify(O,M,r,o,i,a,r==="comma"&&$&&u(j)?null:p,c,l,g,m,y,v,$,b,L))}return x};var m=function normalizeStringifyOptions(e){if(!e){return d}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||d.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=o["default"];if(typeof e.format!=="undefined"){if(!i.call(o.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var s=o.formatters[r];var n=d.filter;if(typeof e.filter==="function"||u(e.filter)){n=e.filter}return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:d.addQueryPrefix,allowDots:typeof e.allowDots==="undefined"?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:d.charsetSentinel,delimiter:typeof e.delimiter==="undefined"?d.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:d.encode,encoder:typeof e.encoder==="function"?e.encoder:d.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:d.encodeValuesOnly,filter:n,format:r,formatter:s,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:d.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:d.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r=e;var n=m(t);var o;var i;if(typeof n.filter==="function"){i=n.filter;r=i("",r)}else if(u(n.filter)){i=n.filter;o=i}var p=[];if(typeof r!=="object"||r===null){return""}var c;if(t&&t.arrayFormat in a){c=t.arrayFormat}else if(t&&"indices"in t){c=t.indices?"indices":"repeat"}else{c="indices"}var l=a[c];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var d=l==="comma"&&t&&t.commaRoundTrip;if(!o){o=Object.keys(r)}if(n.sort){o.sort(n.sort)}var f=s();for(var h=0;h<o.length;++h){var y=o[h];if(n.skipNulls&&r[y]===null){continue}pushToArray(p,g(r[y],y,l,d,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var v=p.join(n.delimiter);var $=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){$+="utf8=%26%2310003%3B&"}else{$+="utf8=%E2%9C%93&"}}return v.length>0?$+v:""}},3747:(e,t,r)=>{"use strict";var s=r(3542);var n=Object.prototype.hasOwnProperty;var o=Array.isArray;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(o(r)){var s=[];for(var n=0;n<r.length;++n){if(typeof r[n]!=="undefined"){s.push(r[n])}}t.obj[t.prop]=s}}};var u=function arrayToObject(e,t){var r=t&&t.plainObjects?Object.create(null):{};for(var s=0;s<e.length;++s){if(typeof e[s]!=="undefined"){r[s]=e[s]}}return r};var p=function merge(e,t,r){if(!t){return e}if(typeof t!=="object"){if(o(e)){e.push(t)}else if(e&&typeof e==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,t)){e[t]=true}}else{return[e,t]}return e}if(!e||typeof e!=="object"){return[e].concat(t)}var s=e;if(o(e)&&!o(t)){s=u(e,r)}if(o(e)&&o(t)){t.forEach((function(t,s){if(n.call(e,s)){var o=e[s];if(o&&typeof o==="object"&&t&&typeof t==="object"){e[s]=merge(o,t,r)}else{e.push(t)}}else{e[s]=t}}));return e}return Object.keys(t).reduce((function(e,s){var o=t[s];if(n.call(e,s)){e[s]=merge(e[s],o,r)}else{e[s]=o}return e}),s)};var c=function assignSingleSource(e,t){return Object.keys(t).reduce((function(e,r){e[r]=t[r];return e}),e)};var decode=function(e,t,r){var s=e.replace(/\+/g," ");if(r==="iso-8859-1"){return s.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(s)}catch(e){return s}};var l=function encode(e,t,r,n,o){if(e.length===0){return e}var a=e;if(typeof e==="symbol"){a=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){a=String(e)}if(r==="iso-8859-1"){return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var u="";for(var p=0;p<a.length;++p){var c=a.charCodeAt(p);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===s.RFC1738&&(c===40||c===41)){u+=a.charAt(p);continue}if(c<128){u=u+i[c];continue}if(c<2048){u=u+(i[192|c>>6]+i[128|c&63]);continue}if(c<55296||c>=57344){u=u+(i[224|c>>12]+i[128|c>>6&63]+i[128|c&63]);continue}p+=1;c=65536+((c&1023)<<10|a.charCodeAt(p)&1023);u+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|c&63]}return u};var d=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var s=0;s<t.length;++s){var n=t[s];var o=n.obj[n.prop];var i=Object.keys(o);for(var u=0;u<i.length;++u){var p=i[u];var c=o[p];if(typeof c==="object"&&c!==null&&r.indexOf(c)===-1){t.push({obj:o,prop:p});r.push(c)}}}a(t);return e};var f=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var h=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var g=function combine(e,t){return[].concat(e,t)};var m=function maybeMap(e,t){if(o(e)){var r=[];for(var s=0;s<e.length;s+=1){r.push(t(e[s]))}return r}return t(e)};e.exports={arrayToObject:u,assign:c,combine:g,compact:d,decode:decode,encode:l,isBuffer:h,isRegExp:f,maybeMap:m,merge:p}},1628:(e,t,r)=>{"use strict";var s=r(4784);var n=r(2126);var o=r(7975)();var i=r(6424);var a=r(7052);var u=s("%Math.floor%");e.exports=function setFunctionLength(e,t){if(typeof e!=="function"){throw new a("`fn` is not a function")}if(typeof t!=="number"||t<0||t>4294967295||u(t)!==t){throw new a("`length` must be a positive 32-bit integer")}var r=arguments.length>2&&!!arguments[2];var s=true;var p=true;if("length"in e&&i){var c=i(e,"length");if(c&&!c.configurable){s=false}if(c&&!c.writable){p=false}}if(s||p||!r){if(o){n(e,"length",t,true,true)}else{n(e,"length",t)}}return e}},1319:(e,t,r)=>{"use strict";var s=r(4784);var n=r(4122);var o=r(6164);var i=s("%TypeError%");var a=s("%WeakMap%",true);var u=s("%Map%",true);var p=n("WeakMap.prototype.get",true);var c=n("WeakMap.prototype.set",true);var l=n("WeakMap.prototype.has",true);var d=n("Map.prototype.get",true);var f=n("Map.prototype.set",true);var h=n("Map.prototype.has",true);var listGetNode=function(e,t){for(var r=e,s;(s=r.next)!==null;r=s){if(s.key===t){r.next=s.next;s.next=e.next;e.next=s;return s}}};var listGet=function(e,t){var r=listGetNode(e,t);return r&&r.value};var listSet=function(e,t,r){var s=listGetNode(e,t);if(s){s.value=r}else{e.next={key:t,next:e.next,value:r}}};var listHas=function(e,t){return!!listGetNode(e,t)};e.exports=function getSideChannel(){var e;var t;var r;var s={assert:function(e){if(!s.has(e)){throw new i("Side channel does not contain "+o(e))}},get:function(s){if(a&&s&&(typeof s==="object"||typeof s==="function")){if(e){return p(e,s)}}else if(u){if(t){return d(t,s)}}else{if(r){return listGet(r,s)}}},has:function(s){if(a&&s&&(typeof s==="object"||typeof s==="function")){if(e){return l(e,s)}}else if(u){if(t){return h(t,s)}}else{if(r){return listHas(r,s)}}return false},set:function(s,n){if(a&&s&&(typeof s==="object"||typeof s==="function")){if(!e){e=new a}c(e,s,n)}else if(u){if(!t){t=new u}f(t,s,n)}else{if(!r){r={key:{},next:null}}listSet(r,s,n)}}};return s}},389:(e,t,r)=>{"use strict";
14
+ /*!
15
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
16
+ *
17
+ * Copyright (c) 2015-present, Jon Schlinkert.
18
+ * Released under the MIT License.
19
+ */const s=r(7416);const toRegexRange=(e,t,r)=>{if(s(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(s(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let n={relaxZeros:true,...r};if(typeof n.strictZeros==="boolean"){n.relaxZeros=n.strictZeros===false}let o=String(n.relaxZeros);let i=String(n.shorthand);let a=String(n.capture);let u=String(n.wrap);let p=e+":"+t+"="+o+i+a+u;if(toRegexRange.cache.hasOwnProperty(p)){return toRegexRange.cache[p].result}let c=Math.min(e,t);let l=Math.max(e,t);if(Math.abs(c-l)===1){let r=e+"|"+t;if(n.capture){return`(${r})`}if(n.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let f={min:e,max:t,a:c,b:l};let h=[];let g=[];if(d){f.isPadded=d;f.maxLen=String(f.max).length}if(c<0){let e=l<0?Math.abs(l):1;g=splitToPatterns(e,Math.abs(c),f,n);c=f.a=0}if(l>=0){h=splitToPatterns(c,l,f,n)}f.negatives=g;f.positives=h;f.result=collatePatterns(g,h,n);if(n.capture===true){f.result=`(${f.result})`}else if(n.wrap!==false&&h.length+g.length>1){f.result=`(?:${f.result})`}toRegexRange.cache[p]=f;return f.result};function collatePatterns(e,t,r){let s=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let o=filterPatterns(e,t,"-?",true,r)||[];let i=s.concat(o).concat(n);return i.join("|")}function splitToRanges(e,t){let r=1;let s=1;let n=countNines(e,r);let o=new Set([t]);while(e<=n&&n<=t){o.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,s)-1;while(e<n&&n<=t){o.add(n);s+=1;n=countZeros(t+1,s)-1}o=[...o];o.sort(compare);return o}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let s=zip(e,t);let n=s.length;let o="";let i=0;for(let e=0;e<n;e++){let[t,n]=s[e];if(t===n){o+=t}else if(t!=="0"||n!=="9"){o+=toCharacterClass(t,n,r)}else{i++}}if(i){o+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:o,count:[i],digits:n}}function splitToPatterns(e,t,r,s){let n=splitToRanges(e,t);let o=[];let i=e;let a;for(let e=0;e<n.length;e++){let t=n[e];let u=rangeToPattern(String(i),String(t),s);let p="";if(!r.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);i=t+1;continue}if(r.isPadded){p=padZeros(t,r,s)}u.string=p+u.pattern+toQuantifier(u.count);o.push(u);i=t+1;a=u}return o}function filterPatterns(e,t,r,s,n){let o=[];for(let n of e){let{string:e}=n;if(!s&&!contains(t,"string",e)){o.push(r+e)}if(s&&contains(t,"string",e)){o.push(r+e)}}return o}function zip(e,t){let r=[];for(let s=0;s<e.length;s++)r.push([e[s],t[s]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let s=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(s){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${s}}`:`0{${s}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},7022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol?"symbol":typeof e};function isLower(e){return e>=97&&e<=122}function isUpper(e){return e>=65&&e<=90}function isDigit(e){return e>=48&&e<=57}function toUpper(e){return e-32}function toUpperSafe(e){if(isLower(e)){return e-32}return e}function toLower(e){return e+32}function camelize$1(e,t){var r=e.charCodeAt(0);if(isDigit(r)||isUpper(r)||r==t){return e}var s=[];var n=false;if(isUpper(r)){n=true;s.push(toLower(r))}else{s.push(r)}var o=e.length;for(var i=1;i<o;++i){var a=e.charCodeAt(i);if(a===t){n=true;a=e.charCodeAt(++i);if(isNaN(a)){return e}s.push(toUpperSafe(a))}else{s.push(a)}}return n?String.fromCharCode.apply(undefined,s):e}function decamelize$1(e,t){var r=e.charCodeAt(0);if(!isLower(r)){return e}var s=e.length;var n=false;var o=[];for(var i=0;i<s;++i){var a=e.charCodeAt(i);if(isUpper(a)){o.push(t);o.push(toLower(a));n=true}else{o.push(a)}}return n?String.fromCharCode.apply(undefined,o):e}function pascalize$1(e,t){var r=e.charCodeAt(0);if(isDigit(r)||r==t){return e}var s=e.length;var n=false;var o=[];for(var i=0;i<s;++i){var a=e.charCodeAt(i);if(a===t){n=true;a=e.charCodeAt(++i);if(isNaN(a)){return e}o.push(toUpperSafe(a))}else if(i===0&&isLower(a)){n=true;o.push(toUpper(a))}else{o.push(a)}}return n?String.fromCharCode.apply(undefined,o):e}function depascalize$1(e,t){var r=e.charCodeAt(0);if(!isUpper(r)){return e}var s=e.length;var n=false;var o=[];for(var i=0;i<s;++i){var a=e.charCodeAt(i);if(isUpper(a)){if(i>0){o.push(t)}o.push(toLower(a));n=true}else{o.push(a)}}return n?String.fromCharCode.apply(undefined,o):e}function shouldProcessValue(e){return e&&(typeof e==="undefined"?"undefined":r(e))=="object"&&!(e instanceof Date)&&!(e instanceof Function)}function processKeys(e,t,r){var s=void 0;if(e instanceof Array){s=[]}else{if(typeof e.prototype!=="undefined"){return e}s={}}for(var n in e){var o=e[n];if(typeof n==="string")n=t(n,r&&r.separator);if(shouldProcessValue(o)){s[n]=processKeys(o,t,r)}else{s[n]=o}}return s}function processKeysInPlace(e,t,r){var s=Object.keys(e);for(var n=0;n<s.length;++n){var o=s[n];var i=e[o];var a=t(o,r&&r.separator);if(a!==o){delete e[o]}if(shouldProcessValue(i)){e[a]=processKeys(i,t,r)}else{e[a]=i}}return e}function camelize$$1(e,t){return camelize$1(e,t&&t.charCodeAt(0)||95)}function decamelize$$1(e,t){return decamelize$1(e,t&&t.charCodeAt(0)||95)}function pascalize$$1(e,t){return pascalize$1(e,t&&t.charCodeAt(0)||95)}function depascalize$$1(e,t){return depascalize$1(e,t&&t.charCodeAt(0)||95)}function camelizeKeys(e,t){t=t||{};if(!shouldProcessValue(e))return e;if(t.inPlace)return processKeysInPlace(e,camelize$$1,t);return processKeys(e,camelize$$1,t)}function decamelizeKeys(e,t){t=t||{};if(!shouldProcessValue(e))return e;if(t.inPlace)return processKeysInPlace(e,decamelize$$1,t);return processKeys(e,decamelize$$1,t)}function pascalizeKeys(e,t){t=t||{};if(!shouldProcessValue(e))return e;if(t.inPlace)return processKeysInPlace(e,pascalize$$1,t);return processKeys(e,pascalize$$1,t)}function depascalizeKeys(e,t){t=t||{};if(!shouldProcessValue(e))return e;if(t.inPlace)return processKeysInPlace(e,depascalize$$1,t);return processKeys(e,depascalize$$1,t)}t.camelize=camelize$$1;t.decamelize=decamelize$$1;t.pascalize=pascalize$$1;t.depascalize=depascalize$$1;t.camelizeKeys=camelizeKeys;t.decamelizeKeys=decamelizeKeys;t.pascalizeKeys=pascalizeKeys;t.depascalizeKeys=depascalizeKeys},4434:e=>{"use strict";e.exports=require("events")},1943:e=>{"use strict";e.exports=require("fs/promises")},5692:e=>{"use strict";e.exports=require("https")},6928:e=>{"use strict";e.exports=require("path")},9023:e=>{"use strict";e.exports=require("util")},3281:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(a){if(s)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(r=0)),r)try{if(s=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;n=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];n=0}finally{s=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.AsyncOption=void 0;var o=r(7845);var i=r(1471);var a=function(){function AsyncOption(e){this.promise=Promise.resolve(e)}AsyncOption.prototype.andThen=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){if(r.isNone()){return[2,r]}t=e(r.value);return[2,t instanceof AsyncOption?t.promise:t]}))}))}))};AsyncOption.prototype.map=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){switch(s.label){case 0:if(r.isNone()){return[2,r]}t=i.Some;return[4,e(r.value)];case 1:return[2,t.apply(void 0,[s.sent()])]}}))}))}))};AsyncOption.prototype.or=function(e){return this.orElse((function(){return e}))};AsyncOption.prototype.orElse=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){if(r.isSome()){return[2,r]}t=e();return[2,t instanceof AsyncOption?t.promise:t]}))}))}))};AsyncOption.prototype.toResult=function(e){return new o.AsyncResult(this.promise.then((function(t){return t.toResult(e)})))};AsyncOption.prototype.thenInternal=function(e){return new AsyncOption(this.promise.then(e))};return AsyncOption}();t.AsyncOption=a},7845:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(a){if(s)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(r=0)),r)try{if(s=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;n=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];n=0}finally{s=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.AsyncResult=void 0;var o=r(3281);var i=r(7983);var a=function(){function AsyncResult(e){this.promise=Promise.resolve(e)}AsyncResult.prototype.andThen=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){if(r.isErr()){return[2,r]}t=e(r.value);return[2,t instanceof AsyncResult?t.promise:t]}))}))}))};AsyncResult.prototype.map=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){switch(s.label){case 0:if(r.isErr()){return[2,r]}t=i.Ok;return[4,e(r.value)];case 1:return[2,t.apply(void 0,[s.sent()])]}}))}))}))};AsyncResult.prototype.mapErr=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){switch(s.label){case 0:if(r.isOk()){return[2,r]}t=i.Err;return[4,e(r.error)];case 1:return[2,t.apply(void 0,[s.sent()])]}}))}))}))};AsyncResult.prototype.or=function(e){return this.orElse((function(){return e}))};AsyncResult.prototype.orElse=function(e){var t=this;return this.thenInternal((function(r){return s(t,void 0,void 0,(function(){var t;return n(this,(function(s){if(r.isOk()){return[2,r]}t=e(r.error);return[2,t instanceof AsyncResult?t.promise:t]}))}))}))};AsyncResult.prototype.toOption=function(){return new o.AsyncOption(this.promise.then((function(e){return e.toOption()})))};AsyncResult.prototype.thenInternal=function(e){return new AsyncResult(this.promise.then(e))};return AsyncResult}();t.AsyncResult=a},5572:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,n)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});n(r(3281),t);n(r(7845),t);n(r(7983),t);n(r(1471),t)},1471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Option=t.Some=t.None=void 0;var s=r(3281);var n=r(1501);var o=r(7983);var i=function(){function NoneImpl(){}NoneImpl.prototype.isSome=function(){return false};NoneImpl.prototype.isNone=function(){return true};NoneImpl.prototype[Symbol.iterator]=function(){return{next:function(){return{done:true,value:undefined}}}};NoneImpl.prototype.unwrapOr=function(e){return e};NoneImpl.prototype.expect=function(e){throw new Error("".concat(e))};NoneImpl.prototype.unwrap=function(){throw new Error("Tried to unwrap None")};NoneImpl.prototype.map=function(e){return this};NoneImpl.prototype.mapOr=function(e,t){return e};NoneImpl.prototype.mapOrElse=function(e,t){return e()};NoneImpl.prototype.or=function(e){return e};NoneImpl.prototype.orElse=function(e){return e()};NoneImpl.prototype.andThen=function(e){return this};NoneImpl.prototype.toResult=function(e){return(0,o.Err)(e)};NoneImpl.prototype.toString=function(){return"None"};NoneImpl.prototype.toAsyncOption=function(){return new s.AsyncOption(t.None)};return NoneImpl}();t.None=new i;Object.freeze(t.None);var a=function(){function SomeImpl(e){if(!(this instanceof SomeImpl)){return new SomeImpl(e)}this.value=e}SomeImpl.prototype.isSome=function(){return true};SomeImpl.prototype.isNone=function(){return false};SomeImpl.prototype[Symbol.iterator]=function(){var e=Object(this.value);return Symbol.iterator in e?e[Symbol.iterator]():{next:function(){return{done:true,value:undefined}}}};SomeImpl.prototype.unwrapOr=function(e){return this.value};SomeImpl.prototype.expect=function(e){return this.value};SomeImpl.prototype.unwrap=function(){return this.value};SomeImpl.prototype.map=function(e){return(0,t.Some)(e(this.value))};SomeImpl.prototype.mapOr=function(e,t){return t(this.value)};SomeImpl.prototype.mapOrElse=function(e,t){return t(this.value)};SomeImpl.prototype.or=function(e){return this};SomeImpl.prototype.orElse=function(e){return this};SomeImpl.prototype.andThen=function(e){return e(this.value)};SomeImpl.prototype.toResult=function(e){return(0,o.Ok)(this.value)};SomeImpl.prototype.toAsyncOption=function(){return new s.AsyncOption(this)};SomeImpl.prototype.safeUnwrap=function(){return this.value};SomeImpl.prototype.toString=function(){return"Some(".concat((0,n.toString)(this.value),")")};SomeImpl.EMPTY=new SomeImpl(undefined);return SomeImpl}();t.Some=a;var u;(function(e){function all(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var s=[];for(var n=0,o=e;n<o.length;n++){var i=o[n];if(i.isSome()){s.push(i.value)}else{return i}}return(0,t.Some)(s)}e.all=all;function any(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}for(var s=0,n=e;s<n.length;s++){var o=n[s];if(o.isSome()){return o}else{continue}}return t.None}e.any=any;function isOption(e){return e instanceof t.Some||e===t.None}e.isOption=isOption})(u||(t.Option=u={}))},7983:function(e,t,r){"use strict";var s=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var s=0,n=t.length,o;s<n;s++){if(o||!(s in t)){if(!o)o=Array.prototype.slice.call(t,0,s);o[s]=t[s]}}return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.Result=t.Ok=t.OkImpl=t.Err=t.ErrImpl=void 0;var n=r(1501);var o=r(1471);var i=r(7845);var a=function(){function ErrImpl(e){if(!(this instanceof ErrImpl)){return new ErrImpl(e)}this.error=e;var t=(new Error).stack.split("\n").slice(2);if(t&&t.length>0&&t[0].includes("ErrImpl")){t.shift()}this._stack=t.join("\n")}ErrImpl.prototype.isOk=function(){return false};ErrImpl.prototype.isErr=function(){return true};ErrImpl.prototype[Symbol.iterator]=function(){return{next:function(){return{done:true,value:undefined}}}};ErrImpl.prototype.else=function(e){return e};ErrImpl.prototype.unwrapOr=function(e){return e};ErrImpl.prototype.expect=function(e){throw new Error("".concat(e," - Error: ").concat((0,n.toString)(this.error),"\n").concat(this._stack),{cause:this.error})};ErrImpl.prototype.expectErr=function(e){return this.error};ErrImpl.prototype.unwrap=function(){throw new Error("Tried to unwrap Error: ".concat((0,n.toString)(this.error),"\n").concat(this._stack),{cause:this.error})};ErrImpl.prototype.unwrapErr=function(){return this.error};ErrImpl.prototype.map=function(e){return this};ErrImpl.prototype.andThen=function(e){return this};ErrImpl.prototype.mapErr=function(e){return new t.Err(e(this.error))};ErrImpl.prototype.mapOr=function(e,t){return e};ErrImpl.prototype.mapOrElse=function(e,t){return e(this.error)};ErrImpl.prototype.or=function(e){return e};ErrImpl.prototype.orElse=function(e){return e(this.error)};ErrImpl.prototype.toOption=function(){return o.None};ErrImpl.prototype.toString=function(){return"Err(".concat((0,n.toString)(this.error),")")};Object.defineProperty(ErrImpl.prototype,"stack",{get:function(){return"".concat(this,"\n").concat(this._stack)},enumerable:false,configurable:true});ErrImpl.prototype.toAsyncResult=function(){return new i.AsyncResult(this)};ErrImpl.EMPTY=new ErrImpl(undefined);return ErrImpl}();t.ErrImpl=a;t.Err=a;var u=function(){function OkImpl(e){if(!(this instanceof OkImpl)){return new OkImpl(e)}this.value=e}OkImpl.prototype.isOk=function(){return true};OkImpl.prototype.isErr=function(){return false};OkImpl.prototype[Symbol.iterator]=function(){var e=Object(this.value);return Symbol.iterator in e?e[Symbol.iterator]():{next:function(){return{done:true,value:undefined}}}};OkImpl.prototype.else=function(e){return this.value};OkImpl.prototype.unwrapOr=function(e){return this.value};OkImpl.prototype.expect=function(e){return this.value};OkImpl.prototype.expectErr=function(e){throw new Error(e)};OkImpl.prototype.unwrap=function(){return this.value};OkImpl.prototype.unwrapErr=function(){throw new Error("Tried to unwrap Ok: ".concat((0,n.toString)(this.value)),{cause:this.value})};OkImpl.prototype.map=function(e){return new t.Ok(e(this.value))};OkImpl.prototype.andThen=function(e){return e(this.value)};OkImpl.prototype.mapErr=function(e){return this};OkImpl.prototype.mapOr=function(e,t){return t(this.value)};OkImpl.prototype.mapOrElse=function(e,t){return t(this.value)};OkImpl.prototype.or=function(e){return this};OkImpl.prototype.orElse=function(e){return this};OkImpl.prototype.toOption=function(){return(0,o.Some)(this.value)};OkImpl.prototype.safeUnwrap=function(){return this.value};OkImpl.prototype.toString=function(){return"Ok(".concat((0,n.toString)(this.value),")")};OkImpl.prototype.toAsyncResult=function(){return new i.AsyncResult(this)};OkImpl.EMPTY=new OkImpl(undefined);return OkImpl}();t.OkImpl=u;t.Ok=u;var p;(function(e){function all(e){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var o=e===undefined?[]:Array.isArray(e)?e:s([e],r,true);var i=[];for(var a=0,u=o;a<u.length;a++){var p=u[a];if(p.isOk()){i.push(p.value)}else{return p}}return new t.Ok(i)}e.all=all;function any(e){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var o=e===undefined?[]:Array.isArray(e)?e:s([e],r,true);var i=[];for(var a=0,u=o;a<u.length;a++){var p=u[a];if(p.isOk()){return p}else{i.push(p.error)}}return new t.Err(i)}e.any=any;function wrap(e){try{return new t.Ok(e())}catch(e){return new t.Err(e)}}e.wrap=wrap;function wrapAsync(e){try{return e().then((function(e){return new t.Ok(e)})).catch((function(e){return new t.Err(e)}))}catch(e){return Promise.resolve(new t.Err(e))}}e.wrapAsync=wrapAsync;function partition(e){return e.reduce((function(e,t){var r=e[0],n=e[1];return t.isOk()?[s(s([],r,true),[t.value],false),n]:[r,s(s([],n,true),[t.error],false)]}),[[],[]])}e.partition=partition;function isResult(e){return e instanceof t.Err||e instanceof t.Ok}e.isResult=isResult})(p||(t.Result=p={}))},1501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toString=void 0;function toString(e){var t=String(e);if(t==="[object Object]"){try{t=JSON.stringify(e)}catch(e){}}return t}t.toString=toString},1678:e=>{"use strict";e.exports=JSON.parse('[{"description":"No API keys or secrets are stored in repository","responsibles":1,"more":""},{"description":"The app does not provide password login","responsibles":1,"more":""},{"description":"Passwords are not stored","responsibles":1,"more":""},{"description":"No sensitive information (passwords, keys, user data, ...) is logged or traced","responsibles":1,"more":"[Logging guide](https://www.notion.so/panterch/Long-story-logging-022722bb878f4724ae5b49e17667b630?pvs=4#9e5a36b7158a4953b73ec6a345bd8989), [Tracing guide](https://www.notion.so/panterch/Long-story-tracing-d8a9ec1ac2ff4fa78cefa8991233224e?pvs=4#535121b5bf9741fbaf8654b4b64d879d)"},{"description":"Passwords are stored hashed with salt and salt is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/hash.md)"},{"description":"Input that ends up in DOM is properly sanitized","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/xss.md)"},{"description":"All user inputs have reasonable validations","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/validation.md)"},{"description":"The app is not using cookies","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app is using cookies and cookies are properly configured","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"The app uses JWT with a secret and the secret is not stored in the repository","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cookies.md)"},{"description":"Authorization and user roles (RBAC) were reviewed thoroughly","responsibles":2,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/authorization.md)"},{"description":"CORS headers do not use `*`","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/cors.md)"},{"description":"CSP headers are properly configured (no `unsafe-inline` or `unsafe-eval`)","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csp.md)"},{"description":"DoS defense mechanism is implemented","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"YAML/XML parsing is not used or used YAML/XML parsers have disabled DTD","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/dos.md)"},{"description":"The app implements CSRF prevention","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/csrf.md)"},{"description":"The app has a rate limitter","responsibles":1,"more":""},{"description":"The app has disabled GraphQL introspection and schema registry","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"The app has set GraphQL complexity query limits","responsibles":1,"more":"[guide](https://git.panter.ch/panter/security-guide/-/blob/main/docs/audit/graphql.md)"},{"description":"`sitemap.xml` does not leak any routes with sensitive data","responsibles":1,"more":""},{"description":"Cloud storage is (private) configured to not leak any sensitive data publicly","responsibles":1,"more":""},{"description":"Security Dashboard checks weekly vulnerable dependencies https://dep.panter.swiss/","responsibles":1,"more":""},{"description":"The app has `.well-known/security.txt` https://securitytxt.org/","responsibles":1,"more":""}]')}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,s){if(s&1)r=this(r);if(s&8)return r;if(typeof r==="object"&&r){if(s&4&&r.__esModule)return r;if(s&16&&typeof r.then==="function")return r}var n=Object.create(null);__nccwpck_require__.r(n);var o={};t=t||[null,e({}),e([]),e(e)];for(var i=s&2&&r;typeof i=="object"&&!~t.indexOf(i);i=e(i)){Object.getOwnPropertyNames(i).forEach((e=>o[e]=()=>r[e]))}o["default"]=()=>r;__nccwpck_require__.d(n,o);return n}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(6856);const s=__nccwpck_require__(4556);const n=__nccwpck_require__(960);const o="https://git.panter.ch";const i=`catci — catladder CI companion\n\nusage:\n catci security-audit ci-job <path> <gitlab-token> <main-branch> <project-id> <user-id>\n evaluates ${n.SECURITY_AUDIT_FILE_NAME}; creates a gitlab MR with the\n audit template when the document is missing (and exits 1)\n\n catci security-audit check <path>\n evaluates ${n.SECURITY_AUDIT_FILE_NAME}; exits 1 with instructions when\n the document is missing or unanswered (no remediation — works on\n any CI, including github)\n`;const fail=e=>{console.error(e);process.exit(1)};const evaluateGate=async e=>{const t=await(0,s.evaluateSecurityAudit)({path:e});if(t.isErr()){return null}if(t.value.score.answeredTopics===0){fail(`audit document has no answered topics\n`+`please answer security topics in ${n.SECURITY_AUDIT_FILE_NAME} by adding responsible people and check/cross in the table`)}console.log((0,s.makeSecurityAuditOverview)(t.value));return t.value};const securityAuditCheck=async e=>{const t=await evaluateGate(e);if(!t){fail(`could not evaluate ${n.SECURITY_AUDIT_FILE_NAME}\n`+`please add a ${n.SECURITY_AUDIT_FILE_NAME} security audit document to the repository `+`(run \`catladder security audit create\` locally to generate the template)`)}};const securityAuditCiJob=async(e,r,s,i,a)=>{const u=await evaluateGate(e);if(u){return}console.log("could not evaluate security audit document");console.log("creating new merge request with security audit template...");const p=new t.Gitlab({host:o,token:r});const c=await(0,n.createSecurityAuditMergeRequest)({api:p,mainBranch:s,projectId:i,userId:parseInt(a)});if(c.isErr()){fail(`could not create merge request with security audit template: ${c.error}`);return}console.log("security audit merge request created successfully");console.log(`please finish the MR by updating ${n.SECURITY_AUDIT_FILE_NAME}: ${c.value.web_url}`);process.exit(1)};const main=async()=>{const[e,t,...r]=process.argv.slice(2);if(e==="security-audit"&&t==="ci-job"&&r.length===5){const[e,t,s,n,o]=r;return securityAuditCiJob(e,t,s,n,o)}if(e==="security-audit"&&t==="check"&&r.length===1){return securityAuditCheck(r[0])}fail(i)};main().catch((e=>{fail(`catci failed: ${e instanceof Error?e.message:e}`)}))})();module.exports=r})();