@aliaksandarpratashchyk/kickcat 0.5.2 → 0.5.3

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.
package/dist/bundle.js CHANGED
@@ -2,8 +2,8 @@
2
2
  (()=>{var e,t,r,s,n,o={18:(e,t,r)=>{"use strict";var s=r(484),n=r(9714),o=r(1755),i=r(6010),a=r(7434),c=r(483),u=r(2291);function l(e,t,r,s,n,o){const i="block-map"===r.type?a.resolveBlockMap(e,t,r,s,o):"block-seq"===r.type?c.resolveBlockSeq(e,t,r,s,o):u.resolveFlowCollection(e,t,r,s,o),l=i.constructor;return"!"===n||n===l.tagName?(i.tag=l.tagName,i):(n&&(i.tag=n),i)}t.composeCollection=function(e,t,r,a,c){const u=a.tag,p=u?t.directives.tagName(u.source,e=>c(u,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===r.type){const{anchor:e,newlineAfterProp:t}=a,r=e&&u?e.offset>u.offset?e:u:e??u;if(r&&(!t||t.offset<r.offset)){c(r,"MISSING_CHAR","Missing newline after block sequence props")}}const d="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!u||!p||"!"===p||p===o.YAMLMap.tagName&&"map"===d||p===i.YAMLSeq.tagName&&"seq"===d)return l(e,t,r,c,p);let h=t.schema.tags.find(e=>e.tag===p&&e.collection===d);if(!h){const s=t.schema.knownTags[p];if(!s||s.collection!==d)return s?c(u,"BAD_COLLECTION_TYPE",`${s.tag} used for ${d} collection, but expects ${s.collection??"scalar"}`,!0):c(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${p}`,!0),l(e,t,r,c,p);t.schema.tags.push(Object.assign({},s,{default:!1})),h=s}const f=l(e,t,r,c,p,h),m=h.resolve?.(f,e=>c(u,"TAG_RESOLVE_FAILED",e),t.options)??f,g=s.isNode(m)?m:new n.Scalar(m);return g.range=f.range,g.tag=p,h?.format&&(g.format=h.format),g}},56:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"17.2.3","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},78:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(6903),n=r(6007),o=r(1354),i=r(8504),a=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};let c=class{static{0}static schema={parameters:{logLevel:{defaultValue:i.KF,description:"Log level.",type:i.JO}}};execute({logLevel:e}){const t=new o.A(new n.A,e);s.kL.registerInstance(o.A,t)}};c=a([(0,s.Gr)()],c);const u=c},81:(e,t,r)=>{"use strict";var s=r(484),n=r(3793),o=r(248);function i({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:u,onChompKeep:l,onComment:p}){const{indent:d,options:{commentString:h}}=r,f=Object.assign({},r,{indent:u,type:null});let m=!1;const g=[];for(let e=0;e<t.length;++e){const a=t[e];let l=null;if(s.isNode(a))!m&&a.spaceBefore&&g.push(""),c(r,g,a.commentBefore,m),a.comment&&(l=a.comment);else if(s.isPair(a)){const e=s.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&g.push(""),c(r,g,e.commentBefore,m))}m=!1;let p=n.stringify(a,f,()=>l=null,()=>m=!0);l&&(p+=o.lineComment(p,u,h(l))),m&&l&&(m=!1),g.push(i+p)}let y;if(0===g.length)y=a.start+a.end;else{y=g[0];for(let e=1;e<g.length;++e){const t=g[e];y+=t?`\n${d}${t}`:"\n"}}return e?(y+="\n"+o.indentComment(h(e),d),p&&p()):m&&l&&l(),y}function a({items:e},t,{flowChars:r,itemIndent:i}){const{indent:a,indentStep:u,flowCollectionPadding:l,options:{commentString:p}}=t;i+=u;const d=Object.assign({},t,{indent:i,inFlow:!0,type:null});let h=!1,f=0;const m=[];for(let r=0;r<e.length;++r){const a=e[r];let u=null;if(s.isNode(a))a.spaceBefore&&m.push(""),c(t,m,a.commentBefore,!1),a.comment&&(u=a.comment);else if(s.isPair(a)){const e=s.isNode(a.key)?a.key:null;e&&(e.spaceBefore&&m.push(""),c(t,m,e.commentBefore,!1),e.comment&&(h=!0));const r=s.isNode(a.value)?a.value:null;r?(r.comment&&(u=r.comment),r.commentBefore&&(h=!0)):null==a.value&&e?.comment&&(u=e.comment)}u&&(h=!0);let l=n.stringify(a,d,()=>u=null);r<e.length-1&&(l+=","),u&&(l+=o.lineComment(l,i,p(u))),!h&&(m.length>f||l.includes("\n"))&&(h=!0),m.push(l),f=m.length}const{start:g,end:y}=r;if(0===m.length)return g+y;if(!h){const e=m.reduce((e,t)=>e+t.length+2,2);h=t.options.lineWidth>0&&e>t.options.lineWidth}if(h){let e=g;for(const t of m)e+=t?`\n${u}${a}${t}`:"\n";return`${e}\n${a}${y}`}return`${g}${l}${m.join(" ")}${l}${y}`}function c({indent:e,options:{commentString:t}},r,s,n){if(s&&n&&(s=s.replace(/^\n+/,"")),s){const n=o.indentComment(t(s),e);r.push(n.trimStart())}}t.stringifyCollection=function(e,t,r){return(t.inFlow??e.flow?a:i)(e,t,r)}},117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2586),n=r(5765),o=r(4227),i=r(8660),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&i.default.code(new s.KeywordCxt(u,i.default,"additionalProperties"));const l=(0,n.allSchemaProperties)(r);for(const e of l)u.definedProperties.add(e);u.opts.unevaluated&&l.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),u.props));const p=l.filter(e=>!(0,o.alwaysValidSchema)(u,r[e]));if(0===p.length)return;const d=t.name("valid");for(const r of p)h(r)?f(r):(t.if((0,n.propertyInData)(t,c,r,u.opts.ownProperties)),f(r),u.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==r[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},153:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const s=["true","1","yes","on"],n=["false","0","no","off"],o={parse(e){if(s.includes(e))return!0;if(n.includes(e))return!1;throw new Error("Invalid value for boolean option type.")},toString:()=>"boolean"}},181:e=>{"use strict";e.exports=require("buffer")},208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const s=r(396),n=r(7887),o=r(8708),i=r(9029),a=r(4227);var c;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(s.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c||(t.DataType=c={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:s,opts:o}=e,a=function(e,t){return t?e.filter(e=>l.has(e)||"array"===t&&"array"===e):[]}(t,o.coerceTypes),u=t.length>0&&!(0===a.length&&1===t.length&&(0,n.schemaHasRulesForType)(e,t[0]));if(u){const n=d(t,s,o.strictNumbers,c.Wrong);r.if(n,()=>{a.length?function(e,t,r){const{gen:s,data:n,opts:o}=e,a=s.let("dataType",i._`typeof ${n}`),c=s.let("coerced",i._`undefined`);"array"===o.coerceTypes&&s.if(i._`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,i._`${n}[0]`).assign(a,i._`typeof ${n}`).if(d(t,n,o.strictNumbers),()=>s.assign(c,n)));s.if(i._`${c} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void s.elseIf(i._`${a} == "number" || ${a} == "boolean"`).assign(c,i._`"" + ${n}`).elseIf(i._`${n} === null`).assign(c,i._`""`);case"number":return void s.elseIf(i._`${a} == "boolean" || ${n} === null
3
3
  || (${a} == "string" && ${n} && ${n} == +${n})`).assign(c,i._`+${n}`);case"integer":return void s.elseIf(i._`${a} === "boolean" || ${n} === null
4
4
  || (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,i._`+${n}`);case"boolean":return void s.elseIf(i._`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf(i._`${n} === "true" || ${n} === 1`).assign(c,!0);case"null":return s.elseIf(i._`${n} === "" || ${n} === 0 || ${n} === false`),void s.assign(c,null);case"array":s.elseIf(i._`${a} === "string" || ${a} === "number"
5
- || ${a} === "boolean" || ${n} === null`).assign(c,i._`[${n}]`)}}s.else(),f(e),s.endIf(),s.if(i._`${c} !== undefined`,()=>{s.assign(n,c),function({gen:e,parentData:t,parentDataProperty:r},s){e.if(i._`${t} !== undefined`,()=>e.assign(i._`${t}[${r}]`,s))}(e,c)})}(e,t,a):f(e)})}return u};const l=new Set(["string","number","integer","boolean","null"]);function p(e,t,r,s=c.Correct){const n=s===c.Correct?i.operators.EQ:i.operators.NEQ;let o;switch(e){case"null":return i._`${t} ${n} null`;case"array":o=i._`Array.isArray(${t})`;break;case"object":o=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return i._`typeof ${t} ${n} ${e}`}return s===c.Correct?o:(0,i.not)(o);function a(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,r?i._`isFinite(${t})`:i.nil)}}function d(e,t,r,s){if(1===e.length)return p(e[0],t,r,s);let n;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=i._`typeof ${t} != "object"`;n=o.null?e:i._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else n=i.nil;o.number&&delete o.integer;for(const e in o)n=(0,i.and)(n,p(e,t,r,s));return n}t.checkDataType=p,t.checkDataTypes=d;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:s}=e,n=(0,a.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}(e);(0,o.reportError)(t,h)}t.reportTypeError=f},248:(e,t)=>{"use strict";function r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=r,t.lineComment=(e,t,s)=>e.endsWith("\n")?r(s,t):s.includes("\n")?"\n"+r(s,t):(e.endsWith(" ")?"":" ")+s,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},262:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var s=r(1943);async function n(e){try{return await(0,s.access)(e),!0}catch(t){if("object"==typeof t&&null!==t&&"code"in t&&"ENOENT"===t.code)return!1;throw new Error(`Error checking file '${e}'.`,{cause:t})}}},325:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});class s extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}},343:(e,t,r)=>{"use strict";const{isUUID:s}=r(4834),n=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function i(e){return!0===e.secure||!1!==e.secure&&(!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2]))}function a(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function c(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const u={scheme:"http",domainHost:!0,parse:a,serialize:c},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=i(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(i(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},p={http:u,https:{scheme:"https",domainHost:u.domainHost,parse:a,serialize:c},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(n);if(r){const s=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const n=d(`${s}:${t.nid||e.nid}`);e.path=void 0,n&&(e=n.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),n=d(`${r}:${t.nid||s}`);n&&(e=n.serialize(e,t));const o=e,i=e.nss;return o.path=`${s||t.nid}:${i}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&s(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function d(e){return e&&(p[e]||p[e.toLowerCase()])||void 0}Object.setPrototypeOf(p,null),e.exports={wsIsSecure:i,SCHEMES:p,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:d}},396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:o,schemaCode:i,it:a}=e,c=a.opts.unicodeRegExp?"u":"",u=r?n._`(new RegExp(${i}, ${c}))`:(0,s.usePattern)(e,o);e.fail$data(n._`!${u}.test(${t})`)}};t.default=o},483:(e,t,r)=>{"use strict";var s=r(6010),n=r(1386),o=r(8644);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=new(c?.nodeClass??s.YAMLSeq)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let l=i.offset,p=null;for(const{start:s,value:c}of i.items){const d=n.resolveProps(s,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:!0});if(!d.found){if(!(d.anchor||d.tag||c)){p=d.end,d.comment&&(u.comment=d.comment);continue}c&&"block-seq"===c.type?a(d.end,"BAD_INDENT","All sequence items must start at the same column"):a(l,"MISSING_CHAR","Sequence item without - indicator")}const h=c?e(r,c,d,a):t(r,d.end,s,null,d,a);r.schema.compat&&o.flowIndentCheck(i.indent,c,a),l=h.range[2],u.items.push(h)}return u.range=[i.offset,l,p??l],u}},484:(e,t)=>{"use strict";const r=Symbol.for("yaml.alias"),s=Symbol.for("yaml.document"),n=Symbol.for("yaml.map"),o=Symbol.for("yaml.pair"),i=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[c]===i;function l(e){if(e&&"object"==typeof e)switch(e[c]){case n:case a:return!0}return!1}t.ALIAS=r,t.DOC=s,t.MAP=n,t.NODE_TYPE=c,t.PAIR=o,t.SCALAR=i,t.SEQ=a,t.hasAnchor=e=>(u(e)||l(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===r,t.isCollection=l,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===s,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===n,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case r:case n:case i:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===o,t.isScalar=u,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const s=r(9029),n=r(4227),o=r(5765),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,n.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:o,parentSchema:i,data:a,keyword:c,it:u}=e;!function(e){const{opts:s,errSchemaPath:o}=u,i=r.length,a=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(s.strictTuples&&!a){const e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,n.checkStrictMode)(u,e,s.strictTuples)}}(i),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=n.mergeEvaluated.items(o,r.length,u.items));const l=o.name("valid"),p=o.const("len",s._`${a}.length`);r.forEach((t,r)=>{(0,n.alwaysValidSchema)(u,t)||(o.if(s._`${p} > ${r}`,()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)),e.ok(l))})}t.validateTuple=a,t.default=i},514:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var s,n=r(6903),o=r(4523),i=r(153),a=r(9108),c=r(2596),u=r(1170),l=r(3121),p=r(1354),d=r(6276),h=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e,t){return function(r,s){t(r,s,e)}};let g=class{static{0}static schema={description:"Delete an entity from the local storage.",parameters:{correctDependencies:{defaultValue:!0,description:"Also correct all entities depending on the deleted one. Disabling this may lead to dangling references.",type:i.A},key:{description:"Key to filter entities to delete.",required:!0,type:c.A},of:{description:"Entity type to delete.",required:!0,type:l.o4},value:{description:"Value to filter entities to delete.",required:!0,type:new u.A([a.A,c.A])}}};#e;#t;constructor(e,t){this.#e=e,this.#t=t}async execute({correctDependencies:e,key:t,of:r,value:s}){this.#t.info(`Deleting ${r} with ${t} equals to ${s} from the local storage.`);const n=await this.#e.one(r,{[t]:s});if((0,o.b0)(n))this.#t.warn(`Skipping, ${r} with ${t} equals to ${s} is not found in the local storage.`);else{if(n.delete(),!0===e){this.#t.info("Correcting dependencies for the deleted entity...");for await(const e of this.#e.all())e.freeOf((0,d.A)(n))}else this.#t.warn("Skipping dependencies correction as per the command option.");this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}}};g=h([(0,n.Gr)(),m(0,(0,n.WQ)("LocalStorage")),m(1,(0,n.WQ)(p.A)),f("design:paramtypes",[Object,"function"==typeof(s=void 0!==p.A&&p.A)?s:Object])],g);const y=g},617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(208),n=r(9029),o=r(4227),i=r(6250),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>n.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>n._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:p}=e;if(!a&&!c)return;const d=t.let("valid"),h=u.items?(0,s.getSchemaTypes)(u.items):[];function f(o,i){const a=t.name("item"),c=(0,s.checkDataTypes)(h,a,p.opts.strictNumbers,s.DataType.Wrong),u=t.const("indices",n._`{}`);t.for(n._`;${o}--;`,()=>{t.let(a,n._`${r}[${o}]`),t.if(c,n._`continue`),h.length>1&&t.if(n._`typeof ${a} == "string"`,n._`${a} += "_"`),t.if(n._`typeof ${u}[${a}] == "number"`,()=>{t.assign(i,n._`${u}[${a}]`),e.error(),t.assign(d,!1).break()}).code(n._`${u}[${a}] = ${o}`)})}function m(s,a){const c=(0,o.useFunc)(t,i.default),u=t.name("outer");t.label(u).for(n._`;${s}--;`,()=>t.for(n._`${a} = ${s}; ${a}--;`,()=>t.if(n._`${c}(${r}[${s}], ${r}[${a}])`,()=>{e.error(),t.assign(d,!1).break(u)})))}e.block$data(d,function(){const s=t.let("i",n._`${r}.length`),o=t.let("j");e.setParams({i:s,j:o}),t.assign(d,!0),t.if(n._`${s} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?f:m)(s,o))},n._`${l} === false`),e.ok(d)}};t.default=a},625:(e,t,r)=>{"use strict";var s=r(484),n=r(3334),o=r(1919),i=r(8531),a=r(975);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class u{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:u,schema:l,sortMapEntries:p,toStringDefaults:d}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.name="string"==typeof l&&l||"core",this.knownTags=u?a.coreKnownTags:{},this.tags=a.getTags(t,this.name,r),this.toStringOptions=d??null,Object.defineProperty(this,s.MAP,{value:n.map}),Object.defineProperty(this,s.SCALAR,{value:i.string}),Object.defineProperty(this,s.SEQ,{value:o.seq}),this.sortMapEntries="function"==typeof p?p:!0===p?c:null}clone(){const e=Object.create(u.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=u},692:(e,t,r)=>{"use strict";var s=r(484),n=r(3732),o=r(1755),i=r(6010),a=r(8416);class c extends i.YAMLSeq{constructor(){super(),this.add=o.YAMLMap.prototype.add.bind(this),this.delete=o.YAMLMap.prototype.delete.bind(this),this.get=o.YAMLMap.prototype.get.bind(this),this.has=o.YAMLMap.prototype.has.bind(this),this.set=o.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;t?.onCreate&&t.onCreate(r);for(const e of this.items){let o,i;if(s.isPair(e)?(o=n.toJS(e.key,"",t),i=n.toJS(e.value,o,t)):o=n.toJS(e,"",t),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const s=a.createPairs(e,t,r),n=new this;return n.items=s.items,n}}c.tag="tag:yaml.org,2002:omap";const u={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t),n=[];for(const{key:e}of r.items)s.isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new c,r)},createNode:(e,t,r)=>c.from(e,t,r)};t.YAMLOMap=c,t.omap=u},857:e=>{"use strict";e.exports=require("os")},932:e=>{"use strict";e.exports=require("process")},975:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(5132),c=r(988),u=r(2891),l=r(8523),p=r(4988),d=r(8080),h=r(9637),f=r(692),m=r(8416),g=r(5822),y=r(2557),b=r(5437);const v=new Map([["core",l.schema],["failsafe",[s.map,o.seq,i.string]],["json",p.schema],["yaml11",g.schema],["yaml-1.1",g.schema]]),w={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:b.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:b.intTime,map:s.map,merge:h.merge,null:n.nullTag,omap:f.omap,pairs:m.pairs,seq:o.seq,set:y.set,timestamp:b.timestamp},_={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":m.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":b.timestamp};t.coreKnownTags=_,t.getTags=function(e,t,r){const s=v.get(t);if(s&&!e)return r&&!s.includes(h.merge)?s.concat(h.merge):s.slice();let n=s;if(!n){if(!Array.isArray(e)){const e=Array.from(v.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return r&&(n=n.concat(h.merge)),n.reduce((e,t)=>{const r="string"==typeof t?w[t]:t;if(!r){const e=JSON.stringify(t),r=Object.keys(w).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${r}`)}return e.includes(r)||e.push(r),e},[])}},988:(e,t,r)=>{"use strict";var s=r(9714),n=r(3144);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e)),r=e.indexOf(".");return-1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:n.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},998:(e,t,r)=>{const s=r(9896),n=r(6928),o=r(857),i=r(6982),a=r(56).version,c=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","📡 add observability to secrets: https://dotenvx.com/ops","👥 sync secrets across teammates & machines: https://dotenvx.com/ops","🗂️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","🔄 add secrets lifecycle management: https://dotenvx.com/ops","🔑 add access controls to secrets: https://dotenvx.com/ops","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function u(e){return"string"==typeof e?!["false","0","no","off",""].includes(e.toLowerCase()):Boolean(e)}function l(e){return process.stdout.isTTY?`${e}`:e}const p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function d(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function h(e){console.log(`[dotenv@${a}] ${e}`)}function f(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function m(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const s=r.password;if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const n=r.searchParams.get("environment");if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${n.toUpperCase()}`,i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:i,key:s}}function g(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const r of e.path)s.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=n.resolve(process.cwd(),".env.vault");return s.existsSync(t)?t:null}function y(e){return"~"===e[0]?n.join(o.homedir(),e.slice(1)):e}const b={configDotenv:function(e){const t=n.resolve(process.cwd(),".env");let r="utf8",o=process.env;e&&null!=e.processEnv&&(o=e.processEnv);let i=u(o.DOTENV_CONFIG_DEBUG||e&&e.debug),a=u(o.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:i&&d("No encoding is specified. UTF-8 is used by default");let p,f=[t];if(e&&e.path)if(Array.isArray(e.path)){f=[];for(const t of e.path)f.push(y(t))}else f=[y(e.path)];const m={};for(const t of f)try{const n=b.parse(s.readFileSync(t,{encoding:r}));b.populate(m,n,e)}catch(e){i&&d(`Failed to load ${t} ${e.message}`),p=e}const g=b.populate(o,m,e);if(i=u(o.DOTENV_CONFIG_DEBUG||i),a=u(o.DOTENV_CONFIG_QUIET||a),i||!a){const e=Object.keys(g).length,t=[];for(const e of f)try{const r=n.relative(process.cwd(),e);t.push(r)}catch(t){i&&d(`Failed to load ${e} ${t.message}`),p=t}h(`injecting env (${e}) from ${t.join(",")} ${l(`-- tip: ${c[Math.floor(Math.random()*c.length)]}`)}`)}return p?{parsed:m,error:p}:{parsed:m}},_configVault:function(e){const t=u(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=u(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);!t&&r||h("Loading env from encrypted .env.vault");const s=b._parseVault(e);let n=process.env;return e&&null!=e.processEnv&&(n=e.processEnv),b.populate(n,s,e),{parsed:s}},_parseVault:function(e){const t=g(e=e||{});e.path=t;const r=b.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const s=f(e).split(","),n=s.length;let o;for(let e=0;e<n;e++)try{const t=m(r,s[e].trim());o=b.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=n)throw t}return b.parse(o)},config:function(e){if(0===f(e).length)return b.configDotenv(e);const t=g(e);return t?b._configVault(e):(r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.error(`[dotenv@${a}][WARN] ${r}`),b.configDotenv(e));var r},decrypt:function(e,t){const r=Buffer.from(t.slice(-64),"hex");let s=Buffer.from(e,"base64");const n=s.subarray(0,12),o=s.subarray(-16);s=s.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,n);return e.setAuthTag(o),`${e.update(s)}${e.final()}`}catch(e){const t=e instanceof RangeError,r="Invalid key length"===e.message,s="Unsupported state or unable to authenticate data"===e.message;if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(s){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let r,s=e.toString();for(s=s.replace(/\r\n?/gm,"\n");null!=(r=p.exec(s));){const e=r[1];let s=r[2]||"";s=s.trim();const n=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===n&&(s=s.replace(/\\n/g,"\n"),s=s.replace(/\\r/g,"\r")),t[e]=s}return t},populate:function(e,t,r={}){const s=Boolean(r&&r.debug),n=Boolean(r&&r.override),o={};if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===n&&(e[r]=t[r],o[r]=t[r]),s&&d(!0===n?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):(e[r]=t[r],o[r]=t[r]);return o}};e.exports.configDotenv=b.configDotenv,e.exports._configVault=b._configVault,e.exports._parseVault=b._parseVault,e.exports.config=b.config,e.exports.decrypt=b.decrypt,e.exports.parse=b.parse,e.exports.populate=b.populate,e.exports=b},1027:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{value;constructor(e){this.value=e}parse(e){if(e!==this.value)throw new Error("");return this.value}toString(){return null!=(e=this.value)&&"function"==typeof e.toString?this.value.toString():"";var e}}},1040:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,r){if(t){r??(r=t.length);for(let s=r-1;s>=0;--s){let r=t[s];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++s];"space"===r?.type;)e+=r.source.length,r=t[++s];break}}return e}},1163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`${r}.length ${o} ${n}`)}};t.default=n},1170:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{types;constructor(e){this.types=e}parse(e){for(const t of this.types)try{return t.parse(e)}catch{}throw new Error(`${e} is invalid for type ${this.toString()}.`)}toString(){return this.types.join("|")}}},1198:(e,t,r)=>{"use strict";var s=r(4927),n=r(9046),o=r(625),i=r(4355),a=r(1736),c=r(484),u=r(7902),l=r(9714),p=r(1755),d=r(6010),h=r(9112),f=r(5752),m=r(2864),g=r(6247),y=r(1332),b=r(9125);s.Composer,t.yo=n.Document,o.Schema,i.YAMLError,i.YAMLParseError,i.YAMLWarning,a.Alias,c.isAlias,c.isCollection,c.isDocument,c.isMap,c.isNode,c.isPair,c.isScalar,c.isSeq,u.Pair,t.X5=l.Scalar,t.CA=p.YAMLMap,t.Rw=d.YAMLSeq,f.Lexer,m.LineCounter,g.Parser,t.qg=y.parse,t.hR=y.parseAllDocuments,y.parseDocument,y.stringify,b.visit,b.visitAsync},1239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>s.str`must match "${e.ifClause}" schema`,params:({params:e})=>s._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,n.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=i(o,"then"),c=i(o,"else");if(!a&&!c)return;const u=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(l,p("then",r),p("else",r))}else a?t.if(l,p("then")):t.if((0,s.not)(l),p("else"));function p(r,n){return()=>{const o=e.subschema({keyword:r},l);t.assign(u,l),e.mergeValidEvaluated(o,u),n?t.assign(n,s._`${r}`):e.setParams({ifClause:r})}}e.pass(u,()=>e.error(!0))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!(0,n.alwaysValidSchema)(e,r)}t.default=o},1332:(e,t,r)=>{"use strict";var s=r(4927),n=r(9046),o=r(4355),i=r(7444),a=r(484),c=r(2864),u=r(6247);function l(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new c.LineCounter||null,prettyErrors:t}}function p(e,t={}){const{lineCounter:r,prettyErrors:n}=l(t),i=new u.Parser(r?.addNewLine),a=new s.Composer(t);let c=null;for(const t of a.compose(i.parse(e),!0,e.length))if(c){if("silent"!==c.options.logLevel){c.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else c=t;return n&&r&&(c.errors.forEach(o.prettifyError(e,r)),c.warnings.forEach(o.prettifyError(e,r))),c}t.parse=function(e,t,r){let s;"function"==typeof t?s=t:void 0===r&&t&&"object"==typeof t&&(r=t);const n=p(e,r);if(!n)return null;if(n.warnings.forEach(e=>i.warn(n.options.logLevel,e)),n.errors.length>0){if("silent"!==n.options.logLevel)throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:s},r))},t.parseAllDocuments=function(e,t={}){const{lineCounter:r,prettyErrors:n}=l(t),i=new u.Parser(r?.addNewLine),a=new s.Composer(t),c=Array.from(a.compose(i.parse(e)));if(n&&r)for(const t of c)t.errors.forEach(o.prettifyError(e,r)),t.warnings.forEach(o.prettifyError(e,r));return c.length>0?c:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=p,t.stringify=function(e,t,r){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){const e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!s?e.toString(r):new n.Document(e,s,r).toString(r)}},1354:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6007),n=r(8504);class o{#t;#r;constructor(e,t){this.#t=e??new s.A,this.#r=t??n.KF}debug(e){[n.Oi].includes(this.#r)&&this.#t.writeLine(e,n.Oi)}error(e){[n.Oi,n.ff,n.rD,n.ZW].includes(this.#r)&&this.#t.writeLine(e,n.ff)}info(e){[n.Oi,n.rD].includes(this.#r)&&this.#t.writeLine(e,n.rD)}warn(e){[n.Oi,n.rD,n.ZW].includes(this.#r)&&this.#t.writeLine(e,n.ZW)}}},1386:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:r,next:s,offset:n,onError:o,parentIndent:i,startOnNewline:a}){let c=!1,u=a,l=a,p="",d="",h=!1,f=!1,m=null,g=null,y=null,b=null,v=null,w=null,_=null;for(const n of e)switch(f&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),m&&(u&&"comment"!==n.type&&"newline"!==n.type&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),n.type){case"space":t||"doc-start"===r&&"flow-collection"===s?.type||!n.source.includes("\t")||(m=n),l=!0;break;case"comment":{l||o(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=n.source.substring(1)||" ";p?p+=d+e:p=e,d="",u=!1;break}case"newline":u?p?p+=n.source:w&&"seq-item-ind"===r||(c=!0):d+=n.source,u=!0,h=!0,(g||y)&&(b=n),l=!0;break;case"anchor":g&&o(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&o(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=n,_??(_=n.offset),u=!1,l=!1,f=!0;break;case"tag":y&&o(n,"MULTIPLE_TAGS","A node can have at most one tag"),y=n,_??(_=n.offset),u=!1,l=!1,f=!0;break;case r:(g||y)&&o(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),w&&o(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),w=n,u="seq-item-ind"===r||"explicit-key-ind"===r,l=!1;break;case"comma":if(t){v&&o(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=n,u=!1,l=!1;break}default:o(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),u=!1,l=!1}const E=e[e.length-1],k=E?E.offset+E.source.length:n;return f&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=i||"block-map"===s?.type||"block-seq"===s?.type)&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:w,spaceBefore:c,comment:p,hasNewline:h,anchor:g,tag:y,newlineAfterProp:b,end:k,start:_??k}}},1421:e=>{"use strict";e.exports=require("node:child_process")},1469:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var s,n,o=r(6928),i=r(6903),a=r(4523),c=r(2596),u=r(3989),l=r(9669),p=r(1354),d=r(153),h=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e,t){return function(r,s){t(r,s,e)}};let g=class{static{0}static schema={parameters:{localStorage:{description:"Local storage path.",type:c.A},repair:{description:"Repair local storage if corrupted.",type:d.A,defaultValue:!1}}};#s;#t;constructor(e,t){this.#s=e,this.#t=t}execute({localStorage:e,repair:t}){this.#t.info("Configuring local storage, resolving local storage path...");let r=e;((0,a.b0)(r)||"string"==typeof r&&""===r.trim())&&(this.#t.info("Local storage path with console option is not provided, trying environment variable."),r=process.env.KICKCAT_LOCAL_STORAGE),((0,a.b0)(r)||"string"==typeof r&&""===r.trim())&&(this.#t.info('Environment variable KICKCAT_LOCAL_STORAGE is not found, falling back to ".github" in the current working directory.'),r=(0,o.resolve)(process.cwd(),".github")),this.#t.info(`Using "${r}" as the local storage path.`),i.kL.registerInstance("LocalStorage",new l.A({storagePath:r,repair:t},this.#s,this.#t))}};g=h([(0,i.Gr)(),m(0,(0,i.WQ)(u.A)),m(1,(0,i.WQ)(p.A)),f("design:paramtypes",["function"==typeof(s=void 0!==u.A&&u.A)?s:Object,"function"==typeof(n=void 0!==p.A&&p.A)?n:Object])],g);const y=g},1520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const r=[e[0]];let s=0;for(;s<t.length;)c(r,t[s]),r.push(e[++s]);return new n(r)}t._Code=n,t.nil=new n(""),t._=o;const i=new n("+");function a(e,...t){const r=[l(e[0])];let s=0;for(;s<t.length;)r.push(i),c(r,t[s]),r.push(i,l(e[++s]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const r=u(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function c(e,t){var r;t instanceof n?e.push(...t._items):t instanceof s?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:l(Array.isArray(r)?r.join(","):r))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof s||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof s?void 0:`"${e}${t.slice(1)}`}function l(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new n(l(e))},t.safeStringify=l,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new n(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new n(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new n(e.toString())}},1614:(e,t,r)=>{"use strict";var s=r(5219),n=r(484),o=r(8898);function i(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return s.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const a=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class c extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{const[r,...s]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,i(this.schema,s,t))}}}deleteIn(e){const[t,...r]=e;if(0===r.length)return this.delete(t);const s=this.get(t,!0);if(n.isCollection(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...s]=e,o=this.get(r,!0);return 0===s.length?!t&&n.isScalar(o)?o.value:o:n.isCollection(o)?o.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;const r=t.value;return null==r||e&&n.isScalar(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[t,...r]=e;if(0===r.length)return this.has(t);const s=this.get(t,!0);return!!n.isCollection(s)&&s.hasIn(r)}setIn(e,t){const[r,...s]=e;if(0===s.length)this.set(r,t);else{const e=this.get(r,!0);if(n.isCollection(e))e.setIn(s,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,i(this.schema,s,t))}}}}t.Collection=c,t.collectionFromPath=i,t.isEmptyPath=a},1736:(e,t,r)=>{"use strict";var s=r(6261),n=r(9125),o=r(484),i=r(8898),a=r(3732);class c extends i.NodeBase{constructor(e){super(o.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,s;t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],n.visit(e,{Node:(e,t)=>{(o.isAlias(t)||o.hasAnchor(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r));for(const e of r){if(e===this)break;e.anchor===this.source&&(s=e)}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:n}=t,o=this.resolve(s,t);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(i||(a.toJS(o,null,t),i=r.get(o)),!i||void 0===i.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(n>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=u(s,o,r)),i.count*i.aliasCount>n)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return i.res}toString(e,t,r){const n=`*${this.source}`;if(e){if(s.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${n} `}return n}}function u(e,t,r){if(o.isAlias(t)){const s=t.resolve(e),n=r&&s&&r.get(s);return n?n.count*n.aliasCount:0}if(o.isCollection(t)){let s=0;for(const n of t.items){const t=u(e,n,r);t>s&&(s=t)}return s}if(o.isPair(t)){const s=u(e,t.key,r),n=u(e,t.value,r);return Math.max(s,n)}return 1}t.Alias=c},1755:(e,t,r)=>{"use strict";var s=r(81),n=r(5139),o=r(1614),i=r(484),a=r(7902),c=r(9714);function u(e,t){const r=i.isScalar(t)?t.value:t;for(const s of e)if(i.isPair(s)){if(s.key===t||s.key===r)return s;if(i.isScalar(s.key)&&s.key.value===r)return s}}class l extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,r){const{keepUndefined:s,replacer:n}=r,o=new this(e),i=(e,i)=>{if("function"==typeof n)i=n.call(t,e,i);else if(Array.isArray(n)&&!n.includes(e))return;(void 0!==i||s)&&o.items.push(a.createPair(e,i,r))};if(t instanceof Map)for(const[e,r]of t)i(e,r);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let r;r=i.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const s=u(this.items,r.key),n=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${r.key} already set`);i.isScalar(s.value)&&c.isScalarValue(r.value)?s.value.value=r.value:s.value=r.value}else if(n){const e=this.items.findIndex(e=>n(r,e)<0);-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=u(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const r=u(this.items,e),s=r?.value;return(!t&&i.isScalar(s)?s.value:s)??void 0}has(e){return!!u(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){const s=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(s);for(const e of this.items)n.addPairToJSMap(t,s,e);return s}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items)if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=l,t.findPair=u},1768:(e,t,r)=>{"use strict";var s=r(484),n=r(3793),o=r(248);t.stringifyDocument=function(e,t){const r=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const a=n.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=!1,l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>u=!0;let p=n.stringify(e.contents,a,()=>l=null,t);l&&(p+=o.lineComment(p,"",c(l))),"|"!==p[0]&&">"!==p[0]||"---"!==r[r.length-1]?r.push(p):r[r.length-1]=`--- ${p}`}else r.push(n.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(r.push("..."),r.push(o.indentComment(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&u&&(t=t.replace(/^\n+/,"")),t&&(u&&!l||""===r[r.length-1]||r.push(""),r.push(o.indentComment(c(t),"")))}return r.join("\n")+"\n"}},1919:(e,t,r)=>{"use strict";var s=r(484),n=r(6010);const o={collection:"seq",default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(s.isSeq(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)};t.seq=o},1943:e=>{"use strict";e.exports=require("fs/promises")},2017:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(n=s;0!==n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=s;0!==n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;0!==n--;){var i=o[n];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},2023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),instancePath:new s.Name("instancePath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope"),json:new s.Name("json"),jsonPos:new s.Name("jsonPos"),jsonLen:new s.Name("jsonLen"),jsonPart:new s.Name("jsonPart")};t.default=n},2079:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3463),n=r(3693),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s.default,n.default];t.default=o},2173:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var s=r(6903),n=r(4523),o=r(2596),i=r(3989),a=r(6486),c=r(4078),u=r(3121),l=r(6276),p=r(325);const d="open",h="closed";var f=r(5458),m=r(4421);class g extends m.Ay{async delete(e){throw new Error("Not supported.")}async get(e){try{return y((await this.octokit.rest.issues.get({issue_number:(0,f.A)(e.number),owner:this.owner,repo:this.repo})).data)}catch(e){if(e instanceof p.G&&[301,404,410].includes(e.status))return;throw e}}async set(e){let t=null;t=(0,n.b0)(e.number)?y((await this.octokit.rest.issues.create({description:e.description,labels:e.labels,milestone:e.milestone,owner:this.owner,repo:this.repo,title:(0,f.A)(e.title)})).data):y((await this.octokit.rest.issues.update({body:e.description,issue_number:e.number,labels:e.labels,milestone:e.milestone,owner:this.owner,repo:this.repo,title:(0,f.A)(e.title)})).data);const r=await this.#n(e.dependencies?.filter(n.Et)??[]),s=await this.#o((0,f.A)(e.number)),o=(0,n.R9)(r,s);await this.#i((0,f.A)(e.number),o);const i=(0,n.R9)(s,r);return await this.#a((0,f.A)(e.number),i),t}async#i(e,t){await Promise.all(t.map(async t=>this.octokit.rest.issues.addBlockedByDependency({issue_id:t,issue_number:e,owner:this.owner,repo:this.repo})))}async#a(e,t){await Promise.all(t.map(async t=>this.octokit.rest.issues.removeDependencyBlockedBy({issue_id:t,issue_number:e,owner:this.owner,repo:this.repo})))}async#o(e){const t=[];let r=1;for(;;){const s=(await this.octokit.rest.issues.listDependenciesBlockedBy({issue_number:(0,f.A)(e),owner:this.owner,page:r,per_page:100,repo:this.repo})).data;for(const e of s)t.push(e.id);if(r+=1,s.length<100)break}return t}async#n(e){const t=await Promise.all(e.map(async e=>{try{return(await this.octokit.rest.issues.get({issue_number:e,owner:this.owner,repo:this.repo})).data.id}catch(e){if(e instanceof p.G&&[301,404,410].includes(e.status))return null;throw e}}));return Array.from(new Set(t.filter(n.Et)))}}function y(e){const t={number:e.issue_number,title:e.title};var r;return(0,n.Kg)(e.body)&&(t.description=e.body),r=e.state,[h,d].includes((0,l.A)(r))&&(t.state=e.state),t}class b extends m.Ay{async delete(e){await this.octokit.rest.issues.deleteLabel({name:(0,f.A)(e.name),owner:this.owner,repo:this.repo})}async get(e){try{return v((await this.octokit.rest.issues.getLabel({name:(0,f.A)(e.name),owner:this.owner,repo:this.repo})).data)}catch(e){if(e instanceof p.G&&404===e.status)return;throw e}}async set(e){const t=await this.get(e);return(0,n.b0)(t)?v((await this.octokit.rest.issues.createLabel({color:e.color,description:e.description,name:(0,f.A)(e.name),owner:this.owner,repo:this.repo})).data):v((await this.octokit.rest.issues.updateLabel({color:e.color,description:e.description,name:(0,f.A)(e.name),owner:this.owner,repo:this.repo})).data)}}function v(e){const t={color:e.color,name:e.name};return(0,n.kZ)(e.description)||(t.description=e.description),t}var w=r(4200);class _{colletions;entitySchemaRegistry;logger;#c;constructor({token:e},t,r){this.colletions={[u.i8]:new g(e),[u.d_]:new b(e),[u.Ni]:new w.A(e)},this.entitySchemaRegistry=t,this.#c=new a.A(t),this.logger=r}async*all(e){throw new Error("Not supported.")}async commit(){await Promise.all(this.#c.all().filter(e=>[c.jm,c.W4,c.dy].includes(e.state)).map(this.#u.bind(this)))}async new(e,t){const r=(0,l.A)(this.entitySchemaRegistry.get(e));if((0,n.b0)(r))throw new Error(`Can't find "${e}" entity schema.`);const s=new c.Ay({cookie:{file:this},entity:t,schema:r,state:c.dy,storage:this});return this.#c.set(s),Promise.resolve(s)}async one(e,t){let r=this.#c.one(e,t);if((0,n.b0)(r)){const s=await this.colletions[e].get(t);if((0,n.b0)(s))return s;const o=(0,l.A)(this.entitySchemaRegistry.get(e));if((0,n.b0)(o))throw new Error(`Can't find "${e}" entity schema.`);r=new c.Ay({cookie:{file:this},entity:(0,l.A)(s),schema:o,state:c.w_,storage:this}),this.#c.set(r)}return r}async#u(e){e.state!==c.W4?[c.jm,c.dy].includes(e.state)&&e.clean(await this.colletions[e.schema.type].set(e.entity)):await this.colletions[e.schema.type].delete(e.entity)}}var E,k,T=r(9669),O=r(1354),S=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=function(e,t){return function(r,s){t(r,s,e)}};let P=class{static{0}static schema={parameters:{gitHubToken:{description:"GitHub authentication token.",type:o.A},remoteStorage:{description:"Remote storage path, used for debugging.",type:o.A}}};#s;#t;constructor(e,t){this.#s=e,this.#t=t}execute({gitHubToken:e,remoteStorage:t}){this.#t.info("Configuring remote storage, resolving remote storage path...");let r=t;(0,n.b0)(r)&&(this.#t.info("Remote storage path with console option is not provided, trying environment variable."),r=process.env.KICKCAT_REMOTE_STORAGE),(0,n.b0)(r)?(this.#t.info("Environment variable KICKCAT_REMOTE_STORAGE is not found, using GitHub as remote storage."),s.kL.registerInstance("RemoteStorage",new _({token:e},this.#s,this.#t))):(this.#t.warn(`Using file storage by path "${r}" as remote storage.`),s.kL.registerInstance("RemoteStorage",new T.A({storagePath:r,repair:!0},this.#s,this.#t)))}};P=S([(0,s.Gr)(),$(0,(0,s.WQ)(i.A)),$(1,(0,s.WQ)(O.A)),A("design:paramtypes",["function"==typeof(E=void 0!==i.A&&i.A)?E:Object,"function"==typeof(k=void 0!==O.A&&O.A)?k:Object])],P);const j=P},2206:(e,t,r)=>{"use strict";var s=r(9046),n=r(2782),o=r(6845),i=r(1386);t.composeDoc=function(e,t,{offset:r,start:a,value:c,end:u},l){const p=Object.assign({_directives:t},e),d=new s.Document(void 0,p),h={atKey:!1,atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},f=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:l,parentIndent:0,startOnNewline:!0});f.found&&(d.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||f.hasNewline||l(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=c?n.composeNode(h,c,f,l):n.composeEmptyNode(h,f.end,a,null,f,l);const m=d.contents.range[2],g=o.resolveEnd(u,m,!1,l);return g.comment&&(d.comment=g.comment),d.range=[r,m,g.offset],d}},2291:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(1755),i=r(6010),a=r(6845),c=r(1386),u=r(9378),l=r(8334);const p="Block collections are not allowed within flow collections",d=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},r,h,f,m){const g="{"===h.start.source,y=g?"flow map":"flow sequence",b=new(m?.nodeClass??(g?o.YAMLMap:i.YAMLSeq))(r.schema);b.flow=!0;const v=r.atRoot;v&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let w=h.offset+h.start.source.length;for(let i=0;i<h.items.length;++i){const a=h.items[i],{start:m,key:v,sep:_,value:E}=a,k=c.resolveProps(m,{flow:y,indicator:"explicit-key-ind",next:v??_?.[0],offset:w,onError:f,parentIndent:h.indent,startOnNewline:!1});if(!k.found){if(!(k.anchor||k.tag||_||E)){0===i&&k.comma?f(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):i<h.items.length-1&&f(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),k.comment&&(b.comment?b.comment+="\n"+k.comment:b.comment=k.comment),w=k.end;continue}!g&&r.options.strict&&u.containsNewline(v)&&f(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)k.comma&&f(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(k.comma||f(k.start,"MISSING_CHAR",`Missing , between ${y} items`),k.comment){let e="";e:for(const t of m)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=b.items[b.items.length-1];s.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,k.comment=k.comment.substring(e.length+1)}}if(g||_||k.found){r.atKey=!0;const s=k.end,i=v?e(r,v,k,f):t(r,s,m,null,k,f);d(v)&&f(i.range,"BLOCK_IN_FLOW",p),r.atKey=!1;const u=c.resolveProps(_??[],{flow:y,indicator:"map-value-ind",next:E,offset:i.range[2],onError:f,parentIndent:h.indent,startOnNewline:!1});if(u.found){if(!g&&!k.found&&r.options.strict){if(_)for(const e of _){if(e===u.found)break;if("newline"===e.type){f(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<u.found.offset-1024&&f(u.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&":"===E.source[0]?f(E,"MISSING_CHAR",`Missing space after : in ${y}`):f(u.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const T=E?e(r,E,u,f):u.found?t(r,u.end,_,null,u,f):null;T?d(E)&&f(T.range,"BLOCK_IN_FLOW",p):u.comment&&(i.comment?i.comment+="\n"+u.comment:i.comment=u.comment);const O=new n.Pair(i,T);if(r.options.keepSourceTokens&&(O.srcToken=a),g){const e=b;l.mapIncludes(r,e.items,i)&&f(s,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(O)}else{const e=new o.YAMLMap(r.schema);e.flow=!0,e.items.push(O);const t=(T??i).range;e.range=[i.range[0],t[1],t[2]],b.items.push(e)}w=T?T.range[2]:u.end}else{const s=E?e(r,E,k,f):t(r,k.end,_,null,k,f);b.items.push(s),w=s.range[2],d(E)&&f(s.range,"BLOCK_IN_FLOW",p)}}const _=g?"}":"]",[E,...k]=h.end;let T=w;if(E&&E.source===_)T=E.offset+E.source.length;else{const e=y[0].toUpperCase()+y.substring(1);f(w,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),E&&1!==E.source.length&&k.unshift(E)}if(k.length>0){const e=a.resolveEnd(k,T,r.options.strict,f);e.comment&&(b.comment?b.comment+="\n"+e.comment:b.comment=e.comment),b.range=[h.offset,T,e.offset]}else b.range=[h.offset,T,T];return b}},2503:e=>{const t={};null!=process.env.DOTENV_CONFIG_ENCODING&&(t.encoding=process.env.DOTENV_CONFIG_ENCODING),null!=process.env.DOTENV_CONFIG_PATH&&(t.path=process.env.DOTENV_CONFIG_PATH),null!=process.env.DOTENV_CONFIG_QUIET&&(t.quiet=process.env.DOTENV_CONFIG_QUIET),null!=process.env.DOTENV_CONFIG_DEBUG&&(t.debug=process.env.DOTENV_CONFIG_DEBUG),null!=process.env.DOTENV_CONFIG_OVERRIDE&&(t.override=process.env.DOTENV_CONFIG_OVERRIDE),null!=process.env.DOTENV_CONFIG_DOTENV_KEY&&(t.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY),e.exports=t},2557:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(1755);class i extends o.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;t=s.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new n.Pair(e.key,null):new n.Pair(e,null);o.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&s.isPair(r)?s.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=o.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:s}=r,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),o.items.push(n.createPair(e,null,r));return o}}i.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>i.from(e,t,r),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=i,t.set=a},2586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const s=r(8727),n=r(208),o=r(7887),i=r(208),a=r(7870),c=r(3673),u=r(4495),l=r(9029),p=r(2023),d=r(6939),h=r(4227),f=r(8708);function m({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){n.code.es5?e.func(t,l._`${p.default.data}, ${p.default.valCxt}`,s.$async,()=>{e.code(l._`"use strict"; ${g(r,n)}`),function(e,t){e.if(p.default.valCxt,()=>{e.var(p.default.instancePath,l._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,l._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,l._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,l._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{e.var(p.default.instancePath,l._`""`),e.var(p.default.parentData,l._`undefined`),e.var(p.default.parentDataProperty,l._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`{}`)})}(e,n),e.code(o)}):e.func(t,l._`${p.default.data}, ${function(e){return l._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?l._`, ${p.default.dynamicAnchors}={}`:l.nil}}={}`}(n)}`,s.$async,()=>e.code(g(r,n)).code(o))}function g(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?l._`/*# sourceURL=${r} */`:l.nil}function y(e,t){v(e)&&(w(e),b(e))?function(e,t){const{schema:r,gen:s,opts:n}=e;n.$comment&&r.$comment&&E(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=s.const("_errs",p.default.errors);_(e,o),s.var(t,l._`${o} === ${p.default.errors}`)}(e,t):(0,s.boolOrEmptySchema)(e,t)}function b({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function w(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;t.$ref&&s.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return k(e,[],!1,t);const r=(0,n.getSchemaTypes)(e.schema);k(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function E({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(!0===n.$comment)e.code(l._`${p.default.self}.logger.log(${o})`);else if("function"==typeof n.$comment){const r=l.str`${s}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(l._`${p.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function k(e,t,r,s){const{gen:n,schema:a,data:c,allErrors:u,opts:d,self:f}=e,{RULES:m}=f;function g(h){(0,o.shouldUseGroup)(a,h)&&(h.type?(n.if((0,i.checkDataType)(h.type,c,d.strictNumbers)),T(e,h),1===t.length&&t[0]===h.type&&r&&(n.else(),(0,i.reportTypeError)(e)),n.endIf()):T(e,h),u||n.if(l._`${p.default.errors} === ${s||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{S(e.dataTypes,t)||A(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const r=[];for(const s of e.dataTypes)S(t,s)?r.push(s):t.includes("integer")&&"number"===s&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&A(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const s in r){const n=r[s];if("object"==typeof n&&(0,o.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;r.length&&!r.some(e=>O(t,e))&&A(e,`missing type "${r.join(",")}" for keyword "${s}"`)}}}(e,e.dataTypes)}(e,t),n.block(()=>{for(const e of m.rules)g(e);g(m.post)})):n.block(()=>P(e,"$ref",m.all.$ref.definition))}function T(e,t){const{gen:r,schema:s,opts:{useDefaults:n}}=e;n&&(0,a.assignDefaults)(e,t.type),r.block(()=>{for(const r of t.rules)(0,o.shouldUseRule)(s,r)&&P(e,r.keyword,r.definition,t.type)})}function O(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function A(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(w(e),b(e))?function(e){const{schema:t,opts:r,gen:s}=e;m(e,()=>{r.$comment&&t.$comment&&E(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),s.let(p.default.vErrors,null),s.let(p.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",l._`${r}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`)),t.if(l._`${e.evaluated}.dynamicItems`,()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;r.$async?t.if(l._`${p.default.errors} === 0`,()=>t.return(p.default.data),()=>t.throw(l._`new ${n}(${p.default.vErrors})`)):(t.assign(l._`${s}.errors`,p.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:s}){r instanceof l.Name&&e.assign(l._`${t}.props`,r);s instanceof l.Name&&e.assign(l._`${t}.items`,s)}(e),t.return(l._`${p.default.errors} === 0`))}(e)})}(e):m(e,()=>(0,s.topBoolOrEmptySchema)(e))};class ${constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",I(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=l.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,l.or)(l._`${s} === undefined`,t)),e!==l.nil&&r.assign(e,!0),(n.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:s,it:n}=this;return(0,l.or)(function(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return l._`${(0,i.checkDataTypes)(e,t,n.opts.strictNumbers,i.DataType.Wrong)}`}return l.nil}(),function(){if(s.validateSchema){const r=e.scopeValue("validate$data",{ref:s.validateSchema});return l._`!${r}(${t})`}return l.nil}())}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:void 0,props:void 0};return y(s,t),s}mergeEvaluated(e,t){const{it:r,gen:s}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(s,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(s,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return s.if(t,()=>this.mergeEvaluated(e,l.Name)),!0}}function P(e,t,r,s){const n=new $(e,r,t);"code"in r?r.code(n,s):n.$data&&r.validate?(0,c.funcKeywordCode)(n,r):"macro"in r?(0,c.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(n,r)}t.KeywordCxt=$;const j=/^\/(?:[^~]|~0|~1)*$/,R=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function I(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n,o;if(""===e)return p.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=p.default.rootData}else{const i=R.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+i[1];if(n=i[2],"#"===n){if(a>=t)throw new Error(c("property/index",a));return s[t-a]}if(a>t)throw new Error(c("data",a));if(o=r[t-a],!n)return o}let i=o;const a=n.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,h.unescapeJsonPointer)(e))}`,i=l._`${i} && ${o}`);return i;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=I},2596:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const s={parse:e=>e,toString:()=>"string"}},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?s.str`must contain at least ${e} valid item(s)`:s.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?s._`{minContains: ${e}}`:s._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:o,data:i,it:a}=e;let c,u;const{minContains:l,maxContains:p}=o;a.opts.next?(c=void 0===l?1:l,u=p):c=1;const d=t.const("len",s._`${i}.length`);if(e.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,n.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,n.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,n.alwaysValidSchema)(a,r)){let t=s._`${d} >= ${c}`;return void 0!==u&&(t=s._`${t} && ${d} <= ${u}`),void e.pass(t)}a.items=!0;const h=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);m(e,()=>t.if(e,()=>function(e){t.code(s._`${e}++`),void 0===u?t.if(s._`${e} >= ${c}`,()=>t.assign(h,!0).break()):(t.if(s._`${e} > ${u}`,()=>t.assign(h,!1).break()),1===c?t.assign(h,!0):t.if(s._`${e} >= ${c}`,()=>t.assign(h,!0)))}(r)))}function m(r,s){t.forRange("i",0,d,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:!0},r),s()})}void 0===u&&1===c?m(h,()=>t.if(h,()=>t.break())):0===c?(t.let(h,!0),void 0!==u&&t.if(s._`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset())}};t.default=o},2782:(e,t,r)=>{"use strict";var s=r(1736),n=r(484),o=r(18),i=r(9094),a=r(6845),c=r(1040);const u={composeNode:l,composeEmptyNode:p};function l(e,t,r,c){const l=e.atKey,{spaceBefore:d,comment:h,anchor:f,tag:m}=r;let g,y=!0;switch(t.type){case"alias":g=function({options:e},{offset:t,source:r,end:n},o){const i=new s.Alias(r.substring(1));""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string");i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+r.length,u=a.resolveEnd(n,c,e.strict,o);i.range=[t,c,u.offset],u.comment&&(i.comment=u.comment);return i}(e,t,c),(f||m)&&c(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=i.composeScalar(e,t,m,c),f&&(g.anchor=f.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":g=o.composeCollection(u,e,t,r,c),f&&(g.anchor=f.source.substring(1));break;default:c(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),g=p(e,t.offset,void 0,null,r,c),y=!1}if(f&&""===g.anchor&&c(f,"BAD_ALIAS","Anchor cannot be an empty string"),l&&e.options.stringKeys&&(!n.isScalar(g)||"string"!=typeof g.value||g.tag&&"tag:yaml.org,2002:str"!==g.tag)){c(m??t,"NON_STRING_KEY","With stringKeys, all keys must be strings")}return d&&(g.spaceBefore=!0),h&&("scalar"===t.type&&""===t.source?g.comment=h:g.commentBefore=h),e.options.keepSourceTokens&&y&&(g.srcToken=t),g}function p(e,t,r,s,{spaceBefore:n,comment:o,anchor:a,tag:u,end:l},p){const d={type:"scalar",offset:c.emptyScalarPosition(t,r,s),indent:-1,source:""},h=i.composeScalar(e,d,u,p);return a&&(h.anchor=a.source.substring(1),""===h.anchor&&p(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(h.spaceBefore=!0),o&&(h.comment=o,h.range[2]=l),h}t.composeEmptyNode=p,t.composeNode=l},2864:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){const s=t+r>>1;this.lineStarts[s]<e?t=s+1:r=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}},2891:(e,t,r)=>{"use strict";var s=r(3144);const n=e=>"bigint"==typeof e||Number.isInteger(e),o=(e,t,r,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),r);function i(e,t,r){const{value:o}=e;return n(o)&&o>=0?r+o.toString(t):s.stringifyNumber(e)}const a={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>o(e,2,8,r),stringify:e=>i(e,8,"0o")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>o(e,0,10,r),stringify:s.stringifyNumber},u={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>o(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=c,t.intHex=u,t.intOct=a},3025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(9029),n=r(4227),o=r(5765);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=1===t?"property":"properties";return s.str`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>s._`{property: ${e},
5
+ || ${a} === "boolean" || ${n} === null`).assign(c,i._`[${n}]`)}}s.else(),f(e),s.endIf(),s.if(i._`${c} !== undefined`,()=>{s.assign(n,c),function({gen:e,parentData:t,parentDataProperty:r},s){e.if(i._`${t} !== undefined`,()=>e.assign(i._`${t}[${r}]`,s))}(e,c)})}(e,t,a):f(e)})}return u};const l=new Set(["string","number","integer","boolean","null"]);function p(e,t,r,s=c.Correct){const n=s===c.Correct?i.operators.EQ:i.operators.NEQ;let o;switch(e){case"null":return i._`${t} ${n} null`;case"array":o=i._`Array.isArray(${t})`;break;case"object":o=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return i._`typeof ${t} ${n} ${e}`}return s===c.Correct?o:(0,i.not)(o);function a(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,r?i._`isFinite(${t})`:i.nil)}}function d(e,t,r,s){if(1===e.length)return p(e[0],t,r,s);let n;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=i._`typeof ${t} != "object"`;n=o.null?e:i._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else n=i.nil;o.number&&delete o.integer;for(const e in o)n=(0,i.and)(n,p(e,t,r,s));return n}t.checkDataType=p,t.checkDataTypes=d;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:s}=e,n=(0,a.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}(e);(0,o.reportError)(t,h)}t.reportTypeError=f},248:(e,t)=>{"use strict";function r(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=r,t.lineComment=(e,t,s)=>e.endsWith("\n")?r(s,t):s.includes("\n")?"\n"+r(s,t):(e.endsWith(" ")?"":" ")+s,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},262:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var s=r(1943);async function n(e){try{return await(0,s.access)(e),!0}catch(t){if("object"==typeof t&&null!==t&&"code"in t&&"ENOENT"===t.code)return!1;throw new Error(`Error checking file '${e}'.`,{cause:t})}}},343:(e,t,r)=>{"use strict";const{isUUID:s}=r(4834),n=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function i(e){return!0===e.secure||!1!==e.secure&&(!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2]))}function a(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function c(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const u={scheme:"http",domainHost:!0,parse:a,serialize:c},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=i(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(i(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},p={http:u,https:{scheme:"https",domainHost:u.domainHost,parse:a,serialize:c},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(n);if(r){const s=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const n=d(`${s}:${t.nid||e.nid}`);e.path=void 0,n&&(e=n.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",s=e.nid.toLowerCase(),n=d(`${r}:${t.nid||s}`);n&&(e=n.serialize(e,t));const o=e,i=e.nss;return o.path=`${s||t.nid}:${i}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&s(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function d(e){return e&&(p[e]||p[e.toLowerCase()])||void 0}Object.setPrototypeOf(p,null),e.exports={wsIsSecure:i,SCHEMES:p,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:d}},396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:o,schemaCode:i,it:a}=e,c=a.opts.unicodeRegExp?"u":"",u=r?n._`(new RegExp(${i}, ${c}))`:(0,s.usePattern)(e,o);e.fail$data(n._`!${u}.test(${t})`)}};t.default=o},483:(e,t,r)=>{"use strict";var s=r(6010),n=r(1386),o=r(8644);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=new(c?.nodeClass??s.YAMLSeq)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let l=i.offset,p=null;for(const{start:s,value:c}of i.items){const d=n.resolveProps(s,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:!0});if(!d.found){if(!(d.anchor||d.tag||c)){p=d.end,d.comment&&(u.comment=d.comment);continue}c&&"block-seq"===c.type?a(d.end,"BAD_INDENT","All sequence items must start at the same column"):a(l,"MISSING_CHAR","Sequence item without - indicator")}const h=c?e(r,c,d,a):t(r,d.end,s,null,d,a);r.schema.compat&&o.flowIndentCheck(i.indent,c,a),l=h.range[2],u.items.push(h)}return u.range=[i.offset,l,p??l],u}},484:(e,t)=>{"use strict";const r=Symbol.for("yaml.alias"),s=Symbol.for("yaml.document"),n=Symbol.for("yaml.map"),o=Symbol.for("yaml.pair"),i=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[c]===i;function l(e){if(e&&"object"==typeof e)switch(e[c]){case n:case a:return!0}return!1}t.ALIAS=r,t.DOC=s,t.MAP=n,t.NODE_TYPE=c,t.PAIR=o,t.SCALAR=i,t.SEQ=a,t.hasAnchor=e=>(u(e)||l(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===r,t.isCollection=l,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===s,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===n,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case r:case n:case i:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===o,t.isScalar=u,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const s=r(9029),n=r(4227),o=r(5765),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,n.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:o,parentSchema:i,data:a,keyword:c,it:u}=e;!function(e){const{opts:s,errSchemaPath:o}=u,i=r.length,a=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(s.strictTuples&&!a){const e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,n.checkStrictMode)(u,e,s.strictTuples)}}(i),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=n.mergeEvaluated.items(o,r.length,u.items));const l=o.name("valid"),p=o.const("len",s._`${a}.length`);r.forEach((t,r)=>{(0,n.alwaysValidSchema)(u,t)||(o.if(s._`${p} > ${r}`,()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)),e.ok(l))})}t.validateTuple=a,t.default=i},514:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var s,n=r(6903),o=r(4523),i=r(153),a=r(9108),c=r(2596),u=r(1170),l=r(3121),p=r(1354),d=r(6276),h=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e,t){return function(r,s){t(r,s,e)}};let g=class{static{0}static schema={description:"Delete an entity from the local storage.",parameters:{correctDependencies:{defaultValue:!0,description:"Also correct all entities depending on the deleted one. Disabling this may lead to dangling references.",type:i.A},key:{description:"Key to filter entities to delete.",required:!0,type:c.A},of:{description:"Entity type to delete.",required:!0,type:l.o4},value:{description:"Value to filter entities to delete.",required:!0,type:new u.A([a.A,c.A])}}};#e;#t;constructor(e,t){this.#e=e,this.#t=t}async execute({correctDependencies:e,key:t,of:r,value:s}){this.#t.info(`Deleting ${r} with ${t} equals to ${s} from the local storage.`);const n=await this.#e.one(r,{[t]:s});if((0,o.b0)(n))this.#t.warn(`Skipping, ${r} with ${t} equals to ${s} is not found in the local storage.`);else{if(n.delete(),!0===e){this.#t.info("Correcting dependencies for the deleted entity...");for await(const e of this.#e.all())e.freeOf((0,d.A)(n))}else this.#t.warn("Skipping dependencies correction as per the command option.");this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}}};g=h([(0,n.Gr)(),m(0,(0,n.WQ)("LocalStorage")),m(1,(0,n.WQ)(p.A)),f("design:paramtypes",[Object,"function"==typeof(s=void 0!==p.A&&p.A)?s:Object])],g);const y=g},617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(208),n=r(9029),o=r(4227),i=r(6250),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>n.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>n._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:p}=e;if(!a&&!c)return;const d=t.let("valid"),h=u.items?(0,s.getSchemaTypes)(u.items):[];function f(o,i){const a=t.name("item"),c=(0,s.checkDataTypes)(h,a,p.opts.strictNumbers,s.DataType.Wrong),u=t.const("indices",n._`{}`);t.for(n._`;${o}--;`,()=>{t.let(a,n._`${r}[${o}]`),t.if(c,n._`continue`),h.length>1&&t.if(n._`typeof ${a} == "string"`,n._`${a} += "_"`),t.if(n._`typeof ${u}[${a}] == "number"`,()=>{t.assign(i,n._`${u}[${a}]`),e.error(),t.assign(d,!1).break()}).code(n._`${u}[${a}] = ${o}`)})}function m(s,a){const c=(0,o.useFunc)(t,i.default),u=t.name("outer");t.label(u).for(n._`;${s}--;`,()=>t.for(n._`${a} = ${s}; ${a}--;`,()=>t.if(n._`${c}(${r}[${s}], ${r}[${a}])`,()=>{e.error(),t.assign(d,!1).break(u)})))}e.block$data(d,function(){const s=t.let("i",n._`${r}.length`),o=t.let("j");e.setParams({i:s,j:o}),t.assign(d,!0),t.if(n._`${s} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?f:m)(s,o))},n._`${l} === false`),e.ok(d)}};t.default=a},625:(e,t,r)=>{"use strict";var s=r(484),n=r(3334),o=r(1919),i=r(8531),a=r(975);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class u{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:u,schema:l,sortMapEntries:p,toStringDefaults:d}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.name="string"==typeof l&&l||"core",this.knownTags=u?a.coreKnownTags:{},this.tags=a.getTags(t,this.name,r),this.toStringOptions=d??null,Object.defineProperty(this,s.MAP,{value:n.map}),Object.defineProperty(this,s.SCALAR,{value:i.string}),Object.defineProperty(this,s.SEQ,{value:o.seq}),this.sortMapEntries="function"==typeof p?p:!0===p?c:null}clone(){const e=Object.create(u.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=u},692:(e,t,r)=>{"use strict";var s=r(484),n=r(3732),o=r(1755),i=r(6010),a=r(8416);class c extends i.YAMLSeq{constructor(){super(),this.add=o.YAMLMap.prototype.add.bind(this),this.delete=o.YAMLMap.prototype.delete.bind(this),this.get=o.YAMLMap.prototype.get.bind(this),this.has=o.YAMLMap.prototype.has.bind(this),this.set=o.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;t?.onCreate&&t.onCreate(r);for(const e of this.items){let o,i;if(s.isPair(e)?(o=n.toJS(e.key,"",t),i=n.toJS(e.value,o,t)):o=n.toJS(e,"",t),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const s=a.createPairs(e,t,r),n=new this;return n.items=s.items,n}}c.tag="tag:yaml.org,2002:omap";const u={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t),n=[];for(const{key:e}of r.items)s.isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new c,r)},createNode:(e,t,r)=>c.from(e,t,r)};t.YAMLOMap=c,t.omap=u},857:e=>{"use strict";e.exports=require("os")},932:e=>{"use strict";e.exports=require("process")},975:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(5132),c=r(988),u=r(2891),l=r(8523),p=r(4988),d=r(8080),h=r(9637),f=r(692),m=r(8416),g=r(5822),y=r(2557),b=r(5437);const v=new Map([["core",l.schema],["failsafe",[s.map,o.seq,i.string]],["json",p.schema],["yaml11",g.schema],["yaml-1.1",g.schema]]),w={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:b.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:b.intTime,map:s.map,merge:h.merge,null:n.nullTag,omap:f.omap,pairs:m.pairs,seq:o.seq,set:y.set,timestamp:b.timestamp},_={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":m.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":b.timestamp};t.coreKnownTags=_,t.getTags=function(e,t,r){const s=v.get(t);if(s&&!e)return r&&!s.includes(h.merge)?s.concat(h.merge):s.slice();let n=s;if(!n){if(!Array.isArray(e)){const e=Array.from(v.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return r&&(n=n.concat(h.merge)),n.reduce((e,t)=>{const r="string"==typeof t?w[t]:t;if(!r){const e=JSON.stringify(t),r=Object.keys(w).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${r}`)}return e.includes(r)||e.push(r),e},[])}},988:(e,t,r)=>{"use strict";var s=r(9714),n=r(3144);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e)),r=e.indexOf(".");return-1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:n.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},998:(e,t,r)=>{const s=r(9896),n=r(6928),o=r(857),i=r(6982),a=r(56).version,c=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","📡 add observability to secrets: https://dotenvx.com/ops","👥 sync secrets across teammates & machines: https://dotenvx.com/ops","🗂️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","🔄 add secrets lifecycle management: https://dotenvx.com/ops","🔑 add access controls to secrets: https://dotenvx.com/ops","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function u(e){return"string"==typeof e?!["false","0","no","off",""].includes(e.toLowerCase()):Boolean(e)}function l(e){return process.stdout.isTTY?`${e}`:e}const p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function d(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function h(e){console.log(`[dotenv@${a}] ${e}`)}function f(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function m(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const s=r.password;if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const n=r.searchParams.get("environment");if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${n.toUpperCase()}`,i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:i,key:s}}function g(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const r of e.path)s.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=n.resolve(process.cwd(),".env.vault");return s.existsSync(t)?t:null}function y(e){return"~"===e[0]?n.join(o.homedir(),e.slice(1)):e}const b={configDotenv:function(e){const t=n.resolve(process.cwd(),".env");let r="utf8",o=process.env;e&&null!=e.processEnv&&(o=e.processEnv);let i=u(o.DOTENV_CONFIG_DEBUG||e&&e.debug),a=u(o.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:i&&d("No encoding is specified. UTF-8 is used by default");let p,f=[t];if(e&&e.path)if(Array.isArray(e.path)){f=[];for(const t of e.path)f.push(y(t))}else f=[y(e.path)];const m={};for(const t of f)try{const n=b.parse(s.readFileSync(t,{encoding:r}));b.populate(m,n,e)}catch(e){i&&d(`Failed to load ${t} ${e.message}`),p=e}const g=b.populate(o,m,e);if(i=u(o.DOTENV_CONFIG_DEBUG||i),a=u(o.DOTENV_CONFIG_QUIET||a),i||!a){const e=Object.keys(g).length,t=[];for(const e of f)try{const r=n.relative(process.cwd(),e);t.push(r)}catch(t){i&&d(`Failed to load ${e} ${t.message}`),p=t}h(`injecting env (${e}) from ${t.join(",")} ${l(`-- tip: ${c[Math.floor(Math.random()*c.length)]}`)}`)}return p?{parsed:m,error:p}:{parsed:m}},_configVault:function(e){const t=u(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=u(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);!t&&r||h("Loading env from encrypted .env.vault");const s=b._parseVault(e);let n=process.env;return e&&null!=e.processEnv&&(n=e.processEnv),b.populate(n,s,e),{parsed:s}},_parseVault:function(e){const t=g(e=e||{});e.path=t;const r=b.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const s=f(e).split(","),n=s.length;let o;for(let e=0;e<n;e++)try{const t=m(r,s[e].trim());o=b.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=n)throw t}return b.parse(o)},config:function(e){if(0===f(e).length)return b.configDotenv(e);const t=g(e);return t?b._configVault(e):(r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.error(`[dotenv@${a}][WARN] ${r}`),b.configDotenv(e));var r},decrypt:function(e,t){const r=Buffer.from(t.slice(-64),"hex");let s=Buffer.from(e,"base64");const n=s.subarray(0,12),o=s.subarray(-16);s=s.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,n);return e.setAuthTag(o),`${e.update(s)}${e.final()}`}catch(e){const t=e instanceof RangeError,r="Invalid key length"===e.message,s="Unsupported state or unable to authenticate data"===e.message;if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(s){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let r,s=e.toString();for(s=s.replace(/\r\n?/gm,"\n");null!=(r=p.exec(s));){const e=r[1];let s=r[2]||"";s=s.trim();const n=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===n&&(s=s.replace(/\\n/g,"\n"),s=s.replace(/\\r/g,"\r")),t[e]=s}return t},populate:function(e,t,r={}){const s=Boolean(r&&r.debug),n=Boolean(r&&r.override),o={};if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===n&&(e[r]=t[r],o[r]=t[r]),s&&d(!0===n?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):(e[r]=t[r],o[r]=t[r]);return o}};e.exports.configDotenv=b.configDotenv,e.exports._configVault=b._configVault,e.exports._parseVault=b._parseVault,e.exports.config=b.config,e.exports.decrypt=b.decrypt,e.exports.parse=b.parse,e.exports.populate=b.populate,e.exports=b},1027:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{value;constructor(e){this.value=e}parse(e){if(e!==this.value)throw new Error("");return this.value}toString(){return null!=(e=this.value)&&"function"==typeof e.toString?this.value.toString():"";var e}}},1040:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,r){if(t){r??(r=t.length);for(let s=r-1;s>=0;--s){let r=t[s];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++s];"space"===r?.type;)e+=r.source.length,r=t[++s];break}}return e}},1163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`${r}.length ${o} ${n}`)}};t.default=n},1170:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{types;constructor(e){this.types=e}parse(e){for(const t of this.types)try{return t.parse(e)}catch{}throw new Error(`${e} is invalid for type ${this.toString()}.`)}toString(){return this.types.join("|")}}},1198:(e,t,r)=>{"use strict";var s=r(4927),n=r(9046),o=r(625),i=r(4355),a=r(1736),c=r(484),u=r(7902),l=r(9714),p=r(1755),d=r(6010),h=r(9112),f=r(5752),m=r(2864),g=r(6247),y=r(1332),b=r(9125);s.Composer,t.yo=n.Document,o.Schema,i.YAMLError,i.YAMLParseError,i.YAMLWarning,a.Alias,c.isAlias,c.isCollection,c.isDocument,c.isMap,c.isNode,c.isPair,c.isScalar,c.isSeq,u.Pair,t.X5=l.Scalar,t.CA=p.YAMLMap,t.Rw=d.YAMLSeq,f.Lexer,m.LineCounter,g.Parser,t.qg=y.parse,t.hR=y.parseAllDocuments,y.parseDocument,y.stringify,b.visit,b.visitAsync},1239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>s.str`must match "${e.ifClause}" schema`,params:({params:e})=>s._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,n.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=i(o,"then"),c=i(o,"else");if(!a&&!c)return;const u=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(l,p("then",r),p("else",r))}else a?t.if(l,p("then")):t.if((0,s.not)(l),p("else"));function p(r,n){return()=>{const o=e.subschema({keyword:r},l);t.assign(u,l),e.mergeValidEvaluated(o,u),n?t.assign(n,s._`${r}`):e.setParams({ifClause:r})}}e.pass(u,()=>e.error(!0))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!(0,n.alwaysValidSchema)(e,r)}t.default=o},1332:(e,t,r)=>{"use strict";var s=r(4927),n=r(9046),o=r(4355),i=r(7444),a=r(484),c=r(2864),u=r(6247);function l(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new c.LineCounter||null,prettyErrors:t}}function p(e,t={}){const{lineCounter:r,prettyErrors:n}=l(t),i=new u.Parser(r?.addNewLine),a=new s.Composer(t);let c=null;for(const t of a.compose(i.parse(e),!0,e.length))if(c){if("silent"!==c.options.logLevel){c.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else c=t;return n&&r&&(c.errors.forEach(o.prettifyError(e,r)),c.warnings.forEach(o.prettifyError(e,r))),c}t.parse=function(e,t,r){let s;"function"==typeof t?s=t:void 0===r&&t&&"object"==typeof t&&(r=t);const n=p(e,r);if(!n)return null;if(n.warnings.forEach(e=>i.warn(n.options.logLevel,e)),n.errors.length>0){if("silent"!==n.options.logLevel)throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:s},r))},t.parseAllDocuments=function(e,t={}){const{lineCounter:r,prettyErrors:n}=l(t),i=new u.Parser(r?.addNewLine),a=new s.Composer(t),c=Array.from(a.compose(i.parse(e)));if(n&&r)for(const t of c)t.errors.forEach(o.prettifyError(e,r)),t.warnings.forEach(o.prettifyError(e,r));return c.length>0?c:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=p,t.stringify=function(e,t,r){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){const e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!s?e.toString(r):new n.Document(e,s,r).toString(r)}},1354:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6007),n=r(8504);class o{#t;#r;constructor(e,t){this.#t=e??new s.A,this.#r=t??n.KF}debug(e){[n.Oi].includes(this.#r)&&this.#t.writeLine(e,n.Oi)}error(e){[n.Oi,n.ff,n.rD,n.ZW].includes(this.#r)&&this.#t.writeLine(e,n.ff)}info(e){[n.Oi,n.rD].includes(this.#r)&&this.#t.writeLine(e,n.rD)}warn(e){[n.Oi,n.rD,n.ZW].includes(this.#r)&&this.#t.writeLine(e,n.ZW)}}},1386:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:r,next:s,offset:n,onError:o,parentIndent:i,startOnNewline:a}){let c=!1,u=a,l=a,p="",d="",h=!1,f=!1,m=null,g=null,y=null,b=null,v=null,w=null,_=null;for(const n of e)switch(f&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),m&&(u&&"comment"!==n.type&&"newline"!==n.type&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),n.type){case"space":t||"doc-start"===r&&"flow-collection"===s?.type||!n.source.includes("\t")||(m=n),l=!0;break;case"comment":{l||o(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=n.source.substring(1)||" ";p?p+=d+e:p=e,d="",u=!1;break}case"newline":u?p?p+=n.source:w&&"seq-item-ind"===r||(c=!0):d+=n.source,u=!0,h=!0,(g||y)&&(b=n),l=!0;break;case"anchor":g&&o(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&o(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=n,_??(_=n.offset),u=!1,l=!1,f=!0;break;case"tag":y&&o(n,"MULTIPLE_TAGS","A node can have at most one tag"),y=n,_??(_=n.offset),u=!1,l=!1,f=!0;break;case r:(g||y)&&o(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),w&&o(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),w=n,u="seq-item-ind"===r||"explicit-key-ind"===r,l=!1;break;case"comma":if(t){v&&o(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=n,u=!1,l=!1;break}default:o(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),u=!1,l=!1}const E=e[e.length-1],k=E?E.offset+E.source.length:n;return f&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=i||"block-map"===s?.type||"block-seq"===s?.type)&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:w,spaceBefore:c,comment:p,hasNewline:h,anchor:g,tag:y,newlineAfterProp:b,end:k,start:_??k}}},1421:e=>{"use strict";e.exports=require("node:child_process")},1469:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var s,n,o=r(6928),i=r(6903),a=r(4523),c=r(2596),u=r(3989),l=r(9669),p=r(1354),d=r(153),h=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(e,t){return function(r,s){t(r,s,e)}};let g=class{static{0}static schema={parameters:{localStorage:{description:"Local storage path.",type:c.A},repair:{description:"Repair local storage if corrupted.",type:d.A,defaultValue:!1}}};#s;#t;constructor(e,t){this.#s=e,this.#t=t}execute({localStorage:e,repair:t}){this.#t.info("Configuring local storage, resolving local storage path...");let r=e;((0,a.b0)(r)||"string"==typeof r&&""===r.trim())&&(this.#t.info("Local storage path with console option is not provided, trying environment variable."),r=process.env.KICKCAT_LOCAL_STORAGE),((0,a.b0)(r)||"string"==typeof r&&""===r.trim())&&(this.#t.info('Environment variable KICKCAT_LOCAL_STORAGE is not found, falling back to ".github" in the current working directory.'),r=(0,o.resolve)(process.cwd(),".github")),this.#t.info(`Using "${r}" as the local storage path.`),i.kL.registerInstance("LocalStorage",new l.A({storagePath:r,repair:t},this.#s,this.#t))}};g=h([(0,i.Gr)(),m(0,(0,i.WQ)(u.A)),m(1,(0,i.WQ)(p.A)),f("design:paramtypes",["function"==typeof(s=void 0!==u.A&&u.A)?s:Object,"function"==typeof(n=void 0!==p.A&&p.A)?n:Object])],g);const y=g},1520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof s&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const r=[e[0]];let s=0;for(;s<t.length;)c(r,t[s]),r.push(e[++s]);return new n(r)}t._Code=n,t.nil=new n(""),t._=o;const i=new n("+");function a(e,...t){const r=[l(e[0])];let s=0;for(;s<t.length;)r.push(i),c(r,t[s]),r.push(i,l(e[++s]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const r=u(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function c(e,t){var r;t instanceof n?e.push(...t._items):t instanceof s?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:l(Array.isArray(r)?r.join(","):r))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof s||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof s?void 0:`"${e}${t.slice(1)}`}function l(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new n(l(e))},t.safeStringify=l,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new n(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new n(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new n(e.toString())}},1614:(e,t,r)=>{"use strict";var s=r(5219),n=r(484),o=r(8898);function i(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return s.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const a=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class c extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{const[r,...s]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,i(this.schema,s,t))}}}deleteIn(e){const[t,...r]=e;if(0===r.length)return this.delete(t);const s=this.get(t,!0);if(n.isCollection(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...s]=e,o=this.get(r,!0);return 0===s.length?!t&&n.isScalar(o)?o.value:o:n.isCollection(o)?o.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;const r=t.value;return null==r||e&&n.isScalar(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[t,...r]=e;if(0===r.length)return this.has(t);const s=this.get(t,!0);return!!n.isCollection(s)&&s.hasIn(r)}setIn(e,t){const[r,...s]=e;if(0===s.length)this.set(r,t);else{const e=this.get(r,!0);if(n.isCollection(e))e.setIn(s,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,i(this.schema,s,t))}}}}t.Collection=c,t.collectionFromPath=i,t.isEmptyPath=a},1736:(e,t,r)=>{"use strict";var s=r(6261),n=r(9125),o=r(484),i=r(8898),a=r(3732);class c extends i.NodeBase{constructor(e){super(o.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,s;t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],n.visit(e,{Node:(e,t)=>{(o.isAlias(t)||o.hasAnchor(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r));for(const e of r){if(e===this)break;e.anchor===this.source&&(s=e)}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:n}=t,o=this.resolve(s,t);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(i||(a.toJS(o,null,t),i=r.get(o)),!i||void 0===i.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(n>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=u(s,o,r)),i.count*i.aliasCount>n)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return i.res}toString(e,t,r){const n=`*${this.source}`;if(e){if(s.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${n} `}return n}}function u(e,t,r){if(o.isAlias(t)){const s=t.resolve(e),n=r&&s&&r.get(s);return n?n.count*n.aliasCount:0}if(o.isCollection(t)){let s=0;for(const n of t.items){const t=u(e,n,r);t>s&&(s=t)}return s}if(o.isPair(t)){const s=u(e,t.key,r),n=u(e,t.value,r);return Math.max(s,n)}return 1}t.Alias=c},1755:(e,t,r)=>{"use strict";var s=r(81),n=r(5139),o=r(1614),i=r(484),a=r(7902),c=r(9714);function u(e,t){const r=i.isScalar(t)?t.value:t;for(const s of e)if(i.isPair(s)){if(s.key===t||s.key===r)return s;if(i.isScalar(s.key)&&s.key.value===r)return s}}class l extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,r){const{keepUndefined:s,replacer:n}=r,o=new this(e),i=(e,i)=>{if("function"==typeof n)i=n.call(t,e,i);else if(Array.isArray(n)&&!n.includes(e))return;(void 0!==i||s)&&o.items.push(a.createPair(e,i,r))};if(t instanceof Map)for(const[e,r]of t)i(e,r);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let r;r=i.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const s=u(this.items,r.key),n=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${r.key} already set`);i.isScalar(s.value)&&c.isScalarValue(r.value)?s.value.value=r.value:s.value=r.value}else if(n){const e=this.items.findIndex(e=>n(r,e)<0);-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=u(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const r=u(this.items,e),s=r?.value;return(!t&&i.isScalar(s)?s.value:s)??void 0}has(e){return!!u(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){const s=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(s);for(const e of this.items)n.addPairToJSMap(t,s,e);return s}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items)if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=l,t.findPair=u},1768:(e,t,r)=>{"use strict";var s=r(484),n=r(3793),o=r(248);t.stringifyDocument=function(e,t){const r=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const a=n.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=!1,l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>u=!0;let p=n.stringify(e.contents,a,()=>l=null,t);l&&(p+=o.lineComment(p,"",c(l))),"|"!==p[0]&&">"!==p[0]||"---"!==r[r.length-1]?r.push(p):r[r.length-1]=`--- ${p}`}else r.push(n.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(r.push("..."),r.push(o.indentComment(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&u&&(t=t.replace(/^\n+/,"")),t&&(u&&!l||""===r[r.length-1]||r.push(""),r.push(o.indentComment(c(t),"")))}return r.join("\n")+"\n"}},1919:(e,t,r)=>{"use strict";var s=r(484),n=r(6010);const o={collection:"seq",default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(s.isSeq(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)};t.seq=o},1943:e=>{"use strict";e.exports=require("fs/promises")},2017:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(n=s;0!==n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((s=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=s;0!==n--;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;0!==n--;){var i=o[n];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},2023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),instancePath:new s.Name("instancePath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope"),json:new s.Name("json"),jsonPos:new s.Name("jsonPos"),jsonLen:new s.Name("jsonLen"),jsonPart:new s.Name("jsonPart")};t.default=n},2079:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(3463),n=r(3693),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s.default,n.default];t.default=o},2173:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var s=r(6903),n=r(4523),o=r(2596),i=r(3989),a=r(6486),c=r(4078),u=r(3121),l=r(6276);const p="open",d="closed";var h=r(5458),f=r(8847);class m extends f.Ay{async delete(e){throw new Error("Not supported.")}async get(e){this.logger.debug(`GitHub issues.get: ${this.owner}/${this.repo} issue_number=${(0,h.A)(e.number)}`);try{return y((await this.octokit.rest.issues.get({issue_number:(0,h.A)(e.number),owner:this.owner,repo:this.repo})).data)}catch(t){const r=g(t);if(!(0,n.b0)(r)&&[301,404,410].includes(r))return void this.logger.debug(`GitHub issues.get returned ${r}: ${this.owner}/${this.repo} issue_number=${(0,h.A)(e.number)}`);throw t}}async set(e){let t=null;(0,n.b0)(e.number)?(this.logger.debug(`GitHub issues.create: ${this.owner}/${this.repo} title="${(0,h.A)(e.title)}"`),t=y((await this.octokit.rest.issues.create({description:e.description,labels:e.labels,milestone:e.milestone,owner:this.owner,repo:this.repo,title:(0,h.A)(e.title)})).data)):(this.logger.debug(`GitHub issues.update: ${this.owner}/${this.repo} issue_number=${e.number}`),t=y((await this.octokit.rest.issues.update({body:e.description,issue_number:e.number,labels:e.labels,milestone:e.milestone,owner:this.owner,repo:this.repo,title:(0,h.A)(e.title)})).data)),this.logger.debug(`GitHub issue dependencies sync: ${this.owner}/${this.repo} issue_number=${(0,h.A)(e.number)}`);const r=await this.#n(e.dependencies?.filter(n.Et)??[]),s=await this.#o((0,h.A)(e.number)),o=(0,n.R9)(r,s);await this.#i((0,h.A)(e.number),o);const i=(0,n.R9)(s,r);return await this.#a((0,h.A)(e.number),i),t}async#i(e,t){this.logger.debug(`GitHub issues.addBlockedByDependency: ${this.owner}/${this.repo} issue_number=${e} count=${t.length}`),await Promise.all(t.map(async t=>this.octokit.rest.issues.addBlockedByDependency({issue_id:t,issue_number:e,owner:this.owner,repo:this.repo})))}async#a(e,t){this.logger.debug(`GitHub issues.removeDependencyBlockedBy: ${this.owner}/${this.repo} issue_number=${e} count=${t.length}`),await Promise.all(t.map(async t=>this.octokit.rest.issues.removeDependencyBlockedBy({issue_id:t,issue_number:e,owner:this.owner,repo:this.repo})))}async#o(e){this.logger.debug(`GitHub issues.listDependenciesBlockedBy: ${this.owner}/${this.repo} issue_number=${e}`);const t=[];let r=1;for(;;){const s=(await this.octokit.rest.issues.listDependenciesBlockedBy({issue_number:(0,h.A)(e),owner:this.owner,page:r,per_page:100,repo:this.repo})).data;for(const e of s)t.push(e.id);if(r+=1,s.length<100)break}return t}async#n(e){this.logger.debug(`GitHub issues.get (dependencies): ${this.owner}/${this.repo} count=${e.length}`);const t=await Promise.all(e.map(async e=>{try{return(await this.octokit.rest.issues.get({issue_number:e,owner:this.owner,repo:this.repo})).data.id}catch(e){const t=g(e);if(!(0,n.b0)(t)&&[301,404,410].includes(t))return null;throw e}}));return Array.from(new Set(t.filter(n.Et)))}}function g(e){if("object"!=typeof e||null===e)return;if(!("status"in e))return;const{status:t}=e;return"number"==typeof t?t:void 0}function y(e){const t={number:e.issue_number,title:e.title};var r;return(0,n.Kg)(e.body)&&(t.description=e.body),r=e.state,[d,p].includes((0,l.A)(r))&&(t.state=e.state),t}class b extends f.Ay{async delete(e){this.logger.debug(`GitHub labels.deleteLabel: ${this.owner}/${this.repo} name="${(0,h.A)(e.name)}"`),await this.octokit.rest.issues.deleteLabel({name:(0,h.A)(e.name),owner:this.owner,repo:this.repo})}async get(e){this.logger.debug(`GitHub labels.getLabel: ${this.owner}/${this.repo} name="${(0,h.A)(e.name)}"`);try{return v((await this.octokit.rest.issues.getLabel({name:(0,h.A)(e.name),owner:this.owner,repo:this.repo})).data)}catch(t){const r=function(e){if("object"!=typeof e||null===e)return;if(!("status"in e))return;const{status:t}=e;return"number"==typeof t?t:void 0}(t);if(404===r)return void this.logger.debug(`GitHub labels.getLabel returned 404: ${this.owner}/${this.repo} name="${(0,h.A)(e.name)}"`);throw t}}async set(e){const t=await this.get(e);return(0,n.b0)(t)?(this.logger.debug(`GitHub labels.createLabel: ${this.owner}/${this.repo} name="${(0,h.A)(e.name)}"`),v((await this.octokit.rest.issues.createLabel({color:e.color,description:e.description,name:(0,h.A)(e.name),owner:this.owner,repo:this.repo})).data)):(this.logger.debug(`GitHub labels.updateLabel: ${this.owner}/${this.repo} name="${(0,h.A)(e.name)}"`),v((await this.octokit.rest.issues.updateLabel({color:e.color,description:e.description,name:(0,h.A)(e.name),owner:this.owner,repo:this.repo})).data))}}function v(e){const t={color:e.color,name:e.name};return(0,n.kZ)(e.description)||(t.description=e.description),t}var w=r(4200);class _{colletions;entitySchemaRegistry;logger;#c;constructor({token:e},t,r){this.colletions={[u.i8]:new m(e,r),[u.d_]:new b(e,r),[u.Ni]:new w.A(e,r)},this.entitySchemaRegistry=t,this.#c=new a.A(t),this.logger=r}async*all(e){throw new Error("Not supported.")}async commit(){await Promise.all(this.#c.all().filter(e=>[c.jm,c.W4,c.dy].includes(e.state)).map(this.#u.bind(this)))}async new(e,t){const r=(0,l.A)(this.entitySchemaRegistry.get(e));if((0,n.b0)(r))throw new Error(`Can't find "${e}" entity schema.`);const s=new c.Ay({cookie:{file:this},entity:t,schema:r,state:c.dy,storage:this});return this.#c.set(s),Promise.resolve(s)}async one(e,t){let r=this.#c.one(e,t);if((0,n.b0)(r)){const s=await this.colletions[e].get(t);if((0,n.b0)(s))return s;const o=(0,l.A)(this.entitySchemaRegistry.get(e));if((0,n.b0)(o))throw new Error(`Can't find "${e}" entity schema.`);r=new c.Ay({cookie:{file:this},entity:(0,l.A)(s),schema:o,state:c.w_,storage:this}),this.#c.set(r)}return r}async#u(e){e.state!==c.W4?[c.jm,c.dy].includes(e.state)&&e.clean(await this.colletions[e.schema.type].set(e.entity)):await this.colletions[e.schema.type].delete(e.entity)}}var E,k,T=r(9669),O=r(1354),S=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=function(e,t){return function(r,s){t(r,s,e)}};let P=class{static{0}static schema={parameters:{gitHubToken:{description:"GitHub authentication token.",type:o.A},remoteStorage:{description:"Remote storage path, used for debugging.",type:o.A}}};#s;#t;constructor(e,t){this.#s=e,this.#t=t}execute({gitHubToken:e,remoteStorage:t}){this.#t.info("Configuring remote storage, resolving remote storage path...");let r=t;(0,n.b0)(r)&&(this.#t.info("Remote storage path with console option is not provided, trying environment variable."),r=process.env.KICKCAT_REMOTE_STORAGE),(0,n.b0)(r)?(this.#t.info("Environment variable KICKCAT_REMOTE_STORAGE is not found, using GitHub as remote storage."),s.kL.registerInstance("RemoteStorage",new _({token:e},this.#s,this.#t))):(this.#t.warn(`Using file storage by path "${r}" as remote storage.`),s.kL.registerInstance("RemoteStorage",new T.A({storagePath:r,repair:!0},this.#s,this.#t)))}};P=S([(0,s.Gr)(),$(0,(0,s.WQ)(i.A)),$(1,(0,s.WQ)(O.A)),A("design:paramtypes",["function"==typeof(E=void 0!==i.A&&i.A)?E:Object,"function"==typeof(k=void 0!==O.A&&O.A)?k:Object])],P);const j=P},2206:(e,t,r)=>{"use strict";var s=r(9046),n=r(2782),o=r(6845),i=r(1386);t.composeDoc=function(e,t,{offset:r,start:a,value:c,end:u},l){const p=Object.assign({_directives:t},e),d=new s.Document(void 0,p),h={atKey:!1,atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},f=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:l,parentIndent:0,startOnNewline:!0});f.found&&(d.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||f.hasNewline||l(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=c?n.composeNode(h,c,f,l):n.composeEmptyNode(h,f.end,a,null,f,l);const m=d.contents.range[2],g=o.resolveEnd(u,m,!1,l);return g.comment&&(d.comment=g.comment),d.range=[r,m,g.offset],d}},2291:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(1755),i=r(6010),a=r(6845),c=r(1386),u=r(9378),l=r(8334);const p="Block collections are not allowed within flow collections",d=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},r,h,f,m){const g="{"===h.start.source,y=g?"flow map":"flow sequence",b=new(m?.nodeClass??(g?o.YAMLMap:i.YAMLSeq))(r.schema);b.flow=!0;const v=r.atRoot;v&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let w=h.offset+h.start.source.length;for(let i=0;i<h.items.length;++i){const a=h.items[i],{start:m,key:v,sep:_,value:E}=a,k=c.resolveProps(m,{flow:y,indicator:"explicit-key-ind",next:v??_?.[0],offset:w,onError:f,parentIndent:h.indent,startOnNewline:!1});if(!k.found){if(!(k.anchor||k.tag||_||E)){0===i&&k.comma?f(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):i<h.items.length-1&&f(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),k.comment&&(b.comment?b.comment+="\n"+k.comment:b.comment=k.comment),w=k.end;continue}!g&&r.options.strict&&u.containsNewline(v)&&f(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)k.comma&&f(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(k.comma||f(k.start,"MISSING_CHAR",`Missing , between ${y} items`),k.comment){let e="";e:for(const t of m)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=b.items[b.items.length-1];s.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,k.comment=k.comment.substring(e.length+1)}}if(g||_||k.found){r.atKey=!0;const s=k.end,i=v?e(r,v,k,f):t(r,s,m,null,k,f);d(v)&&f(i.range,"BLOCK_IN_FLOW",p),r.atKey=!1;const u=c.resolveProps(_??[],{flow:y,indicator:"map-value-ind",next:E,offset:i.range[2],onError:f,parentIndent:h.indent,startOnNewline:!1});if(u.found){if(!g&&!k.found&&r.options.strict){if(_)for(const e of _){if(e===u.found)break;if("newline"===e.type){f(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<u.found.offset-1024&&f(u.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&":"===E.source[0]?f(E,"MISSING_CHAR",`Missing space after : in ${y}`):f(u.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const T=E?e(r,E,u,f):u.found?t(r,u.end,_,null,u,f):null;T?d(E)&&f(T.range,"BLOCK_IN_FLOW",p):u.comment&&(i.comment?i.comment+="\n"+u.comment:i.comment=u.comment);const O=new n.Pair(i,T);if(r.options.keepSourceTokens&&(O.srcToken=a),g){const e=b;l.mapIncludes(r,e.items,i)&&f(s,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(O)}else{const e=new o.YAMLMap(r.schema);e.flow=!0,e.items.push(O);const t=(T??i).range;e.range=[i.range[0],t[1],t[2]],b.items.push(e)}w=T?T.range[2]:u.end}else{const s=E?e(r,E,k,f):t(r,k.end,_,null,k,f);b.items.push(s),w=s.range[2],d(E)&&f(s.range,"BLOCK_IN_FLOW",p)}}const _=g?"}":"]",[E,...k]=h.end;let T=w;if(E&&E.source===_)T=E.offset+E.source.length;else{const e=y[0].toUpperCase()+y.substring(1);f(w,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),E&&1!==E.source.length&&k.unshift(E)}if(k.length>0){const e=a.resolveEnd(k,T,r.options.strict,f);e.comment&&(b.comment?b.comment+="\n"+e.comment:b.comment=e.comment),b.range=[h.offset,T,e.offset]}else b.range=[h.offset,T,T];return b}},2503:e=>{const t={};null!=process.env.DOTENV_CONFIG_ENCODING&&(t.encoding=process.env.DOTENV_CONFIG_ENCODING),null!=process.env.DOTENV_CONFIG_PATH&&(t.path=process.env.DOTENV_CONFIG_PATH),null!=process.env.DOTENV_CONFIG_QUIET&&(t.quiet=process.env.DOTENV_CONFIG_QUIET),null!=process.env.DOTENV_CONFIG_DEBUG&&(t.debug=process.env.DOTENV_CONFIG_DEBUG),null!=process.env.DOTENV_CONFIG_OVERRIDE&&(t.override=process.env.DOTENV_CONFIG_OVERRIDE),null!=process.env.DOTENV_CONFIG_DOTENV_KEY&&(t.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY),e.exports=t},2557:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(1755);class i extends o.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;t=s.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new n.Pair(e.key,null):new n.Pair(e,null);o.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&s.isPair(r)?s.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=o.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:s}=r,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),o.items.push(n.createPair(e,null,r));return o}}i.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>i.from(e,t,r),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=i,t.set=a},2586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const s=r(8727),n=r(208),o=r(7887),i=r(208),a=r(7870),c=r(3673),u=r(4495),l=r(9029),p=r(2023),d=r(6939),h=r(4227),f=r(8708);function m({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){n.code.es5?e.func(t,l._`${p.default.data}, ${p.default.valCxt}`,s.$async,()=>{e.code(l._`"use strict"; ${g(r,n)}`),function(e,t){e.if(p.default.valCxt,()=>{e.var(p.default.instancePath,l._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,l._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,l._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,l._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{e.var(p.default.instancePath,l._`""`),e.var(p.default.parentData,l._`undefined`),e.var(p.default.parentDataProperty,l._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`{}`)})}(e,n),e.code(o)}):e.func(t,l._`${p.default.data}, ${function(e){return l._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?l._`, ${p.default.dynamicAnchors}={}`:l.nil}}={}`}(n)}`,s.$async,()=>e.code(g(r,n)).code(o))}function g(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?l._`/*# sourceURL=${r} */`:l.nil}function y(e,t){v(e)&&(w(e),b(e))?function(e,t){const{schema:r,gen:s,opts:n}=e;n.$comment&&r.$comment&&E(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=s.const("_errs",p.default.errors);_(e,o),s.var(t,l._`${o} === ${p.default.errors}`)}(e,t):(0,s.boolOrEmptySchema)(e,t)}function b({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function w(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;t.$ref&&s.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return k(e,[],!1,t);const r=(0,n.getSchemaTypes)(e.schema);k(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function E({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(!0===n.$comment)e.code(l._`${p.default.self}.logger.log(${o})`);else if("function"==typeof n.$comment){const r=l.str`${s}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(l._`${p.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function k(e,t,r,s){const{gen:n,schema:a,data:c,allErrors:u,opts:d,self:f}=e,{RULES:m}=f;function g(h){(0,o.shouldUseGroup)(a,h)&&(h.type?(n.if((0,i.checkDataType)(h.type,c,d.strictNumbers)),T(e,h),1===t.length&&t[0]===h.type&&r&&(n.else(),(0,i.reportTypeError)(e)),n.endIf()):T(e,h),u||n.if(l._`${p.default.errors} === ${s||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{S(e.dataTypes,t)||A(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const r=[];for(const s of e.dataTypes)S(t,s)?r.push(s):t.includes("integer")&&"number"===s&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&A(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const s in r){const n=r[s];if("object"==typeof n&&(0,o.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;r.length&&!r.some(e=>O(t,e))&&A(e,`missing type "${r.join(",")}" for keyword "${s}"`)}}}(e,e.dataTypes)}(e,t),n.block(()=>{for(const e of m.rules)g(e);g(m.post)})):n.block(()=>P(e,"$ref",m.all.$ref.definition))}function T(e,t){const{gen:r,schema:s,opts:{useDefaults:n}}=e;n&&(0,a.assignDefaults)(e,t.type),r.block(()=>{for(const r of t.rules)(0,o.shouldUseRule)(s,r)&&P(e,r.keyword,r.definition,t.type)})}function O(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function A(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(w(e),b(e))?function(e){const{schema:t,opts:r,gen:s}=e;m(e,()=>{r.$comment&&t.$comment&&E(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),s.let(p.default.vErrors,null),s.let(p.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",l._`${r}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`)),t.if(l._`${e.evaluated}.dynamicItems`,()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;r.$async?t.if(l._`${p.default.errors} === 0`,()=>t.return(p.default.data),()=>t.throw(l._`new ${n}(${p.default.vErrors})`)):(t.assign(l._`${s}.errors`,p.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:s}){r instanceof l.Name&&e.assign(l._`${t}.props`,r);s instanceof l.Name&&e.assign(l._`${t}.items`,s)}(e),t.return(l._`${p.default.errors} === 0`))}(e)})}(e):m(e,()=>(0,s.topBoolOrEmptySchema)(e))};class ${constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",I(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=l.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,l.or)(l._`${s} === undefined`,t)),e!==l.nil&&r.assign(e,!0),(n.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:s,it:n}=this;return(0,l.or)(function(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return l._`${(0,i.checkDataTypes)(e,t,n.opts.strictNumbers,i.DataType.Wrong)}`}return l.nil}(),function(){if(s.validateSchema){const r=e.scopeValue("validate$data",{ref:s.validateSchema});return l._`!${r}(${t})`}return l.nil}())}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:void 0,props:void 0};return y(s,t),s}mergeEvaluated(e,t){const{it:r,gen:s}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(s,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(s,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return s.if(t,()=>this.mergeEvaluated(e,l.Name)),!0}}function P(e,t,r,s){const n=new $(e,r,t);"code"in r?r.code(n,s):n.$data&&r.validate?(0,c.funcKeywordCode)(n,r):"macro"in r?(0,c.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(n,r)}t.KeywordCxt=$;const j=/^\/(?:[^~]|~0|~1)*$/,R=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function I(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n,o;if(""===e)return p.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=p.default.rootData}else{const i=R.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+i[1];if(n=i[2],"#"===n){if(a>=t)throw new Error(c("property/index",a));return s[t-a]}if(a>t)throw new Error(c("data",a));if(o=r[t-a],!n)return o}let i=o;const a=n.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,h.unescapeJsonPointer)(e))}`,i=l._`${i} && ${o}`);return i;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=I},2596:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const s={parse:e=>e,toString:()=>"string"}},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?s.str`must contain at least ${e} valid item(s)`:s.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?s._`{minContains: ${e}}`:s._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:o,data:i,it:a}=e;let c,u;const{minContains:l,maxContains:p}=o;a.opts.next?(c=void 0===l?1:l,u=p):c=1;const d=t.const("len",s._`${i}.length`);if(e.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,n.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,n.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,n.alwaysValidSchema)(a,r)){let t=s._`${d} >= ${c}`;return void 0!==u&&(t=s._`${t} && ${d} <= ${u}`),void e.pass(t)}a.items=!0;const h=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);m(e,()=>t.if(e,()=>function(e){t.code(s._`${e}++`),void 0===u?t.if(s._`${e} >= ${c}`,()=>t.assign(h,!0).break()):(t.if(s._`${e} > ${u}`,()=>t.assign(h,!1).break()),1===c?t.assign(h,!0):t.if(s._`${e} >= ${c}`,()=>t.assign(h,!0)))}(r)))}function m(r,s){t.forRange("i",0,d,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:!0},r),s()})}void 0===u&&1===c?m(h,()=>t.if(h,()=>t.break())):0===c?(t.let(h,!0),void 0!==u&&t.if(s._`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset())}};t.default=o},2782:(e,t,r)=>{"use strict";var s=r(1736),n=r(484),o=r(18),i=r(9094),a=r(6845),c=r(1040);const u={composeNode:l,composeEmptyNode:p};function l(e,t,r,c){const l=e.atKey,{spaceBefore:d,comment:h,anchor:f,tag:m}=r;let g,y=!0;switch(t.type){case"alias":g=function({options:e},{offset:t,source:r,end:n},o){const i=new s.Alias(r.substring(1));""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string");i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+r.length,u=a.resolveEnd(n,c,e.strict,o);i.range=[t,c,u.offset],u.comment&&(i.comment=u.comment);return i}(e,t,c),(f||m)&&c(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=i.composeScalar(e,t,m,c),f&&(g.anchor=f.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":g=o.composeCollection(u,e,t,r,c),f&&(g.anchor=f.source.substring(1));break;default:c(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),g=p(e,t.offset,void 0,null,r,c),y=!1}if(f&&""===g.anchor&&c(f,"BAD_ALIAS","Anchor cannot be an empty string"),l&&e.options.stringKeys&&(!n.isScalar(g)||"string"!=typeof g.value||g.tag&&"tag:yaml.org,2002:str"!==g.tag)){c(m??t,"NON_STRING_KEY","With stringKeys, all keys must be strings")}return d&&(g.spaceBefore=!0),h&&("scalar"===t.type&&""===t.source?g.comment=h:g.commentBefore=h),e.options.keepSourceTokens&&y&&(g.srcToken=t),g}function p(e,t,r,s,{spaceBefore:n,comment:o,anchor:a,tag:u,end:l},p){const d={type:"scalar",offset:c.emptyScalarPosition(t,r,s),indent:-1,source:""},h=i.composeScalar(e,d,u,p);return a&&(h.anchor=a.source.substring(1),""===h.anchor&&p(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(h.spaceBefore=!0),o&&(h.comment=o,h.range[2]=l),h}t.composeEmptyNode=p,t.composeNode=l},2864:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){const s=t+r>>1;this.lineStarts[s]<e?t=s+1:r=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}},2891:(e,t,r)=>{"use strict";var s=r(3144);const n=e=>"bigint"==typeof e||Number.isInteger(e),o=(e,t,r,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),r);function i(e,t,r){const{value:o}=e;return n(o)&&o>=0?r+o.toString(t):s.stringifyNumber(e)}const a={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>o(e,2,8,r),stringify:e=>i(e,8,"0o")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>o(e,0,10,r),stringify:s.stringifyNumber},u={identify:e=>n(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>o(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=c,t.intHex=u,t.intOct=a},3025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(9029),n=r(4227),o=r(5765);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=1===t?"property":"properties";return s.str`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>s._`{property: ${e},
6
6
  missingProperty: ${n},
7
7
  depsCount: ${t},
8
- deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const s in e){if("__proto__"===s)continue;(Array.isArray(e[s])?t:r)[s]=e[s]}return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:n,it:i}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,o.propertyInData)(r,n,c,i.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(l,()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)}):(r.if(s._`${l} && (${(0,o.checkMissingProp)(e,u,a)})`),(0,o.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:s,keyword:i,it:a}=e,c=r.name("valid");for(const u in t)(0,n.alwaysValidSchema)(a,t[u])||(r.if((0,o.propertyInData)(r,s,u,a.opts.ownProperties),()=>{const t=e.subschema({keyword:i,schemaProp:u},c);e.mergeValidEvaluated(t,c)},()=>r.var(c,!0)),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=i},3121:(e,t,r)=>{"use strict";r.d(t,{Ni:()=>i,d_:()=>a,i8:()=>c,md:()=>l,o4:()=>u});var s=r(1027),n=r(1170),o=r(6276);const i="milestone",a="label",c="issue",u=new n.A([new s.A(i),new s.A(a),new s.A(c)]);function l(e){return[c,a,i].includes((0,o.A)(e))}},3144:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:r,value:s}){if("bigint"==typeof s)return String(s);const n="number"==typeof s?s:Number(s);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=JSON.stringify(s);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let r=t-(o.length-e-1);for(;r-- >0;)o+="0"}return o}},3282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const s=r(4042),n=r(6144),o=r(6653),i=r(2079),a=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends s.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var l=r(2586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=r(9029);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var d=r(3558);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=r(4551);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},3334:(e,t,r)=>{"use strict";var s=r(484),n=r(1755);const o={collection:"map",default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(s.isMap(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)};t.map=o},3439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>s.str`must be multiple of ${e}`,params:({schemaCode:e})=>s._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),c=i?s._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:s._`${a} !== parseInt(${a})`;e.fail$data(s._`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};t.default=n},3463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},3558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},3673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const s=r(9029),n=r(2023),o=r(5765),i=r(8708);function a(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,s._`${n.parentData}[${n.parentDataProperty}]`))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,s.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=e,u=t.macro.call(a.self,o,i,a),l=c(r,n,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const p=r.name("valid");e.subschema({schema:u,schemaPath:s.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},p),e.pass(p,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;const{gen:u,keyword:l,schema:p,parentSchema:d,$data:h,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const m=!h&&t.compile?t.compile.call(f.self,p,d,f):t.validate,g=c(u,l,m),y=u.let("valid");function b(r=(t.async?s._`await `:s.nil)){const i=f.opts.passContext?n.default.this:n.default.self,a=!("compile"in t&&!h||!1===t.schema);u.assign(y,s._`${r}${(0,o.callValidateCode)(e,g,i,a)}`,t.modifying)}function v(e){var r;u.if((0,s.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,function(){if(!1===t.errors)b(),t.modifying&&a(e),v(()=>e.error());else{const r=t.async?function(){const e=u.let("ruleErrs",null);return u.try(()=>b(s._`await `),t=>u.assign(y,!1).if(s._`${t} instanceof ${f.ValidationError}`,()=>u.assign(e,s._`${t}.errors`),()=>u.throw(t))),e}():function(){const e=s._`${g}.errors`;return u.assign(e,null),b(s.nil),e}();t.modifying&&a(e),v(()=>function(e,t){const{gen:r}=e;r.if(s._`Array.isArray(${t})`,()=>{r.assign(n.default.vErrors,s._`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,s._`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}(e,r))}}),e.ok(null!==(r=t.valid)&&void 0!==r?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");const i=n.dependencies;if(null==i?void 0:i.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${i.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},3693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const s=r(4551),n=r(5765),o=r(9029),i=r(2023),a=r(3835),c=r(4227),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:c,validateName:u,opts:d,self:h}=n,{root:f}=c;if(("#"===r||"#/"===r)&&i===f.baseId)return function(){if(c===f)return p(e,u,c,c.$async);const r=t.scopeValue("root",{ref:f});return p(e,o._`${r}.validate`,f,f.$async)}();const m=a.resolveRef.call(h,f,i,r);if(void 0===m)throw new s.default(n.opts.uriResolver,i,r);return m instanceof a.SchemaEnv?function(t){const r=l(e,t);p(e,r,t,t.$async)}(m):function(s){const n=t.scopeValue("schema",!0===d.code.source?{ref:s,code:(0,o.stringify)(s)}:{ref:s}),i=t.name("valid"),a=e.subschema({schema:s,dataTypes:[],schemaPath:o.nil,topSchemaRef:n,errSchemaPath:r},i);e.mergeEvaluated(a),e.ok(i)}(m)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function p(e,t,r,s){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:p,opts:d}=u,h=d.passContext?i.default.this:o.nil;function f(e){const t=o._`${e}.errors`;a.assign(i.default.vErrors,o._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),a.assign(i.default.errors,o._`${i.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const s=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(s&&!s.dynamicProps)void 0!==s.props&&(u.props=c.mergeEvaluated.props(a,s.props,u.props));else{const t=a.var("props",o._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,o.Name)}if(!0!==u.items)if(s&&!s.dynamicItems)void 0!==s.items&&(u.items=c.mergeEvaluated.items(a,s.items,u.items));else{const t=a.var("items",o._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,o.Name)}}s?function(){if(!p.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try(()=>{a.code(o._`await ${(0,n.callValidateCode)(e,t,h)}`),m(t),l||a.assign(r,!0)},e=>{a.if(o._`!(${e} instanceof ${u.ValidationError})`,()=>a.throw(e)),f(e),l||a.assign(r,!1)}),e.ok(r)}():e.result((0,n.callValidateCode)(e,t,h),()=>m(t),()=>f(t))}t.getValidate=l,t.callRef=p,t.default=u},3732:(e,t,r)=>{"use strict";var s=r(484);t.toJS=function e(t,r,n){if(Array.isArray(t))return t.map((t,r)=>e(t,String(r),n));if(t&&"function"==typeof t.toJSON){if(!n||!s.hasAnchor(t))return t.toJSON(r,n);const e={aliasCount:0,count:1,res:void 0};n.anchors.set(t,e),n.onCreate=t=>{e.res=t,delete n.onCreate};const o=t.toJSON(r,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof t||n?.keep?t:Number(t)}},3793:(e,t,r)=>{"use strict";var s=r(6261),n=r(484),o=r(248),i=r(7180);t.createStringifyContext=function(e,t){const r=Object.assign({blockQuote:!0,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let s;switch(r.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:s,options:r}},t.stringify=function(e,t,r,o){if(n.isPair(e))return e.toString(t,r,o);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a??(a=function(e,t){if(t.tag){const r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}let r,s;if(n.isScalar(t)){s=t.value;let n=e.filter(e=>e.identify?.(s));if(n.length>1){const e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else s=t,r=e.find(e=>e.nodeClass&&s instanceof e.nodeClass);if(!r)throw new Error(`Tag not resolved for ${s?.constructor?.name??(null===s?"null":typeof s)} value`);return r}(t.doc.schema.tags,c));const u=function(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[],a=(n.isScalar(e)||n.isCollection(e))&&e.anchor;a&&s.anchorIsValid(a)&&(r.add(a),i.push(`&${a}`));const c=e.tag??(t.default?null:t.tag);return c&&i.push(o.directives.tagString(c)),i.join(" ")}(c,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(c,t,r,o):n.isScalar(c)?i.stringifyString(c,t,r,o):c.toString(t,r,o);return u?n.isScalar(c)||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}},3835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(9029),n=r(3558),o=r(2023),i=r(6939),a=r(4227),c=r(2586);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const r=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:u}=this.opts.code,{ownProperties:l}=this.opts,p=new s.CodeGen(this.scope,{es5:a,lines:u,ownProperties:l});let h;e.$async&&(h=p.scopeValue("Error",{ref:n.default,code:s._`require("ajv/dist/runtime/validation_error").default`}));const f=p.scopeName("validate");e.validateName=f;const m={gen:p,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:s._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),p.optimize(this.opts.code.optimize);const t=p.toString();g=`${p.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,g)(this,this.scope.get());if(this.scope.value(f,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:f,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof s.Name?void 0:e,items:t instanceof s.Name?void 0:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name},r.source&&(r.source.evaluated=(0,s.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function p(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const t of this._compilations)if(h(t,e))return t}function h(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function f(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=this.opts.uriResolver.parse(t),s=(0,i._getFullPath)(this.opts.uriResolver,r);let n=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===n)return y.call(this,r,e);const o=(0,i.normalizeId)(s),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=m.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,i.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,s=t[r];return s&&(n=(0,i.resolveUrl)(this.opts.uriResolver,n,s)),new u({schema:t,schemaId:r,root:e,baseId:n})}return y.call(this,r,a)}}t.SchemaEnv=u,t.compileSchema=l,t.resolveRef=function(e,t,r){var s;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let o=f.call(this,e,r);if(void 0===o){const n=null===(s=e.localRefs)||void 0===s?void 0:s[r],{schemaId:i}=this.opts;n&&(o=new u({schema:n,schemaId:i,root:e,baseId:t}))}return void 0!==o?e.refs[r]=p.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=m;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:s}){var n;if("/"!==(null===(n=e.fragment)||void 0===n?void 0:n[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(s)];if(void 0===e)return;const n="object"==typeof(r=e)&&r[this.opts.schemaId];!g.has(s)&&n&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,n))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=m.call(this,s,e)}const{schemaId:c}=this.opts;return o=o||new u({schema:r,schemaId:c,root:s,baseId:t}),o.schema!==o.root.schema?o:void 0}},3837:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3853:(e,t)=>{"use strict";function r(e){const t=e.length;let r,s=0,n=0;for(;n<t;)s++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},3966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(5765),i=r(5457),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>s.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>s._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:s}=e,{prefixItems:a}=r;s.items=!0,(0,n.alwaysValidSchema)(s,t)||(a?(0,i.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},3989:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(6276);class n{get all(){return Array.from(this.#l.values())}#l=new Map;add(e,t){this.#l.set(e,(0,s.A)(t))}get(e){return this.#l.get(e)}resolve(e,t){function r(e){return e.replaceAll(/\\/gu,"/").replaceAll(/\.\.\//gu,"")}t?.debug(`Resolving entity schema for path: ${e}`);const s=r(e);return t?.debug(`Normalized path for resolution: ${s}`),Array.from(this.#l.values()).find(e=>{const n=r(e.filePath);return t?.debug(`Comparing with schema file path: ${n}`),n.includes(s)})}}},4003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(4227),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>n.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>n._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:i,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===r.length)return;const p=r.length>=l.loopRequired;if(u.allErrors?function(){if(p||c)e.block$data(n.nil,d);else for(const t of r)(0,s.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(p||c){const r=t.let("valid",!0);e.block$data(r,()=>function(r,o){e.setParams({missingProperty:r}),t.forOf(r,i,()=>{t.assign(o,(0,s.propertyInData)(t,a,r,l.ownProperties)),t.if((0,n.not)(o),()=>{e.error(),t.break()})},n.nil)}(o,r)),e.ok(r)}else t.if((0,s.checkMissingProp)(e,r,o)),(0,s.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:s}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!s.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function d(){t.forOf("prop",i,r=>{e.setParams({missingProperty:r}),t.if((0,s.noPropertyInData)(t,a,r,l.ownProperties),()=>e.error())})}}};t.default=i},4042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var s=r(2586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return s.KeywordCxt}});var n=r(9029);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=r(3558),i=r(4551),a=r(396),c=r(3835),u=r(9029),l=r(6939),p=r(208),d=r(4227),h=r(3837),f=r(5944),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,s,n,o,i,a,c,u,l,p,d,h,g,y,b,v,w,_,E,k,T,O,S,A;const $=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,j=!0===P||void 0===P?1:P||0,R=null!==(s=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==s?s:m,I=null!==(n=e.uriResolver)&&void 0!==n?n:f.default;return{strictSchema:null===(i=null!==(o=e.strictSchema)&&void 0!==o?o:$)||void 0===i||i,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:$)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:$)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(p=e.strictTuples)&&void 0!==p?p:$)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(h=e.strictRequired)&&void 0!==h?h:$)&&void 0!==g&&g,code:e.code?{...e.code,optimize:j,regExp:R}:{optimize:j,regExp:R},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(E=e.schemaId)&&void 0!==E?E:"$id",addUsedSchema:null===(k=e.addUsedSchema)||void 0===k||k,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(O=e.validateFormats)||void 0===O||O,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(A=e.int32range)||void 0===A||A,uriResolver:I}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:y,es5:t,lines:r}),this.logger=function(e){if(!1===e)return $;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),E.call(this,b,e,"NOT SUPPORTED"),E.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=A.call(this),e.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),T.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=h;"id"===r&&(s={...h},s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const s=r(t);return"$async"in r||(this.errors=r.errors),s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function n(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await n.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,s);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,s,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,s=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=k.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(j.call(this,r,t),!t)return(0,d.eachItem)(r,e=>R.call(this,e)),this;C.call(this,t);const s={...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===s.type.length?e=>R.call(this,e,s):e=>s.type.forEach(t=>R.call(this,e,s,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,o=n[e];s&&o&&(n[e]=x(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];t&&!t.test(r)||("string"==typeof s?delete e[r]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[r]))}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:i}=this.opts;if("object"==typeof e)o=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,l.normalizeId)(o||r);const u=l.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),s&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function E(e,t,r,s="error"){for(const n in e){const o=n;o in t&&this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function T(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function O(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function A(){const e={...this.opts};for(const t of g)delete e[t];return e}_.ValidationError=o.default,_.MissingRefError=i.default,t.default=_;const $={log(){},warn(){},error(){}};const P=/^[a-z_$][a-z0-9_$:-]*$/i;function j(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,r){var s;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let i=n?o.post:o.rules.find(({type:e})=>e===r);if(i||(i={type:r,rules:[]},o.rules.push(i)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)}};t.before?I.call(this,i,a,t.before):i.rules.push(a),o.all[e]=a,null===(s=t.implements)||void 0===s||s.forEach(e=>this.addKeyword(e))}function I(e,t,r){const s=e.rules.findIndex(e=>e.keyword===r);s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function C(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=x(t)),e.validateSchema=this.compile(t,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function x(e){return{anyOf:[e,N]}}},4070:(e,t,r)=>{"use strict";var s=r(9714);t.resolveBlockScalar=function(e,t,r){const n=t.offset,o=function({offset:e,props:t},r,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:n}=t[0],o=n[0];let i=0,a="",c=-1;for(let t=1;t<n.length;++t){const r=n[t];if(a||"-"!==r&&"+"!==r){const s=Number(r);!i&&s?i=s:-1===c&&(c=e+t)}else a=r}-1!==c&&s(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let u=!1,l="",p=n.length;for(let e=1;e<t.length;++e){const n=t[e];switch(n.type){case"space":u=!0;case"newline":p+=n.source.length;break;case"comment":if(r&&!u){s(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}p+=n.source.length,l=n.source.substring(1);break;case"error":s(n,"UNEXPECTED_TOKEN",n.message),p+=n.source.length;break;default:{s(n,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${n.type}`);const e=n.source;e&&"string"==typeof e&&(p+=e.length)}}}return{mode:o,indent:i,chomp:a,comment:l,length:p}}(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=">"===o.mode?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL,a=t.source?function(e){const t=e.split(/\n( *)/),r=t[0],s=r.match(/^( *)/),n=[s?.[1]?[s[1],r.slice(s[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)n.push([t[e],t[e+1]]);return n}(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const e="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=n+o.length;return t.source&&(r+=t.source.length),{value:e,type:i,comment:o.comment,range:[n,r,r]}}let u=t.indent+o.indent,l=t.offset+o.length,p=0;for(let t=0;t<c;++t){const[s,n]=a[t];if(""!==n&&"\r"!==n){if(s.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(l+s.length,"MISSING_CHAR",e)}if(0===o.indent&&(u=s.length),p=t,0===u&&!e.atRoot){r(l,"BAD_INDENT","Block scalar values in collections must be indented")}break}0===o.indent&&s.length>u&&(u=s.length),l+=s.length+n.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>u&&(c=e+1);let d="",h="",f=!1;for(let e=0;e<p;++e)d+=a[e][0].slice(u)+"\n";for(let e=p;e<c;++e){let[t,n]=a[e];l+=t.length+n.length+1;const c="\r"===n[n.length-1];if(c&&(n=n.slice(0,-1)),n&&t.length<u){const e=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;r(l-n.length-(c?2:1),"BAD_INDENT",e),t=""}i===s.Scalar.BLOCK_LITERAL?(d+=h+t.slice(u)+n,h="\n"):t.length>u||"\t"===n[0]?(" "===h?h="\n":f||"\n"!==h||(h="\n\n"),d+=h+t.slice(u)+n,h="\n",f=!0):""===n?"\n"===h?d+="\n":h="\n":(d+=h+n,h=" ",f=!1)}switch(o.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)d+="\n"+a[e][0].slice(u);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}const m=n+o.length+t.source.length;return{value:d,type:i,comment:o.comment,range:[n,m,m]}}},4078:(e,t,r)=>{"use strict";r.d(t,{w_:()=>a,jm:()=>c,W4:()=>u,dy:()=>i,Ay:()=>l});var s=r(4523),n=r(6276);function o(e,t){return(0,n.A)(Object.fromEntries(Object.entries(e).filter(([e])=>e!==t)))}const i="new",a="clean",c="dirty",u="killed";class l{cookie;hash;preserveHash=!1;schema;storage;get entity(){return this.#p}get newUniqueKeys(){const e=[];for(const t of this.schema.newUniqueProperties){const r=this.#p[t];"number"!=typeof r&&"string"!=typeof r||e.push(r)}return e}get notHasPrimaryKey(){return null===this.primaryKey}get preferredUniqueKey(){const e=this.primaryKey;if(null!==e)return e;const t=this.uniqueKeys;if(t.length>0)return t[0]??null;const r=this.newUniqueKeys;return r.length>0?r[0]??null:null}get primaryKey(){for(const[e,t]of Object.entries(this.schema.properties))if(t.primaryKey){const t=this.#p[e];if("number"==typeof t||"string"==typeof t)return t}return null}get state(){return this.#d}get uniqueKeys(){const e=[];for(const t of this.schema.uniqueProperties){const r=this.#p[t];"number"!=typeof r&&"string"!=typeof r||e.push(r)}return e}#p;#d;constructor({cookie:e,entity:t,hash:r,schema:s,state:n,storage:o}){this.schema=s,this.#p=Object.freeze({...t}),this.hash=r,this.cookie=e,this.#d=n??"detached",this.storage=o}clean(e){if(![a,c,i].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be changed.`);return this.#p=Object.freeze({...e}),this.#d=a,this}delete(){if(![a,c,u].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be killed.`);return this.#d=u,this}freeOf(e){if(![a,c].includes(this.#d))return this;if(!this.schema.references.includes(e.schema.type))return this;for(const[t,r]of Object.entries(this.schema.properties))if(r.reference===e.schema.type)if(Array.isArray(this.#p[t])){const s=this.#p[t];if(e.uniqueKeys.some(e=>s.includes(e))){const s=this.#p[t].filter(t=>!e.uniqueKeys.includes((0,n.A)(t)));0!==s.length||r.required?this.#p=Object.freeze({...this.#p,[t]:s}):this.#p=(0,n.A)(Object.freeze(Object.fromEntries(Object.entries(this.#p).filter(([e])=>e!==t)))),this.#d!==i&&(this.#d=c)}}else if(e.uniqueKeys.includes((0,n.A)(this.#p[t]))){if(r.required)throw new Error(`Can't free "${this.schema.type}" from "${e.schema.type}" reference in the required property "${t}".`);this.#p=(0,n.A)(Object.freeze(Object.fromEntries(Object.entries(this.#p).filter(([e])=>e!==t)))),this.#d!==i&&(this.#d=c)}return this}async getFreeOfNonPrimaryKeyDependeciesEntity(){let e=(0,n.A)({...this.#p});for(const[t,r]of Object.entries(this.schema.properties))if(!(0,s.b0)(r.reference))if(Array.isArray(e[t])){const r=[],n=await this.references(t);for(const e of n)((0,s.Kg)(e.primaryKey)||(0,s.Et)(e.primaryKey))&&(r.includes(e.primaryKey)||r.push(e.primaryKey));e={...e,[t]:r}}else{const n=await this.reference(t);if((0,s.kZ)(n)||n.notHasPrimaryKey){if(r.required)throw new Error(`Can't free "${this.schema.type}" from "${r.reference}" reference in the required property "${t}".`);e=o(e,t)}}return e}merge(e){let t={...this.#p};for(const[r,n]of Object.entries(this.schema.properties))r in e&&(t=!(0,s.b0)(n.reference)&&(0,s.L)(e[r])?{...t,[r]:(0,s.sb)([...(0,s.L)(t[r])?t[r]:[],...e[r]])}:{...t,[r]:e[r]});this.#p=Object.freeze(t),[a,c].includes(this.#d)&&(this.#d=c)}async oneReference(e,t){const r=this.schema.properties[e];if((0,s.b0)(r)||(0,s.b0)(r.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const o=this.#p[e];if((0,s.b0)(o)||(0,s.kZ)(o))return null;if(!(0,s.L)(o))throw new Error(`Property "${e}" value is not an array of primary keys of the referenced entity type "${r.reference}".`);const i=this.storage.entitySchemaRegistry.get(r.reference);if((0,s.b0)(i))throw new Error(`Referenced entity type schema "${r.reference}" not found in the registry.`);const a=[...(0,s.Kg)(i.primaryKeyProperty)?[i.primaryKeyProperty]:[],...i.uniqueProperties,...i.newUniqueProperties];for(const e of a){const o=await this.storage.one(r.reference,(0,n.A)({[e]:t}));if(!(0,s.b0)(o))return o}return null}async reference(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.#p[e];if((0,s.b0)(r)||(0,s.kZ)(r))return null;if(!(0,s.Kg)(r)&&!(0,s.Et)(r))throw new Error(`Property "${e}" value is not a primary key of the referenced entity type "${t.reference}".`);const o=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(o))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);const i=[...(0,s.Kg)(o.primaryKeyProperty)?[o.primaryKeyProperty]:[],...o.uniqueProperties,...o.newUniqueProperties];for(const e of i){const o=await this.storage.one(t.reference,(0,n.A)({[e]:r}));if(!(0,s.b0)(o))return o}return null}async references(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.#p[e];if((0,s.b0)(r)||(0,s.kZ)(r))return[];if(!(0,s.L)(r))throw new Error(`Property "${e}" value is not an array of primary keys of the referenced entity type "${t.reference}".`);const o=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(o))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);const i=[...(0,s.Kg)(o.primaryKeyProperty)?[o.primaryKeyProperty]:[],...o.uniqueProperties,...o.newUniqueProperties],a=[];for(const o of r){if(!(0,s.Kg)(o)&&!(0,s.Et)(o))throw new Error(`Property "${e}" value is not a primary key of the referenced entity type "${t.reference}".`);for(const e of i){const r=await this.storage.one(t.reference,(0,n.A)({[e]:o}));(0,s.b0)(r)||a.includes(r)||a.push(r)}}return a}substitute(e){if(![a,c].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be changed.`);return this.#p=Object.freeze({...e}),this.#d=c,this}async tryBringDependenciesToPrimaryKeys(){let e=!0;for(const[t,r]of Object.entries(this.schema.properties))(0,s.b0)(r.reference)||await this.#h(t)||(e=!1);return e}async#h(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(r))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);if((0,s.kZ)(r.primaryKeyProperty))return!1;if(0===r.uniqueProperties.length&&0===r.newUniqueProperties.length)return!0;if((0,s.b0)(this.#p[e])||(0,s.kZ)(this.#p[e]))return!0;if(Array.isArray(this.#p[e])){const t=[];let o=!0;for(const n of this.#p[e]){if((0,s.Et)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("number")){t.push(n);continue}if((0,s.Kg)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("string")){t.push(n);continue}if(!(0,s.Et)(n)||!(0,s.Kg)(n)){t.push(n),o=!1;continue}const i=await this.oneReference(e,n);((0,s.kZ)(i)||i.notHasPrimaryKey)&&(o=!1),t.push(i?.primaryKey??n)}return this.#p=(0,n.A)({...this.#p,[e]:t}),o}if((0,s.Et)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("number"))return!0;if((0,s.Kg)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("string"))return!0;const o=await this.reference(e);return!(0,s.kZ)(o)&&!o.notHasPrimaryKey&&(this.#p=(0,n.A)({...this.#p,[e]:o.primaryKey}),!0)}}},4200:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(325),n=r(4523),o=r(5458),i=r(4421);class a extends i.Ay{async delete(e){await this.octokit.rest.issues.deleteMilestone({milestone_number:(0,o.A)(e.number),owner:this.owner,repo:this.repo})}async get(e){try{return c((await this.octokit.rest.issues.getMilestone({milestone_number:(0,o.A)(e.number),owner:this.owner,repo:this.repo})).data)}catch(e){if(e instanceof s.G&&404===e.status)return;throw e}}async set(e){return(0,n.b0)(e.number)?c((await this.octokit.rest.issues.createMilestone({description:e.description,due_on:e.dueDate??"",owner:this.owner,repo:this.repo,state:e.state,title:(0,o.A)(e.title)})).data):c((await this.octokit.rest.issues.updateMilestone({description:e.description,due_on:e.dueDate,milestone_number:e.number,owner:this.owner,repo:this.repo,state:e.state,title:e.title})).data)}}function c(e){const t={number:e.number,state:e.state,title:e.title};return null!==e.description&&(t.description=e.description),null!==e.due_on&&(t.dueDate=e.due_on),t}},4227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(9029),n=r(1520);function o(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=s.RULES.keywords;for(const r in t)n[r]||f(e,`unknown keyword: "${r}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,a,c)=>{const u=void 0===a?i:a instanceof s.Name?(i instanceof s.Name?e(o,i,a):t(o,i,a),a):i instanceof s.Name?(t(o,a,i),i):r(i,a);return c!==s.Name||u instanceof s.Name?u:n(o,u)}}function l(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",s._`{}`);return void 0!==t&&p(e,r,t),r}function p(e,t,r){Object.keys(r).forEach(r=>e.assign(s._`${t}${(0,s.getProperty)(r)}`,!0))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=i,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return s._`${r}`}return s._`${e}${t}${(0,s.getProperty)(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,()=>{e.if(s._`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,s._`${r} || {}`).code(s._`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,s._`${r} || {}`),p(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:u({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,()=>e.assign(r,s._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,()=>e.assign(r,!0===t||s._`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=p;const d={};var h;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new n._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h||(t.Type=h={})),t.getErrorPath=function(e,t,r){if(e instanceof s.Name){const n=t===h.Num;return r?n?s._`"[" + ${e} + "]"`:s._`"['" + ${e} + "']"`:n?s._`"/" + ${e}`:s._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,s.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=f},4355:(e,t)=>{"use strict";class r extends Error{constructor(e,t,r,s){super(),this.name=e,this.code=r,this.message=s,this.pos=t}}t.YAMLError=r,t.YAMLParseError=class extends r{constructor(e,t,r){super("YAMLParseError",e,t,r)}},t.YAMLWarning=class extends r{constructor(e,t,r){super("YAMLWarning",e,t,r)}},t.prettifyError=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));const{line:s,col:n}=r.linePos[0];r.message+=` at line ${s}, column ${n}`;let o=n-1,i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e),o-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),s>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];t&&t.line===s&&t.col>n&&(e=Math.max(1,Math.min(t.col-n,80-o)));const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}}},4421:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Vn});var s=r(1421);function n(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function o(e,t,r,s){if("function"!=typeof r)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(t)?t.reverse().reduce((t,r)=>o.bind(null,e,r,t,s),r)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,s),r)():r(s))}function i(e,t,r,s){const n=s;e.registry[r]||(e.registry[r]=[]),"before"===t&&(s=(e,t)=>Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))),"after"===t&&(s=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then(e=>(r=e,n(r,t))).then(()=>r)}),"error"===t&&(s=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>n(e,t))),e.registry[r].push({hook:s,orig:n})}function a(e,t,r){if(!e.registry[t])return;const s=e.registry[t].map(e=>e.orig).indexOf(r);-1!==s&&e.registry[t].splice(s,1)}const c=Function.bind,u=c.bind(c);function l(e,t,r){const s=u(a,null).apply(null,r?[t,r]:[t]);e.api={remove:s},e.remove=s,["before","error","after","wrap"].forEach(s=>{const n=r?[t,s,r]:[t,s];e[s]=e.api[s]=u(i,null).apply(null,n)})}const p={Singular:function(){const e=Symbol("Singular"),t={registry:{}},r=o.bind(null,t,e);return l(r,t,e),r},Collection:function(){const e={registry:{}},t=o.bind(null,e);return l(t,e),t}};var d=`octokit-endpoint.js/0.0.0-development ${n()}`;function h(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=h(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function f(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function m(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},f(r),f(r.headers);const n=h(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var g=/\{[^{}}]+\}/g;function y(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function b(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function v(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function w(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function _(e,t,r){return t="+"===e||"#"===e?v(t):w(t),r?w(r)+"="+t:t}function E(e){return null!=e}function k(e){return";"===e||"&"===e||"?"===e}function T(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(E(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(_(t,n,k(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(E).forEach(function(e){o.push(_(t,e,k(t)?r:""))}):Object.keys(n).forEach(function(e){E(n[e])&&o.push(_(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(E).forEach(function(r){e.push(_(t,r))}):Object.keys(n).forEach(function(r){E(n[r])&&(e.push(w(r)),e.push(_(t,n[r].toString())))}),k(t)?o.push(w(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?E(n)&&o.push(w(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(w(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return v(n)}),"/"===e?e:e.replace(/\/$/,"")}function O(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=b(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(g);return t?t.map(y).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:T.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=b(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function S(e,t,r){return O(m(e,t,r))}var A=function e(t,r){const s=m(t,r),n=S.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:m.bind(null,s),parse:O})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:""}}),$=r(6773);class P extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var j={headers:{"user-agent":`octokit-request.js/10.0.7 ${n()}`}};var R=()=>"";async function I(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new P(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new P(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await C(i),new P("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await C(i),new P(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await C(i):i.body,l}async function C(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(R);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(R):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var N=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return I(s.parse(n));const o=(e,t)=>I(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(A,j);function x(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var D=`octokit-endpoint.js/0.0.0-development ${x()}`;function q(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=q(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function G(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function L(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},G(r),G(r.headers);const n=q(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var F=/\{[^{}}]+\}/g;function U(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function M(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function K(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function B(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function V(e,t,r){return t="+"===e||"#"===e?K(t):B(t),r?B(r)+"="+t:t}function z(e){return null!=e}function W(e){return";"===e||"&"===e||"?"===e}function H(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(z(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(V(t,n,W(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(z).forEach(function(e){o.push(V(t,e,W(t)?r:""))}):Object.keys(n).forEach(function(e){z(n[e])&&o.push(V(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(z).forEach(function(r){e.push(V(t,r))}):Object.keys(n).forEach(function(r){z(n[r])&&(e.push(B(r)),e.push(V(t,n[r].toString())))}),W(t)?o.push(B(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?z(n)&&o.push(B(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(B(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return K(n)}),"/"===e?e:e.replace(/\/$/,"")}function J(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=M(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(F);return t?t.map(U).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:H.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=M(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Y(e,t,r){return J(L(e,t,r))}var Q=function e(t,r){const s=L(t,r),n=Y.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:L.bind(null,s),parse:J})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":D},mediaType:{format:""}});class Z extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var X={headers:{"user-agent":`octokit-request.js/10.0.7 ${x()}`}};var ee=()=>"";async function te(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Z(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Z(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await re(i),new Z("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await re(i),new Z(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await re(i):i.body,l}async function re(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(ee);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(ee):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var se=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return te(s.parse(n));const o=(e,t)=>te(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Q,X);var ne=class extends Error{constructor(e,t,r){super("Request failed due to following response errors:\n"+r.errors.map(e=>` - ${e.message}`).join("\n")),this.request=e,this.headers=t,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},oe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],ie=["query","method","url"],ae=/\/api\/v3\/?$/;function ce(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if(r){if("string"==typeof t&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in r)if(ie.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const s="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(s).reduce((e,t)=>oe.includes(t)?(e[t]=s[t],e):(e.variables||(e.variables={}),e.variables[t]=s[t],e),{}),o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;return ae.test(o)&&(n.url=o.replace(ae,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new ne(n,t,e.data)}return e.data.data})}(r,e,t),{defaults:ce.bind(null,r),endpoint:r.endpoint})}ce(se,{headers:{"user-agent":`octokit-graphql.js/0.0.0-development ${x()}`},method:"POST",url:"/graphql"});var ue="(?:[a-zA-Z0-9_-]+)",le=new RegExp(`^${ue}\\.${ue}\\.${ue}$`),pe=le.test.bind(le);async function de(e){const t=pe(e),r=e.startsWith("v1.")||e.startsWith("ghs_"),s=e.startsWith("ghu_");return{type:"token",token:e,tokenType:t?"app":r?"installation":s?"user-to-server":"oauth"}}async function he(e,t,r,s){const n=t.endpoint.merge(r,s);return n.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(n)}var fe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(de.bind(null,e),{hook:he.bind(null,e)})};const me="7.0.6",ge=()=>{},ye=console.warn.bind(console),be=console.error.bind(console);const ve=`octokit-core.js/${me} ${n()}`;class we{static VERSION=me;static defaults(e){return class extends(this){constructor(...t){const r=t[0]||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null):e(r))}}}static plugins=[];static plugin(...e){const t=this.plugins;return class extends(this){static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){const t=new p.Collection,r={baseUrl:N.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var s;if(r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${ve}`:ve,e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=N.defaults(r),this.graphql=(s=this.request,ce(s,{method:"POST",url:"/graphql"})).defaults(r),this.log=function(e={}){return"function"!=typeof e.debug&&(e.debug=ge),"function"!=typeof e.info&&(e.info=ge),"function"!=typeof e.warn&&(e.warn=ye),"function"!=typeof e.error&&(e.error=be),e}(e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...s}=e,n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const r=fe(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});const n=this.constructor;for(let t=0;t<n.plugins.length;++t)Object.assign(this,n.plugins[t](this,e))}request;graphql;log;hook;auth}function _e(e,t,r){const s="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),n="function"==typeof t?t:e.request,o=s.method,i=s.headers;let a=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)&&!("total_commits"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,r=e.data.repository_selection,s=e.data.total_count,n=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;const o=Object.keys(e.data)[0],i=e.data[o];return e.data=i,void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=s,e.data.total_commits=n,e}(await n({method:o,url:a,headers:i}));if(a=((e.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!a&&"total_commits"in e.data){const t=new URL(e.url),r=t.searchParams,s=parseInt(r.get("page")||"1",10);s*parseInt(r.get("per_page")||"250",10)<e.data.total_commits&&(r.set("page",String(s+1)),a=t.toString())}return{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function Ee(e,t,r,s){return"function"==typeof r&&(s=r,r=void 0),ke(e,[],_e(e,t,r)[Symbol.asyncIterator](),s)}function ke(e,t,r,s){return r.next().then(n=>{if(n.done)return t;let o=!1;return t=t.concat(s?s(n.value,function(){o=!0}):n.value.data),o?t:ke(e,t,r,s)})}var Te=Object.assign(Ee,{iterator:_e});function Oe(e){return{paginate:Object.assign(Ee.bind(null,e),{iterator:_e.bind(null,e)})}}Oe.VERSION="0.0.0-development";var Se=class extends Error{constructor(e,t){super(((e,t)=>`The cursor at "${e.join(",")}" did not change its value "${t}" after a page transition. Please make sure your that your query is set up correctly.`)(e.pathInQuery,t)),this.pageInfo=e,this.cursorValue=t,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingCursorChangeError"},Ae=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingPageInfo"},$e=e=>"[object Object]"===Object.prototype.toString.call(e);function Pe(e){const t=je(e,"pageInfo");if(0===t.length)throw new Ae(e);return t}var je=(e,t,r=[])=>{for(const s of Object.keys(e)){const n=[...r,s],o=e[s];if($e(o)){if(o.hasOwnProperty(t))return n;const e=je(o,t,n);if(e.length>0)return e}}return[]},Re=(e,t)=>t.reduce((e,t)=>e[t],e),Ie=(e,t,r)=>{const s=t[t.length-1],n=[...t].slice(0,-1),o=Re(e,n);o[s]="function"==typeof r?r(o[s]):r},Ce=e=>e.hasOwnProperty("hasNextPage"),Ne=e=>(t,r={})=>{let s=!0,n={...r};return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0,value:{}};const r=await e.graphql(t,n),o=(e=>{const t=Pe(e);return{pathInQuery:t,pageInfo:Re(e,[...t,"pageInfo"])}})(r),i=(a=o.pageInfo,Ce(a)?a.endCursor:a.startCursor);var a;if(s=(e=>Ce(e)?e.hasNextPage:e.hasPreviousPage)(o.pageInfo),s&&i===n.cursor)throw new Se(o,i);return n={...n,cursor:i},{done:!1,value:r}}})}},xe=(e,t)=>{if(0===Object.keys(e).length)return Object.assign(e,t);const r=Pe(e),s=[...r,"nodes"],n=Re(t,s);n&&Ie(e,s,e=>[...e,...n]);const o=[...r,"edges"],i=Re(t,o);i&&Ie(e,o,e=>[...e,...i]);const a=[...r,"pageInfo"];return Ie(e,a,Re(t,a)),e},De=e=>{const t=Ne(e);return async(e,r={})=>{let s={};for await(const n of t(e,r))s=xe(s,n);return s}};const qe="17.0.0";var Ge={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const Le=new Map;for(const[e,t]of Object.entries(Ge))for(const[r,s]of Object.entries(t)){const[t,n,o]=s,[i,a]=t.split(/ /),c=Object.assign({method:i,url:a},n);Le.has(e)||Le.set(e,new Map),Le.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}const Fe={has:({scope:e},t)=>Le.get(e).has(t),getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty:(e,t,r)=>(Object.defineProperty(e.cache,t,r),!0),deleteProperty:(e,t)=>(delete e.cache[t],!0),ownKeys:({scope:e})=>[...Le.get(e).keys()],set:(e,t,r)=>e.cache[t]=r,get({octokit:e,scope:t,cache:r},s){if(r[s])return r[s];const n=Le.get(t).get(s);if(!n)return;const{endpointDefaults:o,decorations:i}=n;return r[s]=i?function(e,t,r,s,n){const o=e.request.defaults(s);function i(...s){let i=o.endpoint.merge(...s);if(n.mapToData)return i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:void 0}),o(i);if(n.renamed){const[s,o]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${s}.${o}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const i=o.endpoint.merge(...s);for(const[s,o]of Object.entries(n.renamedParameters))s in i&&(e.log.warn(`"${s}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`),o in i||(i[o]=i[s]),delete i[s]);return o(i)}return o(...s)}return Object.assign(i,o)}(e,t,s,o,i):e.request.defaults(o),r[s]}};function Ue(e){const t={};for(const r of Le.keys())t[r]=new Proxy({octokit:e,scope:r,cache:{}},Fe);return t}function Me(e){return{rest:Ue(e)}}Me.VERSION=qe;var Ke=r(8454),Be=r(325);async function Ve(e,t,r,s){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!e.doNotRetry.includes(r.status)){const n=null!=s.request.retries?s.request.retries:e.retries,o=Math.pow((s.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,n,o)}throw r}async function ze(e,t,r,s){const n=new Ke;return n.on("failed",function(t,r){const n=~~t.request.request.retries,o=~~t.request.request.retryAfter;if(s.request.retryCount=r.retryCount+1,n>r.retryCount)return o*e.retryAfterBaseValue}),n.schedule(We.bind(null,e,t,r),s)}async function We(e,t,r,s){const n=await r(r,s);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){return Ve(e,t,new Be.G(n.data.errors[0].message,500,{request:s,response:n}),s)}return n}function He(e,t){const r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry);return r.enabled&&(e.hook.error("request",Ve.bind(null,r,e)),e.hook.wrap("request",ze.bind(null,r,e))),{retry:{retryRequest:(e,t,r)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r}),e)}}}He.VERSION="0.0.0-development";var Je=()=>Promise.resolve();function Ye(e,t,r){return e.retryLimiter.schedule(Qe,e,t,r)}async function Qe(e,t,r){const{pathname:s}=new URL(r.url,"http://github.test"),n=function(e,t){return"PATCH"===e&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||"POST"===e&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||"/login/oauth/access_token"===t)}(r.method,s),o=!n&&"GET"!==r.method&&"HEAD"!==r.method,i="GET"===r.method&&s.startsWith("/search/"),a=s.startsWith("/graphql"),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=6e4),(o||a)&&await e.write.key(e.id).schedule(c,Je),o&&e.triggersNotification(s)&&await e.notifications.key(e.id).schedule(c,Je),i&&await e.search.key(e.id).schedule(c,Je);const u=(n?e.auth:e.global).key(e.id).schedule(c,t,r);if(a){const e=await u;if(null!=e.data.errors&&e.data.errors.some(e=>"RATE_LIMITED"===e.type)){throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data})}}return u}var Ze=function(e){const t=`^(?:${e.map(e=>e.split("/").map(e=>e.startsWith("{")?"(?:.+?)":e).join("/")).map(e=>`(?:${e})`).join("|")})[^/]*$`;return new RegExp(t,"i")}(["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/issues/{issue_number}/sub_issue","/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"]),Xe=Ze.test.bind(Ze),et={};function tt(e,t){const{enabled:r=!0,Bottleneck:s=Ke,id:n="no-id",timeout:o=12e4,connection:i}=t.throttle||{};if(!r)return{};const a={timeout:o};void 0!==i&&(a.connection=i),null==et.global&&function(e,t){et.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t}),et.auth=new e.Group({id:"octokit-auth",maxConcurrent:1,...t}),et.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t}),et.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t}),et.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})}(s,a);const c=Object.assign({clustering:null!=i,triggersNotification:Xe,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new s,id:n,...et},t.throttle);if("function"!=typeof c.onSecondaryRateLimit||"function"!=typeof c.onRateLimit)throw new Error("octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n ");const u={},l=new s.Events(u);return u.on("secondary-limit",c.onSecondaryRateLimit),u.on("rate-limit",c.onRateLimit),u.on("error",t=>e.log.warn("Error in throttling-plugin limit handler",t)),c.retryLimiter.on("failed",async function(t,r){const[s,n,o]=r.args,{pathname:i}=new URL(o.url,"http://github.test");if(!(i.startsWith("/graphql")&&401!==t.status)&&403!==t.status&&429!==t.status)return;const a=~~n.retryCount;n.retryCount=a,o.request.retryCount=a;const{wantRetry:c,retryAfter:u=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||s.fallbackSecondaryRateRetryAfter;return{wantRetry:await l.trigger("secondary-limit",r,o,e,a),retryAfter:r}}if(null!=t.response.headers&&"0"===t.response.headers["x-ratelimit-remaining"]||(t.response.data?.errors??[]).some(e=>"RATE_LIMITED"===e.type)){const r=new Date(1e3*~~t.response.headers["x-ratelimit-reset"]).getTime(),s=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);return{wantRetry:await l.trigger("rate-limit",s,o,e,a),retryAfter:s}}return{}}();return c?(n.retryCount++,u*s.retryAfterBaseValue):void 0}),e.hook.wrap("request",Ye.bind(null,c)),{}}function rt(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}tt.VERSION="0.0.0-development",tt.triggersNotification=Xe;var st=`octokit-endpoint.js/0.0.0-development ${rt()}`;function nt(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=nt(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function ot(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function it(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},ot(r),ot(r.headers);const n=nt(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var at=/\{[^{}}]+\}/g;function ct(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function ut(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function lt(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function pt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function dt(e,t,r){return t="+"===e||"#"===e?lt(t):pt(t),r?pt(r)+"="+t:t}function ht(e){return null!=e}function ft(e){return";"===e||"&"===e||"?"===e}function mt(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(ht(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(dt(t,n,ft(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(ht).forEach(function(e){o.push(dt(t,e,ft(t)?r:""))}):Object.keys(n).forEach(function(e){ht(n[e])&&o.push(dt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(ht).forEach(function(r){e.push(dt(t,r))}):Object.keys(n).forEach(function(r){ht(n[r])&&(e.push(pt(r)),e.push(dt(t,n[r].toString())))}),ft(t)?o.push(pt(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?ht(n)&&o.push(pt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(pt(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return lt(n)}),"/"===e?e:e.replace(/\/$/,"")}function gt(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=ut(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(at);return t?t.map(ct).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:mt.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=ut(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function yt(e,t,r){return gt(it(e,t,r))}var bt=function e(t,r){const s=it(t,r),n=yt.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:it.bind(null,s),parse:gt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":st},mediaType:{format:""}});class vt extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var wt={headers:{"user-agent":`octokit-request.js/10.0.7 ${rt()}`}};var _t=()=>"";async function Et(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new vt(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new vt(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await kt(i),new vt("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await kt(i),new vt(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await kt(i):i.body,l}async function kt(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(_t);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(_t):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Tt=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return Et(s.parse(n));const o=(e,t)=>Et(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(bt,wt);function Ot(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var St=`octokit-endpoint.js/0.0.0-development ${Ot()}`;function At(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=At(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function $t(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Pt(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},$t(r),$t(r.headers);const n=At(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var jt=/\{[^{}}]+\}/g;function Rt(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function It(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Ct(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Nt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function xt(e,t,r){return t="+"===e||"#"===e?Ct(t):Nt(t),r?Nt(r)+"="+t:t}function Dt(e){return null!=e}function qt(e){return";"===e||"&"===e||"?"===e}function Gt(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(Dt(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(xt(t,n,qt(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(Dt).forEach(function(e){o.push(xt(t,e,qt(t)?r:""))}):Object.keys(n).forEach(function(e){Dt(n[e])&&o.push(xt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(Dt).forEach(function(r){e.push(xt(t,r))}):Object.keys(n).forEach(function(r){Dt(n[r])&&(e.push(Nt(r)),e.push(xt(t,n[r].toString())))}),qt(t)?o.push(Nt(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?Dt(n)&&o.push(Nt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Nt(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Ct(n)}),"/"===e?e:e.replace(/\/$/,"")}function Lt(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=It(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(jt);return t?t.map(Rt).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:Gt.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=It(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Ft(e,t,r){return Lt(Pt(e,t,r))}var Ut=function e(t,r){const s=Pt(t,r),n=Ft.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Pt.bind(null,s),parse:Lt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":St},mediaType:{format:""}});class Mt extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var Kt={headers:{"user-agent":`octokit-request.js/10.0.7 ${Ot()}`}};var Bt=()=>"";async function Vt(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Mt(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Mt(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await zt(i),new Mt("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await zt(i),new Mt(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await zt(i):i.body,l}async function zt(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(Bt);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(Bt):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Wt=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return Vt(s.parse(n));const o=(e,t)=>Vt(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Ut,Kt);function Ht(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var Jt=`octokit-endpoint.js/0.0.0-development ${Ht()}`;function Yt(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=Yt(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function Qt(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Zt(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},Qt(r),Qt(r.headers);const n=Yt(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var Xt=/\{[^{}}]+\}/g;function er(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function tr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function rr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function sr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function nr(e,t,r){return t="+"===e||"#"===e?rr(t):sr(t),r?sr(r)+"="+t:t}function or(e){return null!=e}function ir(e){return";"===e||"&"===e||"?"===e}function ar(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(or(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(nr(t,n,ir(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(or).forEach(function(e){o.push(nr(t,e,ir(t)?r:""))}):Object.keys(n).forEach(function(e){or(n[e])&&o.push(nr(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(or).forEach(function(r){e.push(nr(t,r))}):Object.keys(n).forEach(function(r){or(n[r])&&(e.push(sr(r)),e.push(nr(t,n[r].toString())))}),ir(t)?o.push(sr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?or(n)&&o.push(sr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(sr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return rr(n)}),"/"===e?e:e.replace(/\/$/,"")}function cr(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=tr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Xt);return t?t.map(er).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:ar.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=tr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function ur(e,t,r){return cr(Zt(e,t,r))}var lr=function e(t,r){const s=Zt(t,r),n=ur.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Zt.bind(null,s),parse:cr})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Jt},mediaType:{format:""}});class pr extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var dr={headers:{"user-agent":`octokit-request.js/10.0.7 ${Ht()}`}};var hr=()=>"";async function fr(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new pr(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new pr(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await mr(i),new pr("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await mr(i),new pr(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await mr(i):i.body,l}async function mr(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(hr);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(hr):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var gr=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return fr(s.parse(n));const o=(e,t)=>fr(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(lr,dr);function yr(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var br=`octokit-endpoint.js/0.0.0-development ${yr()}`;function vr(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=vr(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function wr(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function _r(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},wr(r),wr(r.headers);const n=vr(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var Er=/\{[^{}}]+\}/g;function kr(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function Tr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Or(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Sr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Ar(e,t,r){return t="+"===e||"#"===e?Or(t):Sr(t),r?Sr(r)+"="+t:t}function $r(e){return null!=e}function Pr(e){return";"===e||"&"===e||"?"===e}function jr(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if($r(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(Ar(t,n,Pr(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter($r).forEach(function(e){o.push(Ar(t,e,Pr(t)?r:""))}):Object.keys(n).forEach(function(e){$r(n[e])&&o.push(Ar(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter($r).forEach(function(r){e.push(Ar(t,r))}):Object.keys(n).forEach(function(r){$r(n[r])&&(e.push(Sr(r)),e.push(Ar(t,n[r].toString())))}),Pr(t)?o.push(Sr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?$r(n)&&o.push(Sr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Sr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Or(n)}),"/"===e?e:e.replace(/\/$/,"")}function Rr(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=Tr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Er);return t?t.map(kr).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:jr.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=Tr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Ir(e,t,r){return Rr(_r(e,t,r))}var Cr=function e(t,r){const s=_r(t,r),n=Ir.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:_r.bind(null,s),parse:Rr})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":br},mediaType:{format:""}});class Nr extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var xr={headers:{"user-agent":`octokit-request.js/10.0.7 ${yr()}`}};var Dr=()=>"";async function qr(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Nr(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Nr(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await Gr(i),new Nr("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await Gr(i),new Nr(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await Gr(i):i.body,l}async function Gr(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(Dr);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(Dr):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Lr=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return qr(s.parse(n));const o=(e,t)=>qr(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Cr,xr);function Fr(e){const t=e.clientType||"oauth-app",r=e.baseUrl||"https://github.com",s={clientType:t,allowSignup:!1!==e.allowSignup,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:""};if("oauth-app"===t){const t="scopes"in e?e.scopes:[];s.scopes="string"==typeof t?t.split(/[,\s]+/).filter(Boolean):t}return s.url=function(e,t){const r={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let s=e;return Object.keys(r).filter(e=>null!==t[e]).filter(e=>"scopes"!==e||"github-app"!==t.clientType&&(!Array.isArray(t[e])||t[e].length>0)).map(e=>[r[e],`${t[e]}`]).forEach(([e,t],r)=>{s+=0===r?"?":"&",s+=`${e}=${encodeURIComponent(t)}`}),s}(`${r}/login/oauth/authorize`,s),s}function Ur(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var Mr=`octokit-endpoint.js/0.0.0-development ${Ur()}`;function Kr(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=Kr(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function Br(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Vr(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},Br(r),Br(r.headers);const n=Kr(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var zr=/\{[^{}}]+\}/g;function Wr(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function Hr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Jr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Yr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Qr(e,t,r){return t="+"===e||"#"===e?Jr(t):Yr(t),r?Yr(r)+"="+t:t}function Zr(e){return null!=e}function Xr(e){return";"===e||"&"===e||"?"===e}function es(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(Zr(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(Qr(t,n,Xr(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(Zr).forEach(function(e){o.push(Qr(t,e,Xr(t)?r:""))}):Object.keys(n).forEach(function(e){Zr(n[e])&&o.push(Qr(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(Zr).forEach(function(r){e.push(Qr(t,r))}):Object.keys(n).forEach(function(r){Zr(n[r])&&(e.push(Yr(r)),e.push(Qr(t,n[r].toString())))}),Xr(t)?o.push(Yr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?Zr(n)&&o.push(Yr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Yr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Jr(n)}),"/"===e?e:e.replace(/\/$/,"")}function ts(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=Hr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(zr);return t?t.map(Wr).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:es.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=Hr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function rs(e,t,r){return ts(Vr(e,t,r))}var ss=function e(t,r){const s=Vr(t,r),n=rs.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Vr.bind(null,s),parse:ts})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Mr},mediaType:{format:""}});class ns extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var os={headers:{"user-agent":`octokit-request.js/10.0.7 ${Ur()}`}};var is=()=>"";async function as(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new ns(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new ns(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await cs(i),new ns("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await cs(i),new ns(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await cs(i):i.body,l}async function cs(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(is);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(is):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var us=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return as(s.parse(n));const o=(e,t)=>as(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(ss,os);function ls(e){const t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?"https://github.com":t.baseUrl.replace("/api/v3","")}async function ps(e,t,r){const s={baseUrl:ls(e),headers:{accept:"application/json"},...r},n=await e(t,s);if("error"in n.data){const r=new ns(`${n.data.error_description} (${n.data.error}, ${n.data.error_uri})`,400,{request:e.endpoint.merge(t,s)});throw r.response=n,r}return n}function ds(e,t){return new Date(e+1e3*t).toISOString()}async function hs(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,device_code:e.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),s={clientType:e.clientType,clientId:e.clientId,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in e&&(s.clientSecret=e.clientSecret),"github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();s.refreshToken=r.data.refresh_token,s.expiresAt=fs(e,r.data.expires_in),s.refreshTokenExpiresAt=fs(e,r.data.refresh_token_expires_in)}delete s.scopes}return{...r,authentication:s}}function fs(e,t){return new Date(e+1e3*t).toISOString()}async function ms(e){const t=e.request||us,r=await t("POST /applications/{client_id}/token",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),s={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:r.data.scopes};return r.data.expires_at&&(s.expiresAt=r.data.expires_at),"github-app"===e.clientType&&delete s.scopes,{...r,authentication:s}}async function gs(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,grant_type:"refresh_token",refresh_token:e.refreshToken}),s=new Date(r.headers.date).getTime(),n={clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,refreshToken:r.data.refresh_token,expiresAt:ys(s,r.data.expires_in),refreshTokenExpiresAt:ys(s,r.data.refresh_token_expires_in)};return{...r,authentication:n}}function ys(e,t){return new Date(e+1e3*t).toISOString()}async function bs(e){const t=e.request||us,r=btoa(`${e.clientId}:${e.clientSecret}`),s=await t("PATCH /applications/{client_id}/token",{headers:{authorization:`basic ${r}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.data.token,scopes:s.data.scopes};return s.data.expires_at&&(n.expiresAt=s.data.expires_at),"github-app"===e.clientType&&delete n.scopes,{...s,authentication:n}}async function vs(e){return(e.request||us)("DELETE /applications/{client_id}/token",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function ws(e){return(e.request||us)("DELETE /applications/{client_id}/grant",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function _s(e,t){const r=function(e,t){if(!0===t.refresh)return!1;if(!e.authentication)return!1;if("github-app"===e.clientType)return e.authentication;const r=e.authentication,s=("scopes"in t&&t.scopes||e.scopes).join(" "),n=r.scopes.join(" ");return s===n&&r}(e,t.auth);if(r)return r;const{data:s}=await async function(e){const t=e.request||us,r={client_id:e.clientId};return"scopes"in e&&Array.isArray(e.scopes)&&(r.scope=e.scopes.join(" ")),ps(t,"POST /login/device/code",r)}({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(s);const n=await ks(t.request||e.request,e.clientId,e.clientType,s);return e.authentication=n,n}async function Es(e){await new Promise(t=>setTimeout(t,1e3*e))}async function ks(e,t,r,s){try{const n={clientId:t,request:e,code:s.device_code},{authentication:o}="oauth-app"===r?await hs({...n,clientType:"oauth-app"}):await hs({...n,clientType:"github-app"});return{type:"token",tokenType:"oauth",...o}}catch(n){if(!n.response)throw n;const o=n.response.data.error;if("authorization_pending"===o)return await Es(s.interval),ks(e,t,r,s);if("slow_down"===o)return await Es(s.interval+7),ks(e,t,r,s);throw n}}async function Ts(e,t){return _s(e,{auth:t})}async function Os(e,t,r,s){let n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);const{token:o}=await _s(e,{request:t,auth:{type:"oauth"}});return n.headers.authorization=`token ${o}`,t(n)}function Ss(e){const t=e.request||Lr.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/0.0.0-development ${yr()}`}}),{request:r=t,...s}=e,n="github-app"===e.clientType?{...s,clientType:"github-app",request:r}:{...s,clientType:"oauth-app",request:r,scopes:e.scopes||[]};if(!e.clientId)throw new Error('[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)');if(!e.onVerification)throw new Error('[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)');return Object.assign(Ts.bind(null,n),{hook:Os.bind(null,n)})}var As="0.0.0-development";async function $s(e){if("code"in e.strategyOptions){const{authentication:t}=await async function(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),s={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();s.refreshToken=r.data.refresh_token,s.expiresAt=ds(e,r.data.expires_in),s.refreshTokenExpiresAt=ds(e,r.data.refresh_token_expires_in)}delete s.scopes}return{...r,authentication:s}}({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:"token",tokenType:"oauth",...t}}if("onVerification"in e.strategyOptions){const t=Ss({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request}),r=await t({type:"oauth"});return{clientSecret:e.clientSecret,...r}}if("token"in e.strategyOptions)return{type:"token",tokenType:"oauth",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw new Error("[@octokit/auth-oauth-user] Invalid strategy options")}async function Ps(e,t={}){if(e.authentication||(e.authentication=(e.clientType,await $s(e))),e.authentication.invalid)throw new Error("[@octokit/auth-oauth-user] Token is invalid");const r=e.authentication;if("expiresAt"in r&&("refresh"===t.type||new Date(r.expiresAt)<new Date)){const{authentication:t}=await gs({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:r.refreshToken,request:e.request});e.authentication={tokenType:"oauth",type:"token",...t}}if("refresh"===t.type){if("oauth-app"===e.clientType)throw new Error("[@octokit/auth-oauth-user] OAuth Apps do not support expiring tokens");if(!r.hasOwnProperty("expiresAt"))throw new Error("[@octokit/auth-oauth-user] Refresh token missing");await(e.onTokenCreated?.(e.authentication,{type:t.type}))}if("check"===t.type||"reset"===t.type){const r="check"===t.type?ms:bs;try{const{authentication:s}=await r({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request});return e.authentication={tokenType:"oauth",type:"token",...s},"reset"===t.type&&await(e.onTokenCreated?.(e.authentication,{type:t.type})),e.authentication}catch(t){throw 404===t.status&&(t.message="[@octokit/auth-oauth-user] Token is invalid",e.authentication.invalid=!0),t}}if("delete"===t.type||"deleteAuthorization"===t.type){const r="delete"===t.type?vs:ws;try{await r({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request})}catch(e){if(404!==e.status)throw e}return e.authentication.invalid=!0,e.authentication}return e.authentication}var js=/\/applications\/[^/]+\/(token|grant)s?/;function Rs(e){return e&&js.test(e)}async function Is(e,t,r,s={}){const n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);if(Rs(n.url)){const r=btoa(`${e.clientId}:${e.clientSecret}`);return n.headers.authorization=`basic ${r}`,t(n)}const{token:o}=(e.clientType,await Ps({...e,request:t}));return n.headers.authorization="token "+o,t(n)}function Cs({clientId:e,clientSecret:t,clientType:r="oauth-app",request:s=gr.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${As} ${Ht()}`}}),onTokenCreated:n,...o}){const i=Object.assign({clientType:r,clientId:e,clientSecret:t,onTokenCreated:n,strategyOptions:o,request:s});return Object.assign(Ps.bind(null,i),{hook:Is.bind(null,i)})}async function Ns(e,t){if("oauth-app"===t.type)return{type:"oauth-app",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`}};if("factory"in t){const{type:r,...s}={...t,...e};return t.factory(s)}const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.request,...t};return(e.clientType,await Cs({...r,clientType:e.clientType}))()}async function xs(e,t,r,s){let n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);if("github-app"===e.clientType&&!Rs(n.url))throw new Error(`[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "${n.method} ${n.url}" is not supported.`);const o=btoa(`${e.clientId}:${e.clientSecret}`);n.headers.authorization=`basic ${o}`;try{return await t(n)}catch(e){if(401!==e.status)throw e;throw e.message=`[@octokit/auth-oauth-app] "${n.method} ${n.url}" does not support clientId/clientSecret basic authentication.`,e}}Cs.VERSION=As;function Ds(e){const t=Object.assign({request:Wt.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/0.0.0-development ${Ot()}`}}),clientType:"oauth-app"},e);return Object.assign(Ns.bind(null,t),{hook:xs.bind(null,t)})}function qs(e){return e.includes("-----BEGIN RSA PRIVATE KEY-----")}function Gs(e){const t=new ArrayBuffer(e.length),r=new Uint8Array(t);for(let t=0,s=e.length;t<s;t++)r[t]=e.charCodeAt(t);return t}function Ls(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Fs(e){return Ls(btoa(JSON.stringify(e)))}const Us=require("node:crypto");async function Ms({privateKey:e,payload:t}){const r=function(e){return qs(e)?(0,Us.createPrivateKey)(e).export({type:"pkcs8",format:"pem"}):e}(e);if(qs(r))throw new Error("[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats");if(function(e){return e.includes("-----BEGIN OPENSSH PRIVATE KEY-----")}(r))throw new Error("[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats");const s={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=function(e){const t=e.trim().split("\n").slice(1,-1).join("");return Gs(atob(t))}(r),o=await Us.subtle.importKey("pkcs8",n,s,!1,["sign"]),i=function(e,t){return`${Fs(e)}.${Fs(t)}`}({alg:"RS256",typ:"JWT"},t),a=Gs(i);return`${i}.${function(e){for(var t="",r=new Uint8Array(e),s=r.byteLength,n=0;n<s;n++)t+=String.fromCharCode(r[n]);return Ls(btoa(t))}(await Us.subtle.sign(s.name,o,a))}`}class Ks{constructor(e=1e3,t=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(t)||t<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=t}bumpLru(e){if(this.last===e)return;const t=this.last,r=e.next,s=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=t,t.next=e,null!==s&&(s.next=r),null!==r&&(r.prev=s),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){const t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}}deleteMany(e){for(var t=0;t<e.length;t++)this.delete(e[t])}evict(){if(this.size>0){const e=this.first;delete this.items[e.key],0===--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){const t=this.items[e];return this.ttl>0&&t.expiry<=Date.now()?void this.delete(e):(this.bumpLru(t),t.value)}}getMany(e){const t=[];for(var r=0;r<e.length;r++)t.push(this.get(e[r]));return t}keys(){return Object.keys(this.items)}set(e,t){if(Object.prototype.hasOwnProperty.call(this.items,e)){const r=this.items[e];return r.value=t,r.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,void(this.last!==r&&this.bumpLru(r))}this.max>0&&this.size===this.max&&this.evict();const r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t};this.items[e]=r,1===++this.size?this.first=r:this.last.next=r,this.last=r}}async function Bs({appId:e,privateKey:t,timeDifference:r,createJwt:s}){try{if(s){const{jwt:t,expiresAt:n}=await s(e,r);return{type:"app",token:t,appId:e,expiresAt:n}}const n={id:e,privateKey:t};r&&Object.assign(n,{now:Math.floor(Date.now()/1e3)+r});const o=await async function({id:e,privateKey:t,now:r=Math.floor(Date.now()/1e3)}){const s=t.replace(/\\n/g,"\n"),n=r-30,o=n+600,i={iat:n,exp:o,iss:e};return{appId:e,expiration:o,token:await Ms({privateKey:s,payload:i})}}(n);return{type:"app",token:o.token,appId:o.appId,expiresAt:new Date(1e3*o.expiration).toISOString()}}catch(e){throw"-----BEGIN RSA PRIVATE KEY-----"===t?new Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):e}}function Vs({installationId:e,permissions:t={},repositoryIds:r=[],repositoryNames:s=[]}){const n=Object.keys(t).sort().map(e=>"read"===t[e]?e:`${e}!`).join(",");return[e,r.sort().join(","),s.join(","),n].filter(Boolean).join("|")}function zs({installationId:e,token:t,createdAt:r,expiresAt:s,repositorySelection:n,permissions:o,repositoryIds:i,repositoryNames:a,singleFileName:c}){return Object.assign({type:"token",tokenType:"installation",token:t,installationId:e,permissions:o,createdAt:r,expiresAt:s,repositorySelection:n},i?{repositoryIds:i}:null,a?{repositoryNames:a}:null,c?{singleFileName:c}:null)}async function Ws(e,t,r){const s=Number(t.installationId||e.installationId);if(!s)throw new Error("[@octokit/auth-app] installationId option is required for installation authentication.");if(t.factory){const{type:r,factory:s,oauthApp:n,...o}={...e,...t};return s(o)}const n=r||e.request;return function(e,t,r){const s=Vs(t);if(Hs.has(s))return Hs.get(s);const n=async function(e,t,r){if(!t.refresh){const r=await async function(e,t){const r=Vs(t),s=await e.get(r);if(!s)return;const[n,o,i,a,c,u]=s.split("|");return{token:n,createdAt:o,expiresAt:i,permissions:t.permissions||c.split(/,/).reduce((e,t)=>(/!$/.test(t)?e[t.slice(0,-1)]="write":e[t]="read",e),{}),repositoryIds:t.repositoryIds,repositoryNames:t.repositoryNames,singleFileName:u,repositorySelection:a}}(e.cache,t);if(r){const{token:e,createdAt:s,expiresAt:n,permissions:o,repositoryIds:i,repositoryNames:a,singleFileName:c,repositorySelection:u}=r;return zs({installationId:t.installationId,token:e,createdAt:s,expiresAt:n,permissions:o,repositorySelection:u,repositoryIds:i,repositoryNames:a,singleFileName:c})}}const s=await Bs(e),n={installation_id:t.installationId,mediaType:{previews:["machine-man"]},headers:{authorization:`bearer ${s.token}`}};t.repositoryIds&&Object.assign(n,{repository_ids:t.repositoryIds});t.repositoryNames&&Object.assign(n,{repositories:t.repositoryNames});t.permissions&&Object.assign(n,{permissions:t.permissions});const{data:{token:o,expires_at:i,repositories:a,permissions:c,repository_selection:u,single_file:l}}=await r("POST /app/installations/{installation_id}/access_tokens",n),p=c||{},d=u||"all",h=a?a.map(e=>e.id):void 0,f=a?a.map(e=>e.name):void 0,m=(new Date).toISOString(),g={token:o,createdAt:m,expiresAt:i,repositorySelection:d,permissions:p,repositoryIds:h,repositoryNames:f};l&&Object.assign(n,{singleFileName:l});await async function(e,t,r){const s=Vs(t),n=t.permissions?"":Object.keys(r.permissions).map(e=>`${e}${"write"===r.permissions[e]?"!":""}`).join(","),o=[r.token,r.createdAt,r.expiresAt,r.repositorySelection,n,r.singleFileName].join("|");await e.set(s,o)}(e.cache,t,g);const y={installationId:t.installationId,token:o,createdAt:m,expiresAt:i,repositorySelection:d,permissions:p,repositoryIds:h,repositoryNames:f};l&&Object.assign(y,{singleFileName:l});return zs(y)}(e,t,r).finally(()=>Hs.delete(s));return Hs.set(s,n),n}(e,{...t,installationId:s},n)}var Hs=new Map;async function Js(e,t){switch(t.type){case"app":return Bs(e);case"oauth-app":return e.oauthApp({type:"oauth-app"});case"installation":return Ws(e,{...t,type:"installation"});case"oauth-user":return e.oauthApp(t);default:throw new Error(`Invalid auth type: ${t.type}`)}}var Ys=function(e){const t=`^(?:${e.map(e=>e.split("/").map(e=>e.startsWith("{")?"(?:.+?)":e).join("/")).map(e=>`(?:${e})`).join("|")})$`;return new RegExp(t,"i")}(["/app","/app/hook/config","/app/hook/deliveries","/app/hook/deliveries/{delivery_id}","/app/hook/deliveries/{delivery_id}/attempts","/app/installations","/app/installations/{installation_id}","/app/installations/{installation_id}/access_tokens","/app/installations/{installation_id}/suspended","/app/installation-requests","/marketplace_listing/accounts/{account_id}","/marketplace_listing/plan","/marketplace_listing/plans","/marketplace_listing/plans/{plan_id}/accounts","/marketplace_listing/stubbed/accounts/{account_id}","/marketplace_listing/stubbed/plan","/marketplace_listing/stubbed/plans","/marketplace_listing/stubbed/plans/{plan_id}/accounts","/orgs/{org}/installation","/repos/{owner}/{repo}/installation","/users/{username}/installation"]);async function Qs(e,t,r,s){const n=t.endpoint.merge(r,s),o=n.url;if(/\/login\/oauth\/access_token$/.test(o))return t(n);if(function(e){return!!e&&Ys.test(e.split("?")[0])}(o.replace(t.endpoint.DEFAULTS.baseUrl,""))){const{token:r}=await Bs(e);let s;n.headers.authorization=`bearer ${r}`;try{s=await t(n)}catch(r){if(function(e){return!(e.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||e.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}(r))throw r;if(void 0===r.response.headers.date)throw r;const s=Math.floor((Date.parse(r.response.headers.date)-Date.parse((new Date).toString()))/1e3);e.log.warn(r.message),e.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${s} seconds. Retrying request with the difference accounted for.`);const{token:o}=await Bs({...e,timeDifference:s});return n.headers.authorization=`bearer ${o}`,t(n)}return s}if(Rs(o)){const r=await e.oauthApp({type:"oauth-app"});return n.headers.authorization=r.headers.authorization,t(n)}const{token:i,createdAt:a}=await Ws(e,{},t.defaults({baseUrl:n.baseUrl}));return n.headers.authorization=`token ${i}`,Zs(e,t,n,a)}async function Zs(e,t,r,s,n=0){const o=+new Date-+new Date(s);try{return await t(r)}catch(i){if(401!==i.status)throw i;if(o>=5e3)throw n>0&&(i.message=`After ${n} retries within ${o/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`),i;const a=1e3*++n;return e.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${n}, wait: ${a/1e3}s)`),await new Promise(e=>setTimeout(e,a)),Zs(e,t,r,s,n)}}function Xs(e){if(!e.appId)throw new Error("[@octokit/auth-app] appId option is required");if(!e.privateKey&&!e.createJwt)throw new Error("[@octokit/auth-app] privateKey option is required");if(e.privateKey&&e.createJwt)throw new Error("[@octokit/auth-app] privateKey and createJwt options are mutually exclusive");if("installationId"in e&&!e.installationId)throw new Error("[@octokit/auth-app] installationId is set to a falsy value");const t=e.log||{};"function"!=typeof t.warn&&(t.warn=console.warn.bind(console));const r=e.request||Tt.defaults({headers:{"user-agent":`octokit-auth-app.js/8.1.2 ${rt()}`}}),s=Object.assign({request:r,cache:new Ks(15e3,354e4)},e,e.installationId?{installationId:Number(e.installationId)}:{},{log:t,oauthApp:Ds({clientType:"github-app",clientId:e.clientId||"",clientSecret:e.clientSecret||"",request:r})});return Object.assign(Js.bind(null,s),{hook:Qs.bind(null,s)})}async function en(e){return{type:"unauthenticated",reason:e}}var tn=/\babuse\b/i;async function rn(e,t,r,s){const n=t.endpoint.merge(r,s);return t(n).catch(t=>{if(404===t.status)throw t.message=`Not found. May be due to lack of authentication. Reason: ${e}`,t;if(function(e){return 403===e.status&&!!e.response&&"0"===e.response.headers["x-ratelimit-remaining"]}(t))throw t.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${e}`,t;if(function(e){return 403===e.status&&tn.test(e.message)}(t))throw t.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${e}`,t;if(401===t.status)throw t.message=`Unauthorized. "${n.method} ${n.url}" failed most likely due to lack of authentication. Reason: ${e}`,t;throw t.status>=400&&t.status<500&&(t.message=t.message.replace(/\.?$/,`. May be caused by lack of authentication (${e}).`)),t})}var sn=function(e){if(!e||!e.reason)throw new Error("[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth");return Object.assign(en.bind(null,e.reason),{hook:rn.bind(null,e.reason)})},nn="8.0.3";function on(e,t,r){if(Array.isArray(t))for(const s of t)on(e,s,r);else e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(r)}var an=we.defaults({userAgent:`octokit-oauth-app.js/${nn} ${"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}`});async function cn(e,t){const{name:r,action:s}=t;if(e.eventHandlers[`${r}.${s}`])for(const n of e.eventHandlers[`${r}.${s}`])await n(t);if(e.eventHandlers[r])for(const s of e.eventHandlers[r])await s(t)}async function un(e,t){return e.octokit.auth({type:"oauth-user",...t,async factory(t){const r=new e.Octokit({authStrategy:Cs,auth:t}),s=await r.auth({type:"get"});return await cn(e,{name:"token",action:"created",token:s.token,scopes:s.scopes,authentication:s,octokit:r}),r}})}function ln(e,t){const r={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return function({request:e=us,...t}){return Fr({...t,baseUrl:ls(e)})}({clientType:e.clientType,...r})}async function pn(e,t){const r=await e.octokit.auth({type:"oauth-user",...t});return await cn(e,{name:"token",action:"created",token:r.token,scopes:r.scopes,authentication:r,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.token,scopes:r.scopes,refreshToken:r.refreshToken,expiresAt:r.expiresAt,refreshTokenExpiresAt:r.refreshTokenExpiresAt}})}),{authentication:r}}async function dn(e,t){const r=await ms({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(r.authentication,{type:"token",tokenType:"oauth"}),r}async function hn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if("oauth-app"===e.clientType){const t=await bs({clientType:"oauth-app",...r}),s=Object.assign(t.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"reset",token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:s}}const s=await bs({clientType:"github-app",...r}),n=Object.assign(s.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"reset",token:s.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.authentication.token}})}),{...s,authentication:n}}async function fn(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps");const r=await gs({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),s=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"refreshed",token:r.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:s}}async function mn(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps");const r=await async function(e){const{request:t,clientType:r,clientId:s,clientSecret:n,token:o,...i}=e,a=e.request||us,c=await a("POST /applications/{client_id}/token/scoped",{headers:{authorization:`basic ${btoa(`${s}:${n}`)}`},client_id:s,access_token:o,...i}),u=Object.assign({clientType:r,clientId:s,clientSecret:n,token:c.data.token},c.data.expires_at?{expiresAt:c.data.expires_at}:{});return{...c,authentication:u}}({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),s=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"scoped",token:r.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:s}}async function gn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await vs({clientType:"oauth-app",...r}):await vs({clientType:"github-app",...r});return await cn(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),s}async function yn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await ws({clientType:"oauth-app",...r}):await ws({clientType:"github-app",...r});return await cn(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),await cn(e,{name:"authorization",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "authorization.deleted" event. The access for the app has been revoked.'}})}),s}var bn=class{static VERSION=nn;static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}constructor(e){const t=e.Octokit||an;this.type=e.clientType||"oauth-app";const r=new t({authStrategy:Ds,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),s={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:r,eventHandlers:{}};this.on=on.bind(null,s),this.octokit=r,this.getUserOctokit=un.bind(null,s),this.getWebFlowAuthorizationUrl=ln.bind(null,s),this.createToken=pn.bind(null,s),this.checkToken=dn.bind(null,s),this.resetToken=hn.bind(null,s),this.refreshToken=fn.bind(null,s),this.scopeToken=mn.bind(null,s),this.deleteToken=gn.bind(null,s),this.deleteAuthorization=yn.bind(null,s)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization};const vn=require("node:buffer");var wn="6.0.0";async function _n(e,t){if(!e||!t)throw new TypeError("[@octokit/webhooks-methods] secret & payload required for sign()");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] payload must be a string");const r="sha256";return`${r}=${(0,Us.createHmac)(r,e).update(t).digest("hex")}`}async function En(e,t,r){if(!e||!t||!r)throw new TypeError("[@octokit/webhooks-methods] secret, eventPayload & signature required");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] eventPayload must be a string");const s=vn.Buffer.from(r),n=vn.Buffer.from(await _n(e,t));return s.length===n.length&&(0,Us.timingSafeEqual)(s,n)}_n.VERSION=wn,En.VERSION=wn;var kn=(e={})=>("function"!=typeof e.debug&&(e.debug=()=>{}),"function"!=typeof e.info&&(e.info=()=>{}),"function"!=typeof e.warn&&(e.warn=console.warn.bind(console)),"function"!=typeof e.error&&(e.error=console.error.bind(console)),e),Tn=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.promote_to_enterprise","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.typed","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","issues.untyped","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","projects_v2_status_update","projects_v2_status_update.created","projects_v2_status_update.deleted","projects_v2_status_update.edited","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.publicly_leaked","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","secret_scanning_scan","secret_scanning_scan.completed","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","sub_issues","sub_issues.parent_issue_added","sub_issues.parent_issue_removed","sub_issues.sub_issue_added","sub_issues.sub_issue_removed","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function On(e,t,r){e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(r)}function Sn(e,t,r){Array.isArray(t)?t.forEach(t=>Sn(e,t,r)):(!function(e,t={}){if("string"!=typeof e)throw new TypeError("eventName must be of type string");if("*"===e)throw new TypeError('Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead');if("error"===e)throw new TypeError('Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead');if("ignore"!==t.onUnknownEventName&&!Tn.includes(e)){if("warn"!==t.onUnknownEventName)throw new TypeError(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`);(t.log||console).warn(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}(t,{onUnknownEventName:"warn",log:e.log}),On(e,t,r))}function An(e,t){On(e,"*",t)}function $n(e,t){On(e,"error",t)}function Pn(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler'),console.log(e)}r&&r.catch&&r.catch(e=>{console.log('FATAL: Error occurred in "error" event handler'),console.log(e)})}function jn(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});return r.forEach(t=>Pn(t,e)),Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const s=function(e,t,r){const s=[e.hooks[r],e.hooks["*"]];return t&&s.unshift(e.hooks[`${r}.${t}`]),[].concat(...s.filter(Boolean))}(e,"action"in t.payload?t.payload.action:null,t.name);if(0===s.length)return Promise.resolve();const n=[],o=s.map(r=>{let s=Promise.resolve(t);return e.transform&&(s=s.then(e.transform)),s.then(e=>r(e)).catch(e=>n.push(Object.assign(e,{event:t})))});return Promise.all(o).then(()=>{if(0===n.length)return;const e=new AggregateError(n,n.map(e=>e.message).join("\n"));throw Object.assign(e,{event:t}),r.forEach(t=>Pn(t,e)),e})}function Rn(e,t,r){if(Array.isArray(t))t.forEach(t=>Rn(e,t,r));else if(e.hooks[t])for(let s=e.hooks[t].length-1;s>=0;s--)if(e.hooks[t][s]===r)return void e.hooks[t].splice(s,1)}function In(e){const t={hooks:{},log:kn(e&&e.log)};return e&&e.transform&&(t.transform=e.transform),{on:Sn.bind(null,t),onAny:An.bind(null,t),onError:$n.bind(null,t),removeListener:Rn.bind(null,t),receive:jn.bind(null,t)}}async function Cn(e,t){const r=await async function(e,t,r,s){if(await En(e,t,r))return!0;if(void 0!==s)for(const e of s){const s=await En(e,t,r);if(s)return s}return!1}(e.secret,t.payload,t.signature,e.additionalSecrets).catch(()=>!1);if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return r.event=t,r.status=400,e.eventHandler.receive(r)}let s;try{s=JSON.parse(t.payload)}catch(e){throw e.message="Invalid JSON",e.status=400,new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:s})}var Nn=new TextDecoder("utf-8",{fatal:!1});Nn.decode.bind(Nn);var xn=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret)throw new Error("[@octokit/webhooks] options.secret required");const t={eventHandler:In(e),secret:e.secret,additionalSecrets:e.additionalSecrets,hooks:{},log:kn(e.log)};this.sign=_n.bind(null,e.secret),this.verify=En.bind(null,e.secret),this.on=t.eventHandler.on,this.onAny=t.eventHandler.onAny,this.onError=t.eventHandler.onError,this.removeListener=t.eventHandler.removeListener,this.receive=t.eventHandler.receive,this.verifyAndReceive=Cn.bind(null,t)}};async function Dn(e,t){return e.octokit.auth({type:"installation",installationId:t,factory(e){const r={...e.octokitOptions,authStrategy:Xs,auth:{...e,installationId:t}};return new e.octokit.constructor(r)}})}function qn(e){return Object.assign(Gn.bind(null,e),{iterator:Ln.bind(null,e)})}async function Gn(e,t){const r=Ln(e)[Symbol.asyncIterator]();let s=await r.next();for(;!s.done;)await t(s.value),s=await r.next()}function Ln(e){return{async*[Symbol.asyncIterator](){const t=Te.iterator(e.octokit,"GET /app/installations");for await(const{data:r}of t)for(const t of r){const r=await Dn(e,t.id);yield{octokit:r,installation:t}}}}}function Fn(e){return Object.assign(Un.bind(null,e),{iterator:Mn.bind(null,e)})}async function Un(e,t,r){const s=Mn(e,r?t:void 0)[Symbol.asyncIterator]();let n=await s.next();for(;!n.done;)r?await r(n.value):await t(n.value),n=await s.next()}function Mn(e,t){return{async*[Symbol.asyncIterator](){const r=t?function(e,t){return{async*[Symbol.asyncIterator](){yield{octokit:await e.getInstallationOctokit(t)}}}}(e,t.installationId):e.eachInstallation.iterator();for await(const{octokit:e}of r){const t=Te.iterator(e,"GET /installation/repositories");for await(const{data:r}of t)for(const t of r)yield{octokit:e,repository:t}}}}}function Kn(e){let t;return async function(r={}){t||(t=async function(e){const{data:t}=await e.octokit.request("GET /app");if(!t)throw new Error("[@octokit/app] unable to fetch metadata for app");return`${t.html_url}/installations/new`}(e));const s=await t,n=new URL(s);return void 0!==r.target_id&&(n.pathname+="/permissions",n.searchParams.append("target_id",r.target_id.toFixed())),void 0!==r.state&&n.searchParams.append("state",r.state),n.href}}var Bn=we.plugin(Me,Oe,function(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(De(e),{iterator:Ne(e)})})}},He,tt).defaults({userAgent:"octokit.js/0.0.0-development",throttle:{onRateLimit:function(e,t,r){if(r.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),0===t.request.retryCount)return r.log.info(`Retrying after ${e} seconds!`),!0},onSecondaryRateLimit:function(e,t,r){if(r.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),0===t.request.retryCount)return r.log.info(`Retrying after ${e} seconds!`),!0}}});(class{static VERSION="16.1.2";static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(e){const t=e.Octokit||we,r={authStrategy:Xs,auth:Object.assign({appId:e.appId,privateKey:e.privateKey},e.oauth?{clientId:e.oauth.clientId,clientSecret:e.oauth.clientSecret}:{})};"log"in e&&void 0!==e.log&&(r.log=e.log),this.octokit=new t(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),e.webhooks?this.webhooks=function(e,t){return new xn({secret:t.secret,transform:async t=>{if(!("installation"in t.payload)||"object"!=typeof t.payload.installation){const r=new e.constructor({authStrategy:sn,auth:{reason:'"installation" key missing in webhook event payload'}});return{...t,octokit:r}}const r=t.payload.installation.id,s=await e.auth({type:"installation",installationId:r,factory:e=>new e.octokit.constructor({...e.octokitOptions,authStrategy:Xs,auth:{...e,installationId:r}})});return s.hook.before("request",e=>{e.headers["x-github-delivery"]=t.id}),{...t,octokit:s}}})}(this.octokit,e.webhooks):Object.defineProperty(this,"webhooks",{get(){throw new Error("[@octokit/app] webhooks option not set")}}),e.oauth?this.oauth=new bn({...e.oauth,clientType:"github-app",Octokit:t}):Object.defineProperty(this,"oauth",{get(){throw new Error("[@octokit/app] oauth.clientId / oauth.clientSecret options are not set")}}),this.getInstallationOctokit=Dn.bind(null,this),this.eachInstallation=qn(this),this.eachRepository=Fn(this),this.getInstallationUrl=Kn(this)}}).defaults({Octokit:Bn}),bn.defaults({Octokit:Bn});class Vn{octokit;owner;repo;constructor(e){const t=e??process.env.GITHUB_TOKEN;if(void 0===t)throw new Error("GitHub authentication token is required. Specify it explicitly or use GITHUB_TOKEN environment variable.");this.octokit=new Bn({auth:t});const r=function(){const[e,t]=(process.env.GITHUB_REPOSITORY??"").split("/");return{owner:e,repo:t}}(),n=function(){const e=(0,s.execSync)("git remote get-url origin").toString().trim().replace(/\.git$/u,"");if(e.startsWith("git@")){const[,t]=e.split(":"),[r,s]=(t??"").split("/");return{owner:r,repo:s}}if(e.startsWith("http")){const t=e.split("/");return{owner:t.at(-2),repo:t.at(-1)}}return{}}(),o=r.repo??n.repo;if(void 0===o)throw new Error("");this.repo=o;const i=r.owner??process.env.GITHUB_REPOSITORY_OWNER??(process.env.GITHUB_REPOSITORY??"").split("/")[1]??n.owner;if(void 0===i)throw new Error("");this.owner=i}}},4426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,s.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=n},4486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`Object.keys(${r}).length ${o} ${n}`)}};t.default=n},4495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const s=r(9029),n=r(4227);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:i,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:s._`${e.schemaPath}${(0,s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:s._`${e.schemaPath}${(0,s.getProperty)(t)}${(0,s.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===i||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:i,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:i,dataTypes:a,propertyName:c}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:i,dataPathArr:a,opts:c}=t;l(u.let("data",s._`${t.data}${(0,s.getProperty)(r)}`,!0)),e.errorPath=s.str`${i}${(0,n.getErrorPath)(r,o,c.jsPropertySyntax)}`,e.parentDataProperty=s._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==i){l(i instanceof s.Name?i:u.let("data",i,!0)),void 0!==c&&(e.propertyName=c)}function l(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){void 0!==s&&(e.compositeRule=s),void 0!==n&&(e.createErrors=n),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},4523:(e,t,r)=>{"use strict";r.d(t,{R9:()=>$r,$z:()=>fr,L:()=>z,Lm:()=>$,kZ:()=>S,Et:()=>I,Gv:()=>O,Kg:()=>R,b0:()=>A,HV:()=>Or,Ul:()=>dr,sb:()=>jr});var s={};r.r(s),r.d(s,{VERSION:()=>n,after:()=>Nt,all:()=>er,allKeys:()=>ge,any:()=>tr,assign:()=>Ne,before:()=>xt,bind:()=>Et,bindAll:()=>Ot,chain:()=>bt,chunk:()=>qr,clone:()=>Ge,collect:()=>Ht,compact:()=>Sr,compose:()=>Ct,constant:()=>Z,contains:()=>rr,countBy:()=>gr,create:()=>qe,debounce:()=>jt,default:()=>Fr,defaults:()=>xe,defer:()=>$t,delay:()=>At,detect:()=>Vt,difference:()=>$r,drop:()=>Tr,each:()=>Wt,escape:()=>it,every:()=>er,extend:()=>Ce,extendOwn:()=>Ne,filter:()=>Zt,find:()=>Vt,findIndex:()=>Lt,findKey:()=>qt,findLastIndex:()=>Ft,findWhere:()=>zt,first:()=>kr,flatten:()=>Ar,foldl:()=>Yt,foldr:()=>Qt,forEach:()=>Wt,functions:()=>Re,get:()=>Ke,groupBy:()=>fr,has:()=>Be,head:()=>kr,identity:()=>Ve,include:()=>rr,includes:()=>rr,indexBy:()=>mr,indexOf:()=>Kt,initial:()=>Er,inject:()=>Yt,intersection:()=>Ir,invert:()=>je,invoke:()=>sr,isArguments:()=>J,isArray:()=>z,isArrayBuffer:()=>q,isBoolean:()=>$,isDataView:()=>V,isDate:()=>C,isElement:()=>P,isEmpty:()=>ce,isEqual:()=>me,isError:()=>x,isFinite:()=>Y,isFunction:()=>F,isMap:()=>Te,isMatch:()=>ue,isNaN:()=>Q,isNull:()=>S,isNumber:()=>I,isObject:()=>O,isRegExp:()=>N,isSet:()=>Se,isString:()=>R,isSymbol:()=>D,isTypedArray:()=>ne,isUndefined:()=>A,isWeakMap:()=>Oe,isWeakSet:()=>Ae,iteratee:()=>Ye,keys:()=>ae,last:()=>Or,lastIndexOf:()=>Bt,map:()=>Ht,mapObject:()=>Ze,matcher:()=>ze,matches:()=>ze,max:()=>ir,memoize:()=>St,methods:()=>Re,min:()=>ar,mixin:()=>Lr,negate:()=>It,noop:()=>Xe,now:()=>st,object:()=>xr,omit:()=>_r,once:()=>Dt,pairs:()=>Pe,partial:()=>_t,partition:()=>yr,pick:()=>wr,pluck:()=>nr,property:()=>We,propertyOf:()=>et,random:()=>rt,range:()=>Dr,reduce:()=>Yt,reduceRight:()=>Qt,reject:()=>Xt,rest:()=>Tr,restArguments:()=>T,result:()=>mt,sample:()=>lr,select:()=>Zt,shuffle:()=>pr,size:()=>br,some:()=>tr,sortBy:()=>dr,sortedIndex:()=>Ut,tail:()=>Tr,take:()=>kr,tap:()=>Le,template:()=>ft,templateSettings:()=>ct,throttle:()=>Pt,times:()=>tt,toArray:()=>ur,toPath:()=>Fe,transpose:()=>Cr,unescape:()=>at,union:()=>Rr,uniq:()=>jr,unique:()=>jr,uniqueId:()=>yt,unzip:()=>Cr,values:()=>$e,where:()=>or,without:()=>Pr,wrap:()=>Rt,zip:()=>Nr});var n="1.13.7",o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},i=Array.prototype,a=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,u=i.push,l=i.slice,p=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,y=Object.create,b=h&&ArrayBuffer.isView,v=isNaN,w=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1;function T(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),s=Array(r),n=0;n<r;n++)s[n]=arguments[n+t];switch(t){case 0:return e.call(this,s);case 1:return e.call(this,arguments[0],s);case 2:return e.call(this,arguments[0],arguments[1],s)}var o=Array(t+1);for(n=0;n<t;n++)o[n]=arguments[n];return o[t]=s,e.apply(this,o)}}function O(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function S(e){return null===e}function A(e){return void 0===e}function $(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function P(e){return!(!e||1!==e.nodeType)}function j(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}const R=j("String"),I=j("Number"),C=j("Date"),N=j("RegExp"),x=j("Error"),D=j("Symbol"),q=j("ArrayBuffer");var G=j("Function"),L=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(G=function(e){return"function"==typeof e||!1});const F=G,U=j("Object");var M=f&&(!/\[native code\]/.test(String(DataView))||U(new DataView(new ArrayBuffer(8)))),K="undefined"!=typeof Map&&U(new Map),B=j("DataView");const V=M?function(e){return null!=e&&F(e.getInt8)&&q(e.buffer)}:B,z=m||j("Array");function W(e,t){return null!=e&&d.call(e,t)}var H=j("Arguments");!function(){H(arguments)||(H=function(e){return W(e,"callee")})}();const J=H;function Y(e){return!D(e)&&w(e)&&!isNaN(parseFloat(e))}function Q(e){return I(e)&&v(e)}function Z(e){return function(){return e}}function X(e){return function(t){var r=e(t);return"number"==typeof r&&r>=0&&r<=k}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),re=X(te);var se=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ne=h?function(e){return b?b(e)&&!V(e):re(e)&&se.test(p.call(e))}:Z(!1),oe=ee("length");function ie(e,t){t=function(e){for(var t={},r=e.length,s=0;s<r;++s)t[e[s]]=!0;return{contains:function(e){return!0===t[e]},push:function(r){return t[r]=!0,e.push(r)}}}(t);var r=E.length,s=e.constructor,n=F(s)&&s.prototype||a,o="constructor";for(W(e,o)&&!t.contains(o)&&t.push(o);r--;)(o=E[r])in e&&e[o]!==n[o]&&!t.contains(o)&&t.push(o)}function ae(e){if(!O(e))return[];if(g)return g(e);var t=[];for(var r in e)W(e,r)&&t.push(r);return _&&ie(e,t),t}function ce(e){if(null==e)return!0;var t=oe(e);return"number"==typeof t&&(z(e)||R(e)||J(e))?0===t:0===oe(ae(e))}function ue(e,t){var r=ae(t),s=r.length;if(null==e)return!s;for(var n=Object(e),o=0;o<s;o++){var i=r[o];if(t[i]!==n[i]||!(i in n))return!1}return!0}function le(e){return e instanceof le?e:this instanceof le?void(this._wrapped=e):new le(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}le.VERSION=n,le.prototype.value=function(){return this._wrapped},le.prototype.valueOf=le.prototype.toJSON=le.prototype.value,le.prototype.toString=function(){return String(this._wrapped)};var de="[object DataView]";function he(e,t,r,s){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var n=typeof e;return("function"===n||"object"===n||"object"==typeof t)&&fe(e,t,r,s)}function fe(e,t,r,s){e instanceof le&&(e=e._wrapped),t instanceof le&&(t=t._wrapped);var n=p.call(e);if(n!==p.call(t))return!1;if(M&&"[object Object]"==n&&V(e)){if(!V(t))return!1;n=de}switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return c.valueOf.call(e)===c.valueOf.call(t);case"[object ArrayBuffer]":case de:return fe(pe(e),pe(t),r,s)}var o="[object Array]"===n;if(!o&&ne(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var i=e.constructor,a=t.constructor;if(i!==a&&!(F(i)&&i instanceof i&&F(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}s=s||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return s[u]===t;if(r.push(e),s.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!he(e[u],t[u],r,s))return!1}else{var l,d=ae(e);if(u=d.length,ae(t).length!==u)return!1;for(;u--;)if(!W(t,l=d[u])||!he(e[l],t[l],r,s))return!1}return r.pop(),s.pop(),!0}function me(e,t){return he(e,t)}function ge(e){if(!O(e))return[];var t=[];for(var r in e)t.push(r);return _&&ie(e,t),t}function ye(e){var t=oe(e);return function(r){if(null==r)return!1;var s=ge(r);if(oe(s))return!1;for(var n=0;n<t;n++)if(!F(r[e[n]]))return!1;return e!==Ee||!F(r[be])}}var be="forEach",ve=["clear","delete"],we=["get","has","set"],_e=ve.concat(be,we),Ee=ve.concat(we),ke=["add"].concat(ve,be,"has");const Te=K?ye(_e):j("Map"),Oe=K?ye(Ee):j("WeakMap"),Se=K?ye(ke):j("Set"),Ae=j("WeakSet");function $e(e){for(var t=ae(e),r=t.length,s=Array(r),n=0;n<r;n++)s[n]=e[t[n]];return s}function Pe(e){for(var t=ae(e),r=t.length,s=Array(r),n=0;n<r;n++)s[n]=[t[n],e[t[n]]];return s}function je(e){for(var t={},r=ae(e),s=0,n=r.length;s<n;s++)t[e[r[s]]]=r[s];return t}function Re(e){var t=[];for(var r in e)F(e[r])&&t.push(r);return t.sort()}function Ie(e,t){return function(r){var s=arguments.length;if(t&&(r=Object(r)),s<2||null==r)return r;for(var n=1;n<s;n++)for(var o=arguments[n],i=e(o),a=i.length,c=0;c<a;c++){var u=i[c];t&&void 0!==r[u]||(r[u]=o[u])}return r}}const Ce=Ie(ge),Ne=Ie(ae),xe=Ie(ge,!0);function De(e){if(!O(e))return{};if(y)return y(e);var t=function(){};t.prototype=e;var r=new t;return t.prototype=null,r}function qe(e,t){var r=De(e);return t&&Ne(r,t),r}function Ge(e){return O(e)?z(e)?e.slice():Ce({},e):e}function Le(e,t){return t(e),e}function Fe(e){return z(e)?e:[e]}function Ue(e){return le.toPath(e)}function Me(e,t){for(var r=t.length,s=0;s<r;s++){if(null==e)return;e=e[t[s]]}return r?e:void 0}function Ke(e,t,r){var s=Me(e,Ue(t));return A(s)?r:s}function Be(e,t){for(var r=(t=Ue(t)).length,s=0;s<r;s++){var n=t[s];if(!W(e,n))return!1;e=e[n]}return!!r}function Ve(e){return e}function ze(e){return e=Ne({},e),function(t){return ue(t,e)}}function We(e){return e=Ue(e),function(t){return Me(t,e)}}function He(e,t,r){if(void 0===t)return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,s,n){return e.call(t,r,s,n)};case 4:return function(r,s,n,o){return e.call(t,r,s,n,o)}}return function(){return e.apply(t,arguments)}}function Je(e,t,r){return null==e?Ve:F(e)?He(e,t,r):O(e)&&!z(e)?ze(e):We(e)}function Ye(e,t){return Je(e,t,1/0)}function Qe(e,t,r){return le.iteratee!==Ye?le.iteratee(e,t):Je(e,t,r)}function Ze(e,t,r){t=Qe(t,r);for(var s=ae(e),n=s.length,o={},i=0;i<n;i++){var a=s[i];o[a]=t(e[a],a,e)}return o}function Xe(){}function et(e){return null==e?Xe:function(t){return Ke(e,t)}}function tt(e,t,r){var s=Array(Math.max(0,e));t=He(t,r,1);for(var n=0;n<e;n++)s[n]=t(n);return s}function rt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}le.toPath=Fe,le.iteratee=Ye;const st=Date.now||function(){return(new Date).getTime()};function nt(e){var t=function(t){return e[t]},r="(?:"+ae(e).join("|")+")",s=RegExp(r),n=RegExp(r,"g");return function(e){return e=null==e?"":""+e,s.test(e)?e.replace(n,t):e}}const ot={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},it=nt(ot),at=nt(je(ot)),ct=le.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ut=/(.)^/,lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pt=/\\|'|\r|\n|\u2028|\u2029/g;function dt(e){return"\\"+lt[e]}var ht=/^\s*(\w|\$)+\s*$/;function ft(e,t,r){!t&&r&&(t=r),t=xe({},t,le.templateSettings);var s=RegExp([(t.escape||ut).source,(t.interpolate||ut).source,(t.evaluate||ut).source].join("|")+"|$","g"),n=0,o="__p+='";e.replace(s,function(t,r,s,i,a){return o+=e.slice(n,a).replace(pt,dt),n=a+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":s?o+="'+\n((__t=("+s+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),t}),o+="';\n";var i,a=t.variable;if(a){if(!ht.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(a,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return i.call(this,e,le)};return c.source="function("+a+"){\n"+o+"}",c}function mt(e,t,r){var s=(t=Ue(t)).length;if(!s)return F(r)?r.call(e):r;for(var n=0;n<s;n++){var o=null==e?void 0:e[t[n]];void 0===o&&(o=r,n=s),e=F(o)?o.call(e):o}return e}var gt=0;function yt(e){var t=++gt+"";return e?e+t:t}function bt(e){var t=le(e);return t._chain=!0,t}function vt(e,t,r,s,n){if(!(s instanceof t))return e.apply(r,n);var o=De(e.prototype),i=e.apply(o,n);return O(i)?i:o}var wt=T(function(e,t){var r=wt.placeholder,s=function(){for(var n=0,o=t.length,i=Array(o),a=0;a<o;a++)i[a]=t[a]===r?arguments[n++]:t[a];for(;n<arguments.length;)i.push(arguments[n++]);return vt(e,s,this,this,i)};return s});wt.placeholder=le;const _t=wt,Et=T(function(e,t,r){if(!F(e))throw new TypeError("Bind must be called on a function");var s=T(function(n){return vt(e,s,t,this,r.concat(n))});return s}),kt=X(oe);function Tt(e,t,r,s){if(s=s||[],t||0===t){if(t<=0)return s.concat(e)}else t=1/0;for(var n=s.length,o=0,i=oe(e);o<i;o++){var a=e[o];if(kt(a)&&(z(a)||J(a)))if(t>1)Tt(a,t-1,r,s),n=s.length;else for(var c=0,u=a.length;c<u;)s[n++]=a[c++];else r||(s[n++]=a)}return s}const Ot=T(function(e,t){var r=(t=Tt(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var s=t[r];e[s]=Et(e[s],e)}return e});function St(e,t){var r=function(s){var n=r.cache,o=""+(t?t.apply(this,arguments):s);return W(n,o)||(n[o]=e.apply(this,arguments)),n[o]};return r.cache={},r}const At=T(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),$t=_t(At,le,1);function Pt(e,t,r){var s,n,o,i,a=0;r||(r={});var c=function(){a=!1===r.leading?0:st(),s=null,i=e.apply(n,o),s||(n=o=null)},u=function(){var u=st();a||!1!==r.leading||(a=u);var l=t-(u-a);return n=this,o=arguments,l<=0||l>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(n,o),s||(n=o=null)):s||!1===r.trailing||(s=setTimeout(c,l)),i};return u.cancel=function(){clearTimeout(s),a=0,s=n=o=null},u}function jt(e,t,r){var s,n,o,i,a,c=function(){var u=st()-n;t>u?s=setTimeout(c,t-u):(s=null,r||(i=e.apply(a,o)),s||(o=a=null))},u=T(function(u){return a=this,o=u,n=st(),s||(s=setTimeout(c,t),r&&(i=e.apply(a,o))),i});return u.cancel=function(){clearTimeout(s),s=o=a=null},u}function Rt(e,t){return _t(t,e)}function It(e){return function(){return!e.apply(this,arguments)}}function Ct(){var e=arguments,t=e.length-1;return function(){for(var r=t,s=e[t].apply(this,arguments);r--;)s=e[r].call(this,s);return s}}function Nt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function xt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}const Dt=_t(xt,2);function qt(e,t,r){t=Qe(t,r);for(var s,n=ae(e),o=0,i=n.length;o<i;o++)if(t(e[s=n[o]],s,e))return s}function Gt(e){return function(t,r,s){r=Qe(r,s);for(var n=oe(t),o=e>0?0:n-1;o>=0&&o<n;o+=e)if(r(t[o],o,t))return o;return-1}}const Lt=Gt(1),Ft=Gt(-1);function Ut(e,t,r,s){for(var n=(r=Qe(r,s,1))(t),o=0,i=oe(e);o<i;){var a=Math.floor((o+i)/2);r(e[a])<n?o=a+1:i=a}return o}function Mt(e,t,r){return function(s,n,o){var i=0,a=oe(s);if("number"==typeof o)e>0?i=o>=0?o:Math.max(o+a,i):a=o>=0?Math.min(o+1,a):o+a+1;else if(r&&o&&a)return s[o=r(s,n)]===n?o:-1;if(n!=n)return(o=t(l.call(s,i,a),Q))>=0?o+i:-1;for(o=e>0?i:a-1;o>=0&&o<a;o+=e)if(s[o]===n)return o;return-1}}const Kt=Mt(1,Lt,Ut),Bt=Mt(-1,Ft);function Vt(e,t,r){var s=(kt(e)?Lt:qt)(e,t,r);if(void 0!==s&&-1!==s)return e[s]}function zt(e,t){return Vt(e,ze(t))}function Wt(e,t,r){var s,n;if(t=He(t,r),kt(e))for(s=0,n=e.length;s<n;s++)t(e[s],s,e);else{var o=ae(e);for(s=0,n=o.length;s<n;s++)t(e[o[s]],o[s],e)}return e}function Ht(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=Array(n),i=0;i<n;i++){var a=s?s[i]:i;o[i]=t(e[a],a,e)}return o}function Jt(e){return function(t,r,s,n){var o=arguments.length>=3;return function(t,r,s,n){var o=!kt(t)&&ae(t),i=(o||t).length,a=e>0?0:i-1;for(n||(s=t[o?o[a]:a],a+=e);a>=0&&a<i;a+=e){var c=o?o[a]:a;s=r(s,t[c],c,t)}return s}(t,He(r,n,4),s,o)}}const Yt=Jt(1),Qt=Jt(-1);function Zt(e,t,r){var s=[];return t=Qe(t,r),Wt(e,function(e,r,n){t(e,r,n)&&s.push(e)}),s}function Xt(e,t,r){return Zt(e,It(Qe(t)),r)}function er(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=0;o<n;o++){var i=s?s[o]:o;if(!t(e[i],i,e))return!1}return!0}function tr(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=0;o<n;o++){var i=s?s[o]:o;if(t(e[i],i,e))return!0}return!1}function rr(e,t,r,s){return kt(e)||(e=$e(e)),("number"!=typeof r||s)&&(r=0),Kt(e,t,r)>=0}const sr=T(function(e,t,r){var s,n;return F(t)?n=t:(t=Ue(t),s=t.slice(0,-1),t=t[t.length-1]),Ht(e,function(e){var o=n;if(!o){if(s&&s.length&&(e=Me(e,s)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)})});function nr(e,t){return Ht(e,We(t))}function or(e,t){return Zt(e,ze(t))}function ir(e,t,r){var s,n,o=-1/0,i=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,c=(e=kt(e)?e:$e(e)).length;a<c;a++)null!=(s=e[a])&&s>o&&(o=s);else t=Qe(t,r),Wt(e,function(e,r,s){((n=t(e,r,s))>i||n===-1/0&&o===-1/0)&&(o=e,i=n)});return o}function ar(e,t,r){var s,n,o=1/0,i=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,c=(e=kt(e)?e:$e(e)).length;a<c;a++)null!=(s=e[a])&&s<o&&(o=s);else t=Qe(t,r),Wt(e,function(e,r,s){((n=t(e,r,s))<i||n===1/0&&o===1/0)&&(o=e,i=n)});return o}var cr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ur(e){return e?z(e)?l.call(e):R(e)?e.match(cr):kt(e)?Ht(e,Ve):$e(e):[]}function lr(e,t,r){if(null==t||r)return kt(e)||(e=$e(e)),e[rt(e.length-1)];var s=ur(e),n=oe(s);t=Math.max(Math.min(t,n),0);for(var o=n-1,i=0;i<t;i++){var a=rt(i,o),c=s[i];s[i]=s[a],s[a]=c}return s.slice(0,t)}function pr(e){return lr(e,1/0)}function dr(e,t,r){var s=0;return t=Qe(t,r),nr(Ht(e,function(e,r,n){return{value:e,index:s++,criteria:t(e,r,n)}}).sort(function(e,t){var r=e.criteria,s=t.criteria;if(r!==s){if(r>s||void 0===r)return 1;if(r<s||void 0===s)return-1}return e.index-t.index}),"value")}function hr(e,t){return function(r,s,n){var o=t?[[],[]]:{};return s=Qe(s,n),Wt(r,function(t,n){var i=s(t,n,r);e(o,t,i)}),o}}const fr=hr(function(e,t,r){W(e,r)?e[r].push(t):e[r]=[t]}),mr=hr(function(e,t,r){e[r]=t}),gr=hr(function(e,t,r){W(e,r)?e[r]++:e[r]=1}),yr=hr(function(e,t,r){e[r?0:1].push(t)},!0);function br(e){return null==e?0:kt(e)?e.length:ae(e).length}function vr(e,t,r){return t in r}const wr=T(function(e,t){var r={},s=t[0];if(null==e)return r;F(s)?(t.length>1&&(s=He(s,t[1])),t=ge(e)):(s=vr,t=Tt(t,!1,!1),e=Object(e));for(var n=0,o=t.length;n<o;n++){var i=t[n],a=e[i];s(a,i,e)&&(r[i]=a)}return r}),_r=T(function(e,t){var r,s=t[0];return F(s)?(s=It(s),t.length>1&&(r=t[1])):(t=Ht(Tt(t,!1,!1),String),s=function(e,r){return!rr(t,r)}),wr(e,s,r)});function Er(e,t,r){return l.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function kr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:Er(e,e.length-t)}function Tr(e,t,r){return l.call(e,null==t||r?1:t)}function Or(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:Tr(e,Math.max(0,e.length-t))}function Sr(e){return Zt(e,Boolean)}function Ar(e,t){return Tt(e,t,!1)}const $r=T(function(e,t){return t=Tt(t,!0,!0),Zt(e,function(e){return!rr(t,e)})}),Pr=T(function(e,t){return $r(e,t)});function jr(e,t,r,s){$(t)||(s=r,r=t,t=!1),null!=r&&(r=Qe(r,s));for(var n=[],o=[],i=0,a=oe(e);i<a;i++){var c=e[i],u=r?r(c,i,e):c;t&&!r?(i&&o===u||n.push(c),o=u):r?rr(o,u)||(o.push(u),n.push(c)):rr(n,c)||n.push(c)}return n}const Rr=T(function(e){return jr(Tt(e,!0,!0))});function Ir(e){for(var t=[],r=arguments.length,s=0,n=oe(e);s<n;s++){var o=e[s];if(!rr(t,o)){var i;for(i=1;i<r&&rr(arguments[i],o);i++);i===r&&t.push(o)}}return t}function Cr(e){for(var t=e&&ir(e,oe).length||0,r=Array(t),s=0;s<t;s++)r[s]=nr(e,s);return r}const Nr=T(Cr);function xr(e,t){for(var r={},s=0,n=oe(e);s<n;s++)t?r[e[s]]=t[s]:r[e[s][0]]=e[s][1];return r}function Dr(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var s=Math.max(Math.ceil((t-e)/r),0),n=Array(s),o=0;o<s;o++,e+=r)n[o]=e;return n}function qr(e,t){if(null==t||t<1)return[];for(var r=[],s=0,n=e.length;s<n;)r.push(l.call(e,s,s+=t));return r}function Gr(e,t){return e._chain?le(t).chain():t}function Lr(e){return Wt(Re(e),function(t){var r=le[t]=e[t];le.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),Gr(this,r.apply(le,e))}}),le}Wt(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];le.prototype[e]=function(){var r=this._wrapped;return null!=r&&(t.apply(r,arguments),"shift"!==e&&"splice"!==e||0!==r.length||delete r[0]),Gr(this,r)}}),Wt(["concat","join","slice"],function(e){var t=i[e];le.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Gr(this,e)}});const Fr=le;var Ur=Lr(s);Ur._=Ur},4529:(e,t,r)=>{r(998).config(Object.assign({},r(2503),r(7470)(process.argv)))},4551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(6939);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,s.resolveUrl)(e,t,r),this.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,this.missingRef))}}t.default=n},4737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>s.str`must match format "${e}"`,params:({schemaCode:e})=>s._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:i,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:d}=c;u.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),i=r.const("fDef",s._`${o}[${a}]`),c=r.let("fType"),l=r.let("format");r.if(s._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,()=>r.assign(c,s._`${i}.type || "string"`).assign(l,s._`${i}.validate`),()=>r.assign(c,s._`"string"`).assign(l,i)),e.fail$data((0,s.or)(!1===u.strictSchema?s.nil:s._`${a} && !${l}`,function(){const e=p.$async?s._`(${i}.async ? await ${l}(${n}) : ${l}(${n}))`:s._`${l}(${n})`,r=s._`(typeof ${l} == "function" ? ${e} : ${l}.test(${n}))`;return s._`${l} && ${l} !== true && ${c} === ${t} && !${r}`}()))}():function(){const o=d.formats[i];if(!o)return void function(){if(!1===u.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${l}"`}}();if(!0===o)return;const[a,c,h]=function(e){const t=e instanceof RegExp?(0,s.regexpCode)(e):u.code.formats?s._`${u.code.formats}${(0,s.getProperty)(i)}`:void 0,n=r.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,s._`${n}.validate`];return["string",e,n]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!p.$async)throw new Error("async format in sync schema");return s._`await ${h}(${n})`}return"function"==typeof c?s._`${h}(${n})`:s._`${h}.test(${n})`}())}())}};t.default=n},4834:e=>{"use strict";const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function s(e){let t="",r=0,s=0;for(s=0;s<e.length;s++)if(r=e[s].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s];break}for(s+=1;s<e.length;s++){if(r=e[s].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s]}return t}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(e){return e.length=0,!0}function i(e,t,r){if(e.length){const n=s(e);if(""===n)return r.error=!0,!1;t.push(n),e.length=0}return!0}function a(e){if(function(e,t){let r=0;for(let s=0;s<e.length;s++)e[s]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const r={error:!1,address:"",zone:""},n=[],a=[];let c=!1,u=!1,l=i;for(let s=0;s<e.length;s++){const i=e[s];if("["!==i&&"]"!==i)if(":"!==i)if("%"===i){if(!l(a,n,r))break;l=o}else a.push(i);else{if(!0===c&&(u=!0),!l(a,n,r))break;if(++t>7){r.error=!0;break}s>0&&":"===e[s-1]&&(c=!0),n.push(":")}}return a.length&&(l===o?r.zone=a.join(""):u?n.push(a.join("")):n.push(s(a))),r.address=n.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}e.exports={nonSimpleDomain:n,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let s=unescape(e.host);if(!r(s)){const t=a(s);s=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(s)}return"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let s=-1,n=0;for(;n=t.length;){if(1===n){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===n){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===n&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(s=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,s)),t=t.slice(s)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:a,stringArrayToHexStripped:s}},4927:(e,t,r)=>{"use strict";var s=r(932),n=r(8673),o=r(9046),i=r(4355),a=r(484),c=r(2206),u=r(6845);function l(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function p(e){let t="",r=!1,s=!1;for(let n=0;n<e.length;++n){const o=e[n];switch(o[0]){case"#":t+=(""===t?"":s?"\n\n":"\n")+(o.substring(1)||" "),r=!0,s=!1;break;case"%":"#"!==e[n+1]?.[0]&&(n+=1),r=!1;break;default:r||(s=!0),r=!1}}return{comment:t,afterEmptyLine:s}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,s)=>{const n=l(e);s?this.warnings.push(new i.YAMLWarning(n,t,r)):this.errors.push(new i.YAMLParseError(n,t,r))},this.directives=new n.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:s}=p(this.prelude);if(r){const n=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${r}`:r;else if(s||e.directives.docStart||!n)e.commentBefore=r;else if(a.isCollection(n)&&!n.flow&&n.items.length>0){let e=n.items[0];a.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=n.commentBefore;n.commentBefore=e?`${r}\n${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(s.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,r,s)=>{const n=l(e);n[0]+=t,this.onError(n,"BAD_DIRECTIVE",r,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=c.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=u.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),r=new o.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}},4988:(e,t,r)=>{"use strict";var s=r(9714),n=r(3334),o=r(1919);function i(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:a},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],u={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},l=[n.map,o.seq].concat(c,u);t.schema=l},5132:(e,t,r)=>{"use strict";var s=r(9714);const n={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},r){if(e&&n.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=n},5139:(e,t,r)=>{"use strict";var s=r(7444),n=r(9637),o=r(3793),i=r(484),a=r(3732);t.addPairToJSMap=function(e,t,{key:r,value:c}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,c);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,c);else{const n=a.toJS(r,"",e);if(t instanceof Map)t.set(n,a.toJS(c,n,e));else if(t instanceof Set)t.add(n);else{const u=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&r?.doc){const t=o.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),s.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,n,e),l=a.toJS(c,u,e);u in t?Object.defineProperty(t,u,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[u]=l}}return t}},5141:(e,t,r)=>{"use strict";var s=r(4070),n=r(7571),o=r(4355),i=r(7180);function a(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function c(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let n=t.length;"block-scalar-header"===e.props[0].type&&(n-=e.props[0].source.length);for(const e of s)e.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:s});break}case"block-map":case"block-seq":{const s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[s]});break}default:{const s="indent"in e?e.indent:-1,n="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:s,source:t,end:n})}}}t.createScalarToken=function(e,t){const{implicitKey:r=!1,indent:s,inFlow:n=!1,offset:o=-1,type:c="PLAIN"}=t,u=i.stringifyString({type:c,value:e},{implicitKey:r,indent:s>0?" ".repeat(s):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(u[0]){case"|":case">":{const e=u.indexOf("\n"),t=u.substring(0,e),r=u.substring(e+1)+"\n",n=[{type:"block-scalar-header",offset:o,indent:s,source:t}];return a(n,l)||n.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:o,indent:s,props:n,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:u,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:u,end:l};default:return{type:"scalar",offset:o,indent:s,source:u,end:l}}},t.resolveAsScalar=function(e,t=!0,r){if(e){const i=(e,t,s)=>{const n="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!r)throw new o.YAMLParseError([n,n+1],t,s);r(n,t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return n.resolveFlowScalar(e,t,i);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,i)}}return null},t.setScalarValue=function(e,t,r={}){let{afterKey:s=!1,implicitKey:n=!1,inFlow:o=!1,type:u}=r,l="indent"in e?e.indent:null;if(s&&"number"==typeof l&&(l+=2),!u)switch(e.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");u=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}const p=i.stringifyString({type:u,value:t},{implicitKey:n||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(p[0]){case"|":case">":!function(e,t){const r=t.indexOf("\n"),s=t.substring(0,r),n=t.substring(r+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=s,e.source=n}else{const{offset:t}=e,r="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:r,source:s}];a(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:n})}}(e,p);break;case'"':c(e,p,"double-quoted-scalar");break;case"'":c(e,p,"single-quoted-scalar");break;default:c(e,p,"scalar")}}},5219:(e,t,r)=>{"use strict";var s=r(1736),n=r(484),o=r(9714);t.createNode=function(e,t,r){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){const t=r.schema[n.MAP].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:u,sourceObjects:l}=r;let p;if(i&&e&&"object"==typeof e){if(p=l.get(e),p)return p.anchor??(p.anchor=a(e)),new s.Alias(p.anchor);p={anchor:null,node:null},l.set(e,p)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,r){if(t){const e=r.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,u.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new o.Scalar(e);return p&&(p.node=t),t}d=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}c&&(c(d),delete r.onTagObj);const h=d?.createNode?d.createNode(r.schema,e,r):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(r.schema,e,r):new o.Scalar(e);return t?h.tag=t:d.default||(h.tag=d.tag),p&&(p.node=h),h}},5238:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var s,n,o=r(6903),i=r(5458),a=r(153),c=r(6517),u=r(9973),l=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},p=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(r,s){t(r,s,e)}};let h=class{static{0}static schema={parameters:{help:{description:"Displays help for a command.",type:a.A}}};#f;#m;constructor(e,t){this.#f=e,this.#m=t}execute({help:e}){return!0!==e||(this.#f.execute({command:(0,i.A)(this.#m.route).path}),!1)}};h=l([(0,o.Gr)(),d(0,(0,o.WQ)(c.A)),d(1,(0,o.WQ)(u.A)),p("design:paramtypes",["function"==typeof(s=void 0!==c.A&&c.A)?s:Object,"function"==typeof(n=void 0!==u.A&&u.A)?n:Object])],h);const f=h},5333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(4227),i=r(4227),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e,{opts:l}=u,p=(0,s.allSchemaProperties)(r),d=p.filter(e=>(0,o.alwaysValidSchema)(u,r[e]));if(0===p.length||d.length===p.length&&(!u.opts.unevaluated||!0===u.props))return;const h=l.strictSchema&&!l.allowMatchingProperties&&c.properties,f=t.name("valid");!0===u.props||u.props instanceof n.Name||(u.props=(0,i.evaluatedPropsToName)(t,u.props));const{props:m}=u;function g(e){for(const t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(r){t.forIn("key",a,o=>{t.if(n._`${(0,s.usePattern)(e,r)}.test(${o})`,()=>{const s=d.includes(r);s||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:i.Type.Str},f),u.opts.unevaluated&&!0!==m?t.assign(n._`${m}[${o}]`,!0):s||u.allErrors||t.if((0,n.not)(f),()=>t.break())})})}!function(){for(const e of p)h&&g(e),u.allErrors?y(e):(t.var(f,!0),y(e),t.if(f))}()}};t.default=a},5354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(494),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,s.validateTuple)(e,"items")};t.default=n},5437:(e,t,r)=>{"use strict";var s=r(3144);function n(e,t){const r=e[0],s="-"===r||"+"===r?e.substring(1):e,n=e=>t?BigInt(e):Number(e),o=s.replace(/_/g,"").split(":").reduce((e,t)=>e*n(60)+n(t),n(0));return"-"===r?n(-1)*o:o}function o(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const i={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:o},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:o},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,s,o,i,a,u]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let p=Date.UTC(r,s-1,o,i||0,a||0,u||0,l);const d=t[8];if(d&&"Z"!==d){let e=n(d,!1);Math.abs(e)<30&&(e*=60),p-=6e4*e}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=a,t.intTime=i,t.timestamp=c},5457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const s=r(9029),n=r(4227),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>s.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>s._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:s}=t;Array.isArray(s)?i(e,s):(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:r,schema:o,data:i,keyword:a,it:c}=e;c.items=!0;const u=r.const("len",s._`${i}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(s._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,n.alwaysValidSchema)(c,o)){const o=r.var("valid",s._`${u} <= ${t.length}`);r.if((0,s.not)(o),()=>function(o){r.forRange("i",t.length,u,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:n.Type.Num},o),c.allErrors||r.if((0,s.not)(o),()=>r.break())})}(o)),e.ok(o)}}t.validateAdditionalItems=i,t.default=o},5458:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new Error("");return e}r.d(t,{A:()=>s})},5752:(e,t,r)=>{"use strict";var s=r(9112);function n(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const o=new Set("0123456789ABCDEFabcdef"),i=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),a=new Set(",[]{}"),c=new Set(" ,[]{}\n\r\t"),u=e=>!e||c.has(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){const t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"===t||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&n(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===s.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){const s=e[r-1];if(" "===s||"\t"===s){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){const r=e[t-1];if(" "!==r&&"\t"!==r)break;t-=1}const s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield s.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if(("---"===e||"..."===e)&&n(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!n(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&n(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(u),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const o=this.getLine();if(null===o)return this.setNext("flow");if(-1!==r&&r<this.indentNext&&"#"!==o[0]||0===r&&(o.startsWith("---")||o.startsWith("..."))&&n(o[3])){if(!(r===this.indentNext-1&&1===this.flowLevel&&("]"===o[0]||"}"===o[0])))return this.flowLevel=0,yield s.FLOW_END,yield*this.parseLineStart()}let i=0;for(;","===o[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(u),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||n(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const r=this.buffer.substring(0,t);let s=r.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){const e=this.continueScalar(s+1);if(-1===e)break;s=r.indexOf("\n",e)}-1!==s&&(t=s-("\r"===r[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>n(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":r+=1;break;case"\n":t=s,r=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if("\t"===e){for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);const n=e;for(;" "===s;)s=this.buffer[--e];if(!("\n"===s&&e>=this.pos&&e+1+r>n))break;t=e}return yield s.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,r=this.pos-1,o=this.pos-1;for(;t=this.buffer[++o];)if(":"===t){const t=this.buffer[o+1];if(n(t)||e&&a.has(t))break;r=o}else if(n(t)){let s=this.buffer[o+1];if("\r"===t&&("\n"===s?(o+=1,t="\n",s=this.buffer[o+1]):r=o),"#"===s||e&&a.has(s))break;if("\n"===t){const e=this.continueScalar(o+1);if(-1===e)break;o=Math.max(o,e-2)}}else{if(e&&a.has(t))break;r=o}return t||this.atEnd?(yield s.SCALAR,yield*this.pushToIndex(r+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(u))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(n(t)||e&&a.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else{if("%"!==t||!o.has(this.buffer[e+1])||!o.has(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do{t=this.buffer[++r]}while(" "===t||e&&"\t"===t);const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},5765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(9029),n=r(4227),o=r(2023),i=r(4227);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:s._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return s._`${a(e)}.call(${t}, ${r})`}function u(e,t,r,n){const o=s._`${t}${(0,s.getProperty)(r)} === undefined`;return n?(0,s.or)(o,(0,s.not)(c(e,t,r))):o}function l(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:o}=e;r.if(u(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:s._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},n,o){return(0,s.or)(...n.map(n=>(0,s.and)(u(e,t,n,r.ownProperties),s._`${o} = ${n}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,n){const o=s._`${t}${(0,s.getProperty)(r)} !== undefined`;return n?s._`${o} && ${c(e,t,r)}`:o},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:a},it:c},u,l,p){const d=p?s._`${e}, ${t}, ${n}${i}`:t,h=[[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=s._`${d}, ${r.object(...h)}`;return l!==s.nil?s._`${u}.call(${l}, ${f})`:s._`${u}(${f})`};const p=s._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:s._`${"new RegExp"===o.code?p:(0,i.useFunc)(e,o)}(${r}, ${n})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:i}=e,a=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return c(()=>t.assign(e,!1)),e}return t.var(a,!0),c(()=>t.break()),a;function c(i){const c=t.const("len",s._`${r}.length`);t.forRange("i",0,c,r=>{e.subschema({keyword:o,dataProp:r,dataPropType:n.Type.Num},a),t.if((0,s.not)(a),i)})}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(e=>(0,n.alwaysValidSchema)(i,e))&&!i.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((r,n)=>{const i=e.subschema({keyword:o,schemaProp:n,compositeRule:!0},c);t.assign(a,s._`${a} || ${c}`);e.mergeValidEvaluated(i,c)||t.if((0,s.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}},5822:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(8080),c=r(7969),u=r(7191),l=r(6936),p=r(9637),d=r(692),h=r(8416),f=r(2557),m=r(5437);const g=[s.map,o.seq,i.string,n.nullTag,c.trueTag,c.falseTag,l.intBin,l.intOct,l.int,l.intHex,u.floatNaN,u.floatExp,u.float,a.binary,p.merge,d.omap,h.pairs,f.set,m.intTime,m.floatTime,m.timestamp];t.schema=g},5844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach((t,r)=>{if((0,s.alwaysValidSchema)(n,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(i)})}};t.default=n},5882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=s.operators,o={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:e,schemaCode:t})=>s.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(s._`${r} ${o[t].fail} ${n} || isNaN(${r})`)}};t.default=a},5926:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var s=r(6903),n=r(4523),o=r(153),i=r(3121),a=r(6502),c=r(1354),u=r(6276);const l="merge",p="substitute";class d{source;strategy;target;constructor(e,t,r=p){this.target=e,this.source=t,this.strategy=r}pull(){this.strategy===l?this.target.merge(this.source.entity):this.target.substitute(this.source.entity)}}class h{get bindings(){return this.#g}#g=[];add(e){this.#g.push(e)}pullAll(){for(const e of this.#g)e.pull()}}var f,m=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},g=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(e,t){return function(r,s){t(r,s,e)}};let b=class{static{0}static schema={description:"Push all labels from the local storage to the remote storage.",parameters:{force:{defaultValue:!1,description:"Force push even if hashes match.",type:o.A},of:{description:"Entity type to delete.",type:i.o4}}};#e;#t;#y;#b=!1;constructor(e,t,r){this.#y=e,this.#e=t,this.#t=r}async execute({force:e,of:t}){this.#b=!(0,n.b0)(t),this.#t.info(`Pushing all entities${t?` of type ${t}`:""} from the local to the remote storage.`),this.#t.info("Taking the first run, trying to resolve as many dependencies as possible.");const r=new h;for await(const s of this.#e.all(t))await this.#v(s,r,e);this.#t.info("Commiting changes to the remote storage."),await this.#y.commit(),r.pullAll(),this.#t.info("Taking the second run, pushing remaining entities.");const s=new h;for(const e of r.bindings)await this.#w(e.target,e.source,s);this.#t.info("Commiting changes to the remote storage second time."),await this.#y.commit(),s.pullAll();for(const e of r.bindings){const t=await this.#_(e.source),r=(0,a.A)(t);e.source.hash=r,e.target.hash=r,e.target.preserveHash=!0}this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}async#E(e,t){this.#t.info(`Found a new ${e.schema.type} in the local storage, adding to the remote storage.`),this.#t.debug(`Bringing dependencies of the ${e.schema.type} to primary keys...`);const r=await e.tryBringDependenciesToPrimaryKeys(),s=await this.#_(e);t.add(new d(e,await this.#y.new(e.schema.type,s),r?p:l))}async#k(e,t=!1){if(this.#t.warn(`Entity of type ${e.schema.type} is not found in the remote storage, deleting it from the local as well.`),e.delete(),t)for await(const t of this.#e.all())t.freeOf((0,u.A)(e))}async#v(e,t,r=!1){const s=(0,a.A)(e.entity),o=e.hash;if(e.notHasPrimaryKey||e.schema.isPrimaryKeyRequired&&(0,n.b0)(o))return void await this.#E(e,t);if(!r&&s===o)return void this.#t.info(`The calculated and saved hashes of ${e.schema.type} ${e.preferredUniqueKey} are equal, skipping.`);const i=await this.#y.one(e.schema.type,e.entity);if((0,n.b0)(i))return void await this.#k(e,!r);const c=(0,a.A)(i.entity);if(s!==c){if(o===c){this.#t.info(`The saved and remote hashes of ${e.schema.type} ${e.preferredUniqueKey} are the same, updating remote.`);const r=await this.#_(e);return void t.add(new d(e,i.substitute(r)))}this.#t.warn(`Conflict detected, the hash of the remote ${e.schema.type} "${c}" and the saved hash of the local ${e.schema.type} "${o}" don't match, updating local ${e.schema.type}.`),e.substitute(i.entity)}else this.#t.info(`The calculated and remote hashes of ${e.schema.type} ${e.preferredUniqueKey} are the same, skipping.`)}async#w(e,t,r){if(!await e.tryBringDependenciesToPrimaryKeys())return void this.#t.warn(`The ${e.schema.type} still has non-primary key dependencies, skipping.`);const s=(0,a.A)(e.entity);s!==(0,a.A)(t.entity)?r.add(new d(e,t.substitute(await this.#_(e)))):this.#t.info(`The hash of the remote ${e.schema.type} and newly calculated of the local ${e.schema.type} is the same "${s}", skipping.`)}async#_(e){if(!this.#b)return{...e.entity};const t=await e.getFreeOfNonPrimaryKeyDependeciesEntity();return Object.fromEntries(Object.entries(t).filter(([t])=>{const r=e.schema.properties[t];return(0,n.b0)(r?.reference)||r.reference===e.schema.type}))}};b=m([(0,s.Gr)(),y(0,(0,s.WQ)("RemoteStorage")),y(1,(0,s.WQ)("LocalStorage")),y(2,(0,s.WQ)(c.A)),g("design:paramtypes",[Object,Object,"function"==typeof(f=void 0!==c.A&&c.A)?f:Object])],b);const v=b},5944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(8343);s.code='require("ajv/dist/runtime/uri").default',t.default=s},5970:(e,t)=>{"use strict";const r=Symbol("break visit"),s=Symbol("skip children"),n=Symbol("remove item");function o(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),i(Object.freeze([]),e,t)}function i(e,t,s){let o=s(t,e);if("symbol"==typeof o)return o;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const o=i(Object.freeze(e.concat([[a,t]])),c.items[t],s);if("number"==typeof o)t=o-1;else{if(o===r)return r;o===n&&(c.items.splice(t,1),t-=1)}}"function"==typeof o&&"key"===a&&(o=o(t,e))}}return"function"==typeof o?o(t,e):o}o.BREAK=r,o.SKIP=s,o.REMOVE=n,o.itemAtPath=(e,t)=>{let r=e;for(const[e,s]of t){const t=r?.[e];if(!t||!("items"in t))return;r=t.items[s]}return r},o.parentCollection=(e,t)=>{const r=o.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],n=r?.[s];if(n&&"items"in n)return n;throw new Error("Parent collection not found")},t.visit=o},6007:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{writeLine(e,t){process.stdout.write(`[${t}]: ${e}\n`)}}},6010:(e,t,r)=>{"use strict";var s=r(5219),n=r(81),o=r(1614),i=r(484),a=r(9714),c=r(3732);class u extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=l(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const r=l(e);if("number"!=typeof r)return;const s=this.items[r];return!t&&i.isScalar(s)?s.value:s}has(e){const t=l(e);return"number"==typeof t&&t<this.items.length}set(e,t){const r=l(e);if("number"!=typeof r)throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[r];i.isScalar(s)&&a.isScalarValue(t)?s.value=t:this.items[r]=t}toJSON(e,t){const r=[];t?.onCreate&&t.onCreate(r);let s=0;for(const e of this.items)r.push(c.toJS(e,String(s++),t));return r}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){const{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof n){const r=t instanceof Set?i:String(e++);i=n.call(t,r,i)}o.items.push(s.createNode(i,void 0,r))}}return o}}function l(e){let t=i.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=u},6055:(e,t,r)=>{"use strict";var s=r(9714);const n={identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&n.test.test(e)?e:t.options.nullStr};t.nullTag=n},6144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2128),n=r(7060),o=r(6378),i=r(7532),a=r(9857),c=[s.default,n.default,(0,o.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},6163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>s._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator)return;const a=r,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block(function(){a.forEach((r,o)=>{let a;(0,n.alwaysValidSchema)(i,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(s._`${l} && ${c}`).assign(c,!1).assign(u,s._`[${u}, ${o}]`).else(),t.if(l,()=>{t.assign(c,!0),t.assign(u,o),a&&e.mergeEvaluated(a,s.Name)})})}),e.result(c,()=>e.reset(),()=>e.error(!0))}};t.default=o},6170:(e,t)=>{"use strict";const r="block",s="quoted";function n(e,t,r){let s=t,n=t+1,o=e[n];for(;" "===o||"\t"===o;)if(t<n+r)o=e[++t];else{do{o=e[++t]}while(o&&"\n"!==o);s=t,n=t+1,o=e[n]}return s}t.FOLD_BLOCK=r,t.FOLD_FLOW="flow",t.FOLD_QUOTED=s,t.foldFlowLines=function(e,t,o="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:c=20,onFold:u,onOverflow:l}={}){if(!a||a<0)return e;a<c&&(c=0);const p=Math.max(1+c,1+a-t.length);if(e.length<=p)return e;const d=[],h={};let f,m,g=a-t.length;"number"==typeof i&&(i>a-Math.max(2,c)?d.push(0):g=a-i);let y=!1,b=-1,v=-1,w=-1;o===r&&(b=n(e,b,t.length),-1!==b&&(g=b+p));for(let i;i=e[b+=1];){if(o===s&&"\\"===i){switch(v=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}w=b}if("\n"===i)o===r&&(b=n(e,b,t.length)),g=b+t.length+p,f=void 0;else{if(" "===i&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[b+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=b)}if(b>=g)if(f)d.push(f),g=f+p,f=void 0;else if(o===s){for(;" "===m||"\t"===m;)m=i,i=e[b+=1],y=!0;const t=b>w+1?b-2:v-1;if(h[t])return e;d.push(t),h[t]=!0,g=t+p,f=void 0}else y=!0}m=i}if(y&&l&&l(),0===d.length)return e;u&&u();let _=e.slice(0,d[0]);for(let r=0;r<d.length;++r){const n=d[r],i=d[r+1]||e.length;0===n?_=`\n${t}${e.slice(0,i)}`:(o===s&&h[n]&&(_+=`${e[n]}\\`),_+=`\n${t}${e.slice(n+1,i)}`)}return _}},6247:(e,t,r)=>{"use strict";var s=r(932),n=r(9112),o=r(5752);function i(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function c(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function u(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function l(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function p(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||i(t.start,"explicit-key-ind")||i(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,c(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new o.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,s.env.LOG_TOKENS&&console.log("|",n.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=n.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&p(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:t,sep:[]}),void(this.onKeyLine=!r.explicitKey);r.value=t;break}case"block-seq":{const r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];return void(!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===a(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==a(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=l(u(this.peek(2)));let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;"comment"===s?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s))return Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,s=r&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type;let n=[];if(s&&t.sep&&!t.value){const r=[];for(let s=0;s<t.sep.length;++s){const n=t.sep[s];switch(n.type){case"newline":r.push(s);break;case"space":break;case"comment":n.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(n=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":return void(s||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||t.explicitKey?s||t.value?(n.push(this.sourceToken),e.items.push({start:n,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),void(this.onKeyLine=!0);case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(c(t.key)&&!i(t.sep,"newline")){const e=l(t.start),r=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:s}]})}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken);else if(i(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=l(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:n,key:null,sep:[this.sourceToken]}):i(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(s||t.value?(e.items.push({start:n,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!i(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else r&&e.items.push({start:n});return void this.stack.push(s)}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;"comment"===s?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s))return Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||i(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const r=l(u(t));p(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=l(u(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=l(u(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},6250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2017);s.code='require("ajv/dist/runtime/equal").default',t.default=s},6261:(e,t,r)=>{"use strict";var s=r(484),n=r(9125);function o(e){const t=new Set;return n.visit(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function i(e,t){for(let r=1;;++r){const s=`${e}${r}`;if(!t.has(s))return s}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=o,t.createNodeAnchors=function(e,t){const r=[],n=new Map;let a=null;return{onAnchor:s=>{r.push(s),a??(a=o(e));const n=i(t,a);return a.add(n),n},setAnchors:()=>{for(const e of r){const t=n.get(e);if("object"!=typeof t||!t.anchor||!s.isScalar(t.node)&&!s.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:n}},t.findNewAnchor=i},6276:(e,t,r)=>{"use strict";function s(e){return e}r.d(t,{A:()=>s})},6378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5457),n=r(5354),o=r(494),i=r(3966),a=r(2661),c=r(3025),u=r(9713),l=r(8660),p=r(117),d=r(5333),h=r(7923),f=r(6505),m=r(6163),g=r(5844),y=r(1239),b=r(4426);t.default=function(e=!1){const t=[h.default,f.default,m.default,g.default,y.default,b.default,u.default,l.default,c.default,p.default,d.default];return e?t.push(n.default,i.default):t.push(s.default,o.default),t.push(a.default),t}},6486:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(4523),n=r(6276);class o{schemaRegistry;#T=new Set;#O=new Map;#S=new Map;constructor(e){this.schemaRegistry=e}all(e){return(0,s.b0)(e)?(0,n.A)(Array.from(this.#T)):(0,n.A)(Array.from(this.#O.get(e)??[]))}one(e,t){return(0,n.A)(Object.entries(t).map(([t,r])=>this.#S.get(e)?.get(t)?.get((0,n.A)(r))).at(0))}set(e){this.#T.add((0,n.A)(e)),this.#A(e.schema.type,(0,n.A)(e)),this.#$(e.schema.type,(0,n.A)(e))}delete(e){this.#T.delete((0,n.A)(e));const t=this.#O.get(e.schema.type);t?.delete((0,n.A)(e));const r=this.#S.get(e.schema.type);if(void 0!==r)for(const[t,o]of Object.entries(e.schema.properties))if(o.primaryKey||o.unique||(0,s.kZ)(e.primaryKey)&&o.newUnique){const o=r.get(t);if(void 0!==o){const r=(0,n.A)(e.entity)[t];((0,s.Et)(r)||(0,s.Kg)(r))&&o.delete(r)}}}#A(e,t){const r=this.#O.get(e)??new Set;this.#O.set(e,r),r.add(t)}#$(e,t){const r=this.#S.get(e)??new Map;this.#S.set(e,r);const o=this.schemaRegistry.get(e);if((0,s.b0)(o))throw new Error(`Can't find "${e}" schema.`);for(const[e,i]of Object.entries(o.properties))if(i.primaryKey||i.unique||(0,s.kZ)(t.primaryKey)&&i.newUnique){const o=r.get(e)??new Map;r.set(e,o);const i=(0,n.A)(t.entity)[e];((0,s.Et)(i)||(0,s.Kg)(i))&&o.set(i,t)}}}},6502:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6982);function n(e){return Array.isArray(e)?e.map(e=>n(e)).join("|"):"object"==typeof e&&null!==e?Object.keys(e).toSorted().map(t=>n(e[t])).join("|"):null===e?"null":void 0===e?"":e.toString()}const o=function(e){return s.createHash("md5").update(n(e),"utf8").digest("hex")}},6505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(5765).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=s},6517:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s,n=r(6903),o=r(4523),i=r(5458),a=r(7386),c=r(2596),u=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(r,s){t(r,s,e)}};let d=class{static{0}static schema={description:"Display help information about KickCat commands.",parameters:{command:{description:"The command to get help for",type:c.A}}};#P;constructor(e){this.#P=e}execute({command:e}){(0,o.Kg)(e)?this.#j(e):this.#R()}#j(e){const{commands:t,route:r}=this.#P.router.resolve(e);if(0===t.length)return void console.log(`Command "${e}" not found.`);const s=(0,i.A)((0,o.HV)(t));let n=[];for(const e of t)n=[...n,...Array.from(e.options)];const a=(0,o.Ul)(n,e=>e.name).map(e=>` ${e.name} <${e.type.toString()}> - ${e.description}`).join("\n");console.log(`\nCommand: ${r.path}\nDescription:\n${s.description}\nOptions: \n${a}`)}#R(){const e=this.#P.router.endpoints.filter(({route:e})=>!e.hasWildcard),t=(0,o.Ul)(e,e=>e.route.path).map(({commands:e,route:t})=>{const r=(0,i.A)((0,o.HV)(e));return` ${t.path} - ${r.description}`}).join("\n");console.log(`\n${this.#P.configuration.name} ${this.#P.configuration.version??""}\nAuthor: ${this.#P.configuration.author??""}\nLicense: ${this.#P.configuration.license??""}\n\nDescription:\n${this.#P.configuration.description??""}\n\nCommands:\n${t}\n\nFor more information on a specific command, use '${this.#P.configuration.name} help --command=[command].`)}};d=u([(0,n.Gr)(),p(0,(0,n.WQ)(a.A)),l("design:paramtypes",["function"==typeof(s=void 0!==a.A&&a.A)?s:Object])],d);const h=d},6585:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s,n=r(6903),o=r(1354),i=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},a=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(r,s){t(r,s,e)}};let u=class{static{0}static schema={description:"Repair broken local storage.",parameters:{}};#e;#t;constructor(e,t){this.#e=e,this.#t=t}async execute({}){this.#t.info("Repairing broken local storage..."),await this.#e.commit()}};u=i([(0,n.Gr)(),c(0,(0,n.WQ)("LocalStorage")),c(1,(0,n.WQ)(o.A)),a("design:paramtypes",[Object,"function"==typeof(s=void 0!==o.A&&o.A)?s:Object])],u);const l=u},6653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(7652),o=r(3835),i=r(4551),a=r(4227),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>s._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:c,parentSchema:u,it:l}=e,{oneOf:p}=u;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=c.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),f=t.const("tag",s._`${r}${(0,s.getProperty)(d)}`);function m(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,s.Name),n}t.if(s._`typeof ${f} == "string"`,()=>function(){const r=function(){var e;const t={},r=n(u);let s=!0;for(let t=0;t<p.length;t++){let u=p[t];if((null==u?void 0:u.$ref)&&!(0,a.schemaHasRulesButRef)(u,l.self.RULES)){const e=u.$ref;if(u=o.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,e),u instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new i.default(l.opts.uriResolver,l.baseId,e)}const h=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[d];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);s=s&&(r||n(u)),c(h,t)}if(!s)throw new Error(`discriminator: "${d}" must be required`);return t;function n({required:e}){return Array.isArray(e)&&e.includes(d)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${d}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(s._`${f} === ${e}`),t.assign(h,m(r[e]));t.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:f,tagName:d}),t.endIf()}(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:f,tagName:d})),e.ok(h)}};t.default=c},6773:e=>{"use strict";const t=function(){};t.prototype=Object.create(null);const r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,s=/\\([\v\u0020-\u00ff])/gu,n=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:"",parameters:new t};function i(e){if("string"!=typeof e)throw new TypeError("argument header is required and must be a string");let o=e.indexOf(";");const i=-1!==o?e.slice(0,o).trim():e.trim();if(!1===n.test(i))throw new TypeError("invalid media type");const a={type:i.toLowerCase(),parameters:new t};if(-1===o)return a;let c,u,l;for(r.lastIndex=o;u=r.exec(e);){if(u.index!==o)throw new TypeError("invalid parameter format");o+=u[0].length,c=u[1].toLowerCase(),l=u[2],'"'===l[0]&&(l=l.slice(1,l.length-1),s.test(l)&&(l=l.replace(s,"$1"))),a.parameters[c]=l}if(o!==e.length)throw new TypeError("invalid parameter format");return a}function a(e){if("string"!=typeof e)return o;let i=e.indexOf(";");const a=-1!==i?e.slice(0,i).trim():e.trim();if(!1===n.test(a))return o;const c={type:a.toLowerCase(),parameters:new t};if(-1===i)return c;let u,l,p;for(r.lastIndex=i;l=r.exec(e);){if(l.index!==i)return o;i+=l[0].length,u=l[1].toLowerCase(),p=l[2],'"'===p[0]&&(p=p.slice(1,p.length-1),s.test(p)&&(p=p.replace(s,"$1"))),c.parameters[u]=p}return i!==e.length?o:c}Object.freeze(o.parameters),Object.freeze(o),e.exports.xL=a},6845:(e,t)=>{"use strict";t.resolveEnd=function(e,t,r,s){let n="";if(e){let o=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=!0;break;case"comment":{r&&!o&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";n?n+=i+t:n=t,i="";break}case"newline":n&&(i+=e),o=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:n,offset:t}}},6903:(e,t,r)=>{"use strict";var s;r.d(t,{kL:()=>$,WQ:()=>j,Gr:()=>I}),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(s||(s={}));const n=s;var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},o(e,t)};function i(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e,t,r,s){return new(r||(r=Promise))(function(n,o){function i(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((s=s.apply(e,t||[])).next())})}function c(e,t){var r,s,n,o,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,s&&(n=2&o[0]?s.return:o[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,o[1])).done)return n;switch(s=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,s=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(6===o[0]&&i.label<n[1]){i.label=n[1],n=o;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(o);break}n[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],s=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],s=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var s,n,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function d(e){return!!e.useClass}function h(e){return!!e.useFactory}var f=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,s=!1;return new Proxy({},this.createHandler(function(){return s||(t=e(r.wrap()),s=!0),t}))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach(function(r){t[r]=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];return t[0]=e(),Reflect[r].apply(void 0,p(t))}}),t},e}();function m(e){return"string"==typeof e||"symbol"==typeof e}function g(e){return"object"==typeof e&&"token"in e&&"transform"in e}function y(e){return!!e.useToken}function b(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}();const w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v);const _=function(){this.scopedResolutions=new Map};function E(e,t,r){var s,n,o=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],i=function(e,t){return null===e?"at position #"+t:'"'+e.split(",")[t].trim()+'" at position #'+t}(void 0===o?null:o,t);return s="Cannot inject the dependency "+i+' of "'+e.name+'" constructor. Reason:',void 0===n&&(n=" "),p([s],r.message.split("\n").map(function(e){return n+e})).join("\n")}var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v);const O=function(){this.preResolution=new k,this.postResolution=new T};var S=new Map,A=function(){function e(e){this.parent=e,this._registry=new w,this.interceptors=new O,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var s;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),s=function(e){return d(e)||b(e)||y(e)||h(e)}(t)?t:{useClass:t},y(s))for(var o=[e],i=s;null!=i;){var a=i.useToken;if(o.includes(a))throw new Error("Token registration cycle detected! "+p(o,[a]).join(" -> "));o.push(a);var c=this._registry.get(a);i=c&&y(c.provider)?c.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(b(s)||h(s)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:s,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),m(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),m(e)){if(m(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!m(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t,r){void 0===t&&(t=new _),void 0===r&&(r=!1),this.ensureNotDisposed();var s=this.getRegistration(e);if(!s&&m(e)){if(r)return;throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"Single"),s){var n=this.resolveRegistration(s,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}if(function(e){return"function"==typeof e||e instanceof f}(e)){n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,s;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var o=u(this.interceptors.preResolution.getAll(e)),i=o.next();!i.done;i=o.next()){var a=i.value;"Once"!=a.options.frequency&&n.push(a),a.callback(e,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var s,n;if(this.interceptors.postResolution.has(e)){var o=[];try{for(var i=u(this.interceptors.postResolution.getAll(e)),a=i.next();!a.done;a=i.next()){var c=a.value;"Once"!=c.options.frequency&&o.push(c),c.callback(e,t,r)}}catch(e){s={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}this.interceptors.postResolution.setAll(e,o)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,s=e.options.lifecycle===n.Singleton,o=e.options.lifecycle===n.ContainerScoped,i=s||o;return r=b(e.provider)?e.provider.useValue:y(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):d(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):h(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t,r){var s=this;void 0===t&&(t=new _),void 0===r&&(r=!1),this.ensureNotDisposed();var n=this.getAllRegistrations(e);if(!n&&m(e)){if(r)return[];throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"All"),n){var o=n.map(function(e){return s.resolveRegistration(e,t)});return this.executePostResolutionInterceptor(e,o,"All"),o}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=u(this._registry.entries()),s=r.next();!s.done;s=r.next()){var n=l(s.value,2),o=n[0],i=n[1];this._registry.setAll(o,i.filter(function(e){return!b(e.provider)}).map(function(e){return e.instance=void 0,e}))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var s=new e(this);try{for(var o=u(this._registry.entries()),i=o.next();!i.done;i=o.next()){var a=l(i.value,2),c=a[0],p=a[1];p.some(function(e){return e.options.lifecycle===n.ContainerScoped})&&s._registry.setAll(c,p.map(function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e}))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return s},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return a(this,void 0,void 0,function(){var e;return c(this,function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach(function(t){var r=t.dispose();r&&e.push(r)}),[4,Promise.all(e)];case 1:return t.sent(),[2]}})})},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof f)return e.createProxy(function(e){return r.resolve(e,t)});var s,n=function(){var s=S.get(e);if(!s||0===s.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=s.map(r.resolveParams(t,e));return new(e.bind.apply(e,p([void 0],n)))}();return"function"!=typeof(s=n).dispose||s.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(s,n){var o,i,a,c;try{return"object"==typeof(c=s)&&"token"in c&&"multiple"in c?g(s)?s.multiple?(o=r.resolve(s.transform)).transform.apply(o,p([r.resolveAll(s.token,new _,s.isOptional)],s.transformArgs)):(i=r.resolve(s.transform)).transform.apply(i,p([r.resolve(s.token,e,s.isOptional)],s.transformArgs)):s.multiple?r.resolveAll(s.token,new _,s.isOptional):r.resolve(s.token,e,s.isOptional):g(s)?(a=r.resolve(s.transform,e)).transform.apply(a,p([r.resolve(s.token,e)],s.transformArgs)):r.resolve(s,e)}catch(e){throw new Error(E(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),$=new A;var P="injectionTokens";const j=function(e,t){return function(e,t){return function(r,s,n){var o=Reflect.getOwnMetadata(P,r)||{};o[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(P,o,r)}}({token:e,multiple:!1,isOptional:t&&t.isOptional})};const R=function(e){return function(t){S.set(t,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(P,e)||{};return Object.keys(r).forEach(function(e){t[+e]=r[e]}),t}(t)),e&&e.token&&(Array.isArray(e.token)?e.token.forEach(function(e){$.register(e,t)}):$.register(e.token,t))}};const I=function(){return function(e){R()(e),$.registerSingleton(e)}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.")},6906:(e,t)=>{"use strict";t.applyReviver=function e(t,r,s,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let r=0,s=n.length;r<s;++r){const s=n[r],o=e(t,n,String(r),s);void 0===o?delete n[r]:o!==s&&(n[r]=o)}else if(n instanceof Map)for(const r of Array.from(n.keys())){const s=n.get(r),o=e(t,n,r,s);void 0===o?n.delete(r):o!==s&&n.set(r,o)}else if(n instanceof Set)for(const r of Array.from(n)){const s=e(t,n,r,r);void 0===s?n.delete(r):s!==r&&(n.delete(r),n.add(s))}else for(const[r,s]of Object.entries(n)){const o=e(t,n,r,s);void 0===o?delete n[r]:o!==s&&(n[r]=o)}return t.call(r,s,n)}},6928:e=>{"use strict";e.exports=require("path")},6936:(e,t,r)=>{"use strict";var s=r(3144);const n=e=>"bigint"==typeof e||Number.isInteger(e);function o(e,t,r,{intAsBigInt:s}){const n=e[0];if("-"!==n&&"+"!==n||(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===n?BigInt(-1)*t:t}const o=parseInt(e,r);return"-"===n?-1*o:o}function i(e,t,r){const{value:o}=e;if(n(o)){const e=o.toString(t);return o<0?"-"+r+e.substr(1):r+e}return s.stringifyNumber(e)}const a={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>o(e,2,2,r),stringify:e=>i(e,2,"0b")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>o(e,1,8,r),stringify:e=>i(e,8,"0")},u={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>o(e,0,10,r),stringify:s.stringifyNumber},l={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>o(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=u,t.intBin=a,t.intHex=l,t.intOct=c},6939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(4227),n=r(2017),o=r(7106),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function u(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,s.eachItem)(e[r],e=>t+=u(e)),t===1/0))return 1/0}return t}function l(e,t="",r){!1!==r&&(t=h(t));const s=e.parse(t);return p(e,s)}function p(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=p;const d=/#\/?$/;function h(e){return e?e.replace(d,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,r){return r=h(r),e.resolve(t,r)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:s}=this.opts,i=h(e[r]||t),a={"":i},c=l(s,i,!1),u={},p=new Set;return o(e,{allKeys:!0},(e,t,s,n)=>{if(void 0===n)return;const o=c+t;let i=a[n];function l(t){const r=this.opts.uriResolver.resolve;if(t=h(i?r(i,t):t),p.has(t))throw m(t);p.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?d(e,s.schema,t):t!==h(o)&&("#"===t[0]?(d(e,u[t],t),u[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[r]&&(i=l.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),a[t]=i}),u;function d(e,t,r){if(void 0!==t&&!n(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},6982:e=>{"use strict";e.exports=require("crypto")},7060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5882),n=r(3439),o=r(7307),i=r(422),a=r(4486),c=r(4003),u=r(1163),l=r(617),p=r(7935),d=r(8643),h=[s.default,n.default,o.default,i.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];t.default=h},7106:e=>{"use strict";var t=e.exports=function(e,t,s){"function"==typeof t&&(s=t,t={}),r(t,"function"==typeof(s=t.cb||s)?s:s.pre||function(){},s.post||function(){},e,"",e)};function r(e,n,o,i,a,c,u,l,p,d){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in n(i,a,c,u,l,p,d),i){var f=i[h];if(Array.isArray(f)){if(h in t.arrayKeywords)for(var m=0;m<f.length;m++)r(e,n,o,f[m],a+"/"+h+"/"+m,c,a,h,i,m)}else if(h in t.propsKeywords){if(f&&"object"==typeof f)for(var g in f)r(e,n,o,f[g],a+"/"+h+"/"+s(g),c,a,h,i,g)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&r(e,n,o,f,a+"/"+h,c,a,h,i)}o(i,a,c,u,l,p,d)}}function s(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},7180:(e,t,r)=>{"use strict";var s=r(9714),n=r(6170);const o=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:s}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?" ":"");let u="",l=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(u+=r.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{u+=r.slice(l,e);const t=r.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===t.substr(0,2)?u+="\\x"+t.substr(2):u+=r.substr(e,6)}e+=5,l=e+1}break;case"n":if(s||'"'===r[e+2]||r.length<a)e+=1;else{for(u+=r.slice(l,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)u+="\n",e+=2;u+=c," "===r[e+2]&&(u+="\\"),e+=1,l=e+1}break;default:e+=1}return u=l?u+r.slice(l):r,s?u:n.foldFlowLines(u,c,n.FOLD_QUOTED,o(t,!1))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const r=t.indent||(i(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?s:n.foldFlowLines(s,r,n.FOLD_FLOW,o(t,!1))}function u(e,t){const{singleQuote:r}=t.options;let s;if(!1===r)s=a;else{const t=e.includes('"'),n=e.includes("'");s=t&&!n?c:n&&!t?a:r?c:a}return s(e,t)}let l;try{l=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{l=/\n+(?!\n|$)/g}function p({comment:e,type:t,value:r},a,c,p){const{blockQuote:d,commentString:h,lineWidth:f}=a.options;if(!d||/\n[\t ]+$/.test(r))return u(r,a);const m=a.indent||(a.forceBlockIndent||i(r)?" ":""),g="literal"===d||"folded"!==d&&t!==s.Scalar.BLOCK_FOLDED&&(t===s.Scalar.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;const s=t-r,n=e.length;if(n<=s)return!1;for(let t=0,r=0;t<n;++t)if("\n"===e[t]){if(t-r>s)return!0;if(r=t+1,n-r<=s)return!1}return!0}(r,f,m.length));if(!r)return g?"|\n":">\n";let y,b;for(b=r.length;b>0;--b){const e=r[b-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=r.substring(b);const w=v.indexOf("\n");-1===w?y="-":r===v||w!==v.length-1?(y="+",p&&p()):y="",v&&(r=r.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(l,`$&${m}`));let _,E=!1,k=-1;for(_=0;_<r.length;++_){const e=r[_];if(" "===e)E=!0;else{if("\n"!==e)break;k=_}}let T=r.substring(0,k<_?k+1:_);T&&(r=r.substring(T.length),T=T.replace(/\n+/g,`$&${m}`));let O=(E?m?"2":"1":"")+y;if(e&&(O+=" "+h(e.replace(/ ?[\r\n]+/g," ")),c&&c()),!g){const e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${m}`);let i=!1;const c=o(a,!0);"folded"!==d&&t!==s.Scalar.BLOCK_FOLDED&&(c.onOverflow=()=>{i=!0});const u=n.foldFlowLines(`${T}${e}${v}`,m,n.FOLD_BLOCK,c);if(!i)return`>${O}\n${m}${u}`}return`|${O}\n${m}${T}${r=r.replace(/\n+/g,`$&${m}`)}${v}`}t.stringifyString=function(e,t,r,l){const{implicitKey:d,inFlow:h}=t,f="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==s.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(m=s.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return d||h?u(f.value,t):p(f,t,r,l);case s.Scalar.QUOTE_DOUBLE:return a(f.value,t);case s.Scalar.QUOTE_SINGLE:return c(f.value,t);case s.Scalar.PLAIN:return function(e,t,r,a){const{type:c,value:l}=e,{actualString:d,implicitKey:h,indent:f,indentStep:m,inFlow:g}=t;if(h&&l.includes("\n")||g&&/[[\]{},]/.test(l))return u(l,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return h||g||!l.includes("\n")?u(l,t):p(e,t,r,a);if(!h&&!g&&c!==s.Scalar.PLAIN&&l.includes("\n"))return p(e,t,r,a);if(i(l)){if(""===f)return t.forceBlockIndent=!0,p(e,t,r,a);if(h&&f===m)return u(l,t)}const y=l.replace(/\n+/g,`$&\n${f}`);if(d){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(y),{compat:r,tags:s}=t.doc.schema;if(s.some(e)||r?.some(e))return u(l,t)}return h?y:n.foldFlowLines(y,f,n.FOLD_FLOW,o(t,!1))}(f,t,r,l);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:r}=t.options,s=d&&e||r;if(y=g(s),null===y)throw new Error(`Unsupported default string type ${s}`)}return y}},7191:(e,t,r)=>{"use strict";var s=r(9714),n=r(3144);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){const s=e.substring(r+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:n.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},7280:(e,t,r)=>{"use strict";r.d(t,{f:()=>g});var s=r(3282),n=r.n(s),o=r(1421);const i=require("node:fs/promises"),a=require("node:path"),c=require("node:util");var u=r(4523),l=r(1198),p=r(6928);var d=r(3121),h=r(262),f=r(6276);class m{filePath;properties={};type;get isPrimaryKeyRequired(){return(0,u.Kg)(this.primaryKeyProperty)&&!0===this.properties[this.primaryKeyProperty]?.required||!1}get newUniqueProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];!0===r?.newUnique&&e.push(t)}return e}get primaryKeyProperty(){for(const e in this.properties){const t=this.properties[e];if(!0===t?.primaryKey)return e}return null}get referenceProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];(0,d.md)(r?.reference)&&e.push(t)}return e}get references(){const e=[];for(const t in this.properties){const r=this.properties[t];(0,d.md)(r?.reference)&&(e.includes(r.reference)||e.push(r.reference))}return e}get uniqueProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];!0===r?.unique&&e.push(t)}return e}#I;#C;constructor(e,t,r){this.type=e,this.filePath=t,this.#I=r;const s=new(n())({allErrors:!1,strict:!1,verbose:!1});s.addFormat("date",!0),s.addFormat("textarea",!0),this.#C=s.compile(this.#I),this.#N()}canValueOfTypeBeOnlyPrimaryKey(e){if((0,u.kZ)(this.primaryKeyProperty))return!1;const t=this.properties[this.primaryKeyProperty];if((0,u.b0)(t))return!1;if(t.type!==e)return!1;if(0===this.uniqueProperties.length&&0===this.newUniqueProperties.length)return!0;if(this.uniqueProperties.map(e=>this.properties[e]).some(t=>t?.type===e))return!1;return!this.newUniqueProperties.map(e=>this.properties[e]).some(t=>t?.type===e)}validate(e){return this.#C(e)}#N(){if(!(0,u.Gv)(this.#I.properties))throw new Error("Invalid JSON schema.");for(const e in this.#I.properties){if(!Object.hasOwn(this.#I.properties,e))continue;const t=this.#I.properties[e];if(!(0,u.Gv)(t))throw new Error("Invlid JSON schema");const r=!!(0,u.Lm)(t["x-kickcat-unique"])&&t["x-kickcat-unique"],s=!!(0,u.Lm)(t["x-kickcat-new-unique"])&&t["x-kickcat-new-unique"],n=(0,u.Et)(t.order)?t.order:Number.MAX_SAFE_INTEGER,o=(0,d.md)(t["x-kickcat-reference"])?t["x-kickcat-reference"]:void 0,i=!!Array.isArray(this.#I.required)&&this.#I.required.includes(e),a=!!(0,u.Lm)(t["x-kickcat-primary-key"])&&t["x-kickcat-primary-key"],c=(0,u.Kg)(t.type)?t.type:"unknown";this.properties[e]={newUnique:s,order:n,primaryKey:a,reference:o,required:i,type:c,unique:r}}}}async function g(e,t){const r=await async function(e,t){for(const r of function(e){const t=[e];let r=(0,p.dirname)(e);for(;!t.includes(r);)t.push(r),r=(0,p.dirname)(e);return t}(__dirname)){const s=(0,a.resolve)(r,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s;if((0,u.Gv)(t)){const s=(0,a.resolve)(r,`node_modules/${t.applicationName}`,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s}}if((0,u.Gv)(t)){const{stdout:r}=await(0,c.promisify)(o.exec)("npm root -g"),s=(0,a.resolve)(r,t.applicationName,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s}throw new Error(`Can't find a "${e}" schema.`)}(e,t),s=await(0,i.readFile)(r,{encoding:"utf-8"}),n=(0,f.A)((0,l.qg)(s,{strict:!1}));return new m(e,r,n)}},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(3853),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i,it:a}=e,c="maxLength"===t?s.operators.GT:s.operators.LT,u=!1===a.opts.unicode?s._`${r}.length`:s._`${(0,n.useFunc)(e.gen,o.default)}(${r})`;e.fail$data(s._`${u} ${c} ${i}`)}};t.default=i},7386:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var s=r(6903),n=r(6007),o=r(1354);const i="*";class a{static any=new a(i);static unknown=new a(i);path;get hasWildcard(){return this.path.includes(i)}#x;constructor(e){if(function(e){return!/[a-z0-9*\s]/iu.test(e)}(e))throw new Error(`String "${e}" is not valid command.`);this.path=function(e){return e.trim().replaceAll(/\s+/gu," ")}(e),this.#x=function(e){return new RegExp("^"+e.replaceAll(i,".*"),"u")}(this.path)}match(e){return this.#x.test(e)}}class c{#D=new Map;add(e){this.#D.set(e.name,e)}get(e){return this.#D.get(e)}[Symbol.iterator](){return this.#D.values()}}class u{action;description;options=new c;constructor(e,t){this.action=e,this.description=t??"The command description is missing."}async execute(e,t){for(const r of this.options)r.parse(e,t);return!1!==await this.action(e.options)}}var l=r(4523);var p=r(5458),d=r(153),h=r(2596);const f=/^--(?<key>[A-Za-z0-9_-]+)(?:=(?<value>(?:"[^"]*"|'[^']*'|[^"']+)))?$/u;class m{defaultValue;description;name;required;tag;type;#x;constructor({defaultValue:e,description:t,name:r,required:s,tag:n,type:o}){if(this.tag=n,/\s+/u.test((r??n).trim()))throw new Error(`"${r}" is not valid command option name.`);this.name=function(e){return`--${t=e.trim(),t.replace(/([a-z0-9])([A-Z])/gu,"$1-$2").replace(/([A-Z])([A-Z][a-z])/gu,"$1-$2").toLowerCase()}`;var t}(r??n),this.#x=function(e){return new RegExp(`^${e}`,"iu")}(this.name),this.type=o??h.A,this.description=t??"The option description is missing.",this.required=s??!1,this.defaultValue=e}parse(e,t){t?.debug(`Parsing ${this.name} option...`),t?.debug(`The raw request is "${e.raw.join(" ")}".`);const r=e.raw.findIndex(e=>this.test(e)),s=r>=0?e.raw[r]:void 0;if((0,l.b0)(s)){if(t?.debug("The option is not found, checking required and default value."),this.required&&(0,l.b0)(this.defaultValue))throw new Error(`Parameter "${this.name}" is required.`);return(0,l.b0)(this.defaultValue)||(e.options[this.tag]=this.defaultValue),void t?.debug("The option is not required and don't have default value, skipping.")}const n=f.exec(s);if(!n)throw new Error(`Incorrect option format ${this.name}.`);let o=n[2];if((0,l.b0)(o)&&this.type!==d.A){const t=e.raw[r+1];(0,l.b0)(t)||t.startsWith("--")||(o=t)}const i=(0,l.b0)(o)?void 0:function(e){if(e.length<2)return e;const t=['"',"'"],r=(0,p.A)(e[0]),s=e[e.length-1];return t.includes(r)&&r===s?e.slice(1,-1):e}(o);if(this.type!==d.A||""!==(i??""))if((0,l.b0)(i)||""===i)if((0,l.b0)(this.defaultValue)){if(this.required)throw new Error(`Parameter "${this.name}" is required.`)}else e.options[this.tag]=this.defaultValue;else e.options[this.tag]=this.type.parse(i);else e.options[this.tag]=!0}test(e){return this.#x.test(e)}}class g{application;route;constructor(e,t){this.route=e,this.application=t}use(e){return this.application.router.add(this.route,e instanceof u?e:function(e){const t=new u(t=>s.kL.resolve(e).execute(t),e.schema.description);for(const[r,s]of Object.entries(e.schema.parameters))t.options.add(new m({defaultValue:s.defaultValue,description:s.description,required:s.required,tag:r,type:s.type}));return t}(e)),this}}class y{get endpoints(){return this.#q}#q=[];#t;constructor(e){this.#t=e}add(e,t){let r=this.#q.find(t=>t.route===e||t.route!==a.unknown&&e!==a.unknown&&t.route.path===e.path);return(0,l.b0)(r)&&(r={commands:[],route:e},this.#q.push(r)),r.commands.includes(t)||r.commands.push(t),this}async dispatch(e){const t=[];let r=this.resolve("");for(const s of e.raw)if(t.push(s),r=this.resolve(t.join(" ")),!r.route.hasWildcard)break;e.route=r.route;for(const t of r.commands)if(!await t.execute(e,this.#t))break}resolve(e){let t=a.unknown,r=[];const s=this.#q.find(e=>e.route===a.unknown);for(const s of this.#q.filter(e=>e.route!==a.unknown))if(s.route.match(e)){if(s.route===a.any){r=[...r,...s.commands];continue}t=s.route,r=[...r,...s.commands]}return t!==a.unknown||(0,l.b0)(s)?{commands:r,route:t}:{commands:[...r,...s.commands],route:a.unknown}}}var b,v=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},w=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},_=function(e,t){return function(r,s){t(r,s,e)}};let E=class{configuration;on;router;#t;constructor(e,t){this.configuration=e,this.on=function(e){function t(t){return new g(new a(t),e)}return t.any=new g(a.any,e),t.unknown=new g(a.unknown,e),t}(this),this.#t=t??new o.A(new n.A),this.router=new y(this.#t)}async execute(e){await this.router.dispatch(e)}};E=v([_(1,(0,s.WQ)(o.A)),w("design:paramtypes",[Object,"function"==typeof(b=void 0!==o.A&&o.A)?b:Object])],E);const k=E},7434:(e,t,r)=>{"use strict";var s=r(7902),n=r(1755),o=r(1386),i=r(9378),a=r(8644),c=r(8334);const u="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},r,l,p,d){const h=new(d?.nodeClass??n.YAMLMap)(r.schema);r.atRoot&&(r.atRoot=!1);let f=l.offset,m=null;for(const n of l.items){const{start:d,key:g,sep:y,value:b}=n,v=o.resolveProps(d,{indicator:"explicit-key-ind",next:g??y?.[0],offset:f,onError:p,parentIndent:l.indent,startOnNewline:!0}),w=!v.found;if(w){if(g&&("block-seq"===g.type?p(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==l.indent&&p(f,"BAD_INDENT",u)),!v.anchor&&!v.tag&&!y){m=v.end,v.comment&&(h.comment?h.comment+="\n"+v.comment:h.comment=v.comment);continue}(v.newlineAfterProp||i.containsNewline(g))&&p(g??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else v.found?.indent!==l.indent&&p(f,"BAD_INDENT",u);r.atKey=!0;const _=v.end,E=g?e(r,g,v,p):t(r,_,d,null,v,p);r.schema.compat&&a.flowIndentCheck(l.indent,g,p),r.atKey=!1,c.mapIncludes(r,h.items,E)&&p(_,"DUPLICATE_KEY","Map keys must be unique");const k=o.resolveProps(y??[],{indicator:"map-value-ind",next:b,offset:E.range[2],onError:p,parentIndent:l.indent,startOnNewline:!g||"block-scalar"===g.type});if(f=k.end,k.found){w&&("block-map"!==b?.type||k.hasNewline||p(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&v.start<k.found.offset-1024&&p(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const o=b?e(r,b,k,p):t(r,f,y,null,k,p);r.schema.compat&&a.flowIndentCheck(l.indent,b,p),f=o.range[2];const i=new s.Pair(E,o);r.options.keepSourceTokens&&(i.srcToken=n),h.items.push(i)}else{w&&p(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(E.comment?E.comment+="\n"+k.comment:E.comment=k.comment);const e=new s.Pair(E);r.options.keepSourceTokens&&(e.srcToken=n),h.items.push(e)}}return m&&m<f&&p(m,"IMPOSSIBLE","Map comment with trailing content"),h.range=[l.offset,f,m??f],h}},7444:(e,t,r)=>{"use strict";var s=r(932);t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("function"==typeof s.emitWarning?s.emitWarning(t):console.warn(t))}},7470:e=>{const t=/^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/;e.exports=function(e){const r=e.reduce(function(e,r){const s=r.match(t);return s&&(e[s[1]]=s[2]),e},{});return"quiet"in r||(r.quiet="true"),r}},7532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=[r(4737).default];t.default=s},7571:(e,t,r)=>{"use strict";var s=r(9714),n=r(6845);function o(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=t.exec(e);if(!s)return e;let n=s[1],o=" ",i=t.lastIndex;for(r.lastIndex=i;s=r.exec(e);)""===s[1]?"\n"===o?n+=o:o="\n":(n+=o+s[1],o=" "),i=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,s=a.exec(e),n+o+(s?.[1]??"")}function i(e,t){let r="",s=e[t+1];for(;!(" "!==s&&"\t"!==s&&"\n"!==s&&"\r"!==s||"\r"===s&&"\n"!==e[t+2]);)"\n"===s&&(r+="\n"),s=e[(t+=1)+1];return r||(r=" "),{fold:r,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,r,s){const n=e.substr(t,r),o=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(o)){const n=e.substr(t-2,r+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),n}return String.fromCodePoint(o)}t.resolveFlowScalar=function(e,t,r){const{offset:u,type:l,source:p,end:d}=e;let h,f;const m=(e,t,s)=>r(u+e,t,s);switch(l){case"scalar":h=s.Scalar.PLAIN,f=function(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return o(e)}(p,m);break;case"single-quoted-scalar":h=s.Scalar.QUOTE_SINGLE,f=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return o(e.slice(1,-1)).replace(/''/g,"'")}(p,m);break;case"double-quoted-scalar":h=s.Scalar.QUOTE_DOUBLE,f=function(e,t){let r="";for(let s=1;s<e.length-1;++s){const n=e[s];if("\r"!==n||"\n"!==e[s+1])if("\n"===n){const{fold:t,offset:n}=i(e,s);r+=t,s=n}else if("\\"===n){let n=e[++s];const o=a[n];if(o)r+=o;else if("\n"===n)for(n=e[s+1];" "===n||"\t"===n;)n=e[1+ ++s];else if("\r"===n&&"\n"===e[s+1])for(n=e[1+ ++s];" "===n||"\t"===n;)n=e[1+ ++s];else if("x"===n||"u"===n||"U"===n){const o={x:2,u:4,U:8}[n];r+=c(e,s+1,o,t),s+=o}else{const n=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),r+=n}}else if(" "===n||"\t"===n){const t=s;let o=e[s+1];for(;" "===o||"\t"===o;)o=e[1+ ++s];"\n"===o||"\r"===o&&"\n"===e[s+2]||(r+=s>t?e.slice(t,s+1):n)}else r+=n}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}(p,m);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[u,u+p.length,u+p.length]}}const g=u+p.length,y=n.resolveEnd(d,g,t,r);return{value:f,type:h,comment:y.comment,range:[u,g,y.offset]}}},7652:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},7808:(e,t)=>{"use strict";function r(e){switch(e.type){case"block-scalar":{let t="";for(const s of e.props)t+=r(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=s(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=s(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=s(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function s({start:e,key:t,sep:s,value:n}){let o="";for(const t of e)o+=t.source;if(t&&(o+=r(t)),s)for(const e of s)o+=e.source;return n&&(o+=r(n)),o}t.stringify=e=>"type"in e?r(e):s(e)},7845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(1520);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class a extends s.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=s._`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=a;const c=s._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:n}=s,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[n];if(i){const e=i.get(o);if(e)return e}else i=this._values[n]=new Map;i.set(o,s);const a=this._scope[n]||(this._scope[n]=[]),c=a.length;return a[c]=t.ref,s.setValue(t,{property:n,itemIndex:c}),s}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return s._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,i={},a){let c=s.nil;for(const u in e){const l=e[u];if(!l)continue;const p=i[u]=i[u]||new Map;l.forEach(e=>{if(p.has(e))return;p.set(e,o.Started);let i=r(e);if(i){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=s._`${c}${r} ${e} = ${i};${this.opts._n}`}else{if(!(i=null==a?void 0:a(e)))throw new n(e);c=s._`${c}${i}${this.opts._n}`}p.set(e,o.Completed)})}return c}}},7870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const s=r(9029),n=r(4227);function o(e,t,r){const{gen:o,compositeRule:i,data:a,opts:c}=e;if(void 0===r)return;const u=s._`${a}${(0,s.getProperty)(t)}`;if(i)return void(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);let l=s._`${u} === undefined`;"empty"===c.useDefaults&&(l=s._`${l} || ${u} === null || ${u} === ""`),o.if(l,s._`${u} = ${(0,s.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:s}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(s)&&s.forEach((t,r)=>o(e,r,t.default))}},7887:(e,t)=>{"use strict";function r(e,t){return t.rules.some(t=>s(e,t))}function s(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},s){const n=t.RULES.types[s];return n&&!0!==n&&r(e,n)},t.shouldUseGroup=r,t.shouldUseRule=s},7902:(e,t,r)=>{"use strict";var s=r(5219),n=r(8017),o=r(5139),i=r(484);class a{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return i.isNode(t)&&(t=t.clone(e)),i.isNode(r)&&(r=r.clone(e)),new a(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,r){const n=s.createNode(e,void 0,r),o=s.createNode(t,void 0,r);return new a(n,o)}},7923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,s.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};t.default=n},7935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(6250),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>s._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:i,schemaCode:a,schema:c}=e;i||c&&"object"==typeof c?e.fail$data(s._`!${(0,n.useFunc)(t,o.default)}(${r}, ${a})`):e.fail(s._`${c} !== ${r}`)}};t.default=i},7969:(e,t,r)=>{"use strict";var s=r(9714);function n({value:e,source:t},r){return t&&(e?o:i).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const o={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(!0),stringify:n},i={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(!1),stringify:n};t.falseTag=i,t.trueTag=o},8017:(e,t,r)=>{"use strict";var s=r(484),n=r(9714),o=r(3793),i=r(248);t.stringifyPair=function({key:e,value:t},r,a,c){const{allNullValues:u,doc:l,indent:p,indentStep:d,options:{commentString:h,indentSeq:f,simpleKeys:m}}=r;let g=s.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(s.isCollection(e)||!s.isNode(e)&&"object"==typeof e){throw new Error("With simple keys, collection cannot be used as a key value")}}let y=!m&&(!e||g&&null==t&&!r.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(m||!u),indent:p+d});let b,v,w,_=!1,E=!1,k=o.stringify(e,r,()=>_=!0,()=>E=!0);if(!y&&!r.inFlow&&k.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(u||null==t)return _&&a&&a(),""===k?"?":y?`? ${k}`:k}else if(u&&!m||null==t&&y)return k=`? ${k}`,g&&!_?k+=i.lineComment(k,r.indent,h(g)):E&&c&&c(),k;_&&(g=null),y?(g&&(k+=i.lineComment(k,r.indent,h(g))),k=`? ${k}\n${p}:`):(k=`${k}:`,g&&(k+=i.lineComment(k,r.indent,h(g)))),s.isNode(t)?(b=!!t.spaceBefore,v=t.commentBefore,w=t.comment):(b=!1,v=null,w=null,t&&"object"==typeof t&&(t=l.createNode(t))),r.implicitKey=!1,y||g||!s.isScalar(t)||(r.indentAtStart=k.length+1),E=!1,f||!(d.length>=2)||r.inFlow||y||!s.isSeq(t)||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let T=!1;const O=o.stringify(t,r,()=>T=!0,()=>E=!0);let S=" ";if(g||b||v){if(S=b?"\n":"",v){const e=h(v);S+=`\n${i.indentComment(e,r.indent)}`}""!==O||r.inFlow?S+=`\n${r.indent}`:"\n"===S&&(S="\n\n")}else if(!y&&s.isCollection(t)){const e=O[0],s=O.indexOf("\n"),n=-1!==s,o=r.inFlow??t.flow??0===t.items.length;if(n||!o){let t=!1;if(n&&("&"===e||"!"===e)){let r=O.indexOf(" ");"&"===e&&-1!==r&&r<s&&"!"===O[r+1]&&(r=O.indexOf(" ",r+1)),(-1===r||s<r)&&(t=!0)}t||(S=`\n${r.indent}`)}}else""!==O&&"\n"!==O[0]||(S="");return k+=S+O,r.inFlow?T&&a&&a():w&&!T?k+=i.lineComment(k,r.indent,h(w)):E&&c&&c(),k}},8080:(e,t,r)=>{"use strict";var s=r(181),n=r(9714),o=r(7180);const i={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof s.Buffer)return s.Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,a,c){if(!r)return"";const u=r;let l;if("function"==typeof s.Buffer)l=u instanceof s.Buffer?u.toString("base64"):s.Buffer.from(u.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<u.length;++t)e+=String.fromCharCode(u[t]);l=btoa(e)}}if(t??(t=n.Scalar.BLOCK_LITERAL),t!==n.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),r=Math.ceil(l.length/e),s=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)s[t]=l.substr(n,e);l=s.join(t===n.Scalar.BLOCK_LITERAL?"\n":" ")}return o.stringifyString({comment:e,type:t,value:l},i,a,c)}};t.binary=i},8156:(e,t,r)=>{"use strict";r.a(e,async(e,t)=>{try{r(8630);var s=r(6903),n=(r(4529),r(8330)),o=r(7386),i=r(6517),a=r(5238),c=r(9973),u=r(514),l=r(9542),p=r(5926),d=r(1469),h=r(78),f=r(2173),m=r(6585),g=r(7280),y=r(3989),b=r(3121),v=r(4200);try{const e=new y.A,t=await(0,g.f)(b.Ni,{applicationName:n.UU});e.add(b.Ni,t);const r=await(0,g.f)(b.d_,{applicationName:n.UU});e.add(b.d_,r);const w=await(0,g.f)(b.i8,{applicationName:n.UU});e.add(b.i8,w),s.kL.registerInstance(y.A,e),s.kL.registerSingleton("RemoteMilestoneCollection",v.A);const _=new o.A({author:n.cy,description:n.h_,license:n.qY,name:n.UU,version:n.rE});_.on.any.use(h.A).use(a.A),_.on.unknown.use(i.A),_.on("help").use(i.A),_.on("entity delete").use(d.A).use(u.A),_.on("entity pull").use(d.A).use(f.A).use(l.A),_.on("entity push all").use(d.A).use(f.A).use(p.A),_.on("repair").use(d.A).use(m.A),s.kL.registerInstance(o.A,_);const E=c.A.new();s.kL.registerInstance(c.A,E),await _.execute(E)}catch(e){"object"==typeof e&&null!==e&&"message"in e?console.error(e.message):console.error(e)}t()}catch(e){t(e)}},1)},8330:e=>{"use strict";e.exports=JSON.parse('{"UU":"@aliaksandarpratashchyk/kickcat","rE":"0.5.2","h_":"Infrastructure-as-code toolkit for GitHub repository automation. Includes reusable workflows, utilities, and a CLI to install workflow templates.","cy":"Aliaksandar Pratashchyk <aliaksandarpratashchyk@gmail.com>","qY":"MIT"}')},8334:(e,t,r)=>{"use strict";var s=r(484);t.mapIncludes=function(e,t,r){const{uniqueKeys:n}=e.options;if(!1===n)return!1;const o="function"==typeof n?n:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some(e=>o(e.key,r))}},8343:(e,t,r)=>{"use strict";const{normalizeIPv6:s,removeDotSegments:n,recomposeAuthority:o,normalizeComponentEncoding:i,isIPv4:a,nonSimpleDomain:c}=r(4834),{SCHEMES:u,getSchemeHandler:l}=r(343);function p(e,t,r,s){const o={};return s||(e=f(d(e,r),r),t=f(d(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=n(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=n(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=n(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=n(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function d(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},t),i=[],a=l(s.scheme||r.scheme);a&&a.serialize&&a.serialize(r,s),void 0!==r.path&&(s.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==s.reference&&r.scheme&&i.push(r.scheme,":");const c=o(r);if(void 0!==c&&("suffix"!==s.reference&&i.push("//"),i.push(c),r.path&&"/"!==r.path[0]&&i.push("/")),void 0!==r.path){let e=r.path;s.absolutePath||a&&a.absolutePath||(e=n(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),i.push(e)}return void 0!==r.query&&i.push("?",r.query),void 0!==r.fragment&&i.push("#",r.fragment),i.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function f(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let o=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);const i=e.match(h);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){if(!1===a(n.host)){const e=s(n.host);n.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0}void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||void 0!==n.query||n.path?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const t=l(r.scheme||n.scheme);if(!(r.unicodeSupport||t&&t.unicodeSupport)&&n.host&&(r.domainHost||t&&t.domainHost)&&!1===o&&c(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==n.scheme&&(n.scheme=unescape(n.scheme)),void 0!==n.host&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),t&&t.parse&&t.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}const m={SCHEMES:u,normalize:function(e,t){return"string"==typeof e?e=d(f(e,t),t):"object"==typeof e&&(e=f(d(e,t),t)),e},resolve:function(e,t,r){const s=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=p(f(e,s),f(t,s),s,!0);return s.skipEscape=!0,d(n,s)},resolveComponent:p,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=d(i(f(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=d(i(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=d(i(f(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=d(i(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:d,parse:f};e.exports=m,e.exports.default=m,e.exports.fastUri=m},8416:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(9714),i=r(6010);function a(e,t){if(s.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!s.isPair(i)){if(s.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new n.Pair(new o.Scalar(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=s.isPair(i)?i:new n.Pair(i)}}else t("Expected a sequence for this tag");return e}function c(e,t,r){const{replacer:s}=r,o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,c;if("function"==typeof s&&(e=s.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);i=t[0],c=e[i]}else i=e;o.items.push(n.createPair(i,c,r))}return o}const u={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=u,t.resolvePairs=a},8454:function(e){var t;t=function(){"use strict";var e,t,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={load:function(e,t,r={}){var s,n,o;for(s in t)o=t[s],r[s]=null!=(n=e[s])?n:o;return r},overwrite:function(e,t,r={}){var s,n;for(s in e)n=e[s],void 0!==t[s]&&(r[s]=n);return r}},n=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,"function"==typeof this.incr&&this.incr(),t={value:e,prev:this._last,next:null},null!=this._last?(this._last.next=t,this._last=t):this._first=this._last=t}shift(){var e;if(null!=this._first)return this.length--,"function"==typeof this.decr&&this.decr(),e=this._first.value,null!=(this._first=this._first.next)?this._first.prev=null:this._last=null,e}first(){if(null!=this._first)return this._first.value}getArray(){var e,t,r;for(e=this._first,r=[];null!=e;)r.push((t=e,e=e.next,t.value));return r}forEachShift(e){var t;for(t=this.shift();null!=t;)e(t),t=this.shift()}debug(){var e,t,r,s,n;for(e=this._first,n=[];null!=e;)n.push((t=e,e=e.next,{value:t.value,prev:null!=(r=t.prev)?r.value:void 0,next:null!=(s=t.next)?s.value:void 0}));return n}},o=class{constructor(e){if(this.instance=e,this._events={},null!=this.instance.on||null!=this.instance.once||null!=this.instance.removeAllListeners)throw new Error("An Emitter already exists for this object");this.instance.on=(e,t)=>this._addListener(e,"many",t),this.instance.once=(e,t)=>this._addListener(e,"once",t),this.instance.removeAllListeners=(e=null)=>null!=e?delete this._events[e]:this._events={}}_addListener(e,t,r){var s;return null==(s=this._events)[e]&&(s[e]=[]),this._events[e].push({cb:r,status:t}),this.instance}listenerCount(e){return null!=this._events[e]?this._events[e].length:0}async trigger(e,...t){var r,s;try{if("debug"!==e&&this.trigger("debug",`Event triggered: ${e}`,t),null==this._events[e])return;return this._events[e]=this._events[e].filter(function(e){return"none"!==e.status}),s=this._events[e].map(async e=>{var r,s;if("none"!==e.status){"once"===e.status&&(e.status="none");try{return"function"==typeof(null!=(s="function"==typeof e.cb?e.cb(...t):void 0)?s.then:void 0)?await s:s}catch(e){return r=e,this.trigger("error",r),null}}}),(await Promise.all(s)).find(function(e){return null!=e})}catch(e){return r=e,this.trigger("error",r),null}}};e=n,t=o;var i,a,c,u=class{constructor(r){this.Events=new t(this),this._length=0,this._lists=function(){var t,s,n;for(n=[],t=1,s=r;1<=s?t<=s:t>=s;1<=s?++t:--t)n.push(new e(()=>this.incr(),()=>this.decr()));return n}.call(this)}incr(){if(0===this._length++)return this.Events.trigger("leftzero")}decr(){if(0===--this._length)return this.Events.trigger("zero")}push(e){return this._lists[e.options.priority].push(e)}queued(e){return null!=e?this._lists[e].length:this._length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,r,s;for(t=0,r=e.length;t<r;t++)if((s=e[t]).length>0)return s;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},l=class extends Error{};c=s,i=l,a=class{constructor(e,t,r,s,n,o,i,a){this.task=e,this.args=t,this.rejectOnDrop=n,this.Events=o,this._states=i,this.Promise=a,this.options=c.load(r,s),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===s.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t;return(t=~~e!==e?5:e)<0?0:t>9?9:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){return!!this._states.remove(this.options.id)&&(this.rejectOnDrop&&this._reject(null!=e?e:new i(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0)}_assertStatus(e){var t;if((t=this._states.jobStatus(this.options.id))!==e&&("DONE"!==e||null!==t))throw new i(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return 0===this.retryCount?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,s){var n,o,i;0===this.retryCount?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),o={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",o);try{if(i=await(null!=e?e.schedule(this.options,this.task,...this.args):this.task(...this.args)),t())return this.doDone(o),await s(this.options,o),this._assertStatus("DONE"),this._resolve(i)}catch(e){return n=e,this._onFailure(n,o,t,r,s)}}doExpire(e,t,r){var s,n;return this._states.jobStatus("RUNNING"===this.options.id)&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),n={args:this.args,options:this.options,retryCount:this.retryCount},s=new i(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(s,n,e,t,r)}async _onFailure(e,t,r,s,n){var o,i;if(r())return null!=(o=await this.Events.trigger("failed",e,t))?(i=~~o,this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t),this.retryCount++,s(i)):(this.doDone(t),await n(this.options,t),this._assertStatus("DONE"),this._reject(e))}doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}};var p,d,h=a;d=s,p=l;var f,m=class{constructor(e,t,r){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),d.load(r,r,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return null==this.heartbeat&&(null!=this.storeOptions.reservoirRefreshInterval&&null!=this.storeOptions.reservoirRefreshAmount||null!=this.storeOptions.reservoirIncreaseInterval&&null!=this.storeOptions.reservoirIncreaseAmount)?"function"==typeof(e=this.heartbeat=setInterval(()=>{var e,t,r,s,n;if(s=Date.now(),null!=this.storeOptions.reservoirRefreshInterval&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=s,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),null!=this.storeOptions.reservoirIncreaseInterval&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&(({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:n}=this.storeOptions),this._lastReservoirIncrease=s,(t=null!=r?Math.min(e,r-n):e)>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,r){return setTimeout(t,e)})}computePenalty(){var e;return null!=(e=this.storeOptions.penalty)?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){return await this.yieldLoop(),d.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout<e}computeCapacity(){var e,t;return({maxConcurrent:e,reservoir:t}=this.storeOptions),null!=e&&null!=t?Math.min(e-this._running,t):null!=e?e-this._running:null!=t?t:null}conditionsCheck(e){var t;return null==(t=this.computeCapacity())||e<=t}async __incrementReservoir__(e){var t;return await this.yieldLoop(),t=this.storeOptions.reservoir+=e,this.instance._drainAll(this.computeCapacity()),t}async __currentReservoir__(){return await this.yieldLoop(),this.storeOptions.reservoir}isBlocked(e){return this._unblockTime>=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,r){var s,n;return await this.yieldLoop(),s=Date.now(),this.conditionsCheck(t)?(this._running+=t,null!=this.storeOptions.reservoir&&(this.storeOptions.reservoir-=t),n=Math.max(this._nextRequest-s,0),this._nextRequest=s+n+this.storeOptions.minTime,{success:!0,wait:n,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return 3===this.storeOptions.strategy}async __submit__(e,t){var r,s,n;if(await this.yieldLoop(),null!=this.storeOptions.maxConcurrent&&t>this.storeOptions.maxConcurrent)throw new p(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return s=Date.now(),n=null!=this.storeOptions.highWater&&e===this.storeOptions.highWater&&!this.check(t,s),(r=this.strategyIsBlock()&&(n||this.isBlocked(s)))&&(this._unblockTime=s+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:n,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};f=l;var g,y=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t,r;return r=(t=this._jobs[e])+1,null!=t&&r<this.status.length?(this.counts[t]--,this.counts[r]++,this._jobs[e]++):null!=t?(this.counts[t]--,delete this._jobs[e]):void 0}start(e){return this._jobs[e]=0,this.counts[0]++}remove(e){var t;return null!=(t=this._jobs[e])&&(this.counts[t]--,delete this._jobs[e]),null!=t}jobStatus(e){var t;return null!=(t=this.status[this._jobs[e]])?t:null}statusJobs(e){var t,r,s,n;if(null!=e){if((r=this.status.indexOf(e))<0)throw new f(`status must be one of ${this.status.join(", ")}`);for(t in n=[],s=this._jobs)s[t]===r&&n.push(t);return n}return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce((e,t,r)=>(e[this.status[r]]=t,e),{})}};g=n;var b,v,w,_,E,k=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new g}isEmpty(){return 0===this._queue.length}async _tryToRun(){var e,t,r,s,n,o,i;if(this._running<1&&this._queue.length>0)return this._running++,({task:i,args:e,resolve:n,reject:s}=this._queue.shift()),t=await async function(){try{return o=await i(...e),function(){return n(o)}}catch(e){return r=e,function(){return s(r)}}}(),this._running--,this._tryToRun(),t()}schedule(e,...t){var r,s,n;return n=s=null,r=new this.Promise(function(e,t){return n=e,s=t}),this._queue.push({task:e,args:t,resolve:n,reject:s}),this._tryToRun(),r}},T="2.19.5",O={version:T},S=Object.freeze({version:T,default:O}),A=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),$=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");E=s,b=o,w=A,v=$,_=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var P,j,R=function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,E.load(this.limiterOptions,this.defaults,this),this.Events=new b(this),this.instances={},this.Bottleneck=B,this._startAutoCleanup(),this.sharedConnection=null!=this.connection,null==this.connection&&("redis"===this.limiterOptions.datastore?this.connection=new w(Object.assign({},this.limiterOptions,{Events:this.Events})):"ioredis"===this.limiterOptions.datastore&&(this.connection=new v(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=""){var t;return null!=(t=this.instances[e])?t:(()=>{var t;return t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",t,e),t})()}async deleteKey(e=""){var t,r;return r=this.instances[e],this.connection&&(t=await this.connection.__runCommand__(["del",..._.allKeys(`${this.id}-${e}`)])),null!=r&&(delete this.instances[e],await r.disconnect()),null!=r||t>0}limiters(){var e,t,r,s;for(e in r=[],t=this.instances)s=t[e],r.push({key:e,limiter:s});return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,s,n,o,i,a;if(null==this.connection)return this.Promise.resolve(this.keys());for(n=[],e=null,a=`b_${this.id}-`.length;0!==e;)for([i,t]=await this.connection.__runCommand__(["scan",null!=e?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]),e=~~i,r=0,o=t.length;r<o;r++)s=t[r],n.push(s.slice(a,-9));return n}_startAutoCleanup(){var e;return clearInterval(this.interval),"function"==typeof(e=this.interval=setInterval(async()=>{var e,t,r,s,n,o;for(t in n=Date.now(),s=[],r=this.instances){o=r[t];try{await o._store.__groupCheck__(n)?s.push(this.deleteKey(t)):s.push(void 0)}catch(t){e=t,s.push(o.Events.trigger("error",e))}}return s},this.timeout/2)).unref?e.unref():void 0}updateSettings(e={}){if(E.overwrite(e,this.defaults,this),E.overwrite(e,e,this.limiterOptions),null!=e.timeout)return this._startAutoCleanup()}disconnect(e=!0){var t;if(!this.sharedConnection)return null!=(t=this.connection)?t.disconnect(e):void 0}}return e.prototype.defaults={timeout:3e5,connection:null,Promise,id:"group-key"},e}.call(r);j=s,P=o;var I,C,N,x,D,q,G,L,F,U=function(){class e{constructor(e={}){this.options=e,j.load(this.options,this.defaults,this),this.Events=new P(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():null!=this.maxTime&&1===this._arr.length&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}.call(r),M=(I=S)&&I.default||I,K=[].splice;F=s,D=u,N=h,x=m,q=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),C=o,G=y,L=k;var B=function(){class e{constructor(t={},...r){var s,n;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,r),F.load(t,this.instanceDefaults,this),this._queues=new D(10),this._scheduled={},this._states=new G(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new C(this),this._submitLock=new L("submit",this.Promise),this._registerLock=new L("register",this.Promise),n=F.load(t,this.storeDefaults,{}),this._store=function(){if("redis"===this.datastore||"ioredis"===this.datastore||null!=this.connection)return s=F.load(t,this.redisStoreDefaults,{}),new q(this,n,s);if("local"===this.datastore)return s=F.load(t,this.localStoreDefaults,{}),new x(this,n,s);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.ref?e.ref():void 0}),this._queues.on("zero",()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.unref?e.unref():void 0})}_validateOptions(t,r){if(null==t||"object"!=typeof t||0!==r.length)throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return 0===this.queued()&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return null!=this._scheduled[e]&&(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,r,s){var n,o;try{if(({running:o}=await this._store.__free__(e,r.weight)),this.Events.trigger("debug",`Freed ${r.id}`,s),0===o&&this.empty())return this.Events.trigger("idle")}catch(e){return n=e,this.Events.trigger("error",n)}}_run(e,t,r){var s,n,o;return t.doRun(),s=this._clearGlobalState.bind(this,e),o=this._run.bind(this,e,t),n=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,s,o,n),r),expiration:null!=t.options.expiration?setTimeout(function(){return t.doExpire(s,o,n)},r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,r,s,n,o;return 0===this.queued()?this.Promise.resolve(null):(o=this._queues.getFirst(),({options:n,args:t}=s=o.first()),null!=e&&n.weight>e?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${n.id}`,{args:t,options:n}),r=this._randomIndex(),this._store.__register__(r,n.weight,n.expiration).then(({success:e,wait:i,reservoir:a})=>{var c;return this.Events.trigger("debug",`Drained ${n.id}`,{success:e,args:t,options:n}),e?(o.shift(),(c=this.empty())&&this.Events.trigger("empty"),0===a&&this.Events.trigger("depleted",c),this._run(r,s,i),this.Promise.resolve(n.weight)):this.Promise.resolve(null)})))})}_drainAll(e,t=0){return this._drainOne(e).then(r=>{var s;return null!=r?(s=null!=e?e-r:e,this._drainAll(s,t+r)):this.Promise.resolve(t)}).catch(e=>this.Events.trigger("error",e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var r,s;return t=F.load(t,this.stopDefaults),s=e=>{var t;return t=()=>{var t;return(t=this._states.counts)[0]+t[1]+t[2]+t[3]===e},new this.Promise((e,r)=>t()?e():this.on("done",()=>{if(t())return this.removeAllListeners("done"),e()}))},r=t.dropWaitingJobs?(this._run=function(e,r){return r.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,r,n;for(e in r=this._scheduled)n=r[e],"RUNNING"===this.jobStatus(n.job.options.id)&&(clearTimeout(n.timeout),clearTimeout(n.expiration),n.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),s(0)}))):this.schedule({priority:9,weight:0},()=>s(1)),this._receive=function(r){return r._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),r}async _addToQueue(t){var r,s,n,o,i,a,c;({args:r,options:o}=t);try{({reachedHWM:i,blocked:s,strategy:c}=await this._store.__submit__(this.queued(),o.weight))}catch(e){return n=e,this.Events.trigger("debug",`Could not queue ${o.id}`,{args:r,options:o,error:n}),t.doDrop({error:n}),!1}return s?(t.doDrop(),!0):i&&(null!=(a=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(o.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(o.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0)&&a.doDrop(),null==a||c===e.prototype.strategy.OVERFLOW)?(null==a&&t.doDrop(),i):(t.doQueue(i,s),this._queues.push(t),await this._drainAll(),i)}_receive(t){return null!=this._states.jobStatus(t.options.id)?(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}submit(...e){var t,r,s,n,o,i,a;return"function"==typeof e[0]?(o=e,[r,...e]=o,[t]=K.call(e,-1),n=F.load({},this.jobDefaults)):(i=e,[n,r,...e]=i,[t]=K.call(e,-1),n=F.load(n,this.jobDefaults)),a=(...e)=>new this.Promise(function(t,s){return r(...e,function(...e){return(null!=e[0]?s:t)(e)})}),(s=new N(a,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise)).promise.then(function(e){return"function"==typeof t?t(...e):void 0}).catch(function(e){return Array.isArray(e)?"function"==typeof t?t(...e):void 0:"function"==typeof t?t(e):void 0}),this._receive(s)}schedule(...e){var t,r,s;return"function"==typeof e[0]?([s,...e]=e,r={}):[r,s,...e]=e,t=new N(s,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t,r;return t=this.schedule.bind(this),(r=function(...r){return t(e.bind(this),...r)}).withOptions=function(r,...s){return t(r,e,...s)},r}async updateSettings(e={}){return await this._store.__updateSettings__(F.overwrite(e,this.storeDefaults)),F.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=C,e.version=e.prototype.version=M.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=l,e.Group=e.prototype.Group=R,e.RedisConnection=e.prototype.RedisConnection=A,e.IORedisConnection=e.prototype.IORedisConnection=$,e.Batcher=e.prototype.Batcher=U,e.prototype.jobDefaults={priority:5,weight:1,expiration:null,id:"<no-id>"},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(r);return B},e.exports=t()},8504:(e,t,r)=>{"use strict";r.d(t,{JO:()=>l,KF:()=>u,Oi:()=>o,ZW:()=>a,ff:()=>c,rD:()=>i});var s=r(1027),n=r(1170);const o="debug",i="info",a="warn",c="error",u="off",l=new n.A([new s.A(o),new s.A(i),new s.A(a),new s.A(c),new s.A(u)])},8523:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(5132),c=r(988),u=r(2891);const l=[s.map,o.seq,i.string,n.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=l},8531:(e,t,r)=>{"use strict";var s=r(7180);const n={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>(t=Object.assign({actualString:!0},t),s.stringifyString(e,t,r,n))};t.string=n},8630:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),r=s(e);function s(e,t){return function(r,s){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:s}),t&&t(r,s)}}void 0!==t.Reflect&&(r=s(t.Reflect,r)),function(e,t){var r=Object.prototype.hasOwnProperty,s="function"==typeof Symbol,n=s&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=s&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,a={__proto__:[]}instanceof Array,c=!i&&!a,u={create:i?function(){return pe(Object.create(null))}:a?function(){return pe({__proto__:null})}:function(){return pe({})},has:c?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),p="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:ce(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:ue(),h="function"==typeof WeakMap?WeakMap:le(),f=s?Symbol.for("@reflect-metadata:registry"):void 0,m=ne(),g=oe(m);function y(e,t,r,s){if(q(r)){if(!z(e))throw new TypeError;if(!H(t))throw new TypeError;return A(e,t)}if(!z(e))throw new TypeError;if(!F(t))throw new TypeError;if(!F(s)&&!q(s)&&!G(s))throw new TypeError;return G(s)&&(s=void 0),$(e,t,r=V(r),s)}function b(e,t){function r(r,s){if(!F(r))throw new TypeError;if(!q(s)&&!J(s))throw new TypeError;C(e,t,r,s)}return r}function v(e,t,r,s){if(!F(r))throw new TypeError;return q(s)||(s=V(s)),C(e,t,r,s)}function w(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),P(e,t,r)}function _(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),j(e,t,r)}function E(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),R(e,t,r)}function k(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),I(e,t,r)}function T(e,t){if(!F(e))throw new TypeError;return q(t)||(t=V(t)),N(e,t)}function O(e,t){if(!F(e))throw new TypeError;return q(t)||(t=V(t)),x(e,t)}function S(e,t,r){if(!F(t))throw new TypeError;if(q(r)||(r=V(r)),!F(t))throw new TypeError;q(r)||(r=V(r));var s=ae(t,r,!1);return!q(s)&&s.OrdinaryDeleteMetadata(e,t,r)}function A(e,t){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t);if(!q(s)&&!G(s)){if(!H(s))throw new TypeError;t=s}}return t}function $(e,t,r,s){for(var n=e.length-1;n>=0;--n){var o=(0,e[n])(t,r,s);if(!q(o)&&!G(o)){if(!F(o))throw new TypeError;s=o}}return s}function P(e,t,r){if(j(e,t,r))return!0;var s=re(t);return!G(s)&&P(e,s,r)}function j(e,t,r){var s=ae(t,r,!1);return!q(s)&&K(s.OrdinaryHasOwnMetadata(e,t,r))}function R(e,t,r){if(j(e,t,r))return I(e,t,r);var s=re(t);return G(s)?void 0:R(e,s,r)}function I(e,t,r){var s=ae(t,r,!1);if(!q(s))return s.OrdinaryGetOwnMetadata(e,t,r)}function C(e,t,r,s){ae(r,s,!0).OrdinaryDefineOwnMetadata(e,t,r,s)}function N(e,t){var r=x(e,t),s=re(e);if(null===s)return r;var n=N(s,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var o=new d,i=[],a=0,c=r;a<c.length;a++){var u=c[a];o.has(u)||(o.add(u),i.push(u))}for(var l=0,p=n;l<p.length;l++){u=p[l];o.has(u)||(o.add(u),i.push(u))}return i}function x(e,t){var r=ae(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function D(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function q(e){return void 0===e}function G(e){return null===e}function L(e){return"symbol"==typeof e}function F(e){return"object"==typeof e?null!==e:"function"==typeof e}function U(e,t){switch(D(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",s=Q(e,n);if(void 0!==s){var o=s.call(e,r);if(F(o))throw new TypeError;return o}return M(e,"default"===r?"number":r)}function M(e,t){if("string"===t){var r=e.toString;if(W(r))if(!F(n=r.call(e)))return n;if(W(s=e.valueOf))if(!F(n=s.call(e)))return n}else{var s;if(W(s=e.valueOf))if(!F(n=s.call(e)))return n;var n,o=e.toString;if(W(o))if(!F(n=o.call(e)))return n}throw new TypeError}function K(e){return!!e}function B(e){return""+e}function V(e){var t=U(e,3);return L(t)?t:B(t)}function z(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function W(e){return"function"==typeof e}function H(e){return"function"==typeof e}function J(e){switch(D(e)){case 3:case 4:return!0;default:return!1}}function Y(e,t){return e===t||e!=e&&t!=t}function Q(e,t){var r=e[t];if(null!=r){if(!W(r))throw new TypeError;return r}}function Z(e){var t=Q(e,o);if(!W(t))throw new TypeError;var r=t.call(e);if(!F(r))throw new TypeError;return r}function X(e){return e.value}function ee(e){var t=e.next();return!t.done&&t}function te(e){var t=e.return;t&&t.call(e)}function re(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var r=e.prototype,s=r&&Object.getPrototypeOf(r);if(null==s||s===Object.prototype)return t;var n=s.constructor;return"function"!=typeof n||n===e?t:n}function se(){var e,r,s,n;q(f)||void 0===t.Reflect||f in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=ie(t.Reflect));var o=new h,i={registerProvider:a,getProvider:u,setProvider:m};return i;function a(t){if(!Object.isExtensible(i))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case q(r):r=t;break;case r===t:break;case q(s):s=t;break;case s===t:break;default:void 0===n&&(n=new d),n.add(t)}}function c(t,o){if(!q(r)){if(r.isProviderFor(t,o))return r;if(!q(s)){if(s.isProviderFor(t,o))return r;if(!q(n))for(var i=Z(n);;){var a=ee(i);if(!a)return;var c=X(a);if(c.isProviderFor(t,o))return te(i),c}}}if(!q(e)&&e.isProviderFor(t,o))return e}function u(e,t){var r,s=o.get(e);return q(s)||(r=s.get(t)),q(r)?(q(r=c(e,t))||(q(s)&&(s=new p,o.set(e,s)),s.set(t,r)),r):r}function l(e){if(q(e))throw new TypeError;return r===e||s===e||!q(n)&&n.has(e)}function m(e,t,r){if(!l(r))throw new Error("Metadata provider not registered.");var s=u(e,t);if(s!==r){if(!q(s))return!1;var n=o.get(e);q(n)&&(n=new p,o.set(e,n)),n.set(t,r)}return!0}}function ne(){var e;return!q(f)&&F(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[f]),q(e)&&(e=se()),!q(f)&&F(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function oe(e){var t=new h,r={isProviderFor:function(e,r){var s=t.get(e);return!q(s)&&s.has(r)},OrdinaryDefineOwnMetadata:i,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:a,OrdinaryDeleteMetadata:c};return m.registerProvider(r),r;function s(s,n,o){var i=t.get(s),a=!1;if(q(i)){if(!o)return;i=new p,t.set(s,i),a=!0}var c=i.get(n);if(q(c)){if(!o)return;if(c=new p,i.set(n,c),!e.setProvider(s,n,r))throw i.delete(n),a&&t.delete(s),new Error("Wrong provider for target.")}return c}function n(e,t,r){var n=s(t,r,!1);return!q(n)&&K(n.has(e))}function o(e,t,r){var n=s(t,r,!1);if(!q(n))return n.get(e)}function i(e,t,r,n){s(r,n,!0).set(e,t)}function a(e,t){var r=[],n=s(e,t,!1);if(q(n))return r;for(var o=Z(n.keys()),i=0;;){var a=ee(o);if(!a)return r.length=i,r;var c=X(a);try{r[i]=c}catch(e){try{te(o)}finally{throw e}}i++}}function c(e,r,n){var o=s(r,n,!1);if(q(o))return!1;if(!o.delete(e))return!1;if(0===o.size){var i=t.get(r);q(i)||(i.delete(n),0===i.size&&t.delete(i))}return!0}}function ie(e){var t=e.defineMetadata,r=e.hasOwnMetadata,s=e.getOwnMetadata,n=e.getOwnMetadataKeys,o=e.deleteMetadata,i=new h;return{isProviderFor:function(e,t){var r=i.get(e);return!(q(r)||!r.has(t))||!!n(e,t).length&&(q(r)&&(r=new d,i.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:s,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:o}}function ae(e,t,r){var s=m.getProvider(e,t);if(!q(s))return s;if(r){if(m.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function ce(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var s=this._keys.length,n=r+1;n<s;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,Y(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,s)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,i)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){if(!Y(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(Y(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function s(e,t){return e}function n(e,t){return t}function i(e,t){return[e,t]}}function ue(){return function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}()}function le(){var e=16,t=u.create(),s=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return o(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+c()}while(u.has(t,e));return t[e]=!0,e}function o(e,t){if(!r.call(e,s)){if(!t)return;Object.defineProperty(e,s,{value:u.create()})}return e[s]}function i(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):i(t,e),t}return i(new Array(e),e)}function c(){var t=a(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",s=0;s<e;++s){var n=t[s];4!==s&&6!==s&&8!==s||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}function pe(e){return e.__=void 0,delete e.__,e}e("decorate",y),e("metadata",b),e("defineMetadata",v),e("hasMetadata",w),e("hasOwnMetadata",_),e("getMetadata",E),e("getOwnMetadata",k),e("getMetadataKeys",T),e("getOwnMetadataKeys",O),e("deleteMetadata",S)}(r,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},8643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(6250),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>s._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:i,schema:a,schemaCode:c,it:u}=e;if(!i&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let p;const d=()=>null!=p?p:p=(0,n.useFunc)(t,o.default);let h;if(l||i)h=t.let("valid"),e.block$data(h,function(){t.assign(h,!1),t.forOf("v",c,e=>t.if(s._`${d()}(${r}, ${e})`,()=>t.assign(h,!0).break()))});else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,s.or)(...a.map((t,n)=>function(e,t){const n=a[t];return"object"==typeof n&&null!==n?s._`${d()}(${r}, ${e}[${t}])`:s._`${r} === ${n}`}(e,n)))}e.pass(h)}};t.default=i},8644:(e,t,r)=>{"use strict";var s=r(9378);t.flowIndentCheck=function(e,t,r){if("flow-collection"===t?.type){const n=t.end[0];if(n.indent===e&&("]"===n.source||"}"===n.source)&&s.containsNewline(t)){r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}},8660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(2023),i=r(4227),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>n._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:p,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,i.alwaysValidSchema)(l,r))return;const h=(0,s.allSchemaProperties)(a.properties),f=(0,s.allSchemaProperties)(a.patternProperties);function m(e){t.code(n._`delete ${c}[${e}]`)}function g(s){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)m(s);else{if(!1===r)return e.setParams({additionalProperty:s}),e.error(),void(p||t.break());if("object"==typeof r&&!(0,i.alwaysValidSchema)(l,r)){const r=t.name("valid");"failing"===d.removeAdditional?(y(s,r,!1),t.if((0,n.not)(r),()=>{e.reset(),m(s)})):(y(s,r),p||t.if((0,n.not)(r),()=>t.break()))}}}function y(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===s&&Object.assign(n,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(n,r)}t.forIn("key",c,r=>{h.length||f.length?t.if(function(r){let o;if(h.length>8){const e=(0,i.schemaRefOrVal)(l,a.properties,"properties");o=(0,s.isOwnProperty)(t,e,r)}else o=h.length?(0,n.or)(...h.map(e=>n._`${r} === ${e}`)):n.nil;return f.length&&(o=(0,n.or)(o,...f.map(t=>n._`${(0,s.usePattern)(e,t)}.test(${r})`))),(0,n.not)(o)}(r),()=>g(r)):g(r)}),e.ok(n._`${u} === ${o.default.errors}`)}};t.default=a},8673:(e,t,r)=>{"use strict";var s=r(484),n=r(9125);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},i=e=>e.replace(/[!,[\]{}]/g,e=>o[e]);class a{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},a.defaultYaml,e),this.tags=Object.assign({},a.defaultTags,t)}clone(){const e=new a(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new a(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:a.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},a.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:a.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},a.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[e,s]=r;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}const[,r,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);const n=this.tags[r];if(n)try{return n+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+i(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(e&&r.length>0&&s.isNode(e.contents)){const t={};n.visit(e.contents,(e,r)=>{s.isNode(r)&&r.tag&&(t[r.tag]=!0)}),o=Object.keys(t)}else o=[];for(const[s,n]of r)"!!"===s&&"tag:yaml.org,2002:"===n||e&&!o.some(e=>e.startsWith(n))||t.push(`%TAG ${s} ${n}`);return t.join("\n")}}a.defaultYaml={explicit:!1,version:"1.2"},a.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=a},8708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(9029),n=r(4227),o=r(2023);function i(e,t){const r=e.const("err",t);e.if(s._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,s._`[${r}]`),s._`${o.default.vErrors}.push(${r})`),e.code(s._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw(s._`new ${e.ValidationError}(${t})`):(r.assign(s._`${n}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>s.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?s.str`"${e}" keyword must be ${t} ($data)`:s.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,n,o){const{it:c}=e,{gen:l,compositeRule:p,allErrors:d}=c,h=u(e,r,n);(null!=o?o:p||d)?i(l,h):a(c,s._`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,s){const{it:n}=e,{gen:c,compositeRule:l,allErrors:p}=n;i(c,u(e,r,s)),l||p||a(n,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(s._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(s._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:a}){if(void 0===i)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",i,o.default.errors,i=>{e.const(c,s._`${o.default.vErrors}[${i}]`),e.if(s._`${c}.instancePath === undefined`,()=>e.assign(s._`${c}.instancePath`,(0,s.strConcat)(o.default.instancePath,a.errorPath))),e.assign(s._`${c}.schemaPath`,s.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(s._`${c}.schema`,r),e.assign(s._`${c}.data`,n))})};const c={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function u(e,t,r){const{createErrors:n}=e.it;return!1===n?s._`{}`:function(e,t,r={}){const{gen:n,it:i}=e,a=[l(i,r),p(e,r)];return function(e,{params:t,message:r},n){const{keyword:i,data:a,schemaValue:u,it:l}=e,{opts:p,propertyName:d,topSchemaRef:h,schemaPath:f}=l;n.push([c.keyword,i],[c.params,"function"==typeof t?t(e):t||s._`{}`]),p.messages&&n.push([c.message,"function"==typeof r?r(e):r]);p.verbose&&n.push([c.schema,u],[c.parentSchema,s._`${h}${f}`],[o.default.data,a]);d&&n.push([c.propertyName,d])}(e,t,a),n.object(...a)}(e,t,r)}function l({errorPath:e},{instancePath:t}){const r=t?s.str`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,r)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let i=o?t:s.str`${t}/${e}`;return r&&(i=s.str`${i}${(0,n.getErrorPath)(r,n.Type.Str)}`),[c.schemaPath,i]}},8727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(8708),n=r(9029),o=r(2023),i={message:"boolean schema is false"};function a(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,s.reportError)(o,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:s}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(n._`${s}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:s}=e;!1===s?(r.var(t,!1),a(e)):r.var(t,!0)}},8898:(e,t,r)=>{"use strict";var s=r(6906),n=r(484),o=r(3732);t.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!n.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},u=o.toJS(this,"",c);if("function"==typeof i)for(const{count:e,res:t}of c.anchors.values())i(t,e);return"function"==typeof a?s.applyReviver(a,{"":u},"",u):u}}},9029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(1520),n=r(7845);var o=r(1520);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var i=r(7845);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&"),ADD:new s._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,s=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof s.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return j(this.lhs instanceof s.Name?{}:{...this.lhs.names},this.rhs)}}class l extends u{constructor(e,t,r,s){super(e,r,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=R(this.code,e,t),this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;for(;s--;){const n=r[s];n.optimizeNames(e,t)||(I(e,n.names),r.splice(s,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>P(e,t.names),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class b extends g{}b.kind="else";class v extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new b(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(C(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return j(e,this.condition),this.else&&P(e,this.else.names),e}}v.kind="if";class w extends g{}w.kind="for";class _ extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=R(this.iteration,e,t),this}get names(){return P(super.names,this.iteration.names)}}class E extends w{constructor(e,t,r,s){super(),this.varKind=e,this.name=t,this.from=r,this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:s,to:o}=this;return`for(${t} ${r}=${s}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=j(super.names,this.from);return j(e,this.to)}}class k extends w{constructor(e,t,r,s){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=R(this.iterable,e,t),this}get names(){return P(super.names,this.iterable.names)}}class T extends g{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}T.kind="func";class O extends m{render(e){return"return "+super.render(e)}}O.kind="return";class S extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,s;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class A extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}A.kind="catch";class $ extends g{render(e){return"finally"+super.render(e)}}$.kind="finally";function P(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function j(e,t){return t instanceof s._CodeOrName?P(e,t.names):e}function R(e,t,r){return e instanceof s.Name?o(e):(n=e)instanceof s._Code&&n._items.some(e=>e instanceof s.Name&&1===t[e.str]&&void 0!==r[e.str])?new s._Code(e._items.reduce((e,t)=>(t instanceof s.Name&&(t=o(t)),t instanceof s._Code?e.push(...t._items):e.push(t),e),[])):e;var n;function o(e){const s=r[e.str];return void 0===s||1!==t[e.str]?e:(delete t[e.str],s)}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function C(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:s._`!${q(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);return void 0!==r&&s&&(this._constants[n.str]=r),this._leafNode(new c(e,n,r)),n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new l(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==s.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[r,n]of e)t.length>1&&t.push(","),t.push(r),(r!==n||this.opts.es5)&&(t.push(":"),(0,s.addCodeArg)(t,n));return t.push("}"),new s._Code(t)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,s,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const i=this._scope.toName(e);return this._for(new E(o,i,t,r),()=>s(i))}forOf(e,t,r,o=n.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,s._`${e}.length`,t=>{this.var(i,s._`${e}[${t}]`),r(i)})}return this._for(new k("of",o,i,t),()=>r(i))}forIn(e,t,r,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,s._`Object.keys(${t})`,r);const i=this._scope.toName(e);return this._for(new k("in",o,i,t),()=>r(i))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new O;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new S;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new A(e),t(e)}return r&&(this._currNode=s.finally=new $,this.code(r)),this._endBlockNode(A,$)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=s.nil,r,n){return this._blockNode(new T(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=C;const N=D(t.operators.AND);t.and=function(...e){return e.reduce(N)};const x=D(t.operators.OR);function D(e){return(t,r)=>t===s.nil?r:r===s.nil?t:s._`${q(t)} ${e} ${q(r)}`}function q(e){return e instanceof s.Name?e:s._`(${e})`}t.or=function(...e){return e.reduce(x)}},9046:(e,t,r)=>{"use strict";var s=r(1736),n=r(1614),o=r(484),i=r(7902),a=r(3732),c=r(625),u=r(1768),l=r(6261),p=r(6906),d=r(5219),h=r(8673);class f{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===r&&t&&(r=t,t=void 0);const n=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=n;let{version:i}=n;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new h.Directives({version:i}),this.setSchema(i,r),this.contents=void 0===e?null:this.createNode(e,s,r)}clone(){const e=Object.create(f.prototype,{[o.NODE_TYPE]:{value:o.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){m(this.contents)&&this.contents.add(e)}addIn(e,t){m(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=l.anchorNames(this);e.anchor=!t||r.has(t)?l.findNewAnchor(t||"a",r):t}return new s.Alias(e.anchor)}createNode(e,t,r){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),s=t}else void 0===r&&t&&(r=t,t=void 0);const{aliasDuplicateObjects:n,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:p}=r??{},{onAnchor:h,setAnchors:f,sourceObjects:m}=l.createNodeAnchors(this,i||"a"),g={aliasDuplicateObjects:n??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:u,replacer:s,schema:this.schema,sourceObjects:m},y=d.createNode(e,p,g);return a&&o.isCollection(y)&&(y.flow=!0),f(),y}createPair(e,t,r={}){const s=this.createNode(e,null,r),n=this.createNode(t,null,r);return new i.Pair(s,n)}delete(e){return!!m(this.contents)&&this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!m(this.contents)&&this.contents.deleteIn(e)}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&o.isScalar(this.contents)?this.contents.value:this.contents:o.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!o.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:!!o.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=n.collectionFromPath(this.schema,[e],t):m(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):m(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new h.Directives({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new h.Directives({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!r)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(r,t))}}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:s,onAnchor:n,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},c=a.toJS(this.contents,t??"",i);if("function"==typeof n)for(const{count:e,res:t}of i.anchors.values())n(t,e);return"function"==typeof o?p.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function m(e){if(o.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=f},9094:(e,t,r)=>{"use strict";var s=r(484),n=r(9714),o=r(4070),i=r(7571);t.composeScalar=function(e,t,r,a){const{value:c,type:u,comment:l,range:p}="block-scalar"===t.type?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a),d=r?e.directives.tagName(r.source,e=>a(r,"TAG_RESOLVE_FAILED",e)):null;let h,f;h=e.options.stringKeys&&e.atKey?e.schema[s.SCALAR]:d?function(e,t,r,n,o){if("!"===r)return e[s.SCALAR];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection)return e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a;return o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[s.SCALAR]}(e.schema,c,d,r,a):"scalar"===t.type?function({atKey:e,directives:t,schema:r},n,o,i){const a=r.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(n))||r[s.SCALAR];if(r.compat){const e=r.compat.find(e=>e.default&&e.test?.test(n))??r[s.SCALAR];if(a.tag!==e.tag){i(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t.tagString(a.tag)} or ${t.tagString(e.tag)}`,!0)}}return a}(e,c,t,a):e.schema[s.SCALAR];try{const o=h.resolve(c,e=>a(r??t,"TAG_RESOLVE_FAILED",e),e.options);f=s.isScalar(o)?o:new n.Scalar(o)}catch(e){const s=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",s),f=new n.Scalar(c)}return f.range=p,f.source=c,u&&(f.type=u),d&&(f.tag=d),h.format&&(f.format=h.format),l&&(f.comment=l),f}},9108:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const s={parse(e){const t=Number.parseFloat(e);if(Number.isNaN(t))throw new Error(`Cannot parse "${e}" as number.`);return t},toString:()=>"number"}},9112:(e,t,r)=>{"use strict";var s=r(5141),n=r(7808),o=r(5970);t.createScalarToken=s.createScalarToken,t.resolveAsScalar=s.resolveAsScalar,t.setScalarValue=s.setScalarValue,t.stringify=n.stringify,t.visit=o.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},9125:(e,t,r)=>{"use strict";var s=r(484);const n=Symbol("break visit"),o=Symbol("skip children"),i=Symbol("remove node");function a(e,t){const r=p(t);if(s.isDocument(e)){c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null)}else c(null,e,r,Object.freeze([]))}function c(e,t,r,o){const a=d(e,t,r,o);if(s.isNode(a)||s.isPair(a))return h(e,o,a),c(e,a,r,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=c(e,t.items[e],r,o);if("number"==typeof s)e=s-1;else{if(s===n)return n;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=c("key",t.key,r,o);if(e===n)return n;e===i&&(t.key=null);const s=c("value",t.value,r,o);if(s===n)return n;s===i&&(t.value=null)}return a}async function u(e,t){const r=p(t);if(s.isDocument(e)){await l(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null)}else await l(null,e,r,Object.freeze([]))}async function l(e,t,r,o){const a=await d(e,t,r,o);if(s.isNode(a)||s.isPair(a))return h(e,o,a),l(e,a,r,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=await l(e,t.items[e],r,o);if("number"==typeof s)e=s-1;else{if(s===n)return n;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=await l("key",t.key,r,o);if(e===n)return n;e===i&&(t.key=null);const s=await l("value",t.value,r,o);if(s===n)return n;s===i&&(t.value=null)}return a}function p(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function d(e,t,r,n){return"function"==typeof r?r(e,t,n):s.isMap(t)?r.Map?.(e,t,n):s.isSeq(t)?r.Seq?.(e,t,n):s.isPair(t)?r.Pair?.(e,t,n):s.isScalar(t)?r.Scalar?.(e,t,n):s.isAlias(t)?r.Alias?.(e,t,n):void 0}function h(e,t,r){const n=t[t.length-1];if(s.isCollection(n))n.items[e]=r;else if(s.isPair(n))"key"===e?n.key=r:n.value=r;else{if(!s.isDocument(n)){const e=s.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}n.contents=r}}a.BREAK=n,a.SKIP=o,a.REMOVE=i,u.BREAK=n,u.SKIP=o,u.REMOVE=i,t.visit=a,t.visitAsync=u},9378:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const r of t.items){for(const e of r.start)if("newline"===e.type)return!0;if(r.sep)for(const e of r.sep)if("newline"===e.type)return!0;if(e(r.key)||e(r.value))return!0}return!1;default:return!0}}},9542:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var s,n=r(6903),o=r(4523),i=r(9108),a=r(2596),c=r(1170),u=r(3121),l=r(6502),p=r(1354),d=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},h=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(r,s){t(r,s,e)}};let m=class{static{0}static schema={description:"Pull an entity into the local storage.",parameters:{key:{description:"Key to filter entities to pull.",required:!0,type:a.A},of:{description:"Entity type to pull.",required:!0,type:u.o4},value:{description:"Value to filter entities to pull.",required:!0,type:new c.A([i.A,a.A])}}};#e;#t;#y;constructor(e,t,r){this.#y=e,this.#e=t,this.#t=r}async execute({key:e,of:t,value:r}){this.#t.info(`Pulling ${t} with ${e} equals to ${r} from the remote to the local storage.`);const s=await this.#y.one(t,{[e]:r});if((0,o.b0)(s))throw this.#t.info(`Stopped, cause of an error. Can't find ${t} with ${e} equals to ${r} in the remote storage.`),new Error(`Can't find ${t} with ${e} equals to "${r}" in the remote storage.`);const n=await this.#e.one(t,{[e]:r});(0,o.b0)(n)?(this.#t.info(`Can't find ${t} with ${e} equals to ${r} in the local storage, adding.`),await this.#e.new(t,s.entity)):(this.#t.info(`Updating ${t} with ${e} equals to "${r}" in the local storage.`),(0,o.b0)(n.hash)||(0,l.A)(n.entity)===n.hash||this.#t.warn(`The saved hash of the local ${t} "${n.hash}" don't match its calculated hash "${(0,l.A)(n.entity)}", milestone probably has not commited local changes, which will be overriten with remote label.`),n.substitute(s.entity)),this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}};m=d([(0,n.Gr)(),f(0,(0,n.WQ)("RemoteStorage")),f(1,(0,n.WQ)("LocalStorage")),f(2,(0,n.WQ)(p.A)),h("design:paramtypes",[Object,Object,"function"==typeof(s=void 0!==p.A&&p.A)?s:Object])],m);const g=m},9637:(e,t,r)=>{"use strict";var s=r(484),n=r(9714);const o="<<",i={identify:e=>e===o||"symbol"==typeof e&&e.description===o,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(o)),{addToJSMap:a}),stringify:()=>o};function a(e,t,r){if(r=e&&s.isAlias(r)?r.resolve(e.doc):r,s.isSeq(r))for(const s of r.items)c(e,t,s);else if(Array.isArray(r))for(const s of r)c(e,t,s);else c(e,t,r)}function c(e,t,r){const n=e&&s.isAlias(r)?r.resolve(e.doc):r;if(!s.isMap(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[e,r]of o)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}t.addMergeToJSMap=a,t.isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===n.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default),t.merge=i},9669:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var s=r(1943),n=r(6928),o=r(6903),i=r(4078),a=r(262);async function c(e){if(!await(0,a.t)(e))return[];if((await(0,s.stat)(e)).isFile())return[e];let t=[];try{const r=await(0,s.readdir)(e,{withFileTypes:!0});for(const s of r){const r=(0,n.join)(e,s.name);if(s.isDirectory()){const e=await c(r);t=t.concat(e)}else s.isFile()&&t.push(r)}}catch(t){throw new Error(`Error reading "${e}".`,{cause:t})}return t}var u=r(6486),l=r(3989);function p(e){return e.endsWith(".yml")||e.endsWith(".yaml")}var d=r(1354),h=r(5458),f=r(4523),m=r(1198),g=r(3121),y=r(6502);function b(e){if("string"==typeof e){const t=new m.X5(e);return e.includes("\n")&&(t.type=m.X5.BLOCK_LITERAL),t}if(Array.isArray(e)){const t=new m.Rw;return e.forEach(e=>{t.add(b(e))}),t}if("object"==typeof e&&null!==e){const t=new m.CA;return Object.keys(e).toSorted().forEach(r=>{t.add({key:r,value:b((0,h.A)(e[r]))})}),t}return new m.X5(e)}var v,w,_=r(6276),E=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},T=function(e,t){return function(r,s){t(r,s,e)}};const O=/^#?\s*(?<key>[^:]+):\s*(?<value>.+)\s*$/u;let S=class{entitySchemaRegistry;filePath;storage;#c;#G=!1;#t;constructor({filePath:e},t,r,s){this.filePath=e,this.entitySchemaRegistry=t,this.#c=new u.A(this.entitySchemaRegistry),this.#t=r,this.storage=s}async*all(e){await this.#L();for(const t of this.#c.all(e))yield t}async commit(){this.#t.debug(`Commiting changes to "${this.filePath}"...`),await this.#L();const e=this.#c.all(),t=e.some(e=>[i.jm,i.W4,i.dy].includes(e.state)||(0,y.A)(e.entity)!==e.hash),r=(0,f.$z)(e,e=>e.state);if(this.#t.debug(`Have ${Object.entries(r).map(([e,t])=>`[${e.toUpperCase()}]: ${t.length}`).join(", ")}`),t){const t=e.filter(e=>![i.W4].includes(e.state));if(0===t.length)await(0,s.unlink)(this.filePath);else{const e=(0,f.Ul)(t,e=>e.cookie.index??Number.MAX_SAFE_INTEGER).map(e=>this.#F(e)).map(e=>e.toString().trimEnd()).join("\n\n---\n").concat("\n");await(0,s.writeFile)(this.filePath,e),t.forEach(e=>{e.clean(e.entity)})}e.filter(e=>[i.W4].includes(e.state)).forEach(e=>{this.#c.delete(e)})}else this.#t.debug(`Skipping commit to "${this.filePath}". Nothing changed.`)}async new(e,t){const r=(0,_.A)(this.entitySchemaRegistry.get(e));if((0,f.b0)(r))throw new Error(`Can't find "${e}" entity schema.`);const s=new i.Ay({cookie:{file:this},entity:t,schema:r,state:i.dy,storage:this.storage}),n=this.entitySchemaRegistry.get(e);if((0,f.b0)(n))throw new Error(`Can't find "${e}" entity schema.`);return this.#c.set(s),Promise.resolve(s)}async one(e,t){return await this.#L(),this.#c.one(e,t)}async#L(){if(this.#G)return;const e=await(0,s.readFile)(this.filePath,"utf8"),t=(0,m.hR)(e);for(let e=0;e<t.length;e++){const r=(0,h.A)(t[e]),s=(0,_.A)(r.toJS());let n,o="",a=null,c=null,u=null,l=!1;if((0,f.Kg)(r.commentBefore)?u=r.commentBefore:(0,f.Kg)(r.contents?.commentBefore)&&(u=r.contents.commentBefore),null!==u){this.#t.debug(`Parsing comment before document #${e}:\n${u}`);const t=$(u);if("hash"in t&&(o=t.hash,this.#t.debug(`Found saved hash: ${o}`)),"yaml-language-server"in t){this.#t.debug(`Found yaml-language-server schema info: ${t["yaml-language-server"]}`);const e=/\$schema=(?<schema>.+)/u.exec(t["yaml-language-server"]);if(null!==e){const t=e[1]?.trim()??null;null!==t&&null!==/(?:^|[\\/])(?:issue|label|milestone)\.schema\.yml$/u.exec(t)&&(a=t,l=!0,this.#t.debug(`Resolved schema path: ${a}`))}}if("type"in t){this.#t.debug(`Found saved type: ${t.type}`);const e=t.type;(0,g.md)(e)&&(c=e,l=!0,this.#t.debug(`Resolved saved type: ${c}`))}}if(null!==c?(n=this.entitySchemaRegistry.get(c),this.#t.debug(`Resolved entity schema by saved type: ${n?.type}`)):null!==a&&(n=this.entitySchemaRegistry.resolve(a,this.#t),this.#t.debug(`Resolved entity schema by schema path: ${n?.type}`)),(0,f.b0)(n)&&(n=this.entitySchemaRegistry.all.find(e=>e.validate(s)),(0,f.b0)(n)||(l=!0)),(0,f.b0)(n)){if(l)throw new Error("Can't resolve schema for entity.");this.#t.debug(`Skipping YAML document #${e} in "${this.filePath}" (not a KickCat entity).`)}else if(n.validate(s)){""===o.trim()&&(o=void 0);const t=new i.Ay({cookie:{file:this,index:e},entity:s,hash:o,schema:n,state:i.w_,storage:this.storage});this.#c.set(t)}}this.#G=!0}#U(e,t){const r=e=>e.replaceAll("\\","/").replace(/^(?<temp1>[A-Za-z]):/u,(e,t)=>`/${t.toLowerCase()}`);return n.posix.relative(r(e),r(t))}#F(e){const t=this.entitySchemaRegistry.get(e.schema.type);if((0,f.b0)(t))throw new Error(`Can't find schema "${t}".`);const r=new m.yo,s=this.#U((0,n.dirname)(this.filePath),t.filePath),o=e.state!==i.w_&&!e.preserveHash||this.storage.repair?(0,y.A)(e.entity):e.hash;return r.commentBefore=[` yaml-language-server: $schema=${s}`,...(0,f.b0)(o)?[]:[` hash: ${o}`]].join("\n"),r.contents=this.#M(e.entity,t),r}#M(e,t){const r=new m.CA,s=Object.entries(t.properties).sort(([,e],[,t])=>e.order-t.order).map(([e])=>e),n=Object.keys(e).filter(e=>!s.includes(e)).toSorted();for(const t of[...s,...n]){if(!(t in e))continue;const s=e[t];r.add({key:t,value:b(s)})}return r}};S=E([T(1,(0,o.WQ)(l.A)),T(2,(0,o.WQ)(d.A)),k("design:paramtypes",[Object,"function"==typeof(v=void 0!==l.A&&l.A)?v:Object,"function"==typeof(w=void 0!==d.A&&d.A)?w:Object,Object])],S);const A=S;function $(e){return Object.fromEntries(e.split(/(?:\r\n|\r|\n)+/u).map(e=>function(e){const t=O.exec(e);return null===t||(0,f.b0)(t[1])||(0,f.b0)(t[2])?null:[t[1],t[2]]}(e.trim())).filter(e=>null!==e))}var P,j,R=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},C=function(e,t){return function(r,s){t(r,s,e)}};let N=class{entitySchemaRegistry;storagePath;repair;get fetched(){return this.#K}#c;#K=!1;#B=new Map;#t;constructor({storagePath:e,repair:t},r,s){this.storagePath=e??process.cwd(),this.repair=t??!1,this.entitySchemaRegistry=r,this.#c=new u.A(this.entitySchemaRegistry),this.#t=s}async*all(e){await this.#L();for(const t of this.#c.all(e))yield t}async commit(){this.#t.debug("Commiting local storage changes..."),await this.#V();for(const e of this.#B.values())await e.commit();this.#c.all().filter(e=>[i.W4].includes(e.state)).forEach(e=>{this.#c.delete(e)})}async new(e,t){return(await this.#z(e)).new(e,t)}async one(e,t){return await this.#L(),this.#c.one(e,t)}async#V(){this.#K||((await c(this.storagePath)).filter(p).forEach(e=>{this.#B.set(e,new A({filePath:e},this.entitySchemaRegistry,this.#t,this))}),this.#K=!0)}async#z(e){const t=await this.#W(e);if(this.#B.has(t))return(0,h.A)(this.#B.get(t));const r=new A({filePath:t},this.entitySchemaRegistry,this.#t,this);return this.#B.set(t,r),r}async#L(){await this.#V();for(const e of this.#B.values())for await(const t of e.all())this.#c.set(t)}async#W(e){await this.#V(),await(0,a.t)(this.storagePath)||(this.storagePath.endsWith(".yml")||this.storagePath.endsWith(".yaml")?await(0,s.writeFile)(this.storagePath,""):await(0,s.mkdir)(this.storagePath));const t=await(0,s.stat)(this.storagePath);if(t.isFile())return this.storagePath;if(t.isDirectory()){const t=(await(0,s.readdir)(this.storagePath)).filter(t=>t.includes(e));if(t.length>1)throw new Error(`Can't resolve path for "${e}" storage. Found ${t.length} candidates: ${t.join(", ")}`);if(0===t.length)return(0,n.resolve)(this.storagePath,`${e}.yml`);const r=await(0,s.stat)((0,h.A)(t[0]));if(r.isFile())return(0,h.A)(t[0]);if(r.isDirectory())return(await(0,s.readdir)((0,h.A)(t[0]))).find(e=>/(?:common|shared)/u.exec(e))??(0,n.resolve)(this.storagePath,"shared.yml")}throw new Error(`Can't resolve path to storage for ${e}.`)}};N=R([C(1,(0,o.WQ)(l.A)),C(2,(0,o.WQ)(d.A)),I("design:paramtypes",[Object,"function"==typeof(P=void 0!==l.A&&l.A)?P:Object,"function"==typeof(j=void 0!==d.A&&d.A)?j:Object])],N);const x=N},9713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>s._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return;const a=t.name("valid");t.forIn("key",o,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,s.not)(a),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(a)}};t.default=o},9714:(e,t,r)=>{"use strict";var s=r(484),n=r(8898),o=r(3732);class i extends n.NodeBase{constructor(e){super(s.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}i.BLOCK_FOLDED="BLOCK_FOLDED",i.BLOCK_LITERAL="BLOCK_LITERAL",i.PLAIN="PLAIN",i.QUOTE_DOUBLE="QUOTE_DOUBLE",i.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=i,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},9857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},9896:e=>{"use strict";e.exports=require("fs")},9973:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{options={};raw;route;constructor(e){this.raw=e}static new(){return new s(process.argv.slice(2))}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e].call(r.exports,r,r.exports,a),r.exports}e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",r=e?Symbol("webpack exports"):"__webpack_exports__",s=e?Symbol("webpack error"):"__webpack_error__",n=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},a.a=(e,o,i)=>{var a;i&&((a=[]).d=-1);var c,u,l,p=new Set,d=e.exports,h=new Promise((e,t)=>{l=t,u=e});h[r]=d,h[t]=e=>(a&&e(a),p.forEach(e),h.catch(e=>{})),e.exports=h,o(e=>{var o;c=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){var o=[];o.d=0,e.then(e=>{i[r]=e,n(o)},e=>{i[s]=e,n(o)});var i={};return i[t]=e=>e(o),i}}var a={};return a[t]=e=>{},a[r]=e,a}))(e);var i=()=>c.map(e=>{if(e[s])throw e[s];return e[r]}),u=new Promise(e=>{(o=()=>e(i)).r=0;var r=e=>e!==a&&!p.has(e)&&(p.add(e),e&&!e.d&&(o.r++,e.push(o)));c.map(e=>e[t](r))});return o.r?u:i()},e=>(e?l(h[s]=e):u(d),n(a))),a&&a.d<0&&(a.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};a(8156)})();
8
+ deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const s in e){if("__proto__"===s)continue;(Array.isArray(e[s])?t:r)[s]=e[s]}return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:n,it:i}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,o.propertyInData)(r,n,c,i.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(l,()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)}):(r.if(s._`${l} && (${(0,o.checkMissingProp)(e,u,a)})`),(0,o.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:s,keyword:i,it:a}=e,c=r.name("valid");for(const u in t)(0,n.alwaysValidSchema)(a,t[u])||(r.if((0,o.propertyInData)(r,s,u,a.opts.ownProperties),()=>{const t=e.subschema({keyword:i,schemaProp:u},c);e.mergeValidEvaluated(t,c)},()=>r.var(c,!0)),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=i},3121:(e,t,r)=>{"use strict";r.d(t,{Ni:()=>i,d_:()=>a,i8:()=>c,md:()=>l,o4:()=>u});var s=r(1027),n=r(1170),o=r(6276);const i="milestone",a="label",c="issue",u=new n.A([new s.A(i),new s.A(a),new s.A(c)]);function l(e){return[c,a,i].includes((0,o.A)(e))}},3144:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:r,value:s}){if("bigint"==typeof s)return String(s);const n="number"==typeof s?s:Number(s);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=JSON.stringify(s);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let r=t-(o.length-e-1);for(;r-- >0;)o+="0"}return o}},3282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const s=r(4042),n=r(6144),o=r(6653),i=r(2079),a=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends s.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var l=r(2586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=r(9029);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var d=r(3558);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=r(4551);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},3334:(e,t,r)=>{"use strict";var s=r(484),n=r(1755);const o={collection:"map",default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(s.isMap(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)};t.map=o},3439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>s.str`must be multiple of ${e}`,params:({schemaCode:e})=>s._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),c=i?s._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:s._`${a} !== parseInt(${a})`;e.fail$data(s._`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};t.default=n},3463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},3558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},3673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const s=r(9029),n=r(2023),o=r(5765),i=r(8708);function a(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,s._`${n.parentData}[${n.parentDataProperty}]`))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,s.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=e,u=t.macro.call(a.self,o,i,a),l=c(r,n,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const p=r.name("valid");e.subschema({schema:u,schemaPath:s.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},p),e.pass(p,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;const{gen:u,keyword:l,schema:p,parentSchema:d,$data:h,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const m=!h&&t.compile?t.compile.call(f.self,p,d,f):t.validate,g=c(u,l,m),y=u.let("valid");function b(r=(t.async?s._`await `:s.nil)){const i=f.opts.passContext?n.default.this:n.default.self,a=!("compile"in t&&!h||!1===t.schema);u.assign(y,s._`${r}${(0,o.callValidateCode)(e,g,i,a)}`,t.modifying)}function v(e){var r;u.if((0,s.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,function(){if(!1===t.errors)b(),t.modifying&&a(e),v(()=>e.error());else{const r=t.async?function(){const e=u.let("ruleErrs",null);return u.try(()=>b(s._`await `),t=>u.assign(y,!1).if(s._`${t} instanceof ${f.ValidationError}`,()=>u.assign(e,s._`${t}.errors`),()=>u.throw(t))),e}():function(){const e=s._`${g}.errors`;return u.assign(e,null),b(s.nil),e}();t.modifying&&a(e),v(()=>function(e,t){const{gen:r}=e;r.if(s._`Array.isArray(${t})`,()=>{r.assign(n.default.vErrors,s._`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,s._`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}(e,r))}}),e.ok(null!==(r=t.valid)&&void 0!==r?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");const i=n.dependencies;if(null==i?void 0:i.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${i.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},3693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const s=r(4551),n=r(5765),o=r(9029),i=r(2023),a=r(3835),c=r(4227),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:c,validateName:u,opts:d,self:h}=n,{root:f}=c;if(("#"===r||"#/"===r)&&i===f.baseId)return function(){if(c===f)return p(e,u,c,c.$async);const r=t.scopeValue("root",{ref:f});return p(e,o._`${r}.validate`,f,f.$async)}();const m=a.resolveRef.call(h,f,i,r);if(void 0===m)throw new s.default(n.opts.uriResolver,i,r);return m instanceof a.SchemaEnv?function(t){const r=l(e,t);p(e,r,t,t.$async)}(m):function(s){const n=t.scopeValue("schema",!0===d.code.source?{ref:s,code:(0,o.stringify)(s)}:{ref:s}),i=t.name("valid"),a=e.subschema({schema:s,dataTypes:[],schemaPath:o.nil,topSchemaRef:n,errSchemaPath:r},i);e.mergeEvaluated(a),e.ok(i)}(m)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function p(e,t,r,s){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:p,opts:d}=u,h=d.passContext?i.default.this:o.nil;function f(e){const t=o._`${e}.errors`;a.assign(i.default.vErrors,o._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),a.assign(i.default.errors,o._`${i.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const s=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(s&&!s.dynamicProps)void 0!==s.props&&(u.props=c.mergeEvaluated.props(a,s.props,u.props));else{const t=a.var("props",o._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,o.Name)}if(!0!==u.items)if(s&&!s.dynamicItems)void 0!==s.items&&(u.items=c.mergeEvaluated.items(a,s.items,u.items));else{const t=a.var("items",o._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,o.Name)}}s?function(){if(!p.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try(()=>{a.code(o._`await ${(0,n.callValidateCode)(e,t,h)}`),m(t),l||a.assign(r,!0)},e=>{a.if(o._`!(${e} instanceof ${u.ValidationError})`,()=>a.throw(e)),f(e),l||a.assign(r,!1)}),e.ok(r)}():e.result((0,n.callValidateCode)(e,t,h),()=>m(t),()=>f(t))}t.getValidate=l,t.callRef=p,t.default=u},3732:(e,t,r)=>{"use strict";var s=r(484);t.toJS=function e(t,r,n){if(Array.isArray(t))return t.map((t,r)=>e(t,String(r),n));if(t&&"function"==typeof t.toJSON){if(!n||!s.hasAnchor(t))return t.toJSON(r,n);const e={aliasCount:0,count:1,res:void 0};n.anchors.set(t,e),n.onCreate=t=>{e.res=t,delete n.onCreate};const o=t.toJSON(r,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof t||n?.keep?t:Number(t)}},3793:(e,t,r)=>{"use strict";var s=r(6261),n=r(484),o=r(248),i=r(7180);t.createStringifyContext=function(e,t){const r=Object.assign({blockQuote:!0,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let s;switch(r.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:s,options:r}},t.stringify=function(e,t,r,o){if(n.isPair(e))return e.toString(t,r,o);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a??(a=function(e,t){if(t.tag){const r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}let r,s;if(n.isScalar(t)){s=t.value;let n=e.filter(e=>e.identify?.(s));if(n.length>1){const e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else s=t,r=e.find(e=>e.nodeClass&&s instanceof e.nodeClass);if(!r)throw new Error(`Tag not resolved for ${s?.constructor?.name??(null===s?"null":typeof s)} value`);return r}(t.doc.schema.tags,c));const u=function(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[],a=(n.isScalar(e)||n.isCollection(e))&&e.anchor;a&&s.anchorIsValid(a)&&(r.add(a),i.push(`&${a}`));const c=e.tag??(t.default?null:t.tag);return c&&i.push(o.directives.tagString(c)),i.join(" ")}(c,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(c,t,r,o):n.isScalar(c)?i.stringifyString(c,t,r,o):c.toString(t,r,o);return u?n.isScalar(c)||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}},3835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(9029),n=r(3558),o=r(2023),i=r(6939),a=r(4227),c=r(2586);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function l(e){const t=d.call(this,e);if(t)return t;const r=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:u}=this.opts.code,{ownProperties:l}=this.opts,p=new s.CodeGen(this.scope,{es5:a,lines:u,ownProperties:l});let h;e.$async&&(h=p.scopeValue("Error",{ref:n.default,code:s._`require("ajv/dist/runtime/validation_error").default`}));const f=p.scopeName("validate");e.validateName=f;const m={gen:p,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:s._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),p.optimize(this.opts.code.optimize);const t=p.toString();g=`${p.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,g)(this,this.scope.get());if(this.scope.value(f,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:f,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof s.Name?void 0:e,items:t instanceof s.Name?void 0:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name},r.source&&(r.source.evaluated=(0,s.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function p(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function d(e){for(const t of this._compilations)if(h(t,e))return t}function h(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function f(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=this.opts.uriResolver.parse(t),s=(0,i._getFullPath)(this.opts.uriResolver,r);let n=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===n)return y.call(this,r,e);const o=(0,i.normalizeId)(s),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=m.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,i.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,s=t[r];return s&&(n=(0,i.resolveUrl)(this.opts.uriResolver,n,s)),new u({schema:t,schemaId:r,root:e,baseId:n})}return y.call(this,r,a)}}t.SchemaEnv=u,t.compileSchema=l,t.resolveRef=function(e,t,r){var s;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let o=f.call(this,e,r);if(void 0===o){const n=null===(s=e.localRefs)||void 0===s?void 0:s[r],{schemaId:i}=this.opts;n&&(o=new u({schema:n,schemaId:i,root:e,baseId:t}))}return void 0!==o?e.refs[r]=p.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=m;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:s}){var n;if("/"!==(null===(n=e.fragment)||void 0===n?void 0:n[0]))return;for(const s of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(s)];if(void 0===e)return;const n="object"==typeof(r=e)&&r[this.opts.schemaId];!g.has(s)&&n&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,n))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=m.call(this,s,e)}const{schemaId:c}=this.opts;return o=o||new u({schema:r,schemaId:c,root:s,baseId:t}),o.schema!==o.root.schema?o:void 0}},3837:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3853:(e,t)=>{"use strict";function r(e){const t=e.length;let r,s=0,n=0;for(;n<t;)s++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},3966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(5765),i=r(5457),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>s.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>s._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:s}=e,{prefixItems:a}=r;s.items=!0,(0,n.alwaysValidSchema)(s,t)||(a?(0,i.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},3989:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(6276);class n{get all(){return Array.from(this.#l.values())}#l=new Map;add(e,t){this.#l.set(e,(0,s.A)(t))}get(e){return this.#l.get(e)}resolve(e,t){function r(e){return e.replaceAll(/\\/gu,"/").replaceAll(/\.\.\//gu,"")}t?.debug(`Resolving entity schema for path: ${e}`);const s=r(e);return t?.debug(`Normalized path for resolution: ${s}`),Array.from(this.#l.values()).find(e=>{const n=r(e.filePath);return t?.debug(`Comparing with schema file path: ${n}`),n.includes(s)})}}},4003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(4227),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>n.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>n._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:i,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===r.length)return;const p=r.length>=l.loopRequired;if(u.allErrors?function(){if(p||c)e.block$data(n.nil,d);else for(const t of r)(0,s.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(p||c){const r=t.let("valid",!0);e.block$data(r,()=>function(r,o){e.setParams({missingProperty:r}),t.forOf(r,i,()=>{t.assign(o,(0,s.propertyInData)(t,a,r,l.ownProperties)),t.if((0,n.not)(o),()=>{e.error(),t.break()})},n.nil)}(o,r)),e.ok(r)}else t.if((0,s.checkMissingProp)(e,r,o)),(0,s.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:s}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!s.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function d(){t.forOf("prop",i,r=>{e.setParams({missingProperty:r}),t.if((0,s.noPropertyInData)(t,a,r,l.ownProperties),()=>e.error())})}}};t.default=i},4042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var s=r(2586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return s.KeywordCxt}});var n=r(9029);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=r(3558),i=r(4551),a=r(396),c=r(3835),u=r(9029),l=r(6939),p=r(208),d=r(4227),h=r(3837),f=r(5944),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,s,n,o,i,a,c,u,l,p,d,h,g,y,b,v,w,_,E,k,T,O,S,A;const $=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,j=!0===P||void 0===P?1:P||0,R=null!==(s=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==s?s:m,I=null!==(n=e.uriResolver)&&void 0!==n?n:f.default;return{strictSchema:null===(i=null!==(o=e.strictSchema)&&void 0!==o?o:$)||void 0===i||i,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:$)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:$)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(p=e.strictTuples)&&void 0!==p?p:$)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(h=e.strictRequired)&&void 0!==h?h:$)&&void 0!==g&&g,code:e.code?{...e.code,optimize:j,regExp:R}:{optimize:j,regExp:R},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(E=e.schemaId)&&void 0!==E?E:"$id",addUsedSchema:null===(k=e.addUsedSchema)||void 0===k||k,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(O=e.validateFormats)||void 0===O||O,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(A=e.int32range)||void 0===A||A,uriResolver:I}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:y,es5:t,lines:r}),this.logger=function(e){if(!1===e)return $;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),E.call(this,b,e,"NOT SUPPORTED"),E.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=A.call(this),e.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),T.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=h;"id"===r&&(s={...h},s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const s=r(t);return"$async"in r||(this.errors=r.errors),s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function n(e){e&&!this.getSchema(e)&&await s.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await n.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,s);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,s,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return s}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,s=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=k.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(j.call(this,r,t),!t)return(0,d.eachItem)(r,e=>R.call(this,e)),this;C.call(this,t);const s={...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===s.type.length?e=>R.call(this,e,s):e=>s.type.forEach(t=>R.call(this,e,s,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:s}=t.definition,o=n[e];s&&o&&(n[e]=x(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];t&&!t.test(r)||("string"==typeof s?delete e[r]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[r]))}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:i}=this.opts;if("object"==typeof e)o=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,l.normalizeId)(o||r);const u=l.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),s&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function E(e,t,r,s="error"){for(const n in e){const o=n;o in t&&this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function T(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function O(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function A(){const e={...this.opts};for(const t of g)delete e[t];return e}_.ValidationError=o.default,_.MissingRefError=i.default,t.default=_;const $={log(){},warn(){},error(){}};const P=/^[a-z_$][a-z0-9_$:-]*$/i;function j(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,r){var s;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let i=n?o.post:o.rules.find(({type:e})=>e===r);if(i||(i={type:r,rules:[]},o.rules.push(i)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)}};t.before?I.call(this,i,a,t.before):i.rules.push(a),o.all[e]=a,null===(s=t.implements)||void 0===s||s.forEach(e=>this.addKeyword(e))}function I(e,t,r){const s=e.rules.findIndex(e=>e.keyword===r);s>=0?e.rules.splice(s,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function C(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=x(t)),e.validateSchema=this.compile(t,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function x(e){return{anyOf:[e,N]}}},4070:(e,t,r)=>{"use strict";var s=r(9714);t.resolveBlockScalar=function(e,t,r){const n=t.offset,o=function({offset:e,props:t},r,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:n}=t[0],o=n[0];let i=0,a="",c=-1;for(let t=1;t<n.length;++t){const r=n[t];if(a||"-"!==r&&"+"!==r){const s=Number(r);!i&&s?i=s:-1===c&&(c=e+t)}else a=r}-1!==c&&s(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let u=!1,l="",p=n.length;for(let e=1;e<t.length;++e){const n=t[e];switch(n.type){case"space":u=!0;case"newline":p+=n.source.length;break;case"comment":if(r&&!u){s(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}p+=n.source.length,l=n.source.substring(1);break;case"error":s(n,"UNEXPECTED_TOKEN",n.message),p+=n.source.length;break;default:{s(n,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${n.type}`);const e=n.source;e&&"string"==typeof e&&(p+=e.length)}}}return{mode:o,indent:i,chomp:a,comment:l,length:p}}(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=">"===o.mode?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL,a=t.source?function(e){const t=e.split(/\n( *)/),r=t[0],s=r.match(/^( *)/),n=[s?.[1]?[s[1],r.slice(s[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)n.push([t[e],t[e+1]]);return n}(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const e="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=n+o.length;return t.source&&(r+=t.source.length),{value:e,type:i,comment:o.comment,range:[n,r,r]}}let u=t.indent+o.indent,l=t.offset+o.length,p=0;for(let t=0;t<c;++t){const[s,n]=a[t];if(""!==n&&"\r"!==n){if(s.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(l+s.length,"MISSING_CHAR",e)}if(0===o.indent&&(u=s.length),p=t,0===u&&!e.atRoot){r(l,"BAD_INDENT","Block scalar values in collections must be indented")}break}0===o.indent&&s.length>u&&(u=s.length),l+=s.length+n.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>u&&(c=e+1);let d="",h="",f=!1;for(let e=0;e<p;++e)d+=a[e][0].slice(u)+"\n";for(let e=p;e<c;++e){let[t,n]=a[e];l+=t.length+n.length+1;const c="\r"===n[n.length-1];if(c&&(n=n.slice(0,-1)),n&&t.length<u){const e=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;r(l-n.length-(c?2:1),"BAD_INDENT",e),t=""}i===s.Scalar.BLOCK_LITERAL?(d+=h+t.slice(u)+n,h="\n"):t.length>u||"\t"===n[0]?(" "===h?h="\n":f||"\n"!==h||(h="\n\n"),d+=h+t.slice(u)+n,h="\n",f=!0):""===n?"\n"===h?d+="\n":h="\n":(d+=h+n,h=" ",f=!1)}switch(o.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)d+="\n"+a[e][0].slice(u);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}const m=n+o.length+t.source.length;return{value:d,type:i,comment:o.comment,range:[n,m,m]}}},4078:(e,t,r)=>{"use strict";r.d(t,{w_:()=>a,jm:()=>c,W4:()=>u,dy:()=>i,Ay:()=>l});var s=r(4523),n=r(6276);function o(e,t){return(0,n.A)(Object.fromEntries(Object.entries(e).filter(([e])=>e!==t)))}const i="new",a="clean",c="dirty",u="killed";class l{cookie;hash;preserveHash=!1;schema;storage;get entity(){return this.#p}get newUniqueKeys(){const e=[];for(const t of this.schema.newUniqueProperties){const r=this.#p[t];"number"!=typeof r&&"string"!=typeof r||e.push(r)}return e}get notHasPrimaryKey(){return null===this.primaryKey}get preferredUniqueKey(){const e=this.primaryKey;if(null!==e)return e;const t=this.uniqueKeys;if(t.length>0)return t[0]??null;const r=this.newUniqueKeys;return r.length>0?r[0]??null:null}get primaryKey(){for(const[e,t]of Object.entries(this.schema.properties))if(t.primaryKey){const t=this.#p[e];if("number"==typeof t||"string"==typeof t)return t}return null}get state(){return this.#d}get uniqueKeys(){const e=[];for(const t of this.schema.uniqueProperties){const r=this.#p[t];"number"!=typeof r&&"string"!=typeof r||e.push(r)}return e}#p;#d;constructor({cookie:e,entity:t,hash:r,schema:s,state:n,storage:o}){this.schema=s,this.#p=Object.freeze({...t}),this.hash=r,this.cookie=e,this.#d=n??"detached",this.storage=o}clean(e){if(![a,c,i].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be changed.`);return this.#p=Object.freeze({...e}),this.#d=a,this}delete(){if(![a,c,u].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be killed.`);return this.#d=u,this}freeOf(e){if(![a,c].includes(this.#d))return this;if(!this.schema.references.includes(e.schema.type))return this;for(const[t,r]of Object.entries(this.schema.properties))if(r.reference===e.schema.type)if(Array.isArray(this.#p[t])){const s=this.#p[t];if(e.uniqueKeys.some(e=>s.includes(e))){const s=this.#p[t].filter(t=>!e.uniqueKeys.includes((0,n.A)(t)));0!==s.length||r.required?this.#p=Object.freeze({...this.#p,[t]:s}):this.#p=(0,n.A)(Object.freeze(Object.fromEntries(Object.entries(this.#p).filter(([e])=>e!==t)))),this.#d!==i&&(this.#d=c)}}else if(e.uniqueKeys.includes((0,n.A)(this.#p[t]))){if(r.required)throw new Error(`Can't free "${this.schema.type}" from "${e.schema.type}" reference in the required property "${t}".`);this.#p=(0,n.A)(Object.freeze(Object.fromEntries(Object.entries(this.#p).filter(([e])=>e!==t)))),this.#d!==i&&(this.#d=c)}return this}async getFreeOfNonPrimaryKeyDependeciesEntity(){let e=(0,n.A)({...this.#p});for(const[t,r]of Object.entries(this.schema.properties))if(!(0,s.b0)(r.reference))if(Array.isArray(e[t])){const r=[],n=await this.references(t);for(const e of n)((0,s.Kg)(e.primaryKey)||(0,s.Et)(e.primaryKey))&&(r.includes(e.primaryKey)||r.push(e.primaryKey));e={...e,[t]:r}}else{const n=await this.reference(t);if((0,s.kZ)(n)||n.notHasPrimaryKey){if(r.required)throw new Error(`Can't free "${this.schema.type}" from "${r.reference}" reference in the required property "${t}".`);e=o(e,t)}}return e}merge(e){let t={...this.#p};for(const[r,n]of Object.entries(this.schema.properties))r in e&&(t=!(0,s.b0)(n.reference)&&(0,s.L)(e[r])?{...t,[r]:(0,s.sb)([...(0,s.L)(t[r])?t[r]:[],...e[r]])}:{...t,[r]:e[r]});this.#p=Object.freeze(t),[a,c].includes(this.#d)&&(this.#d=c)}async oneReference(e,t){const r=this.schema.properties[e];if((0,s.b0)(r)||(0,s.b0)(r.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const o=this.#p[e];if((0,s.b0)(o)||(0,s.kZ)(o))return null;if(!(0,s.L)(o))throw new Error(`Property "${e}" value is not an array of primary keys of the referenced entity type "${r.reference}".`);const i=this.storage.entitySchemaRegistry.get(r.reference);if((0,s.b0)(i))throw new Error(`Referenced entity type schema "${r.reference}" not found in the registry.`);const a=[...(0,s.Kg)(i.primaryKeyProperty)?[i.primaryKeyProperty]:[],...i.uniqueProperties,...i.newUniqueProperties];for(const e of a){const o=await this.storage.one(r.reference,(0,n.A)({[e]:t}));if(!(0,s.b0)(o))return o}return null}async reference(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.#p[e];if((0,s.b0)(r)||(0,s.kZ)(r))return null;if(!(0,s.Kg)(r)&&!(0,s.Et)(r))throw new Error(`Property "${e}" value is not a primary key of the referenced entity type "${t.reference}".`);const o=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(o))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);const i=[...(0,s.Kg)(o.primaryKeyProperty)?[o.primaryKeyProperty]:[],...o.uniqueProperties,...o.newUniqueProperties];for(const e of i){const o=await this.storage.one(t.reference,(0,n.A)({[e]:r}));if(!(0,s.b0)(o))return o}return null}async references(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.#p[e];if((0,s.b0)(r)||(0,s.kZ)(r))return[];if(!(0,s.L)(r))throw new Error(`Property "${e}" value is not an array of primary keys of the referenced entity type "${t.reference}".`);const o=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(o))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);const i=[...(0,s.Kg)(o.primaryKeyProperty)?[o.primaryKeyProperty]:[],...o.uniqueProperties,...o.newUniqueProperties],a=[];for(const o of r){if(!(0,s.Kg)(o)&&!(0,s.Et)(o))throw new Error(`Property "${e}" value is not a primary key of the referenced entity type "${t.reference}".`);for(const e of i){const r=await this.storage.one(t.reference,(0,n.A)({[e]:o}));(0,s.b0)(r)||a.includes(r)||a.push(r)}}return a}substitute(e){if(![a,c].includes(this.#d))throw new Error(`An entry in state "${this.#d}" can't be changed.`);return this.#p=Object.freeze({...e}),this.#d=c,this}async tryBringDependenciesToPrimaryKeys(){let e=!0;for(const[t,r]of Object.entries(this.schema.properties))(0,s.b0)(r.reference)||await this.#h(t)||(e=!1);return e}async#h(e){const t=this.schema.properties[e];if((0,s.b0)(t)||(0,s.b0)(t.reference))throw new Error(`Property "${e}" is not a reference property of entity type "${this.schema.type}".`);const r=this.storage.entitySchemaRegistry.get(t.reference);if((0,s.b0)(r))throw new Error(`Referenced entity type schema "${t.reference}" not found in the registry.`);if((0,s.kZ)(r.primaryKeyProperty))return!1;if(0===r.uniqueProperties.length&&0===r.newUniqueProperties.length)return!0;if((0,s.b0)(this.#p[e])||(0,s.kZ)(this.#p[e]))return!0;if(Array.isArray(this.#p[e])){const t=[];let o=!0;for(const n of this.#p[e]){if((0,s.Et)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("number")){t.push(n);continue}if((0,s.Kg)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("string")){t.push(n);continue}if(!(0,s.Et)(n)||!(0,s.Kg)(n)){t.push(n),o=!1;continue}const i=await this.oneReference(e,n);((0,s.kZ)(i)||i.notHasPrimaryKey)&&(o=!1),t.push(i?.primaryKey??n)}return this.#p=(0,n.A)({...this.#p,[e]:t}),o}if((0,s.Et)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("number"))return!0;if((0,s.Kg)(this.#p[e])&&r.canValueOfTypeBeOnlyPrimaryKey("string"))return!0;const o=await this.reference(e);return!(0,s.kZ)(o)&&!o.notHasPrimaryKey&&(this.#p=(0,n.A)({...this.#p,[e]:o.primaryKey}),!0)}}},4200:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(4523),n=r(5458),o=r(8847);class i extends o.Ay{async delete(e){this.logger.debug(`GitHub issues.deleteMilestone: ${this.owner}/${this.repo} milestone_number=${(0,n.A)(e.number)}`),await this.octokit.rest.issues.deleteMilestone({milestone_number:(0,n.A)(e.number),owner:this.owner,repo:this.repo})}async get(e){this.logger.debug(`GitHub issues.getMilestone: ${this.owner}/${this.repo} milestone_number=${(0,n.A)(e.number)}`);try{return a((await this.octokit.rest.issues.getMilestone({milestone_number:(0,n.A)(e.number),owner:this.owner,repo:this.repo})).data)}catch(t){const r=function(e){if("object"!=typeof e||null===e)return;if(!("status"in e))return;const{status:t}=e;return"number"==typeof t?t:void 0}(t);if(404===r)return void this.logger.debug(`GitHub issues.getMilestone returned 404: ${this.owner}/${this.repo} milestone_number=${(0,n.A)(e.number)}`);throw t}}async set(e){return(0,s.b0)(e.number)?(this.logger.debug(`GitHub issues.createMilestone: ${this.owner}/${this.repo} title="${(0,n.A)(e.title)}"`),a((await this.octokit.rest.issues.createMilestone({description:e.description,due_on:e.dueDate??"",owner:this.owner,repo:this.repo,state:e.state,title:(0,n.A)(e.title)})).data)):(this.logger.debug(`GitHub issues.updateMilestone: ${this.owner}/${this.repo} milestone_number=${e.number}`),a((await this.octokit.rest.issues.updateMilestone({description:e.description,due_on:e.dueDate,milestone_number:e.number,owner:this.owner,repo:this.repo,state:e.state,title:e.title})).data))}}function a(e){const t={number:e.number,state:e.state,title:e.title};return null!==e.description&&(t.description=e.description),null!==e.due_on&&(t.dueDate=e.due_on),t}},4227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(9029),n=r(1520);function o(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=s.RULES.keywords;for(const r in t)n[r]||f(e,`unknown keyword: "${r}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,a,c)=>{const u=void 0===a?i:a instanceof s.Name?(i instanceof s.Name?e(o,i,a):t(o,i,a),a):i instanceof s.Name?(t(o,a,i),i):r(i,a);return c!==s.Name||u instanceof s.Name?u:n(o,u)}}function l(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",s._`{}`);return void 0!==t&&p(e,r,t),r}function p(e,t,r){Object.keys(r).forEach(r=>e.assign(s._`${t}${(0,s.getProperty)(r)}`,!0))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=i,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return s._`${r}`}return s._`${e}${t}${(0,s.getProperty)(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,()=>{e.if(s._`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,s._`${r} || {}`).code(s._`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,s._`${r} || {}`),p(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:u({mergeNames:(e,t,r)=>e.if(s._`${r} !== true && ${t} !== undefined`,()=>e.assign(r,s._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if(s._`${r} !== true`,()=>e.assign(r,!0===t||s._`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=p;const d={};var h;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new n._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h||(t.Type=h={})),t.getErrorPath=function(e,t,r){if(e instanceof s.Name){const n=t===h.Num;return r?n?s._`"[" + ${e} + "]"`:s._`"['" + ${e} + "']"`:n?s._`"/" + ${e}`:s._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,s.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=f},4355:(e,t)=>{"use strict";class r extends Error{constructor(e,t,r,s){super(),this.name=e,this.code=r,this.message=s,this.pos=t}}t.YAMLError=r,t.YAMLParseError=class extends r{constructor(e,t,r){super("YAMLParseError",e,t,r)}},t.YAMLWarning=class extends r{constructor(e,t,r){super("YAMLWarning",e,t,r)}},t.prettifyError=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));const{line:s,col:n}=r.linePos[0];r.message+=` at line ${s}, column ${n}`;let o=n-1,i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e),o-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),s>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];t&&t.line===s&&t.col>n&&(e=Math.max(1,Math.min(t.col-n,80-o)));const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}}},4426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,s.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=n},4486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?s.operators.GT:s.operators.LT;e.fail$data(s._`Object.keys(${r}).length ${o} ${n}`)}};t.default=n},4495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const s=r(9029),n=r(4227);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:i,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:s._`${e.schemaPath}${(0,s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:s._`${e.schemaPath}${(0,s.getProperty)(t)}${(0,s.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===i||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:i,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:i,dataTypes:a,propertyName:c}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:i,dataPathArr:a,opts:c}=t;l(u.let("data",s._`${t.data}${(0,s.getProperty)(r)}`,!0)),e.errorPath=s.str`${i}${(0,n.getErrorPath)(r,o,c.jsPropertySyntax)}`,e.parentDataProperty=s._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==i){l(i instanceof s.Name?i:u.let("data",i,!0)),void 0!==c&&(e.propertyName=c)}function l(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){void 0!==s&&(e.compositeRule=s),void 0!==n&&(e.createErrors=n),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},4523:(e,t,r)=>{"use strict";r.d(t,{R9:()=>$r,$z:()=>fr,L:()=>z,Lm:()=>$,kZ:()=>S,Et:()=>I,Gv:()=>O,Kg:()=>R,b0:()=>A,HV:()=>Or,Ul:()=>dr,sb:()=>jr});var s={};r.r(s),r.d(s,{VERSION:()=>n,after:()=>Nt,all:()=>er,allKeys:()=>ge,any:()=>tr,assign:()=>Ne,before:()=>xt,bind:()=>Et,bindAll:()=>Ot,chain:()=>bt,chunk:()=>qr,clone:()=>Ge,collect:()=>Wt,compact:()=>Sr,compose:()=>Ct,constant:()=>Z,contains:()=>rr,countBy:()=>gr,create:()=>qe,debounce:()=>jt,default:()=>Fr,defaults:()=>xe,defer:()=>$t,delay:()=>At,detect:()=>Vt,difference:()=>$r,drop:()=>Tr,each:()=>Ht,escape:()=>it,every:()=>er,extend:()=>Ce,extendOwn:()=>Ne,filter:()=>Zt,find:()=>Vt,findIndex:()=>Lt,findKey:()=>qt,findLastIndex:()=>Ft,findWhere:()=>zt,first:()=>kr,flatten:()=>Ar,foldl:()=>Yt,foldr:()=>Qt,forEach:()=>Ht,functions:()=>Re,get:()=>Ke,groupBy:()=>fr,has:()=>Be,head:()=>kr,identity:()=>Ve,include:()=>rr,includes:()=>rr,indexBy:()=>mr,indexOf:()=>Kt,initial:()=>Er,inject:()=>Yt,intersection:()=>Ir,invert:()=>je,invoke:()=>sr,isArguments:()=>J,isArray:()=>z,isArrayBuffer:()=>q,isBoolean:()=>$,isDataView:()=>V,isDate:()=>C,isElement:()=>P,isEmpty:()=>ce,isEqual:()=>me,isError:()=>x,isFinite:()=>Y,isFunction:()=>F,isMap:()=>Te,isMatch:()=>ue,isNaN:()=>Q,isNull:()=>S,isNumber:()=>I,isObject:()=>O,isRegExp:()=>N,isSet:()=>Se,isString:()=>R,isSymbol:()=>D,isTypedArray:()=>ne,isUndefined:()=>A,isWeakMap:()=>Oe,isWeakSet:()=>Ae,iteratee:()=>Ye,keys:()=>ae,last:()=>Or,lastIndexOf:()=>Bt,map:()=>Wt,mapObject:()=>Ze,matcher:()=>ze,matches:()=>ze,max:()=>ir,memoize:()=>St,methods:()=>Re,min:()=>ar,mixin:()=>Lr,negate:()=>It,noop:()=>Xe,now:()=>st,object:()=>xr,omit:()=>_r,once:()=>Dt,pairs:()=>Pe,partial:()=>_t,partition:()=>yr,pick:()=>wr,pluck:()=>nr,property:()=>He,propertyOf:()=>et,random:()=>rt,range:()=>Dr,reduce:()=>Yt,reduceRight:()=>Qt,reject:()=>Xt,rest:()=>Tr,restArguments:()=>T,result:()=>mt,sample:()=>lr,select:()=>Zt,shuffle:()=>pr,size:()=>br,some:()=>tr,sortBy:()=>dr,sortedIndex:()=>Ut,tail:()=>Tr,take:()=>kr,tap:()=>Le,template:()=>ft,templateSettings:()=>ct,throttle:()=>Pt,times:()=>tt,toArray:()=>ur,toPath:()=>Fe,transpose:()=>Cr,unescape:()=>at,union:()=>Rr,uniq:()=>jr,unique:()=>jr,uniqueId:()=>yt,unzip:()=>Cr,values:()=>$e,where:()=>or,without:()=>Pr,wrap:()=>Rt,zip:()=>Nr});var n="1.13.7",o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},i=Array.prototype,a=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,u=i.push,l=i.slice,p=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,y=Object.create,b=h&&ArrayBuffer.isView,v=isNaN,w=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1;function T(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),s=Array(r),n=0;n<r;n++)s[n]=arguments[n+t];switch(t){case 0:return e.call(this,s);case 1:return e.call(this,arguments[0],s);case 2:return e.call(this,arguments[0],arguments[1],s)}var o=Array(t+1);for(n=0;n<t;n++)o[n]=arguments[n];return o[t]=s,e.apply(this,o)}}function O(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function S(e){return null===e}function A(e){return void 0===e}function $(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function P(e){return!(!e||1!==e.nodeType)}function j(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}const R=j("String"),I=j("Number"),C=j("Date"),N=j("RegExp"),x=j("Error"),D=j("Symbol"),q=j("ArrayBuffer");var G=j("Function"),L=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(G=function(e){return"function"==typeof e||!1});const F=G,U=j("Object");var M=f&&(!/\[native code\]/.test(String(DataView))||U(new DataView(new ArrayBuffer(8)))),K="undefined"!=typeof Map&&U(new Map),B=j("DataView");const V=M?function(e){return null!=e&&F(e.getInt8)&&q(e.buffer)}:B,z=m||j("Array");function H(e,t){return null!=e&&d.call(e,t)}var W=j("Arguments");!function(){W(arguments)||(W=function(e){return H(e,"callee")})}();const J=W;function Y(e){return!D(e)&&w(e)&&!isNaN(parseFloat(e))}function Q(e){return I(e)&&v(e)}function Z(e){return function(){return e}}function X(e){return function(t){var r=e(t);return"number"==typeof r&&r>=0&&r<=k}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),re=X(te);var se=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ne=h?function(e){return b?b(e)&&!V(e):re(e)&&se.test(p.call(e))}:Z(!1),oe=ee("length");function ie(e,t){t=function(e){for(var t={},r=e.length,s=0;s<r;++s)t[e[s]]=!0;return{contains:function(e){return!0===t[e]},push:function(r){return t[r]=!0,e.push(r)}}}(t);var r=E.length,s=e.constructor,n=F(s)&&s.prototype||a,o="constructor";for(H(e,o)&&!t.contains(o)&&t.push(o);r--;)(o=E[r])in e&&e[o]!==n[o]&&!t.contains(o)&&t.push(o)}function ae(e){if(!O(e))return[];if(g)return g(e);var t=[];for(var r in e)H(e,r)&&t.push(r);return _&&ie(e,t),t}function ce(e){if(null==e)return!0;var t=oe(e);return"number"==typeof t&&(z(e)||R(e)||J(e))?0===t:0===oe(ae(e))}function ue(e,t){var r=ae(t),s=r.length;if(null==e)return!s;for(var n=Object(e),o=0;o<s;o++){var i=r[o];if(t[i]!==n[i]||!(i in n))return!1}return!0}function le(e){return e instanceof le?e:this instanceof le?void(this._wrapped=e):new le(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}le.VERSION=n,le.prototype.value=function(){return this._wrapped},le.prototype.valueOf=le.prototype.toJSON=le.prototype.value,le.prototype.toString=function(){return String(this._wrapped)};var de="[object DataView]";function he(e,t,r,s){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var n=typeof e;return("function"===n||"object"===n||"object"==typeof t)&&fe(e,t,r,s)}function fe(e,t,r,s){e instanceof le&&(e=e._wrapped),t instanceof le&&(t=t._wrapped);var n=p.call(e);if(n!==p.call(t))return!1;if(M&&"[object Object]"==n&&V(e)){if(!V(t))return!1;n=de}switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return c.valueOf.call(e)===c.valueOf.call(t);case"[object ArrayBuffer]":case de:return fe(pe(e),pe(t),r,s)}var o="[object Array]"===n;if(!o&&ne(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var i=e.constructor,a=t.constructor;if(i!==a&&!(F(i)&&i instanceof i&&F(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}s=s||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return s[u]===t;if(r.push(e),s.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!he(e[u],t[u],r,s))return!1}else{var l,d=ae(e);if(u=d.length,ae(t).length!==u)return!1;for(;u--;)if(!H(t,l=d[u])||!he(e[l],t[l],r,s))return!1}return r.pop(),s.pop(),!0}function me(e,t){return he(e,t)}function ge(e){if(!O(e))return[];var t=[];for(var r in e)t.push(r);return _&&ie(e,t),t}function ye(e){var t=oe(e);return function(r){if(null==r)return!1;var s=ge(r);if(oe(s))return!1;for(var n=0;n<t;n++)if(!F(r[e[n]]))return!1;return e!==Ee||!F(r[be])}}var be="forEach",ve=["clear","delete"],we=["get","has","set"],_e=ve.concat(be,we),Ee=ve.concat(we),ke=["add"].concat(ve,be,"has");const Te=K?ye(_e):j("Map"),Oe=K?ye(Ee):j("WeakMap"),Se=K?ye(ke):j("Set"),Ae=j("WeakSet");function $e(e){for(var t=ae(e),r=t.length,s=Array(r),n=0;n<r;n++)s[n]=e[t[n]];return s}function Pe(e){for(var t=ae(e),r=t.length,s=Array(r),n=0;n<r;n++)s[n]=[t[n],e[t[n]]];return s}function je(e){for(var t={},r=ae(e),s=0,n=r.length;s<n;s++)t[e[r[s]]]=r[s];return t}function Re(e){var t=[];for(var r in e)F(e[r])&&t.push(r);return t.sort()}function Ie(e,t){return function(r){var s=arguments.length;if(t&&(r=Object(r)),s<2||null==r)return r;for(var n=1;n<s;n++)for(var o=arguments[n],i=e(o),a=i.length,c=0;c<a;c++){var u=i[c];t&&void 0!==r[u]||(r[u]=o[u])}return r}}const Ce=Ie(ge),Ne=Ie(ae),xe=Ie(ge,!0);function De(e){if(!O(e))return{};if(y)return y(e);var t=function(){};t.prototype=e;var r=new t;return t.prototype=null,r}function qe(e,t){var r=De(e);return t&&Ne(r,t),r}function Ge(e){return O(e)?z(e)?e.slice():Ce({},e):e}function Le(e,t){return t(e),e}function Fe(e){return z(e)?e:[e]}function Ue(e){return le.toPath(e)}function Me(e,t){for(var r=t.length,s=0;s<r;s++){if(null==e)return;e=e[t[s]]}return r?e:void 0}function Ke(e,t,r){var s=Me(e,Ue(t));return A(s)?r:s}function Be(e,t){for(var r=(t=Ue(t)).length,s=0;s<r;s++){var n=t[s];if(!H(e,n))return!1;e=e[n]}return!!r}function Ve(e){return e}function ze(e){return e=Ne({},e),function(t){return ue(t,e)}}function He(e){return e=Ue(e),function(t){return Me(t,e)}}function We(e,t,r){if(void 0===t)return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,s,n){return e.call(t,r,s,n)};case 4:return function(r,s,n,o){return e.call(t,r,s,n,o)}}return function(){return e.apply(t,arguments)}}function Je(e,t,r){return null==e?Ve:F(e)?We(e,t,r):O(e)&&!z(e)?ze(e):He(e)}function Ye(e,t){return Je(e,t,1/0)}function Qe(e,t,r){return le.iteratee!==Ye?le.iteratee(e,t):Je(e,t,r)}function Ze(e,t,r){t=Qe(t,r);for(var s=ae(e),n=s.length,o={},i=0;i<n;i++){var a=s[i];o[a]=t(e[a],a,e)}return o}function Xe(){}function et(e){return null==e?Xe:function(t){return Ke(e,t)}}function tt(e,t,r){var s=Array(Math.max(0,e));t=We(t,r,1);for(var n=0;n<e;n++)s[n]=t(n);return s}function rt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}le.toPath=Fe,le.iteratee=Ye;const st=Date.now||function(){return(new Date).getTime()};function nt(e){var t=function(t){return e[t]},r="(?:"+ae(e).join("|")+")",s=RegExp(r),n=RegExp(r,"g");return function(e){return e=null==e?"":""+e,s.test(e)?e.replace(n,t):e}}const ot={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},it=nt(ot),at=nt(je(ot)),ct=le.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ut=/(.)^/,lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pt=/\\|'|\r|\n|\u2028|\u2029/g;function dt(e){return"\\"+lt[e]}var ht=/^\s*(\w|\$)+\s*$/;function ft(e,t,r){!t&&r&&(t=r),t=xe({},t,le.templateSettings);var s=RegExp([(t.escape||ut).source,(t.interpolate||ut).source,(t.evaluate||ut).source].join("|")+"|$","g"),n=0,o="__p+='";e.replace(s,function(t,r,s,i,a){return o+=e.slice(n,a).replace(pt,dt),n=a+t.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":s?o+="'+\n((__t=("+s+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),t}),o+="';\n";var i,a=t.variable;if(a){if(!ht.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(a,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return i.call(this,e,le)};return c.source="function("+a+"){\n"+o+"}",c}function mt(e,t,r){var s=(t=Ue(t)).length;if(!s)return F(r)?r.call(e):r;for(var n=0;n<s;n++){var o=null==e?void 0:e[t[n]];void 0===o&&(o=r,n=s),e=F(o)?o.call(e):o}return e}var gt=0;function yt(e){var t=++gt+"";return e?e+t:t}function bt(e){var t=le(e);return t._chain=!0,t}function vt(e,t,r,s,n){if(!(s instanceof t))return e.apply(r,n);var o=De(e.prototype),i=e.apply(o,n);return O(i)?i:o}var wt=T(function(e,t){var r=wt.placeholder,s=function(){for(var n=0,o=t.length,i=Array(o),a=0;a<o;a++)i[a]=t[a]===r?arguments[n++]:t[a];for(;n<arguments.length;)i.push(arguments[n++]);return vt(e,s,this,this,i)};return s});wt.placeholder=le;const _t=wt,Et=T(function(e,t,r){if(!F(e))throw new TypeError("Bind must be called on a function");var s=T(function(n){return vt(e,s,t,this,r.concat(n))});return s}),kt=X(oe);function Tt(e,t,r,s){if(s=s||[],t||0===t){if(t<=0)return s.concat(e)}else t=1/0;for(var n=s.length,o=0,i=oe(e);o<i;o++){var a=e[o];if(kt(a)&&(z(a)||J(a)))if(t>1)Tt(a,t-1,r,s),n=s.length;else for(var c=0,u=a.length;c<u;)s[n++]=a[c++];else r||(s[n++]=a)}return s}const Ot=T(function(e,t){var r=(t=Tt(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var s=t[r];e[s]=Et(e[s],e)}return e});function St(e,t){var r=function(s){var n=r.cache,o=""+(t?t.apply(this,arguments):s);return H(n,o)||(n[o]=e.apply(this,arguments)),n[o]};return r.cache={},r}const At=T(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),$t=_t(At,le,1);function Pt(e,t,r){var s,n,o,i,a=0;r||(r={});var c=function(){a=!1===r.leading?0:st(),s=null,i=e.apply(n,o),s||(n=o=null)},u=function(){var u=st();a||!1!==r.leading||(a=u);var l=t-(u-a);return n=this,o=arguments,l<=0||l>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(n,o),s||(n=o=null)):s||!1===r.trailing||(s=setTimeout(c,l)),i};return u.cancel=function(){clearTimeout(s),a=0,s=n=o=null},u}function jt(e,t,r){var s,n,o,i,a,c=function(){var u=st()-n;t>u?s=setTimeout(c,t-u):(s=null,r||(i=e.apply(a,o)),s||(o=a=null))},u=T(function(u){return a=this,o=u,n=st(),s||(s=setTimeout(c,t),r&&(i=e.apply(a,o))),i});return u.cancel=function(){clearTimeout(s),s=o=a=null},u}function Rt(e,t){return _t(t,e)}function It(e){return function(){return!e.apply(this,arguments)}}function Ct(){var e=arguments,t=e.length-1;return function(){for(var r=t,s=e[t].apply(this,arguments);r--;)s=e[r].call(this,s);return s}}function Nt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function xt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}const Dt=_t(xt,2);function qt(e,t,r){t=Qe(t,r);for(var s,n=ae(e),o=0,i=n.length;o<i;o++)if(t(e[s=n[o]],s,e))return s}function Gt(e){return function(t,r,s){r=Qe(r,s);for(var n=oe(t),o=e>0?0:n-1;o>=0&&o<n;o+=e)if(r(t[o],o,t))return o;return-1}}const Lt=Gt(1),Ft=Gt(-1);function Ut(e,t,r,s){for(var n=(r=Qe(r,s,1))(t),o=0,i=oe(e);o<i;){var a=Math.floor((o+i)/2);r(e[a])<n?o=a+1:i=a}return o}function Mt(e,t,r){return function(s,n,o){var i=0,a=oe(s);if("number"==typeof o)e>0?i=o>=0?o:Math.max(o+a,i):a=o>=0?Math.min(o+1,a):o+a+1;else if(r&&o&&a)return s[o=r(s,n)]===n?o:-1;if(n!=n)return(o=t(l.call(s,i,a),Q))>=0?o+i:-1;for(o=e>0?i:a-1;o>=0&&o<a;o+=e)if(s[o]===n)return o;return-1}}const Kt=Mt(1,Lt,Ut),Bt=Mt(-1,Ft);function Vt(e,t,r){var s=(kt(e)?Lt:qt)(e,t,r);if(void 0!==s&&-1!==s)return e[s]}function zt(e,t){return Vt(e,ze(t))}function Ht(e,t,r){var s,n;if(t=We(t,r),kt(e))for(s=0,n=e.length;s<n;s++)t(e[s],s,e);else{var o=ae(e);for(s=0,n=o.length;s<n;s++)t(e[o[s]],o[s],e)}return e}function Wt(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=Array(n),i=0;i<n;i++){var a=s?s[i]:i;o[i]=t(e[a],a,e)}return o}function Jt(e){return function(t,r,s,n){var o=arguments.length>=3;return function(t,r,s,n){var o=!kt(t)&&ae(t),i=(o||t).length,a=e>0?0:i-1;for(n||(s=t[o?o[a]:a],a+=e);a>=0&&a<i;a+=e){var c=o?o[a]:a;s=r(s,t[c],c,t)}return s}(t,We(r,n,4),s,o)}}const Yt=Jt(1),Qt=Jt(-1);function Zt(e,t,r){var s=[];return t=Qe(t,r),Ht(e,function(e,r,n){t(e,r,n)&&s.push(e)}),s}function Xt(e,t,r){return Zt(e,It(Qe(t)),r)}function er(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=0;o<n;o++){var i=s?s[o]:o;if(!t(e[i],i,e))return!1}return!0}function tr(e,t,r){t=Qe(t,r);for(var s=!kt(e)&&ae(e),n=(s||e).length,o=0;o<n;o++){var i=s?s[o]:o;if(t(e[i],i,e))return!0}return!1}function rr(e,t,r,s){return kt(e)||(e=$e(e)),("number"!=typeof r||s)&&(r=0),Kt(e,t,r)>=0}const sr=T(function(e,t,r){var s,n;return F(t)?n=t:(t=Ue(t),s=t.slice(0,-1),t=t[t.length-1]),Wt(e,function(e){var o=n;if(!o){if(s&&s.length&&(e=Me(e,s)),null==e)return;o=e[t]}return null==o?o:o.apply(e,r)})});function nr(e,t){return Wt(e,He(t))}function or(e,t){return Zt(e,ze(t))}function ir(e,t,r){var s,n,o=-1/0,i=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,c=(e=kt(e)?e:$e(e)).length;a<c;a++)null!=(s=e[a])&&s>o&&(o=s);else t=Qe(t,r),Ht(e,function(e,r,s){((n=t(e,r,s))>i||n===-1/0&&o===-1/0)&&(o=e,i=n)});return o}function ar(e,t,r){var s,n,o=1/0,i=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,c=(e=kt(e)?e:$e(e)).length;a<c;a++)null!=(s=e[a])&&s<o&&(o=s);else t=Qe(t,r),Ht(e,function(e,r,s){((n=t(e,r,s))<i||n===1/0&&o===1/0)&&(o=e,i=n)});return o}var cr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ur(e){return e?z(e)?l.call(e):R(e)?e.match(cr):kt(e)?Wt(e,Ve):$e(e):[]}function lr(e,t,r){if(null==t||r)return kt(e)||(e=$e(e)),e[rt(e.length-1)];var s=ur(e),n=oe(s);t=Math.max(Math.min(t,n),0);for(var o=n-1,i=0;i<t;i++){var a=rt(i,o),c=s[i];s[i]=s[a],s[a]=c}return s.slice(0,t)}function pr(e){return lr(e,1/0)}function dr(e,t,r){var s=0;return t=Qe(t,r),nr(Wt(e,function(e,r,n){return{value:e,index:s++,criteria:t(e,r,n)}}).sort(function(e,t){var r=e.criteria,s=t.criteria;if(r!==s){if(r>s||void 0===r)return 1;if(r<s||void 0===s)return-1}return e.index-t.index}),"value")}function hr(e,t){return function(r,s,n){var o=t?[[],[]]:{};return s=Qe(s,n),Ht(r,function(t,n){var i=s(t,n,r);e(o,t,i)}),o}}const fr=hr(function(e,t,r){H(e,r)?e[r].push(t):e[r]=[t]}),mr=hr(function(e,t,r){e[r]=t}),gr=hr(function(e,t,r){H(e,r)?e[r]++:e[r]=1}),yr=hr(function(e,t,r){e[r?0:1].push(t)},!0);function br(e){return null==e?0:kt(e)?e.length:ae(e).length}function vr(e,t,r){return t in r}const wr=T(function(e,t){var r={},s=t[0];if(null==e)return r;F(s)?(t.length>1&&(s=We(s,t[1])),t=ge(e)):(s=vr,t=Tt(t,!1,!1),e=Object(e));for(var n=0,o=t.length;n<o;n++){var i=t[n],a=e[i];s(a,i,e)&&(r[i]=a)}return r}),_r=T(function(e,t){var r,s=t[0];return F(s)?(s=It(s),t.length>1&&(r=t[1])):(t=Wt(Tt(t,!1,!1),String),s=function(e,r){return!rr(t,r)}),wr(e,s,r)});function Er(e,t,r){return l.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function kr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:Er(e,e.length-t)}function Tr(e,t,r){return l.call(e,null==t||r?1:t)}function Or(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:Tr(e,Math.max(0,e.length-t))}function Sr(e){return Zt(e,Boolean)}function Ar(e,t){return Tt(e,t,!1)}const $r=T(function(e,t){return t=Tt(t,!0,!0),Zt(e,function(e){return!rr(t,e)})}),Pr=T(function(e,t){return $r(e,t)});function jr(e,t,r,s){$(t)||(s=r,r=t,t=!1),null!=r&&(r=Qe(r,s));for(var n=[],o=[],i=0,a=oe(e);i<a;i++){var c=e[i],u=r?r(c,i,e):c;t&&!r?(i&&o===u||n.push(c),o=u):r?rr(o,u)||(o.push(u),n.push(c)):rr(n,c)||n.push(c)}return n}const Rr=T(function(e){return jr(Tt(e,!0,!0))});function Ir(e){for(var t=[],r=arguments.length,s=0,n=oe(e);s<n;s++){var o=e[s];if(!rr(t,o)){var i;for(i=1;i<r&&rr(arguments[i],o);i++);i===r&&t.push(o)}}return t}function Cr(e){for(var t=e&&ir(e,oe).length||0,r=Array(t),s=0;s<t;s++)r[s]=nr(e,s);return r}const Nr=T(Cr);function xr(e,t){for(var r={},s=0,n=oe(e);s<n;s++)t?r[e[s]]=t[s]:r[e[s][0]]=e[s][1];return r}function Dr(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var s=Math.max(Math.ceil((t-e)/r),0),n=Array(s),o=0;o<s;o++,e+=r)n[o]=e;return n}function qr(e,t){if(null==t||t<1)return[];for(var r=[],s=0,n=e.length;s<n;)r.push(l.call(e,s,s+=t));return r}function Gr(e,t){return e._chain?le(t).chain():t}function Lr(e){return Ht(Re(e),function(t){var r=le[t]=e[t];le.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),Gr(this,r.apply(le,e))}}),le}Ht(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];le.prototype[e]=function(){var r=this._wrapped;return null!=r&&(t.apply(r,arguments),"shift"!==e&&"splice"!==e||0!==r.length||delete r[0]),Gr(this,r)}}),Ht(["concat","join","slice"],function(e){var t=i[e];le.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Gr(this,e)}});const Fr=le;var Ur=Lr(s);Ur._=Ur},4529:(e,t,r)=>{r(998).config(Object.assign({},r(2503),r(7470)(process.argv)))},4551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(6939);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,s.resolveUrl)(e,t,r),this.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,this.missingRef))}}t.default=n},4737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>s.str`must match format "${e}"`,params:({schemaCode:e})=>s._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:i,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:d}=c;u.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),i=r.const("fDef",s._`${o}[${a}]`),c=r.let("fType"),l=r.let("format");r.if(s._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,()=>r.assign(c,s._`${i}.type || "string"`).assign(l,s._`${i}.validate`),()=>r.assign(c,s._`"string"`).assign(l,i)),e.fail$data((0,s.or)(!1===u.strictSchema?s.nil:s._`${a} && !${l}`,function(){const e=p.$async?s._`(${i}.async ? await ${l}(${n}) : ${l}(${n}))`:s._`${l}(${n})`,r=s._`(typeof ${l} == "function" ? ${e} : ${l}.test(${n}))`;return s._`${l} && ${l} !== true && ${c} === ${t} && !${r}`}()))}():function(){const o=d.formats[i];if(!o)return void function(){if(!1===u.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${l}"`}}();if(!0===o)return;const[a,c,h]=function(e){const t=e instanceof RegExp?(0,s.regexpCode)(e):u.code.formats?s._`${u.code.formats}${(0,s.getProperty)(i)}`:void 0,n=r.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,s._`${n}.validate`];return["string",e,n]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!p.$async)throw new Error("async format in sync schema");return s._`await ${h}(${n})`}return"function"==typeof c?s._`${h}(${n})`:s._`${h}.test(${n})`}())}())}};t.default=n},4834:e=>{"use strict";const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function s(e){let t="",r=0,s=0;for(s=0;s<e.length;s++)if(r=e[s].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s];break}for(s+=1;s<e.length;s++){if(r=e[s].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[s]}return t}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(e){return e.length=0,!0}function i(e,t,r){if(e.length){const n=s(e);if(""===n)return r.error=!0,!1;t.push(n),e.length=0}return!0}function a(e){if(function(e,t){let r=0;for(let s=0;s<e.length;s++)e[s]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const r={error:!1,address:"",zone:""},n=[],a=[];let c=!1,u=!1,l=i;for(let s=0;s<e.length;s++){const i=e[s];if("["!==i&&"]"!==i)if(":"!==i)if("%"===i){if(!l(a,n,r))break;l=o}else a.push(i);else{if(!0===c&&(u=!0),!l(a,n,r))break;if(++t>7){r.error=!0;break}s>0&&":"===e[s-1]&&(c=!0),n.push(":")}}return a.length&&(l===o?r.zone=a.join(""):u?n.push(a.join("")):n.push(s(a))),r.address=n.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}e.exports={nonSimpleDomain:n,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let s=unescape(e.host);if(!r(s)){const t=a(s);s=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(s)}return"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let s=-1,n=0;for(;n=t.length;){if(1===n){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===n){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===n&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(s=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,s)),t=t.slice(s)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:a,stringArrayToHexStripped:s}},4927:(e,t,r)=>{"use strict";var s=r(932),n=r(8673),o=r(9046),i=r(4355),a=r(484),c=r(2206),u=r(6845);function l(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function p(e){let t="",r=!1,s=!1;for(let n=0;n<e.length;++n){const o=e[n];switch(o[0]){case"#":t+=(""===t?"":s?"\n\n":"\n")+(o.substring(1)||" "),r=!0,s=!1;break;case"%":"#"!==e[n+1]?.[0]&&(n+=1),r=!1;break;default:r||(s=!0),r=!1}}return{comment:t,afterEmptyLine:s}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,s)=>{const n=l(e);s?this.warnings.push(new i.YAMLWarning(n,t,r)):this.errors.push(new i.YAMLParseError(n,t,r))},this.directives=new n.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:s}=p(this.prelude);if(r){const n=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${r}`:r;else if(s||e.directives.docStart||!n)e.commentBefore=r;else if(a.isCollection(n)&&!n.flow&&n.items.length>0){let e=n.items[0];a.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=n.commentBefore;n.commentBefore=e?`${r}\n${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(s.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,r,s)=>{const n=l(e);n[0]+=t,this.onError(n,"BAD_DIRECTIVE",r,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=c.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=u.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),r=new o.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}},4988:(e,t,r)=>{"use strict";var s=r(9714),n=r(3334),o=r(1919);function i(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:a},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],u={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},l=[n.map,o.seq].concat(c,u);t.schema=l},5132:(e,t,r)=>{"use strict";var s=r(9714);const n={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},r){if(e&&n.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=n},5139:(e,t,r)=>{"use strict";var s=r(7444),n=r(9637),o=r(3793),i=r(484),a=r(3732);t.addPairToJSMap=function(e,t,{key:r,value:c}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,c);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,c);else{const n=a.toJS(r,"",e);if(t instanceof Map)t.set(n,a.toJS(c,n,e));else if(t instanceof Set)t.add(n);else{const u=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&r?.doc){const t=o.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),s.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,n,e),l=a.toJS(c,u,e);u in t?Object.defineProperty(t,u,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[u]=l}}return t}},5141:(e,t,r)=>{"use strict";var s=r(4070),n=r(7571),o=r(4355),i=r(7180);function a(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function c(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let n=t.length;"block-scalar-header"===e.props[0].type&&(n-=e.props[0].source.length);for(const e of s)e.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:s});break}case"block-map":case"block-seq":{const s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[s]});break}default:{const s="indent"in e?e.indent:-1,n="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:s,source:t,end:n})}}}t.createScalarToken=function(e,t){const{implicitKey:r=!1,indent:s,inFlow:n=!1,offset:o=-1,type:c="PLAIN"}=t,u=i.stringifyString({type:c,value:e},{implicitKey:r,indent:s>0?" ".repeat(s):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(u[0]){case"|":case">":{const e=u.indexOf("\n"),t=u.substring(0,e),r=u.substring(e+1)+"\n",n=[{type:"block-scalar-header",offset:o,indent:s,source:t}];return a(n,l)||n.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:o,indent:s,props:n,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:u,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:u,end:l};default:return{type:"scalar",offset:o,indent:s,source:u,end:l}}},t.resolveAsScalar=function(e,t=!0,r){if(e){const i=(e,t,s)=>{const n="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!r)throw new o.YAMLParseError([n,n+1],t,s);r(n,t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return n.resolveFlowScalar(e,t,i);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,i)}}return null},t.setScalarValue=function(e,t,r={}){let{afterKey:s=!1,implicitKey:n=!1,inFlow:o=!1,type:u}=r,l="indent"in e?e.indent:null;if(s&&"number"==typeof l&&(l+=2),!u)switch(e.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");u=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}const p=i.stringifyString({type:u,value:t},{implicitKey:n||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(p[0]){case"|":case">":!function(e,t){const r=t.indexOf("\n"),s=t.substring(0,r),n=t.substring(r+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=s,e.source=n}else{const{offset:t}=e,r="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:r,source:s}];a(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:n})}}(e,p);break;case'"':c(e,p,"double-quoted-scalar");break;case"'":c(e,p,"single-quoted-scalar");break;default:c(e,p,"scalar")}}},5219:(e,t,r)=>{"use strict";var s=r(1736),n=r(484),o=r(9714);t.createNode=function(e,t,r){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){const t=r.schema[n.MAP].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:u,sourceObjects:l}=r;let p;if(i&&e&&"object"==typeof e){if(p=l.get(e),p)return p.anchor??(p.anchor=a(e)),new s.Alias(p.anchor);p={anchor:null,node:null},l.set(e,p)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,r){if(t){const e=r.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,u.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new o.Scalar(e);return p&&(p.node=t),t}d=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}c&&(c(d),delete r.onTagObj);const h=d?.createNode?d.createNode(r.schema,e,r):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(r.schema,e,r):new o.Scalar(e);return t?h.tag=t:d.default||(h.tag=d.tag),p&&(p.node=h),h}},5238:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var s,n,o=r(6903),i=r(5458),a=r(153),c=r(6517),u=r(9973),l=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},p=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t){return function(r,s){t(r,s,e)}};let h=class{static{0}static schema={parameters:{help:{description:"Displays help for a command.",type:a.A}}};#f;#m;constructor(e,t){this.#f=e,this.#m=t}execute({help:e}){return!0!==e||(this.#f.execute({command:(0,i.A)(this.#m.route).path}),!1)}};h=l([(0,o.Gr)(),d(0,(0,o.WQ)(c.A)),d(1,(0,o.WQ)(u.A)),p("design:paramtypes",["function"==typeof(s=void 0!==c.A&&c.A)?s:Object,"function"==typeof(n=void 0!==u.A&&u.A)?n:Object])],h);const f=h},5333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(4227),i=r(4227),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e,{opts:l}=u,p=(0,s.allSchemaProperties)(r),d=p.filter(e=>(0,o.alwaysValidSchema)(u,r[e]));if(0===p.length||d.length===p.length&&(!u.opts.unevaluated||!0===u.props))return;const h=l.strictSchema&&!l.allowMatchingProperties&&c.properties,f=t.name("valid");!0===u.props||u.props instanceof n.Name||(u.props=(0,i.evaluatedPropsToName)(t,u.props));const{props:m}=u;function g(e){for(const t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(r){t.forIn("key",a,o=>{t.if(n._`${(0,s.usePattern)(e,r)}.test(${o})`,()=>{const s=d.includes(r);s||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:i.Type.Str},f),u.opts.unevaluated&&!0!==m?t.assign(n._`${m}[${o}]`,!0):s||u.allErrors||t.if((0,n.not)(f),()=>t.break())})})}!function(){for(const e of p)h&&g(e),u.allErrors?y(e):(t.var(f,!0),y(e),t.if(f))}()}};t.default=a},5354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(494),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,s.validateTuple)(e,"items")};t.default=n},5437:(e,t,r)=>{"use strict";var s=r(3144);function n(e,t){const r=e[0],s="-"===r||"+"===r?e.substring(1):e,n=e=>t?BigInt(e):Number(e),o=s.replace(/_/g,"").split(":").reduce((e,t)=>e*n(60)+n(t),n(0));return"-"===r?n(-1)*o:o}function o(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const i={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:o},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:o},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,s,o,i,a,u]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let p=Date.UTC(r,s-1,o,i||0,a||0,u||0,l);const d=t[8];if(d&&"Z"!==d){let e=n(d,!1);Math.abs(e)<30&&(e*=60),p-=6e4*e}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=a,t.intTime=i,t.timestamp=c},5457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const s=r(9029),n=r(4227),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>s.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>s._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:s}=t;Array.isArray(s)?i(e,s):(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:r,schema:o,data:i,keyword:a,it:c}=e;c.items=!0;const u=r.const("len",s._`${i}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(s._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,n.alwaysValidSchema)(c,o)){const o=r.var("valid",s._`${u} <= ${t.length}`);r.if((0,s.not)(o),()=>function(o){r.forRange("i",t.length,u,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:n.Type.Num},o),c.allErrors||r.if((0,s.not)(o),()=>r.break())})}(o)),e.ok(o)}}t.validateAdditionalItems=i,t.default=o},5458:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new Error("");return e}r.d(t,{A:()=>s})},5752:(e,t,r)=>{"use strict";var s=r(9112);function n(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const o=new Set("0123456789ABCDEFabcdef"),i=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),a=new Set(",[]{}"),c=new Set(" ,[]{}\n\r\t"),u=e=>!e||c.has(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){const t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"===t||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&n(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===s.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){const s=e[r-1];if(" "===s||"\t"===s){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){const r=e[t-1];if(" "!==r&&"\t"!==r)break;t-=1}const s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield s.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if(("---"===e||"..."===e)&&n(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!n(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&n(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(u),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const o=this.getLine();if(null===o)return this.setNext("flow");if(-1!==r&&r<this.indentNext&&"#"!==o[0]||0===r&&(o.startsWith("---")||o.startsWith("..."))&&n(o[3])){if(!(r===this.indentNext-1&&1===this.flowLevel&&("]"===o[0]||"}"===o[0])))return this.flowLevel=0,yield s.FLOW_END,yield*this.parseLineStart()}let i=0;for(;","===o[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(u),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||n(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const r=this.buffer.substring(0,t);let s=r.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){const e=this.continueScalar(s+1);if(-1===e)break;s=r.indexOf("\n",e)}-1!==s&&(t=s-("\r"===r[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>n(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":r+=1;break;case"\n":t=s,r=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if("\t"===e){for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);const n=e;for(;" "===s;)s=this.buffer[--e];if(!("\n"===s&&e>=this.pos&&e+1+r>n))break;t=e}return yield s.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,r=this.pos-1,o=this.pos-1;for(;t=this.buffer[++o];)if(":"===t){const t=this.buffer[o+1];if(n(t)||e&&a.has(t))break;r=o}else if(n(t)){let s=this.buffer[o+1];if("\r"===t&&("\n"===s?(o+=1,t="\n",s=this.buffer[o+1]):r=o),"#"===s||e&&a.has(s))break;if("\n"===t){const e=this.continueScalar(o+1);if(-1===e)break;o=Math.max(o,e-2)}}else{if(e&&a.has(t))break;r=o}return t||this.atEnd?(yield s.SCALAR,yield*this.pushToIndex(r+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(u))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(n(t)||e&&a.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else{if("%"!==t||!o.has(this.buffer[e+1])||!o.has(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do{t=this.buffer[++r]}while(" "===t||e&&"\t"===t);const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},5765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(9029),n=r(4227),o=r(2023),i=r(4227);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:s._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return s._`${a(e)}.call(${t}, ${r})`}function u(e,t,r,n){const o=s._`${t}${(0,s.getProperty)(r)} === undefined`;return n?(0,s.or)(o,(0,s.not)(c(e,t,r))):o}function l(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:o}=e;r.if(u(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:s._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},n,o){return(0,s.or)(...n.map(n=>(0,s.and)(u(e,t,n,r.ownProperties),s._`${o} = ${n}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,n){const o=s._`${t}${(0,s.getProperty)(r)} !== undefined`;return n?s._`${o} && ${c(e,t,r)}`:o},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:a},it:c},u,l,p){const d=p?s._`${e}, ${t}, ${n}${i}`:t,h=[[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=s._`${d}, ${r.object(...h)}`;return l!==s.nil?s._`${u}.call(${l}, ${f})`:s._`${u}(${f})`};const p=s._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:s._`${"new RegExp"===o.code?p:(0,i.useFunc)(e,o)}(${r}, ${n})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:i}=e,a=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return c(()=>t.assign(e,!1)),e}return t.var(a,!0),c(()=>t.break()),a;function c(i){const c=t.const("len",s._`${r}.length`);t.forRange("i",0,c,r=>{e.subschema({keyword:o,dataProp:r,dataPropType:n.Type.Num},a),t.if((0,s.not)(a),i)})}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(e=>(0,n.alwaysValidSchema)(i,e))&&!i.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((r,n)=>{const i=e.subschema({keyword:o,schemaProp:n,compositeRule:!0},c);t.assign(a,s._`${a} || ${c}`);e.mergeValidEvaluated(i,c)||t.if((0,s.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}},5822:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(8080),c=r(7969),u=r(7191),l=r(6936),p=r(9637),d=r(692),h=r(8416),f=r(2557),m=r(5437);const g=[s.map,o.seq,i.string,n.nullTag,c.trueTag,c.falseTag,l.intBin,l.intOct,l.int,l.intHex,u.floatNaN,u.floatExp,u.float,a.binary,p.merge,d.omap,h.pairs,f.set,m.intTime,m.floatTime,m.timestamp];t.schema=g},5844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach((t,r)=>{if((0,s.alwaysValidSchema)(n,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(i)})}};t.default=n},5882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=s.operators,o={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:e,schemaCode:t})=>s.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(s._`${r} ${o[t].fail} ${n} || isNaN(${r})`)}};t.default=a},5926:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var s=r(6903),n=r(4523),o=r(153),i=r(3121),a=r(6502),c=r(1354),u=r(6276);const l="merge",p="substitute";class d{source;strategy;target;constructor(e,t,r=p){this.target=e,this.source=t,this.strategy=r}pull(){this.strategy===l?this.target.merge(this.source.entity):this.target.substitute(this.source.entity)}}class h{get bindings(){return this.#g}#g=[];add(e){this.#g.push(e)}pullAll(){for(const e of this.#g)e.pull()}}var f,m=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},g=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(e,t){return function(r,s){t(r,s,e)}};let b=class{static{0}static schema={description:"Push all labels from the local storage to the remote storage.",parameters:{force:{defaultValue:!1,description:"Force push even if hashes match.",type:o.A},of:{description:"Entity type to delete.",type:i.o4}}};#e;#t;#y;#b=!1;constructor(e,t,r){this.#y=e,this.#e=t,this.#t=r}async execute({force:e,of:t}){this.#b=!(0,n.b0)(t),this.#t.info(`Pushing all entities${t?` of type ${t}`:""} from the local to the remote storage.`),this.#t.info("Taking the first run, trying to resolve as many dependencies as possible.");const r=new h;for await(const s of this.#e.all(t))await this.#v(s,r,e);this.#t.info("Commiting changes to the remote storage."),await this.#y.commit(),r.pullAll(),this.#t.info("Taking the second run, pushing remaining entities.");const s=new h;for(const e of r.bindings)await this.#w(e.target,e.source,s);this.#t.info("Commiting changes to the remote storage second time."),await this.#y.commit(),s.pullAll();for(const e of r.bindings){const t=await this.#_(e.source),r=(0,a.A)(t);e.source.hash=r,e.target.hash=r,e.target.preserveHash=!0}this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}async#E(e,t){this.#t.info(`Found a new ${e.schema.type} in the local storage, adding to the remote storage.`),this.#t.debug(`Bringing dependencies of the ${e.schema.type} to primary keys...`);const r=await e.tryBringDependenciesToPrimaryKeys(),s=await this.#_(e);t.add(new d(e,await this.#y.new(e.schema.type,s),r?p:l))}async#k(e,t=!1){if(this.#t.warn(`Entity of type ${e.schema.type} is not found in the remote storage, deleting it from the local as well.`),e.delete(),t)for await(const t of this.#e.all())t.freeOf((0,u.A)(e))}async#v(e,t,r=!1){const s=(0,a.A)(e.entity),o=e.hash;if(e.notHasPrimaryKey||e.schema.isPrimaryKeyRequired&&(0,n.b0)(o))return void await this.#E(e,t);if(!r&&s===o)return void this.#t.info(`The calculated and saved hashes of ${e.schema.type} ${e.preferredUniqueKey} are equal, skipping.`);const i=await this.#y.one(e.schema.type,e.entity);if((0,n.b0)(i))return void await this.#k(e,!r);const c=(0,a.A)(i.entity);if(s!==c){if(o===c){this.#t.info(`The saved and remote hashes of ${e.schema.type} ${e.preferredUniqueKey} are the same, updating remote.`);const r=await this.#_(e);return void t.add(new d(e,i.substitute(r)))}this.#t.warn(`Conflict detected, the hash of the remote ${e.schema.type} "${c}" and the saved hash of the local ${e.schema.type} "${o}" don't match, updating local ${e.schema.type}.`),e.substitute(i.entity)}else this.#t.info(`The calculated and remote hashes of ${e.schema.type} ${e.preferredUniqueKey} are the same, skipping.`)}async#w(e,t,r){if(!await e.tryBringDependenciesToPrimaryKeys())return void this.#t.warn(`The ${e.schema.type} still has non-primary key dependencies, skipping.`);const s=(0,a.A)(e.entity);s!==(0,a.A)(t.entity)?r.add(new d(e,t.substitute(await this.#_(e)))):this.#t.info(`The hash of the remote ${e.schema.type} and newly calculated of the local ${e.schema.type} is the same "${s}", skipping.`)}async#_(e){if(!this.#b)return{...e.entity};const t=await e.getFreeOfNonPrimaryKeyDependeciesEntity();return Object.fromEntries(Object.entries(t).filter(([t])=>{const r=e.schema.properties[t];return(0,n.b0)(r?.reference)||r.reference===e.schema.type}))}};b=m([(0,s.Gr)(),y(0,(0,s.WQ)("RemoteStorage")),y(1,(0,s.WQ)("LocalStorage")),y(2,(0,s.WQ)(c.A)),g("design:paramtypes",[Object,Object,"function"==typeof(f=void 0!==c.A&&c.A)?f:Object])],b);const v=b},5944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(8343);s.code='require("ajv/dist/runtime/uri").default',t.default=s},5970:(e,t)=>{"use strict";const r=Symbol("break visit"),s=Symbol("skip children"),n=Symbol("remove item");function o(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),i(Object.freeze([]),e,t)}function i(e,t,s){let o=s(t,e);if("symbol"==typeof o)return o;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const o=i(Object.freeze(e.concat([[a,t]])),c.items[t],s);if("number"==typeof o)t=o-1;else{if(o===r)return r;o===n&&(c.items.splice(t,1),t-=1)}}"function"==typeof o&&"key"===a&&(o=o(t,e))}}return"function"==typeof o?o(t,e):o}o.BREAK=r,o.SKIP=s,o.REMOVE=n,o.itemAtPath=(e,t)=>{let r=e;for(const[e,s]of t){const t=r?.[e];if(!t||!("items"in t))return;r=t.items[s]}return r},o.parentCollection=(e,t)=>{const r=o.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],n=r?.[s];if(n&&"items"in n)return n;throw new Error("Parent collection not found")},t.visit=o},6007:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{writeLine(e,t){process.stdout.write(`[${t}]: ${e}\n`)}}},6010:(e,t,r)=>{"use strict";var s=r(5219),n=r(81),o=r(1614),i=r(484),a=r(9714),c=r(3732);class u extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=l(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const r=l(e);if("number"!=typeof r)return;const s=this.items[r];return!t&&i.isScalar(s)?s.value:s}has(e){const t=l(e);return"number"==typeof t&&t<this.items.length}set(e,t){const r=l(e);if("number"!=typeof r)throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[r];i.isScalar(s)&&a.isScalarValue(t)?s.value=t:this.items[r]=t}toJSON(e,t){const r=[];t?.onCreate&&t.onCreate(r);let s=0;for(const e of this.items)r.push(c.toJS(e,String(s++),t));return r}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){const{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof n){const r=t instanceof Set?i:String(e++);i=n.call(t,r,i)}o.items.push(s.createNode(i,void 0,r))}}return o}}function l(e){let t=i.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=u},6055:(e,t,r)=>{"use strict";var s=r(9714);const n={identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&n.test.test(e)?e:t.options.nullStr};t.nullTag=n},6144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2128),n=r(7060),o=r(6378),i=r(7532),a=r(9857),c=[s.default,n.default,(0,o.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},6163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>s._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator)return;const a=r,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block(function(){a.forEach((r,o)=>{let a;(0,n.alwaysValidSchema)(i,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(s._`${l} && ${c}`).assign(c,!1).assign(u,s._`[${u}, ${o}]`).else(),t.if(l,()=>{t.assign(c,!0),t.assign(u,o),a&&e.mergeEvaluated(a,s.Name)})})}),e.result(c,()=>e.reset(),()=>e.error(!0))}};t.default=o},6170:(e,t)=>{"use strict";const r="block",s="quoted";function n(e,t,r){let s=t,n=t+1,o=e[n];for(;" "===o||"\t"===o;)if(t<n+r)o=e[++t];else{do{o=e[++t]}while(o&&"\n"!==o);s=t,n=t+1,o=e[n]}return s}t.FOLD_BLOCK=r,t.FOLD_FLOW="flow",t.FOLD_QUOTED=s,t.foldFlowLines=function(e,t,o="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:c=20,onFold:u,onOverflow:l}={}){if(!a||a<0)return e;a<c&&(c=0);const p=Math.max(1+c,1+a-t.length);if(e.length<=p)return e;const d=[],h={};let f,m,g=a-t.length;"number"==typeof i&&(i>a-Math.max(2,c)?d.push(0):g=a-i);let y=!1,b=-1,v=-1,w=-1;o===r&&(b=n(e,b,t.length),-1!==b&&(g=b+p));for(let i;i=e[b+=1];){if(o===s&&"\\"===i){switch(v=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}w=b}if("\n"===i)o===r&&(b=n(e,b,t.length)),g=b+t.length+p,f=void 0;else{if(" "===i&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[b+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=b)}if(b>=g)if(f)d.push(f),g=f+p,f=void 0;else if(o===s){for(;" "===m||"\t"===m;)m=i,i=e[b+=1],y=!0;const t=b>w+1?b-2:v-1;if(h[t])return e;d.push(t),h[t]=!0,g=t+p,f=void 0}else y=!0}m=i}if(y&&l&&l(),0===d.length)return e;u&&u();let _=e.slice(0,d[0]);for(let r=0;r<d.length;++r){const n=d[r],i=d[r+1]||e.length;0===n?_=`\n${t}${e.slice(0,i)}`:(o===s&&h[n]&&(_+=`${e[n]}\\`),_+=`\n${t}${e.slice(n+1,i)}`)}return _}},6247:(e,t,r)=>{"use strict";var s=r(932),n=r(9112),o=r(5752);function i(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function c(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function u(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function l(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function p(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||i(t.start,"explicit-key-ind")||i(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,c(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new o.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,s.env.LOG_TOKENS&&console.log("|",n.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=n.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&p(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:t,sep:[]}),void(this.onKeyLine=!r.explicitKey);r.value=t;break}case"block-seq":{const r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];return void(!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===a(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==a(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=l(u(this.peek(2)));let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;"comment"===s?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s))return Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,s=r&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type;let n=[];if(s&&t.sep&&!t.value){const r=[];for(let s=0;s<t.sep.length;++s){const n=t.sep[s];switch(n.type){case"newline":r.push(s);break;case"space":break;case"comment":n.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(n=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":return void(s||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||t.explicitKey?s||t.value?(n.push(this.sourceToken),e.items.push({start:n,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),void(this.onKeyLine=!0);case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(c(t.key)&&!i(t.sep,"newline")){const e=l(t.start),r=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:s}]})}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken);else if(i(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=l(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:n,key:null,sep:[this.sourceToken]}):i(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(s||t.value?(e.items.push({start:n,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!i(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else r&&e.items.push({start:n});return void this.stack.push(s)}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:void 0,s=Array.isArray(r)?r[r.length-1]:void 0;"comment"===s?.type?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],s=r?.value?.end;if(Array.isArray(s))return Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||i(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const r=l(u(t));p(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=l(u(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=l(u(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},6250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(2017);s.code='require("ajv/dist/runtime/equal").default',t.default=s},6261:(e,t,r)=>{"use strict";var s=r(484),n=r(9125);function o(e){const t=new Set;return n.visit(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function i(e,t){for(let r=1;;++r){const s=`${e}${r}`;if(!t.has(s))return s}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=o,t.createNodeAnchors=function(e,t){const r=[],n=new Map;let a=null;return{onAnchor:s=>{r.push(s),a??(a=o(e));const n=i(t,a);return a.add(n),n},setAnchors:()=>{for(const e of r){const t=n.get(e);if("object"!=typeof t||!t.anchor||!s.isScalar(t.node)&&!s.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:n}},t.findNewAnchor=i},6276:(e,t,r)=>{"use strict";function s(e){return e}r.d(t,{A:()=>s})},6378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5457),n=r(5354),o=r(494),i=r(3966),a=r(2661),c=r(3025),u=r(9713),l=r(8660),p=r(117),d=r(5333),h=r(7923),f=r(6505),m=r(6163),g=r(5844),y=r(1239),b=r(4426);t.default=function(e=!1){const t=[h.default,f.default,m.default,g.default,y.default,b.default,u.default,l.default,c.default,p.default,d.default];return e?t.push(n.default,i.default):t.push(s.default,o.default),t.push(a.default),t}},6486:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(4523),n=r(6276);class o{schemaRegistry;#T=new Set;#O=new Map;#S=new Map;constructor(e){this.schemaRegistry=e}all(e){return(0,s.b0)(e)?(0,n.A)(Array.from(this.#T)):(0,n.A)(Array.from(this.#O.get(e)??[]))}one(e,t){return(0,n.A)(Object.entries(t).map(([t,r])=>this.#S.get(e)?.get(t)?.get((0,n.A)(r))).at(0))}set(e){this.#T.add((0,n.A)(e)),this.#A(e.schema.type,(0,n.A)(e)),this.#$(e.schema.type,(0,n.A)(e))}delete(e){this.#T.delete((0,n.A)(e));const t=this.#O.get(e.schema.type);t?.delete((0,n.A)(e));const r=this.#S.get(e.schema.type);if(void 0!==r)for(const[t,o]of Object.entries(e.schema.properties))if(o.primaryKey||o.unique||(0,s.kZ)(e.primaryKey)&&o.newUnique){const o=r.get(t);if(void 0!==o){const r=(0,n.A)(e.entity)[t];((0,s.Et)(r)||(0,s.Kg)(r))&&o.delete(r)}}}#A(e,t){const r=this.#O.get(e)??new Set;this.#O.set(e,r),r.add(t)}#$(e,t){const r=this.#S.get(e)??new Map;this.#S.set(e,r);const o=this.schemaRegistry.get(e);if((0,s.b0)(o))throw new Error(`Can't find "${e}" schema.`);for(const[e,i]of Object.entries(o.properties))if(i.primaryKey||i.unique||(0,s.kZ)(t.primaryKey)&&i.newUnique){const o=r.get(e)??new Map;r.set(e,o);const i=(0,n.A)(t.entity)[e];((0,s.Et)(i)||(0,s.Kg)(i))&&o.set(i,t)}}}},6502:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(6982);function n(e){return Array.isArray(e)?e.map(e=>n(e)).join("|"):"object"==typeof e&&null!==e?Object.keys(e).toSorted().map(t=>n(e[t])).join("|"):null===e?"null":void 0===e?"":e.toString()}const o=function(e){return s.createHash("md5").update(n(e),"utf8").digest("hex")}},6505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(5765).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=s},6517:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s,n=r(6903),o=r(4523),i=r(5458),a=r(7386),c=r(2596),u=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(e,t){return function(r,s){t(r,s,e)}};let d=class{static{0}static schema={description:"Display help information about KickCat commands.",parameters:{command:{description:"The command to get help for",type:c.A}}};#P;constructor(e){this.#P=e}execute({command:e}){(0,o.Kg)(e)?this.#j(e):this.#R()}#j(e){const{commands:t,route:r}=this.#P.router.resolve(e);if(0===t.length)return void console.log(`Command "${e}" not found.`);const s=(0,i.A)((0,o.HV)(t));let n=[];for(const e of t)n=[...n,...Array.from(e.options)];const a=(0,o.Ul)(n,e=>e.name).map(e=>` ${e.name} <${e.type.toString()}> - ${e.description}`).join("\n");console.log(`\nCommand: ${r.path}\nDescription:\n${s.description}\nOptions: \n${a}`)}#R(){const e=this.#P.router.endpoints.filter(({route:e})=>!e.hasWildcard),t=(0,o.Ul)(e,e=>e.route.path).map(({commands:e,route:t})=>{const r=(0,i.A)((0,o.HV)(e));return` ${t.path} - ${r.description}`}).join("\n");console.log(`\n${this.#P.configuration.name} ${this.#P.configuration.version??""}\nAuthor: ${this.#P.configuration.author??""}\nLicense: ${this.#P.configuration.license??""}\n\nDescription:\n${this.#P.configuration.description??""}\n\nCommands:\n${t}\n\nFor more information on a specific command, use '${this.#P.configuration.name} help --command=[command].`)}};d=u([(0,n.Gr)(),p(0,(0,n.WQ)(a.A)),l("design:paramtypes",["function"==typeof(s=void 0!==a.A&&a.A)?s:Object])],d);const h=d},6585:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s,n=r(6903),o=r(1354),i=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},a=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t){return function(r,s){t(r,s,e)}};let u=class{static{0}static schema={description:"Repair broken local storage.",parameters:{}};#e;#t;constructor(e,t){this.#e=e,this.#t=t}async execute({}){this.#t.info("Repairing broken local storage..."),await this.#e.commit()}};u=i([(0,n.Gr)(),c(0,(0,n.WQ)("LocalStorage")),c(1,(0,n.WQ)(o.A)),a("design:paramtypes",[Object,"function"==typeof(s=void 0!==o.A&&o.A)?s:Object])],u);const l=u},6653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(7652),o=r(3835),i=r(4551),a=r(4227),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>s._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:c,parentSchema:u,it:l}=e,{oneOf:p}=u;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=c.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!p)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),f=t.const("tag",s._`${r}${(0,s.getProperty)(d)}`);function m(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,s.Name),n}t.if(s._`typeof ${f} == "string"`,()=>function(){const r=function(){var e;const t={},r=n(u);let s=!0;for(let t=0;t<p.length;t++){let u=p[t];if((null==u?void 0:u.$ref)&&!(0,a.schemaHasRulesButRef)(u,l.self.RULES)){const e=u.$ref;if(u=o.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,e),u instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new i.default(l.opts.uriResolver,l.baseId,e)}const h=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[d];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);s=s&&(r||n(u)),c(h,t)}if(!s)throw new Error(`discriminator: "${d}" must be required`);return t;function n({required:e}){return Array.isArray(e)&&e.includes(d)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${d}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(s._`${f} === ${e}`),t.assign(h,m(r[e]));t.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:f,tagName:d}),t.endIf()}(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:f,tagName:d})),e.ok(h)}};t.default=c},6773:e=>{"use strict";const t=function(){};t.prototype=Object.create(null);const r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,s=/\\([\v\u0020-\u00ff])/gu,n=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:"",parameters:new t};function i(e){if("string"!=typeof e)throw new TypeError("argument header is required and must be a string");let o=e.indexOf(";");const i=-1!==o?e.slice(0,o).trim():e.trim();if(!1===n.test(i))throw new TypeError("invalid media type");const a={type:i.toLowerCase(),parameters:new t};if(-1===o)return a;let c,u,l;for(r.lastIndex=o;u=r.exec(e);){if(u.index!==o)throw new TypeError("invalid parameter format");o+=u[0].length,c=u[1].toLowerCase(),l=u[2],'"'===l[0]&&(l=l.slice(1,l.length-1),s.test(l)&&(l=l.replace(s,"$1"))),a.parameters[c]=l}if(o!==e.length)throw new TypeError("invalid parameter format");return a}function a(e){if("string"!=typeof e)return o;let i=e.indexOf(";");const a=-1!==i?e.slice(0,i).trim():e.trim();if(!1===n.test(a))return o;const c={type:a.toLowerCase(),parameters:new t};if(-1===i)return c;let u,l,p;for(r.lastIndex=i;l=r.exec(e);){if(l.index!==i)return o;i+=l[0].length,u=l[1].toLowerCase(),p=l[2],'"'===p[0]&&(p=p.slice(1,p.length-1),s.test(p)&&(p=p.replace(s,"$1"))),c.parameters[u]=p}return i!==e.length?o:c}Object.freeze(o.parameters),Object.freeze(o),e.exports.xL=a},6845:(e,t)=>{"use strict";t.resolveEnd=function(e,t,r,s){let n="";if(e){let o=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=!0;break;case"comment":{r&&!o&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";n?n+=i+t:n=t,i="";break}case"newline":n&&(i+=e),o=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:n,offset:t}}},6903:(e,t,r)=>{"use strict";var s;r.d(t,{kL:()=>$,WQ:()=>j,Gr:()=>I}),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(s||(s={}));const n=s;var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},o(e,t)};function i(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e,t,r,s){return new(r||(r=Promise))(function(n,o){function i(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((s=s.apply(e,t||[])).next())})}function c(e,t){var r,s,n,o,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,s&&(n=2&o[0]?s.return:o[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,o[1])).done)return n;switch(s=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,s=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(6===o[0]&&i.label<n[1]){i.label=n[1],n=o;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(o);break}n[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],s=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],s=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var s,n,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function d(e){return!!e.useClass}function h(e){return!!e.useFactory}var f=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(e){var t,r=this,s=!1;return new Proxy({},this.createHandler(function(){return s||(t=e(r.wrap()),s=!0),t}))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach(function(r){t[r]=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];return t[0]=e(),Reflect[r].apply(void 0,p(t))}}),t},e}();function m(e){return"string"==typeof e||"symbol"==typeof e}function g(e){return"object"==typeof e&&"token"in e&&"transform"in e}function y(e){return!!e.useToken}function b(e){return null!=e.useValue}const v=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}();const w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v);const _=function(){this.scopedResolutions=new Map};function E(e,t,r){var s,n,o=l(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],i=function(e,t){return null===e?"at position #"+t:'"'+e.split(",")[t].trim()+'" at position #'+t}(void 0===o?null:o,t);return s="Cannot inject the dependency "+i+' of "'+e.name+'" constructor. Reason:',void 0===n&&(n=" "),p([s],r.message.split("\n").map(function(e){return n+e})).join("\n")}var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(v);const O=function(){this.preResolution=new k,this.postResolution=new T};var S=new Map,A=function(){function e(e){this.parent=e,this._registry=new w,this.interceptors=new O,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var s;if(void 0===r&&(r={lifecycle:n.Transient}),this.ensureNotDisposed(),s=function(e){return d(e)||b(e)||y(e)||h(e)}(t)?t:{useClass:t},y(s))for(var o=[e],i=s;null!=i;){var a=i.useToken;if(o.includes(a))throw new Error("Token registration cycle detected! "+p(o,[a]).join(" -> "));o.push(a);var c=this._registry.get(a);i=c&&y(c.provider)?c.provider:null}if((r.lifecycle===n.Singleton||r.lifecycle==n.ContainerScoped||r.lifecycle==n.ResolutionScoped)&&(b(s)||h(s)))throw new Error('Cannot use lifecycle "'+n[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:s,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),m(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),m(e)){if(m(t))return this.register(e,{useToken:t},{lifecycle:n.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!m(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:n.Singleton})},e.prototype.resolve=function(e,t,r){void 0===t&&(t=new _),void 0===r&&(r=!1),this.ensureNotDisposed();var s=this.getRegistration(e);if(!s&&m(e)){if(r)return;throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"Single"),s){var n=this.resolveRegistration(s,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}if(function(e){return"function"==typeof e||e instanceof f}(e)){n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,s;if(this.interceptors.preResolution.has(e)){var n=[];try{for(var o=u(this.interceptors.preResolution.getAll(e)),i=o.next();!i.done;i=o.next()){var a=i.value;"Once"!=a.options.frequency&&n.push(a),a.callback(e,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,n)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var s,n;if(this.interceptors.postResolution.has(e)){var o=[];try{for(var i=u(this.interceptors.postResolution.getAll(e)),a=i.next();!a.done;a=i.next()){var c=a.value;"Once"!=c.options.frequency&&o.push(c),c.callback(e,t,r)}}catch(e){s={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}this.interceptors.postResolution.setAll(e,o)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,s=e.options.lifecycle===n.Singleton,o=e.options.lifecycle===n.ContainerScoped,i=s||o;return r=b(e.provider)?e.provider.useValue:y(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):d(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):h(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===n.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t,r){var s=this;void 0===t&&(t=new _),void 0===r&&(r=!1),this.ensureNotDisposed();var n=this.getAllRegistrations(e);if(!n&&m(e)){if(r)return[];throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"')}if(this.executePreResolutionInterceptor(e,"All"),n){var o=n.map(function(e){return s.resolveRegistration(e,t)});return this.executePostResolutionInterceptor(e,o,"All"),o}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=u(this._registry.entries()),s=r.next();!s.done;s=r.next()){var n=l(s.value,2),o=n[0],i=n[1];this._registry.setAll(o,i.filter(function(e){return!b(e.provider)}).map(function(e){return e.instance=void 0,e}))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var s=new e(this);try{for(var o=u(this._registry.entries()),i=o.next();!i.done;i=o.next()){var a=l(i.value,2),c=a[0],p=a[1];p.some(function(e){return e.options.lifecycle===n.ContainerScoped})&&s._registry.setAll(c,p.map(function(e){return e.options.lifecycle===n.ContainerScoped?{provider:e.provider,options:e.options}:e}))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return s},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return a(this,void 0,void 0,function(){var e;return c(this,function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach(function(t){var r=t.dispose();r&&e.push(r)}),[4,Promise.all(e)];case 1:return t.sent(),[2]}})})},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof f)return e.createProxy(function(e){return r.resolve(e,t)});var s,n=function(){var s=S.get(e);if(!s||0===s.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var n=s.map(r.resolveParams(t,e));return new(e.bind.apply(e,p([void 0],n)))}();return"function"!=typeof(s=n).dispose||s.dispose.length>0||this.disposables.add(n),n},e.prototype.resolveParams=function(e,t){var r=this;return function(s,n){var o,i,a,c;try{return"object"==typeof(c=s)&&"token"in c&&"multiple"in c?g(s)?s.multiple?(o=r.resolve(s.transform)).transform.apply(o,p([r.resolveAll(s.token,new _,s.isOptional)],s.transformArgs)):(i=r.resolve(s.transform)).transform.apply(i,p([r.resolve(s.token,e,s.isOptional)],s.transformArgs)):s.multiple?r.resolveAll(s.token,new _,s.isOptional):r.resolve(s.token,e,s.isOptional):g(s)?(a=r.resolve(s.transform,e)).transform.apply(a,p([r.resolve(s.token,e)],s.transformArgs)):r.resolve(s,e)}catch(e){throw new Error(E(t,n,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),$=new A;var P="injectionTokens";const j=function(e,t){return function(e,t){return function(r,s,n){var o=Reflect.getOwnMetadata(P,r)||{};o[n]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(P,o,r)}}({token:e,multiple:!1,isOptional:t&&t.isOptional})};const R=function(e){return function(t){S.set(t,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(P,e)||{};return Object.keys(r).forEach(function(e){t[+e]=r[e]}),t}(t)),e&&e.token&&(Array.isArray(e.token)?e.token.forEach(function(e){$.register(e,t)}):$.register(e.token,t))}};const I=function(){return function(e){R()(e),$.registerSingleton(e)}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.")},6906:(e,t)=>{"use strict";t.applyReviver=function e(t,r,s,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let r=0,s=n.length;r<s;++r){const s=n[r],o=e(t,n,String(r),s);void 0===o?delete n[r]:o!==s&&(n[r]=o)}else if(n instanceof Map)for(const r of Array.from(n.keys())){const s=n.get(r),o=e(t,n,r,s);void 0===o?n.delete(r):o!==s&&n.set(r,o)}else if(n instanceof Set)for(const r of Array.from(n)){const s=e(t,n,r,r);void 0===s?n.delete(r):s!==r&&(n.delete(r),n.add(s))}else for(const[r,s]of Object.entries(n)){const o=e(t,n,r,s);void 0===o?delete n[r]:o!==s&&(n[r]=o)}return t.call(r,s,n)}},6928:e=>{"use strict";e.exports=require("path")},6936:(e,t,r)=>{"use strict";var s=r(3144);const n=e=>"bigint"==typeof e||Number.isInteger(e);function o(e,t,r,{intAsBigInt:s}){const n=e[0];if("-"!==n&&"+"!==n||(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===n?BigInt(-1)*t:t}const o=parseInt(e,r);return"-"===n?-1*o:o}function i(e,t,r){const{value:o}=e;if(n(o)){const e=o.toString(t);return o<0?"-"+r+e.substr(1):r+e}return s.stringifyNumber(e)}const a={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>o(e,2,2,r),stringify:e=>i(e,2,"0b")},c={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>o(e,1,8,r),stringify:e=>i(e,8,"0")},u={identify:n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>o(e,0,10,r),stringify:s.stringifyNumber},l={identify:n,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>o(e,2,16,r),stringify:e=>i(e,16,"0x")};t.int=u,t.intBin=a,t.intHex=l,t.intOct=c},6939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(4227),n=r(2017),o=r(7106),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function u(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,s.eachItem)(e[r],e=>t+=u(e)),t===1/0))return 1/0}return t}function l(e,t="",r){!1!==r&&(t=h(t));const s=e.parse(t);return p(e,s)}function p(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=p;const d=/#\/?$/;function h(e){return e?e.replace(d,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,r){return r=h(r),e.resolve(t,r)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:s}=this.opts,i=h(e[r]||t),a={"":i},c=l(s,i,!1),u={},p=new Set;return o(e,{allKeys:!0},(e,t,s,n)=>{if(void 0===n)return;const o=c+t;let i=a[n];function l(t){const r=this.opts.uriResolver.resolve;if(t=h(i?r(i,t):t),p.has(t))throw m(t);p.add(t);let s=this.refs[t];return"string"==typeof s&&(s=this.refs[s]),"object"==typeof s?d(e,s.schema,t):t!==h(o)&&("#"===t[0]?(d(e,u[t],t),u[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[r]&&(i=l.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),a[t]=i}),u;function d(e,t,r){if(void 0!==t&&!n(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},6982:e=>{"use strict";e.exports=require("crypto")},7060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5882),n=r(3439),o=r(7307),i=r(422),a=r(4486),c=r(4003),u=r(1163),l=r(617),p=r(7935),d=r(8643),h=[s.default,n.default,o.default,i.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];t.default=h},7106:e=>{"use strict";var t=e.exports=function(e,t,s){"function"==typeof t&&(s=t,t={}),r(t,"function"==typeof(s=t.cb||s)?s:s.pre||function(){},s.post||function(){},e,"",e)};function r(e,n,o,i,a,c,u,l,p,d){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in n(i,a,c,u,l,p,d),i){var f=i[h];if(Array.isArray(f)){if(h in t.arrayKeywords)for(var m=0;m<f.length;m++)r(e,n,o,f[m],a+"/"+h+"/"+m,c,a,h,i,m)}else if(h in t.propsKeywords){if(f&&"object"==typeof f)for(var g in f)r(e,n,o,f[g],a+"/"+h+"/"+s(g),c,a,h,i,g)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&r(e,n,o,f,a+"/"+h,c,a,h,i)}o(i,a,c,u,l,p,d)}}function s(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},7180:(e,t,r)=>{"use strict";var s=r(9714),n=r(6170);const o=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:s}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?" ":"");let u="",l=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(u+=r.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{u+=r.slice(l,e);const t=r.substr(e+2,4);switch(t){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===t.substr(0,2)?u+="\\x"+t.substr(2):u+=r.substr(e,6)}e+=5,l=e+1}break;case"n":if(s||'"'===r[e+2]||r.length<a)e+=1;else{for(u+=r.slice(l,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)u+="\n",e+=2;u+=c," "===r[e+2]&&(u+="\\"),e+=1,l=e+1}break;default:e+=1}return u=l?u+r.slice(l):r,s?u:n.foldFlowLines(u,c,n.FOLD_QUOTED,o(t,!1))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const r=t.indent||(i(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?s:n.foldFlowLines(s,r,n.FOLD_FLOW,o(t,!1))}function u(e,t){const{singleQuote:r}=t.options;let s;if(!1===r)s=a;else{const t=e.includes('"'),n=e.includes("'");s=t&&!n?c:n&&!t?a:r?c:a}return s(e,t)}let l;try{l=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{l=/\n+(?!\n|$)/g}function p({comment:e,type:t,value:r},a,c,p){const{blockQuote:d,commentString:h,lineWidth:f}=a.options;if(!d||/\n[\t ]+$/.test(r))return u(r,a);const m=a.indent||(a.forceBlockIndent||i(r)?" ":""),g="literal"===d||"folded"!==d&&t!==s.Scalar.BLOCK_FOLDED&&(t===s.Scalar.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;const s=t-r,n=e.length;if(n<=s)return!1;for(let t=0,r=0;t<n;++t)if("\n"===e[t]){if(t-r>s)return!0;if(r=t+1,n-r<=s)return!1}return!0}(r,f,m.length));if(!r)return g?"|\n":">\n";let y,b;for(b=r.length;b>0;--b){const e=r[b-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=r.substring(b);const w=v.indexOf("\n");-1===w?y="-":r===v||w!==v.length-1?(y="+",p&&p()):y="",v&&(r=r.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(l,`$&${m}`));let _,E=!1,k=-1;for(_=0;_<r.length;++_){const e=r[_];if(" "===e)E=!0;else{if("\n"!==e)break;k=_}}let T=r.substring(0,k<_?k+1:_);T&&(r=r.substring(T.length),T=T.replace(/\n+/g,`$&${m}`));let O=(E?m?"2":"1":"")+y;if(e&&(O+=" "+h(e.replace(/ ?[\r\n]+/g," ")),c&&c()),!g){const e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${m}`);let i=!1;const c=o(a,!0);"folded"!==d&&t!==s.Scalar.BLOCK_FOLDED&&(c.onOverflow=()=>{i=!0});const u=n.foldFlowLines(`${T}${e}${v}`,m,n.FOLD_BLOCK,c);if(!i)return`>${O}\n${m}${u}`}return`|${O}\n${m}${T}${r=r.replace(/\n+/g,`$&${m}`)}${v}`}t.stringifyString=function(e,t,r,l){const{implicitKey:d,inFlow:h}=t,f="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==s.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(m=s.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return d||h?u(f.value,t):p(f,t,r,l);case s.Scalar.QUOTE_DOUBLE:return a(f.value,t);case s.Scalar.QUOTE_SINGLE:return c(f.value,t);case s.Scalar.PLAIN:return function(e,t,r,a){const{type:c,value:l}=e,{actualString:d,implicitKey:h,indent:f,indentStep:m,inFlow:g}=t;if(h&&l.includes("\n")||g&&/[[\]{},]/.test(l))return u(l,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return h||g||!l.includes("\n")?u(l,t):p(e,t,r,a);if(!h&&!g&&c!==s.Scalar.PLAIN&&l.includes("\n"))return p(e,t,r,a);if(i(l)){if(""===f)return t.forceBlockIndent=!0,p(e,t,r,a);if(h&&f===m)return u(l,t)}const y=l.replace(/\n+/g,`$&\n${f}`);if(d){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(y),{compat:r,tags:s}=t.doc.schema;if(s.some(e)||r?.some(e))return u(l,t)}return h?y:n.foldFlowLines(y,f,n.FOLD_FLOW,o(t,!1))}(f,t,r,l);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:r}=t.options,s=d&&e||r;if(y=g(s),null===y)throw new Error(`Unsupported default string type ${s}`)}return y}},7191:(e,t,r)=>{"use strict";var s=r(9714),n=r(3144);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){const s=e.substring(r+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:n.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},7280:(e,t,r)=>{"use strict";r.d(t,{f:()=>g});var s=r(3282),n=r.n(s),o=r(1421);const i=require("node:fs/promises"),a=require("node:path"),c=require("node:util");var u=r(4523),l=r(1198),p=r(6928);var d=r(3121),h=r(262),f=r(6276);class m{filePath;properties={};type;get isPrimaryKeyRequired(){return(0,u.Kg)(this.primaryKeyProperty)&&!0===this.properties[this.primaryKeyProperty]?.required||!1}get newUniqueProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];!0===r?.newUnique&&e.push(t)}return e}get primaryKeyProperty(){for(const e in this.properties){const t=this.properties[e];if(!0===t?.primaryKey)return e}return null}get referenceProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];(0,d.md)(r?.reference)&&e.push(t)}return e}get references(){const e=[];for(const t in this.properties){const r=this.properties[t];(0,d.md)(r?.reference)&&(e.includes(r.reference)||e.push(r.reference))}return e}get uniqueProperties(){const e=[];for(const t in this.properties){const r=this.properties[t];!0===r?.unique&&e.push(t)}return e}#I;#C;constructor(e,t,r){this.type=e,this.filePath=t,this.#I=r;const s=new(n())({allErrors:!1,strict:!1,verbose:!1});s.addFormat("date",!0),s.addFormat("textarea",!0),this.#C=s.compile(this.#I),this.#N()}canValueOfTypeBeOnlyPrimaryKey(e){if((0,u.kZ)(this.primaryKeyProperty))return!1;const t=this.properties[this.primaryKeyProperty];if((0,u.b0)(t))return!1;if(t.type!==e)return!1;if(0===this.uniqueProperties.length&&0===this.newUniqueProperties.length)return!0;if(this.uniqueProperties.map(e=>this.properties[e]).some(t=>t?.type===e))return!1;return!this.newUniqueProperties.map(e=>this.properties[e]).some(t=>t?.type===e)}validate(e){return this.#C(e)}#N(){if(!(0,u.Gv)(this.#I.properties))throw new Error("Invalid JSON schema.");for(const e in this.#I.properties){if(!Object.hasOwn(this.#I.properties,e))continue;const t=this.#I.properties[e];if(!(0,u.Gv)(t))throw new Error("Invlid JSON schema");const r=!!(0,u.Lm)(t["x-kickcat-unique"])&&t["x-kickcat-unique"],s=!!(0,u.Lm)(t["x-kickcat-new-unique"])&&t["x-kickcat-new-unique"],n=(0,u.Et)(t.order)?t.order:Number.MAX_SAFE_INTEGER,o=(0,d.md)(t["x-kickcat-reference"])?t["x-kickcat-reference"]:void 0,i=!!Array.isArray(this.#I.required)&&this.#I.required.includes(e),a=!!(0,u.Lm)(t["x-kickcat-primary-key"])&&t["x-kickcat-primary-key"],c=(0,u.Kg)(t.type)?t.type:"unknown";this.properties[e]={newUnique:s,order:n,primaryKey:a,reference:o,required:i,type:c,unique:r}}}}async function g(e,t){const r=await async function(e,t){for(const r of function(e){const t=[e];let r=(0,p.dirname)(e);for(;!t.includes(r);)t.push(r),r=(0,p.dirname)(e);return t}(__dirname)){const s=(0,a.resolve)(r,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s;if((0,u.Gv)(t)){const s=(0,a.resolve)(r,`node_modules/${t.applicationName}`,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s}}if((0,u.Gv)(t)){const{stdout:r}=await(0,c.promisify)(o.exec)("npm root -g"),s=(0,a.resolve)(r,t.applicationName,`./schemas/${e}.schema.yml`);if(await(0,h.t)(s))return s}throw new Error(`Can't find a "${e}" schema.`)}(e,t),s=await(0,i.readFile)(r,{encoding:"utf-8"}),n=(0,f.A)((0,l.qg)(s,{strict:!1}));return new m(e,r,n)}},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(3853),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return s.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>s._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i,it:a}=e,c="maxLength"===t?s.operators.GT:s.operators.LT,u=!1===a.opts.unicode?s._`${r}.length`:s._`${(0,n.useFunc)(e.gen,o.default)}(${r})`;e.fail$data(s._`${u} ${c} ${i}`)}};t.default=i},7386:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var s=r(6903),n=r(6007),o=r(1354);const i="*";class a{static any=new a(i);static unknown=new a(i);path;get hasWildcard(){return this.path.includes(i)}#x;constructor(e){if(function(e){return!/[a-z0-9*\s]/iu.test(e)}(e))throw new Error(`String "${e}" is not valid command.`);this.path=function(e){return e.trim().replaceAll(/\s+/gu," ")}(e),this.#x=function(e){return new RegExp("^"+e.replaceAll(i,".*"),"u")}(this.path)}match(e){return this.#x.test(e)}}class c{#D=new Map;add(e){this.#D.set(e.name,e)}get(e){return this.#D.get(e)}[Symbol.iterator](){return this.#D.values()}}class u{action;description;options=new c;constructor(e,t){this.action=e,this.description=t??"The command description is missing."}async execute(e,t){for(const r of this.options)r.parse(e,t);return!1!==await this.action(e.options)}}var l=r(4523);var p=r(5458),d=r(153),h=r(2596);const f=/^--(?<key>[A-Za-z0-9_-]+)(?:=(?<value>(?:"[^"]*"|'[^']*'|[^"']+)))?$/u;class m{defaultValue;description;name;required;tag;type;#x;constructor({defaultValue:e,description:t,name:r,required:s,tag:n,type:o}){if(this.tag=n,/\s+/u.test((r??n).trim()))throw new Error(`"${r}" is not valid command option name.`);this.name=function(e){return`--${t=e.trim(),t.replace(/([a-z0-9])([A-Z])/gu,"$1-$2").replace(/([A-Z])([A-Z][a-z])/gu,"$1-$2").toLowerCase()}`;var t}(r??n),this.#x=function(e){return new RegExp(`^${e}`,"iu")}(this.name),this.type=o??h.A,this.description=t??"The option description is missing.",this.required=s??!1,this.defaultValue=e}parse(e,t){t?.debug(`Parsing ${this.name} option...`),t?.debug(`The raw request is "${e.raw.join(" ")}".`);const r=e.raw.findIndex(e=>this.test(e)),s=r>=0?e.raw[r]:void 0;if((0,l.b0)(s)){if(t?.debug("The option is not found, checking required and default value."),this.required&&(0,l.b0)(this.defaultValue))throw new Error(`Parameter "${this.name}" is required.`);return(0,l.b0)(this.defaultValue)||(e.options[this.tag]=this.defaultValue),void t?.debug("The option is not required and don't have default value, skipping.")}const n=f.exec(s);if(!n)throw new Error(`Incorrect option format ${this.name}.`);let o=n[2];if((0,l.b0)(o)&&this.type!==d.A){const t=e.raw[r+1];(0,l.b0)(t)||t.startsWith("--")||(o=t)}const i=(0,l.b0)(o)?void 0:function(e){if(e.length<2)return e;const t=['"',"'"],r=(0,p.A)(e[0]),s=e[e.length-1];return t.includes(r)&&r===s?e.slice(1,-1):e}(o);if(this.type!==d.A||""!==(i??""))if((0,l.b0)(i)||""===i)if((0,l.b0)(this.defaultValue)){if(this.required)throw new Error(`Parameter "${this.name}" is required.`)}else e.options[this.tag]=this.defaultValue;else e.options[this.tag]=this.type.parse(i);else e.options[this.tag]=!0}test(e){return this.#x.test(e)}}class g{application;route;constructor(e,t){this.route=e,this.application=t}use(e){return this.application.router.add(this.route,e instanceof u?e:function(e){const t=new u(t=>s.kL.resolve(e).execute(t),e.schema.description);for(const[r,s]of Object.entries(e.schema.parameters))t.options.add(new m({defaultValue:s.defaultValue,description:s.description,required:s.required,tag:r,type:s.type}));return t}(e)),this}}class y{get endpoints(){return this.#q}#q=[];#t;constructor(e){this.#t=e}add(e,t){let r=this.#q.find(t=>t.route===e||t.route!==a.unknown&&e!==a.unknown&&t.route.path===e.path);return(0,l.b0)(r)&&(r={commands:[],route:e},this.#q.push(r)),r.commands.includes(t)||r.commands.push(t),this}async dispatch(e){const t=[];let r=this.resolve("");for(const s of e.raw)if(t.push(s),r=this.resolve(t.join(" ")),!r.route.hasWildcard)break;e.route=r.route;for(const t of r.commands)if(!await t.execute(e,this.#t))break}resolve(e){let t=a.unknown,r=[];const s=this.#q.find(e=>e.route===a.unknown);for(const s of this.#q.filter(e=>e.route!==a.unknown))if(s.route.match(e)){if(s.route===a.any){r=[...r,...s.commands];continue}t=s.route,r=[...r,...s.commands]}return t!==a.unknown||(0,l.b0)(s)?{commands:r,route:t}:{commands:[...r,...s.commands],route:a.unknown}}}var b,v=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},w=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},_=function(e,t){return function(r,s){t(r,s,e)}};let E=class{configuration;on;router;#t;constructor(e,t){this.configuration=e,this.on=function(e){function t(t){return new g(new a(t),e)}return t.any=new g(a.any,e),t.unknown=new g(a.unknown,e),t}(this),this.#t=t??new o.A(new n.A),this.router=new y(this.#t)}async execute(e){await this.router.dispatch(e)}};E=v([_(1,(0,s.WQ)(o.A)),w("design:paramtypes",[Object,"function"==typeof(b=void 0!==o.A&&o.A)?b:Object])],E);const k=E},7434:(e,t,r)=>{"use strict";var s=r(7902),n=r(1755),o=r(1386),i=r(9378),a=r(8644),c=r(8334);const u="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},r,l,p,d){const h=new(d?.nodeClass??n.YAMLMap)(r.schema);r.atRoot&&(r.atRoot=!1);let f=l.offset,m=null;for(const n of l.items){const{start:d,key:g,sep:y,value:b}=n,v=o.resolveProps(d,{indicator:"explicit-key-ind",next:g??y?.[0],offset:f,onError:p,parentIndent:l.indent,startOnNewline:!0}),w=!v.found;if(w){if(g&&("block-seq"===g.type?p(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==l.indent&&p(f,"BAD_INDENT",u)),!v.anchor&&!v.tag&&!y){m=v.end,v.comment&&(h.comment?h.comment+="\n"+v.comment:h.comment=v.comment);continue}(v.newlineAfterProp||i.containsNewline(g))&&p(g??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else v.found?.indent!==l.indent&&p(f,"BAD_INDENT",u);r.atKey=!0;const _=v.end,E=g?e(r,g,v,p):t(r,_,d,null,v,p);r.schema.compat&&a.flowIndentCheck(l.indent,g,p),r.atKey=!1,c.mapIncludes(r,h.items,E)&&p(_,"DUPLICATE_KEY","Map keys must be unique");const k=o.resolveProps(y??[],{indicator:"map-value-ind",next:b,offset:E.range[2],onError:p,parentIndent:l.indent,startOnNewline:!g||"block-scalar"===g.type});if(f=k.end,k.found){w&&("block-map"!==b?.type||k.hasNewline||p(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&v.start<k.found.offset-1024&&p(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const o=b?e(r,b,k,p):t(r,f,y,null,k,p);r.schema.compat&&a.flowIndentCheck(l.indent,b,p),f=o.range[2];const i=new s.Pair(E,o);r.options.keepSourceTokens&&(i.srcToken=n),h.items.push(i)}else{w&&p(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(E.comment?E.comment+="\n"+k.comment:E.comment=k.comment);const e=new s.Pair(E);r.options.keepSourceTokens&&(e.srcToken=n),h.items.push(e)}}return m&&m<f&&p(m,"IMPOSSIBLE","Map comment with trailing content"),h.range=[l.offset,f,m??f],h}},7444:(e,t,r)=>{"use strict";var s=r(932);t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("function"==typeof s.emitWarning?s.emitWarning(t):console.warn(t))}},7470:e=>{const t=/^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/;e.exports=function(e){const r=e.reduce(function(e,r){const s=r.match(t);return s&&(e[s[1]]=s[2]),e},{});return"quiet"in r||(r.quiet="true"),r}},7532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=[r(4737).default];t.default=s},7571:(e,t,r)=>{"use strict";var s=r(9714),n=r(6845);function o(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=t.exec(e);if(!s)return e;let n=s[1],o=" ",i=t.lastIndex;for(r.lastIndex=i;s=r.exec(e);)""===s[1]?"\n"===o?n+=o:o="\n":(n+=o+s[1],o=" "),i=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,s=a.exec(e),n+o+(s?.[1]??"")}function i(e,t){let r="",s=e[t+1];for(;!(" "!==s&&"\t"!==s&&"\n"!==s&&"\r"!==s||"\r"===s&&"\n"!==e[t+2]);)"\n"===s&&(r+="\n"),s=e[(t+=1)+1];return r||(r=" "),{fold:r,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,r,s){const n=e.substr(t,r),o=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(o)){const n=e.substr(t-2,r+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),n}return String.fromCodePoint(o)}t.resolveFlowScalar=function(e,t,r){const{offset:u,type:l,source:p,end:d}=e;let h,f;const m=(e,t,s)=>r(u+e,t,s);switch(l){case"scalar":h=s.Scalar.PLAIN,f=function(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return o(e)}(p,m);break;case"single-quoted-scalar":h=s.Scalar.QUOTE_SINGLE,f=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return o(e.slice(1,-1)).replace(/''/g,"'")}(p,m);break;case"double-quoted-scalar":h=s.Scalar.QUOTE_DOUBLE,f=function(e,t){let r="";for(let s=1;s<e.length-1;++s){const n=e[s];if("\r"!==n||"\n"!==e[s+1])if("\n"===n){const{fold:t,offset:n}=i(e,s);r+=t,s=n}else if("\\"===n){let n=e[++s];const o=a[n];if(o)r+=o;else if("\n"===n)for(n=e[s+1];" "===n||"\t"===n;)n=e[1+ ++s];else if("\r"===n&&"\n"===e[s+1])for(n=e[1+ ++s];" "===n||"\t"===n;)n=e[1+ ++s];else if("x"===n||"u"===n||"U"===n){const o={x:2,u:4,U:8}[n];r+=c(e,s+1,o,t),s+=o}else{const n=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${n}`),r+=n}}else if(" "===n||"\t"===n){const t=s;let o=e[s+1];for(;" "===o||"\t"===o;)o=e[1+ ++s];"\n"===o||"\r"===o&&"\n"===e[s+2]||(r+=s>t?e.slice(t,s+1):n)}else r+=n}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}(p,m);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[u,u+p.length,u+p.length]}}const g=u+p.length,y=n.resolveEnd(d,g,t,r);return{value:f,type:h,comment:y.comment,range:[u,g,y.offset]}}},7652:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},7808:(e,t)=>{"use strict";function r(e){switch(e.type){case"block-scalar":{let t="";for(const s of e.props)t+=r(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=s(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=s(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=s(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function s({start:e,key:t,sep:s,value:n}){let o="";for(const t of e)o+=t.source;if(t&&(o+=r(t)),s)for(const e of s)o+=e.source;return n&&(o+=r(n)),o}t.stringify=e=>"type"in e?r(e):s(e)},7845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(1520);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class a extends s.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=s._`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=a;const c=s._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e),{prefix:n}=s,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[n];if(i){const e=i.get(o);if(e)return e}else i=this._values[n]=new Map;i.set(o,s);const a=this._scope[n]||(this._scope[n]=[]),c=a.length;return a[c]=t.ref,s.setValue(t,{property:n,itemIndex:c}),s}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return s._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,i={},a){let c=s.nil;for(const u in e){const l=e[u];if(!l)continue;const p=i[u]=i[u]||new Map;l.forEach(e=>{if(p.has(e))return;p.set(e,o.Started);let i=r(e);if(i){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=s._`${c}${r} ${e} = ${i};${this.opts._n}`}else{if(!(i=null==a?void 0:a(e)))throw new n(e);c=s._`${c}${i}${this.opts._n}`}p.set(e,o.Completed)})}return c}}},7870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const s=r(9029),n=r(4227);function o(e,t,r){const{gen:o,compositeRule:i,data:a,opts:c}=e;if(void 0===r)return;const u=s._`${a}${(0,s.getProperty)(t)}`;if(i)return void(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);let l=s._`${u} === undefined`;"empty"===c.useDefaults&&(l=s._`${l} || ${u} === null || ${u} === ""`),o.if(l,s._`${u} = ${(0,s.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:s}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(s)&&s.forEach((t,r)=>o(e,r,t.default))}},7887:(e,t)=>{"use strict";function r(e,t){return t.rules.some(t=>s(e,t))}function s(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},s){const n=t.RULES.types[s];return n&&!0!==n&&r(e,n)},t.shouldUseGroup=r,t.shouldUseRule=s},7902:(e,t,r)=>{"use strict";var s=r(5219),n=r(8017),o=r(5139),i=r(484);class a{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return i.isNode(t)&&(t=t.clone(e)),i.isNode(r)&&(r=r.clone(e)),new a(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,r){const n=s.createNode(e,void 0,r),o=s.createNode(t,void 0,r);return new a(n,o)}},7923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(4227),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,s.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};t.default=n},7935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(6250),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>s._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:i,schemaCode:a,schema:c}=e;i||c&&"object"==typeof c?e.fail$data(s._`!${(0,n.useFunc)(t,o.default)}(${r}, ${a})`):e.fail(s._`${c} !== ${r}`)}};t.default=i},7969:(e,t,r)=>{"use strict";var s=r(9714);function n({value:e,source:t},r){return t&&(e?o:i).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const o={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(!0),stringify:n},i={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(!1),stringify:n};t.falseTag=i,t.trueTag=o},8017:(e,t,r)=>{"use strict";var s=r(484),n=r(9714),o=r(3793),i=r(248);t.stringifyPair=function({key:e,value:t},r,a,c){const{allNullValues:u,doc:l,indent:p,indentStep:d,options:{commentString:h,indentSeq:f,simpleKeys:m}}=r;let g=s.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(s.isCollection(e)||!s.isNode(e)&&"object"==typeof e){throw new Error("With simple keys, collection cannot be used as a key value")}}let y=!m&&(!e||g&&null==t&&!r.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(m||!u),indent:p+d});let b,v,w,_=!1,E=!1,k=o.stringify(e,r,()=>_=!0,()=>E=!0);if(!y&&!r.inFlow&&k.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(u||null==t)return _&&a&&a(),""===k?"?":y?`? ${k}`:k}else if(u&&!m||null==t&&y)return k=`? ${k}`,g&&!_?k+=i.lineComment(k,r.indent,h(g)):E&&c&&c(),k;_&&(g=null),y?(g&&(k+=i.lineComment(k,r.indent,h(g))),k=`? ${k}\n${p}:`):(k=`${k}:`,g&&(k+=i.lineComment(k,r.indent,h(g)))),s.isNode(t)?(b=!!t.spaceBefore,v=t.commentBefore,w=t.comment):(b=!1,v=null,w=null,t&&"object"==typeof t&&(t=l.createNode(t))),r.implicitKey=!1,y||g||!s.isScalar(t)||(r.indentAtStart=k.length+1),E=!1,f||!(d.length>=2)||r.inFlow||y||!s.isSeq(t)||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let T=!1;const O=o.stringify(t,r,()=>T=!0,()=>E=!0);let S=" ";if(g||b||v){if(S=b?"\n":"",v){const e=h(v);S+=`\n${i.indentComment(e,r.indent)}`}""!==O||r.inFlow?S+=`\n${r.indent}`:"\n"===S&&(S="\n\n")}else if(!y&&s.isCollection(t)){const e=O[0],s=O.indexOf("\n"),n=-1!==s,o=r.inFlow??t.flow??0===t.items.length;if(n||!o){let t=!1;if(n&&("&"===e||"!"===e)){let r=O.indexOf(" ");"&"===e&&-1!==r&&r<s&&"!"===O[r+1]&&(r=O.indexOf(" ",r+1)),(-1===r||s<r)&&(t=!0)}t||(S=`\n${r.indent}`)}}else""!==O&&"\n"!==O[0]||(S="");return k+=S+O,r.inFlow?T&&a&&a():w&&!T?k+=i.lineComment(k,r.indent,h(w)):E&&c&&c(),k}},8080:(e,t,r)=>{"use strict";var s=r(181),n=r(9714),o=r(7180);const i={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof s.Buffer)return s.Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,a,c){if(!r)return"";const u=r;let l;if("function"==typeof s.Buffer)l=u instanceof s.Buffer?u.toString("base64"):s.Buffer.from(u.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<u.length;++t)e+=String.fromCharCode(u[t]);l=btoa(e)}}if(t??(t=n.Scalar.BLOCK_LITERAL),t!==n.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),r=Math.ceil(l.length/e),s=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)s[t]=l.substr(n,e);l=s.join(t===n.Scalar.BLOCK_LITERAL?"\n":" ")}return o.stringifyString({comment:e,type:t,value:l},i,a,c)}};t.binary=i},8156:(e,t,r)=>{"use strict";r.a(e,async(e,t)=>{try{r(8630);var s=r(6903),n=(r(4529),r(8330)),o=r(7386),i=r(6517),a=r(5238),c=r(9973),u=r(514),l=r(9542),p=r(5926),d=r(1469),h=r(78),f=r(2173),m=r(6585),g=r(7280),y=r(3989),b=r(3121),v=r(4200);try{const e=new y.A,t=await(0,g.f)(b.Ni,{applicationName:n.UU});e.add(b.Ni,t);const r=await(0,g.f)(b.d_,{applicationName:n.UU});e.add(b.d_,r);const w=await(0,g.f)(b.i8,{applicationName:n.UU});e.add(b.i8,w),s.kL.registerInstance(y.A,e),s.kL.registerSingleton("RemoteMilestoneCollection",v.A);const _=new o.A({author:n.cy,description:n.h_,license:n.qY,name:n.UU,version:n.rE});_.on.any.use(h.A).use(a.A),_.on.unknown.use(i.A),_.on("help").use(i.A),_.on("entity delete").use(d.A).use(u.A),_.on("entity pull").use(d.A).use(f.A).use(l.A),_.on("entity push all").use(d.A).use(f.A).use(p.A),_.on("repair").use(d.A).use(m.A),s.kL.registerInstance(o.A,_);const E=c.A.new();s.kL.registerInstance(c.A,E),await _.execute(E)}catch(e){"object"==typeof e&&null!==e&&"message"in e?console.error(e.message):console.error(e)}t()}catch(e){t(e)}},1)},8330:e=>{"use strict";e.exports=JSON.parse('{"UU":"@aliaksandarpratashchyk/kickcat","rE":"0.5.3","h_":"Infrastructure-as-code toolkit for GitHub repository automation. Includes reusable workflows, utilities, and a CLI to install workflow templates.","cy":"Aliaksandar Pratashchyk <aliaksandarpratashchyk@gmail.com>","qY":"MIT"}')},8334:(e,t,r)=>{"use strict";var s=r(484);t.mapIncludes=function(e,t,r){const{uniqueKeys:n}=e.options;if(!1===n)return!1;const o="function"==typeof n?n:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some(e=>o(e.key,r))}},8343:(e,t,r)=>{"use strict";const{normalizeIPv6:s,removeDotSegments:n,recomposeAuthority:o,normalizeComponentEncoding:i,isIPv4:a,nonSimpleDomain:c}=r(4834),{SCHEMES:u,getSchemeHandler:l}=r(343);function p(e,t,r,s){const o={};return s||(e=f(d(e,r),r),t=f(d(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=n(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=n(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=n(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=n(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function d(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},t),i=[],a=l(s.scheme||r.scheme);a&&a.serialize&&a.serialize(r,s),void 0!==r.path&&(s.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==s.reference&&r.scheme&&i.push(r.scheme,":");const c=o(r);if(void 0!==c&&("suffix"!==s.reference&&i.push("//"),i.push(c),r.path&&"/"!==r.path[0]&&i.push("/")),void 0!==r.path){let e=r.path;s.absolutePath||a&&a.absolutePath||(e=n(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),i.push(e)}return void 0!==r.query&&i.push("?",r.query),void 0!==r.fragment&&i.push("#",r.fragment),i.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function f(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let o=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);const i=e.match(h);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){if(!1===a(n.host)){const e=s(n.host);n.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0}void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||void 0!==n.query||n.path?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const t=l(r.scheme||n.scheme);if(!(r.unicodeSupport||t&&t.unicodeSupport)&&n.host&&(r.domainHost||t&&t.domainHost)&&!1===o&&c(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==n.scheme&&(n.scheme=unescape(n.scheme)),void 0!==n.host&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),t&&t.parse&&t.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}const m={SCHEMES:u,normalize:function(e,t){return"string"==typeof e?e=d(f(e,t),t):"object"==typeof e&&(e=f(d(e,t),t)),e},resolve:function(e,t,r){const s=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=p(f(e,s),f(t,s),s,!0);return s.skipEscape=!0,d(n,s)},resolveComponent:p,equal:function(e,t,r){return"string"==typeof e?(e=unescape(e),e=d(i(f(e,r),!0),{...r,skipEscape:!0})):"object"==typeof e&&(e=d(i(e,!0),{...r,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=d(i(f(t,r),!0),{...r,skipEscape:!0})):"object"==typeof t&&(t=d(i(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:d,parse:f};e.exports=m,e.exports.default=m,e.exports.fastUri=m},8416:(e,t,r)=>{"use strict";var s=r(484),n=r(7902),o=r(9714),i=r(6010);function a(e,t){if(s.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!s.isPair(i)){if(s.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new n.Pair(new o.Scalar(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=s.isPair(i)?i:new n.Pair(i)}}else t("Expected a sequence for this tag");return e}function c(e,t,r){const{replacer:s}=r,o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,c;if("function"==typeof s&&(e=s.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);i=t[0],c=e[i]}else i=e;o.items.push(n.createPair(i,c,r))}return o}const u={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=u,t.resolvePairs=a},8454:function(e){var t;t=function(){"use strict";var e,t,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={load:function(e,t,r={}){var s,n,o;for(s in t)o=t[s],r[s]=null!=(n=e[s])?n:o;return r},overwrite:function(e,t,r={}){var s,n;for(s in e)n=e[s],void 0!==t[s]&&(r[s]=n);return r}},n=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,"function"==typeof this.incr&&this.incr(),t={value:e,prev:this._last,next:null},null!=this._last?(this._last.next=t,this._last=t):this._first=this._last=t}shift(){var e;if(null!=this._first)return this.length--,"function"==typeof this.decr&&this.decr(),e=this._first.value,null!=(this._first=this._first.next)?this._first.prev=null:this._last=null,e}first(){if(null!=this._first)return this._first.value}getArray(){var e,t,r;for(e=this._first,r=[];null!=e;)r.push((t=e,e=e.next,t.value));return r}forEachShift(e){var t;for(t=this.shift();null!=t;)e(t),t=this.shift()}debug(){var e,t,r,s,n;for(e=this._first,n=[];null!=e;)n.push((t=e,e=e.next,{value:t.value,prev:null!=(r=t.prev)?r.value:void 0,next:null!=(s=t.next)?s.value:void 0}));return n}},o=class{constructor(e){if(this.instance=e,this._events={},null!=this.instance.on||null!=this.instance.once||null!=this.instance.removeAllListeners)throw new Error("An Emitter already exists for this object");this.instance.on=(e,t)=>this._addListener(e,"many",t),this.instance.once=(e,t)=>this._addListener(e,"once",t),this.instance.removeAllListeners=(e=null)=>null!=e?delete this._events[e]:this._events={}}_addListener(e,t,r){var s;return null==(s=this._events)[e]&&(s[e]=[]),this._events[e].push({cb:r,status:t}),this.instance}listenerCount(e){return null!=this._events[e]?this._events[e].length:0}async trigger(e,...t){var r,s;try{if("debug"!==e&&this.trigger("debug",`Event triggered: ${e}`,t),null==this._events[e])return;return this._events[e]=this._events[e].filter(function(e){return"none"!==e.status}),s=this._events[e].map(async e=>{var r,s;if("none"!==e.status){"once"===e.status&&(e.status="none");try{return"function"==typeof(null!=(s="function"==typeof e.cb?e.cb(...t):void 0)?s.then:void 0)?await s:s}catch(e){return r=e,this.trigger("error",r),null}}}),(await Promise.all(s)).find(function(e){return null!=e})}catch(e){return r=e,this.trigger("error",r),null}}};e=n,t=o;var i,a,c,u=class{constructor(r){this.Events=new t(this),this._length=0,this._lists=function(){var t,s,n;for(n=[],t=1,s=r;1<=s?t<=s:t>=s;1<=s?++t:--t)n.push(new e(()=>this.incr(),()=>this.decr()));return n}.call(this)}incr(){if(0===this._length++)return this.Events.trigger("leftzero")}decr(){if(0===--this._length)return this.Events.trigger("zero")}push(e){return this._lists[e.options.priority].push(e)}queued(e){return null!=e?this._lists[e].length:this._length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,r,s;for(t=0,r=e.length;t<r;t++)if((s=e[t]).length>0)return s;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},l=class extends Error{};c=s,i=l,a=class{constructor(e,t,r,s,n,o,i,a){this.task=e,this.args=t,this.rejectOnDrop=n,this.Events=o,this._states=i,this.Promise=a,this.options=c.load(r,s),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===s.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t;return(t=~~e!==e?5:e)<0?0:t>9?9:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){return!!this._states.remove(this.options.id)&&(this.rejectOnDrop&&this._reject(null!=e?e:new i(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0)}_assertStatus(e){var t;if((t=this._states.jobStatus(this.options.id))!==e&&("DONE"!==e||null!==t))throw new i(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return 0===this.retryCount?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,s){var n,o,i;0===this.retryCount?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),o={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",o);try{if(i=await(null!=e?e.schedule(this.options,this.task,...this.args):this.task(...this.args)),t())return this.doDone(o),await s(this.options,o),this._assertStatus("DONE"),this._resolve(i)}catch(e){return n=e,this._onFailure(n,o,t,r,s)}}doExpire(e,t,r){var s,n;return this._states.jobStatus("RUNNING"===this.options.id)&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),n={args:this.args,options:this.options,retryCount:this.retryCount},s=new i(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(s,n,e,t,r)}async _onFailure(e,t,r,s,n){var o,i;if(r())return null!=(o=await this.Events.trigger("failed",e,t))?(i=~~o,this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t),this.retryCount++,s(i)):(this.doDone(t),await n(this.options,t),this._assertStatus("DONE"),this._reject(e))}doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}};var p,d,h=a;d=s,p=l;var f,m=class{constructor(e,t,r){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),d.load(r,r,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return null==this.heartbeat&&(null!=this.storeOptions.reservoirRefreshInterval&&null!=this.storeOptions.reservoirRefreshAmount||null!=this.storeOptions.reservoirIncreaseInterval&&null!=this.storeOptions.reservoirIncreaseAmount)?"function"==typeof(e=this.heartbeat=setInterval(()=>{var e,t,r,s,n;if(s=Date.now(),null!=this.storeOptions.reservoirRefreshInterval&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=s,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),null!=this.storeOptions.reservoirIncreaseInterval&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&(({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:n}=this.storeOptions),this._lastReservoirIncrease=s,(t=null!=r?Math.min(e,r-n):e)>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,r){return setTimeout(t,e)})}computePenalty(){var e;return null!=(e=this.storeOptions.penalty)?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){return await this.yieldLoop(),d.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout<e}computeCapacity(){var e,t;return({maxConcurrent:e,reservoir:t}=this.storeOptions),null!=e&&null!=t?Math.min(e-this._running,t):null!=e?e-this._running:null!=t?t:null}conditionsCheck(e){var t;return null==(t=this.computeCapacity())||e<=t}async __incrementReservoir__(e){var t;return await this.yieldLoop(),t=this.storeOptions.reservoir+=e,this.instance._drainAll(this.computeCapacity()),t}async __currentReservoir__(){return await this.yieldLoop(),this.storeOptions.reservoir}isBlocked(e){return this._unblockTime>=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,r){var s,n;return await this.yieldLoop(),s=Date.now(),this.conditionsCheck(t)?(this._running+=t,null!=this.storeOptions.reservoir&&(this.storeOptions.reservoir-=t),n=Math.max(this._nextRequest-s,0),this._nextRequest=s+n+this.storeOptions.minTime,{success:!0,wait:n,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return 3===this.storeOptions.strategy}async __submit__(e,t){var r,s,n;if(await this.yieldLoop(),null!=this.storeOptions.maxConcurrent&&t>this.storeOptions.maxConcurrent)throw new p(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return s=Date.now(),n=null!=this.storeOptions.highWater&&e===this.storeOptions.highWater&&!this.check(t,s),(r=this.strategyIsBlock()&&(n||this.isBlocked(s)))&&(this._unblockTime=s+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:n,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};f=l;var g,y=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t,r;return r=(t=this._jobs[e])+1,null!=t&&r<this.status.length?(this.counts[t]--,this.counts[r]++,this._jobs[e]++):null!=t?(this.counts[t]--,delete this._jobs[e]):void 0}start(e){return this._jobs[e]=0,this.counts[0]++}remove(e){var t;return null!=(t=this._jobs[e])&&(this.counts[t]--,delete this._jobs[e]),null!=t}jobStatus(e){var t;return null!=(t=this.status[this._jobs[e]])?t:null}statusJobs(e){var t,r,s,n;if(null!=e){if((r=this.status.indexOf(e))<0)throw new f(`status must be one of ${this.status.join(", ")}`);for(t in n=[],s=this._jobs)s[t]===r&&n.push(t);return n}return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce((e,t,r)=>(e[this.status[r]]=t,e),{})}};g=n;var b,v,w,_,E,k=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new g}isEmpty(){return 0===this._queue.length}async _tryToRun(){var e,t,r,s,n,o,i;if(this._running<1&&this._queue.length>0)return this._running++,({task:i,args:e,resolve:n,reject:s}=this._queue.shift()),t=await async function(){try{return o=await i(...e),function(){return n(o)}}catch(e){return r=e,function(){return s(r)}}}(),this._running--,this._tryToRun(),t()}schedule(e,...t){var r,s,n;return n=s=null,r=new this.Promise(function(e,t){return n=e,s=t}),this._queue.push({task:e,args:t,resolve:n,reject:s}),this._tryToRun(),r}},T="2.19.5",O={version:T},S=Object.freeze({version:T,default:O}),A=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),$=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");E=s,b=o,w=A,v=$,_=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var P,j,R=function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,E.load(this.limiterOptions,this.defaults,this),this.Events=new b(this),this.instances={},this.Bottleneck=B,this._startAutoCleanup(),this.sharedConnection=null!=this.connection,null==this.connection&&("redis"===this.limiterOptions.datastore?this.connection=new w(Object.assign({},this.limiterOptions,{Events:this.Events})):"ioredis"===this.limiterOptions.datastore&&(this.connection=new v(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=""){var t;return null!=(t=this.instances[e])?t:(()=>{var t;return t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",t,e),t})()}async deleteKey(e=""){var t,r;return r=this.instances[e],this.connection&&(t=await this.connection.__runCommand__(["del",..._.allKeys(`${this.id}-${e}`)])),null!=r&&(delete this.instances[e],await r.disconnect()),null!=r||t>0}limiters(){var e,t,r,s;for(e in r=[],t=this.instances)s=t[e],r.push({key:e,limiter:s});return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,s,n,o,i,a;if(null==this.connection)return this.Promise.resolve(this.keys());for(n=[],e=null,a=`b_${this.id}-`.length;0!==e;)for([i,t]=await this.connection.__runCommand__(["scan",null!=e?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]),e=~~i,r=0,o=t.length;r<o;r++)s=t[r],n.push(s.slice(a,-9));return n}_startAutoCleanup(){var e;return clearInterval(this.interval),"function"==typeof(e=this.interval=setInterval(async()=>{var e,t,r,s,n,o;for(t in n=Date.now(),s=[],r=this.instances){o=r[t];try{await o._store.__groupCheck__(n)?s.push(this.deleteKey(t)):s.push(void 0)}catch(t){e=t,s.push(o.Events.trigger("error",e))}}return s},this.timeout/2)).unref?e.unref():void 0}updateSettings(e={}){if(E.overwrite(e,this.defaults,this),E.overwrite(e,e,this.limiterOptions),null!=e.timeout)return this._startAutoCleanup()}disconnect(e=!0){var t;if(!this.sharedConnection)return null!=(t=this.connection)?t.disconnect(e):void 0}}return e.prototype.defaults={timeout:3e5,connection:null,Promise,id:"group-key"},e}.call(r);j=s,P=o;var I,C,N,x,D,q,G,L,F,U=function(){class e{constructor(e={}){this.options=e,j.load(this.options,this.defaults,this),this.Events=new P(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():null!=this.maxTime&&1===this._arr.length&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}.call(r),M=(I=S)&&I.default||I,K=[].splice;F=s,D=u,N=h,x=m,q=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),C=o,G=y,L=k;var B=function(){class e{constructor(t={},...r){var s,n;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,r),F.load(t,this.instanceDefaults,this),this._queues=new D(10),this._scheduled={},this._states=new G(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new C(this),this._submitLock=new L("submit",this.Promise),this._registerLock=new L("register",this.Promise),n=F.load(t,this.storeDefaults,{}),this._store=function(){if("redis"===this.datastore||"ioredis"===this.datastore||null!=this.connection)return s=F.load(t,this.redisStoreDefaults,{}),new q(this,n,s);if("local"===this.datastore)return s=F.load(t,this.localStoreDefaults,{}),new x(this,n,s);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.ref?e.ref():void 0}),this._queues.on("zero",()=>{var e;return null!=(e=this._store.heartbeat)&&"function"==typeof e.unref?e.unref():void 0})}_validateOptions(t,r){if(null==t||"object"!=typeof t||0!==r.length)throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return 0===this.queued()&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return null!=this._scheduled[e]&&(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,r,s){var n,o;try{if(({running:o}=await this._store.__free__(e,r.weight)),this.Events.trigger("debug",`Freed ${r.id}`,s),0===o&&this.empty())return this.Events.trigger("idle")}catch(e){return n=e,this.Events.trigger("error",n)}}_run(e,t,r){var s,n,o;return t.doRun(),s=this._clearGlobalState.bind(this,e),o=this._run.bind(this,e,t),n=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,s,o,n),r),expiration:null!=t.options.expiration?setTimeout(function(){return t.doExpire(s,o,n)},r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,r,s,n,o;return 0===this.queued()?this.Promise.resolve(null):(o=this._queues.getFirst(),({options:n,args:t}=s=o.first()),null!=e&&n.weight>e?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${n.id}`,{args:t,options:n}),r=this._randomIndex(),this._store.__register__(r,n.weight,n.expiration).then(({success:e,wait:i,reservoir:a})=>{var c;return this.Events.trigger("debug",`Drained ${n.id}`,{success:e,args:t,options:n}),e?(o.shift(),(c=this.empty())&&this.Events.trigger("empty"),0===a&&this.Events.trigger("depleted",c),this._run(r,s,i),this.Promise.resolve(n.weight)):this.Promise.resolve(null)})))})}_drainAll(e,t=0){return this._drainOne(e).then(r=>{var s;return null!=r?(s=null!=e?e-r:e,this._drainAll(s,t+r)):this.Promise.resolve(t)}).catch(e=>this.Events.trigger("error",e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var r,s;return t=F.load(t,this.stopDefaults),s=e=>{var t;return t=()=>{var t;return(t=this._states.counts)[0]+t[1]+t[2]+t[3]===e},new this.Promise((e,r)=>t()?e():this.on("done",()=>{if(t())return this.removeAllListeners("done"),e()}))},r=t.dropWaitingJobs?(this._run=function(e,r){return r.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,r,n;for(e in r=this._scheduled)n=r[e],"RUNNING"===this.jobStatus(n.job.options.id)&&(clearTimeout(n.timeout),clearTimeout(n.expiration),n.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),s(0)}))):this.schedule({priority:9,weight:0},()=>s(1)),this._receive=function(r){return r._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),r}async _addToQueue(t){var r,s,n,o,i,a,c;({args:r,options:o}=t);try{({reachedHWM:i,blocked:s,strategy:c}=await this._store.__submit__(this.queued(),o.weight))}catch(e){return n=e,this.Events.trigger("debug",`Could not queue ${o.id}`,{args:r,options:o,error:n}),t.doDrop({error:n}),!1}return s?(t.doDrop(),!0):i&&(null!=(a=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(o.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(o.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0)&&a.doDrop(),null==a||c===e.prototype.strategy.OVERFLOW)?(null==a&&t.doDrop(),i):(t.doQueue(i,s),this._queues.push(t),await this._drainAll(),i)}_receive(t){return null!=this._states.jobStatus(t.options.id)?(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}submit(...e){var t,r,s,n,o,i,a;return"function"==typeof e[0]?(o=e,[r,...e]=o,[t]=K.call(e,-1),n=F.load({},this.jobDefaults)):(i=e,[n,r,...e]=i,[t]=K.call(e,-1),n=F.load(n,this.jobDefaults)),a=(...e)=>new this.Promise(function(t,s){return r(...e,function(...e){return(null!=e[0]?s:t)(e)})}),(s=new N(a,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise)).promise.then(function(e){return"function"==typeof t?t(...e):void 0}).catch(function(e){return Array.isArray(e)?"function"==typeof t?t(...e):void 0:"function"==typeof t?t(e):void 0}),this._receive(s)}schedule(...e){var t,r,s;return"function"==typeof e[0]?([s,...e]=e,r={}):[r,s,...e]=e,t=new N(s,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t,r;return t=this.schedule.bind(this),(r=function(...r){return t(e.bind(this),...r)}).withOptions=function(r,...s){return t(r,e,...s)},r}async updateSettings(e={}){return await this._store.__updateSettings__(F.overwrite(e,this.storeDefaults)),F.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=C,e.version=e.prototype.version=M.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=l,e.Group=e.prototype.Group=R,e.RedisConnection=e.prototype.RedisConnection=A,e.IORedisConnection=e.prototype.IORedisConnection=$,e.Batcher=e.prototype.Batcher=U,e.prototype.jobDefaults={priority:5,weight:1,expiration:null,id:"<no-id>"},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(r);return B},e.exports=t()},8504:(e,t,r)=>{"use strict";r.d(t,{JO:()=>l,KF:()=>u,Oi:()=>o,ZW:()=>a,ff:()=>c,rD:()=>i});var s=r(1027),n=r(1170);const o="debug",i="info",a="warn",c="error",u="off",l=new n.A([new s.A(o),new s.A(i),new s.A(a),new s.A(c),new s.A(u)])},8523:(e,t,r)=>{"use strict";var s=r(3334),n=r(6055),o=r(1919),i=r(8531),a=r(5132),c=r(988),u=r(2891);const l=[s.map,o.seq,i.string,n.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=l},8531:(e,t,r)=>{"use strict";var s=r(7180);const n={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>(t=Object.assign({actualString:!0},t),s.stringifyString(e,t,r,n))};t.string=n},8630:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),r=s(e);function s(e,t){return function(r,s){Object.defineProperty(e,r,{configurable:!0,writable:!0,value:s}),t&&t(r,s)}}void 0!==t.Reflect&&(r=s(t.Reflect,r)),function(e,t){var r=Object.prototype.hasOwnProperty,s="function"==typeof Symbol,n=s&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=s&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,a={__proto__:[]}instanceof Array,c=!i&&!a,u={create:i?function(){return pe(Object.create(null))}:a?function(){return pe({__proto__:null})}:function(){return pe({})},has:c?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),p="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:ce(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:ue(),h="function"==typeof WeakMap?WeakMap:le(),f=s?Symbol.for("@reflect-metadata:registry"):void 0,m=ne(),g=oe(m);function y(e,t,r,s){if(q(r)){if(!z(e))throw new TypeError;if(!W(t))throw new TypeError;return A(e,t)}if(!z(e))throw new TypeError;if(!F(t))throw new TypeError;if(!F(s)&&!q(s)&&!G(s))throw new TypeError;return G(s)&&(s=void 0),$(e,t,r=V(r),s)}function b(e,t){function r(r,s){if(!F(r))throw new TypeError;if(!q(s)&&!J(s))throw new TypeError;C(e,t,r,s)}return r}function v(e,t,r,s){if(!F(r))throw new TypeError;return q(s)||(s=V(s)),C(e,t,r,s)}function w(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),P(e,t,r)}function _(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),j(e,t,r)}function E(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),R(e,t,r)}function k(e,t,r){if(!F(t))throw new TypeError;return q(r)||(r=V(r)),I(e,t,r)}function T(e,t){if(!F(e))throw new TypeError;return q(t)||(t=V(t)),N(e,t)}function O(e,t){if(!F(e))throw new TypeError;return q(t)||(t=V(t)),x(e,t)}function S(e,t,r){if(!F(t))throw new TypeError;if(q(r)||(r=V(r)),!F(t))throw new TypeError;q(r)||(r=V(r));var s=ae(t,r,!1);return!q(s)&&s.OrdinaryDeleteMetadata(e,t,r)}function A(e,t){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t);if(!q(s)&&!G(s)){if(!W(s))throw new TypeError;t=s}}return t}function $(e,t,r,s){for(var n=e.length-1;n>=0;--n){var o=(0,e[n])(t,r,s);if(!q(o)&&!G(o)){if(!F(o))throw new TypeError;s=o}}return s}function P(e,t,r){if(j(e,t,r))return!0;var s=re(t);return!G(s)&&P(e,s,r)}function j(e,t,r){var s=ae(t,r,!1);return!q(s)&&K(s.OrdinaryHasOwnMetadata(e,t,r))}function R(e,t,r){if(j(e,t,r))return I(e,t,r);var s=re(t);return G(s)?void 0:R(e,s,r)}function I(e,t,r){var s=ae(t,r,!1);if(!q(s))return s.OrdinaryGetOwnMetadata(e,t,r)}function C(e,t,r,s){ae(r,s,!0).OrdinaryDefineOwnMetadata(e,t,r,s)}function N(e,t){var r=x(e,t),s=re(e);if(null===s)return r;var n=N(s,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var o=new d,i=[],a=0,c=r;a<c.length;a++){var u=c[a];o.has(u)||(o.add(u),i.push(u))}for(var l=0,p=n;l<p.length;l++){u=p[l];o.has(u)||(o.add(u),i.push(u))}return i}function x(e,t){var r=ae(e,t,!1);return r?r.OrdinaryOwnMetadataKeys(e,t):[]}function D(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function q(e){return void 0===e}function G(e){return null===e}function L(e){return"symbol"==typeof e}function F(e){return"object"==typeof e?null!==e:"function"==typeof e}function U(e,t){switch(D(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",s=Q(e,n);if(void 0!==s){var o=s.call(e,r);if(F(o))throw new TypeError;return o}return M(e,"default"===r?"number":r)}function M(e,t){if("string"===t){var r=e.toString;if(H(r))if(!F(n=r.call(e)))return n;if(H(s=e.valueOf))if(!F(n=s.call(e)))return n}else{var s;if(H(s=e.valueOf))if(!F(n=s.call(e)))return n;var n,o=e.toString;if(H(o))if(!F(n=o.call(e)))return n}throw new TypeError}function K(e){return!!e}function B(e){return""+e}function V(e){var t=U(e,3);return L(t)?t:B(t)}function z(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function H(e){return"function"==typeof e}function W(e){return"function"==typeof e}function J(e){switch(D(e)){case 3:case 4:return!0;default:return!1}}function Y(e,t){return e===t||e!=e&&t!=t}function Q(e,t){var r=e[t];if(null!=r){if(!H(r))throw new TypeError;return r}}function Z(e){var t=Q(e,o);if(!H(t))throw new TypeError;var r=t.call(e);if(!F(r))throw new TypeError;return r}function X(e){return e.value}function ee(e){var t=e.next();return!t.done&&t}function te(e){var t=e.return;t&&t.call(e)}function re(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var r=e.prototype,s=r&&Object.getPrototypeOf(r);if(null==s||s===Object.prototype)return t;var n=s.constructor;return"function"!=typeof n||n===e?t:n}function se(){var e,r,s,n;q(f)||void 0===t.Reflect||f in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=ie(t.Reflect));var o=new h,i={registerProvider:a,getProvider:u,setProvider:m};return i;function a(t){if(!Object.isExtensible(i))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case q(r):r=t;break;case r===t:break;case q(s):s=t;break;case s===t:break;default:void 0===n&&(n=new d),n.add(t)}}function c(t,o){if(!q(r)){if(r.isProviderFor(t,o))return r;if(!q(s)){if(s.isProviderFor(t,o))return r;if(!q(n))for(var i=Z(n);;){var a=ee(i);if(!a)return;var c=X(a);if(c.isProviderFor(t,o))return te(i),c}}}if(!q(e)&&e.isProviderFor(t,o))return e}function u(e,t){var r,s=o.get(e);return q(s)||(r=s.get(t)),q(r)?(q(r=c(e,t))||(q(s)&&(s=new p,o.set(e,s)),s.set(t,r)),r):r}function l(e){if(q(e))throw new TypeError;return r===e||s===e||!q(n)&&n.has(e)}function m(e,t,r){if(!l(r))throw new Error("Metadata provider not registered.");var s=u(e,t);if(s!==r){if(!q(s))return!1;var n=o.get(e);q(n)&&(n=new p,o.set(e,n)),n.set(t,r)}return!0}}function ne(){var e;return!q(f)&&F(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[f]),q(e)&&(e=se()),!q(f)&&F(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function oe(e){var t=new h,r={isProviderFor:function(e,r){var s=t.get(e);return!q(s)&&s.has(r)},OrdinaryDefineOwnMetadata:i,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:a,OrdinaryDeleteMetadata:c};return m.registerProvider(r),r;function s(s,n,o){var i=t.get(s),a=!1;if(q(i)){if(!o)return;i=new p,t.set(s,i),a=!0}var c=i.get(n);if(q(c)){if(!o)return;if(c=new p,i.set(n,c),!e.setProvider(s,n,r))throw i.delete(n),a&&t.delete(s),new Error("Wrong provider for target.")}return c}function n(e,t,r){var n=s(t,r,!1);return!q(n)&&K(n.has(e))}function o(e,t,r){var n=s(t,r,!1);if(!q(n))return n.get(e)}function i(e,t,r,n){s(r,n,!0).set(e,t)}function a(e,t){var r=[],n=s(e,t,!1);if(q(n))return r;for(var o=Z(n.keys()),i=0;;){var a=ee(o);if(!a)return r.length=i,r;var c=X(a);try{r[i]=c}catch(e){try{te(o)}finally{throw e}}i++}}function c(e,r,n){var o=s(r,n,!1);if(q(o))return!1;if(!o.delete(e))return!1;if(0===o.size){var i=t.get(r);q(i)||(i.delete(n),0===i.size&&t.delete(i))}return!0}}function ie(e){var t=e.defineMetadata,r=e.hasOwnMetadata,s=e.getOwnMetadata,n=e.getOwnMetadataKeys,o=e.deleteMetadata,i=new h;return{isProviderFor:function(e,t){var r=i.get(e);return!(q(r)||!r.has(t))||!!n(e,t).length&&(q(r)&&(r=new d,i.set(e,r)),r.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:s,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:o}}function ae(e,t,r){var s=m.getProvider(e,t);if(!q(s))return s;if(r){if(m.setProvider(e,t,g))return g;throw new Error("Illegal state.")}}function ce(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var s=this._keys.length,n=r+1;n<s;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,Y(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,s)},t.prototype.values=function(){return new r(this._keys,this._values,n)},t.prototype.entries=function(){return new r(this._keys,this._values,i)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){if(!Y(this._cacheKey,e)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(Y(this._keys[r],e)){this._cacheIndex=r;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function s(e,t){return e}function n(e,t){return t}function i(e,t){return[e,t]}}function ue(){return function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}()}function le(){var e=16,t=u.create(),s=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return o(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var e;do{e="@@WeakMap@@"+c()}while(u.has(t,e));return t[e]=!0,e}function o(e,t){if(!r.call(e,s)){if(!t)return;Object.defineProperty(e,s,{value:u.create()})}return e[s]}function i(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):i(t,e),t}return i(new Array(e),e)}function c(){var t=a(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",s=0;s<e;++s){var n=t[s];4!==s&&6!==s&&8!==s||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}function pe(e){return e.__=void 0,delete e.__,e}e("decorate",y),e("metadata",b),e("defineMetadata",v),e("hasMetadata",w),e("hasOwnMetadata",_),e("getMetadata",E),e("getOwnMetadata",k),e("getMetadataKeys",T),e("getOwnMetadataKeys",O),e("deleteMetadata",S)}(r,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},8643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o=r(6250),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>s._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:i,schema:a,schemaCode:c,it:u}=e;if(!i&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let p;const d=()=>null!=p?p:p=(0,n.useFunc)(t,o.default);let h;if(l||i)h=t.let("valid"),e.block$data(h,function(){t.assign(h,!1),t.forOf("v",c,e=>t.if(s._`${d()}(${r}, ${e})`,()=>t.assign(h,!0).break()))});else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,s.or)(...a.map((t,n)=>function(e,t){const n=a[t];return"object"==typeof n&&null!==n?s._`${d()}(${r}, ${e}[${t}])`:s._`${r} === ${n}`}(e,n)))}e.pass(h)}};t.default=i},8644:(e,t,r)=>{"use strict";var s=r(9378);t.flowIndentCheck=function(e,t,r){if("flow-collection"===t?.type){const n=t.end[0];if(n.indent===e&&("]"===n.source||"}"===n.source)&&s.containsNewline(t)){r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}},8660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(5765),n=r(9029),o=r(2023),i=r(4227),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>n._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:p,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,i.alwaysValidSchema)(l,r))return;const h=(0,s.allSchemaProperties)(a.properties),f=(0,s.allSchemaProperties)(a.patternProperties);function m(e){t.code(n._`delete ${c}[${e}]`)}function g(s){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)m(s);else{if(!1===r)return e.setParams({additionalProperty:s}),e.error(),void(p||t.break());if("object"==typeof r&&!(0,i.alwaysValidSchema)(l,r)){const r=t.name("valid");"failing"===d.removeAdditional?(y(s,r,!1),t.if((0,n.not)(r),()=>{e.reset(),m(s)})):(y(s,r),p||t.if((0,n.not)(r),()=>t.break()))}}}function y(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===s&&Object.assign(n,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(n,r)}t.forIn("key",c,r=>{h.length||f.length?t.if(function(r){let o;if(h.length>8){const e=(0,i.schemaRefOrVal)(l,a.properties,"properties");o=(0,s.isOwnProperty)(t,e,r)}else o=h.length?(0,n.or)(...h.map(e=>n._`${r} === ${e}`)):n.nil;return f.length&&(o=(0,n.or)(o,...f.map(t=>n._`${(0,s.usePattern)(e,t)}.test(${r})`))),(0,n.not)(o)}(r),()=>g(r)):g(r)}),e.ok(n._`${u} === ${o.default.errors}`)}};t.default=a},8673:(e,t,r)=>{"use strict";var s=r(484),n=r(9125);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},i=e=>e.replace(/[!,[\]{}]/g,e=>o[e]);class a{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},a.defaultYaml,e),this.tags=Object.assign({},a.defaultTags,t)}clone(){const e=new a(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new a(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:a.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},a.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:a.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},a.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[e,s]=r;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}const[,r,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);const n=this.tags[r];if(n)try{return n+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+i(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(e&&r.length>0&&s.isNode(e.contents)){const t={};n.visit(e.contents,(e,r)=>{s.isNode(r)&&r.tag&&(t[r.tag]=!0)}),o=Object.keys(t)}else o=[];for(const[s,n]of r)"!!"===s&&"tag:yaml.org,2002:"===n||e&&!o.some(e=>e.startsWith(n))||t.push(`%TAG ${s} ${n}`);return t.join("\n")}}a.defaultYaml={explicit:!1,version:"1.2"},a.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=a},8708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(9029),n=r(4227),o=r(2023);function i(e,t){const r=e.const("err",t);e.if(s._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,s._`[${r}]`),s._`${o.default.vErrors}.push(${r})`),e.code(s._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw(s._`new ${e.ValidationError}(${t})`):(r.assign(s._`${n}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>s.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?s.str`"${e}" keyword must be ${t} ($data)`:s.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,n,o){const{it:c}=e,{gen:l,compositeRule:p,allErrors:d}=c,h=u(e,r,n);(null!=o?o:p||d)?i(l,h):a(c,s._`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,s){const{it:n}=e,{gen:c,compositeRule:l,allErrors:p}=n;i(c,u(e,r,s)),l||p||a(n,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(s._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(s._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:a}){if(void 0===i)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",i,o.default.errors,i=>{e.const(c,s._`${o.default.vErrors}[${i}]`),e.if(s._`${c}.instancePath === undefined`,()=>e.assign(s._`${c}.instancePath`,(0,s.strConcat)(o.default.instancePath,a.errorPath))),e.assign(s._`${c}.schemaPath`,s.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(s._`${c}.schema`,r),e.assign(s._`${c}.data`,n))})};const c={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function u(e,t,r){const{createErrors:n}=e.it;return!1===n?s._`{}`:function(e,t,r={}){const{gen:n,it:i}=e,a=[l(i,r),p(e,r)];return function(e,{params:t,message:r},n){const{keyword:i,data:a,schemaValue:u,it:l}=e,{opts:p,propertyName:d,topSchemaRef:h,schemaPath:f}=l;n.push([c.keyword,i],[c.params,"function"==typeof t?t(e):t||s._`{}`]),p.messages&&n.push([c.message,"function"==typeof r?r(e):r]);p.verbose&&n.push([c.schema,u],[c.parentSchema,s._`${h}${f}`],[o.default.data,a]);d&&n.push([c.propertyName,d])}(e,t,a),n.object(...a)}(e,t,r)}function l({errorPath:e},{instancePath:t}){const r=t?s.str`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,r)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let i=o?t:s.str`${t}/${e}`;return r&&(i=s.str`${i}${(0,n.getErrorPath)(r,n.Type.Str)}`),[c.schemaPath,i]}},8727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(8708),n=r(9029),o=r(2023),i={message:"boolean schema is false"};function a(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,s.reportError)(o,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:s}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(n._`${s}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:s}=e;!1===s?(r.var(t,!1),a(e)):r.var(t,!0)}},8847:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>zn});var s=r(1421);function n(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function o(e,t,r,s){if("function"!=typeof r)throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(t)?t.reverse().reduce((t,r)=>o.bind(null,e,r,t,s),r)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,s),r)():r(s))}function i(e,t,r,s){const n=s;e.registry[r]||(e.registry[r]=[]),"before"===t&&(s=(e,t)=>Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))),"after"===t&&(s=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then(e=>(r=e,n(r,t))).then(()=>r)}),"error"===t&&(s=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>n(e,t))),e.registry[r].push({hook:s,orig:n})}function a(e,t,r){if(!e.registry[t])return;const s=e.registry[t].map(e=>e.orig).indexOf(r);-1!==s&&e.registry[t].splice(s,1)}const c=Function.bind,u=c.bind(c);function l(e,t,r){const s=u(a,null).apply(null,r?[t,r]:[t]);e.api={remove:s},e.remove=s,["before","error","after","wrap"].forEach(s=>{const n=r?[t,s,r]:[t,s];e[s]=e.api[s]=u(i,null).apply(null,n)})}const p={Singular:function(){const e=Symbol("Singular"),t={registry:{}},r=o.bind(null,t,e);return l(r,t,e),r},Collection:function(){const e={registry:{}},t=o.bind(null,e);return l(t,e),t}};var d=`octokit-endpoint.js/0.0.0-development ${n()}`;function h(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=h(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function f(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function m(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},f(r),f(r.headers);const n=h(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var g=/\{[^{}}]+\}/g;function y(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function b(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function v(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function w(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function _(e,t,r){return t="+"===e||"#"===e?v(t):w(t),r?w(r)+"="+t:t}function E(e){return null!=e}function k(e){return";"===e||"&"===e||"?"===e}function T(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(E(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(_(t,n,k(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(E).forEach(function(e){o.push(_(t,e,k(t)?r:""))}):Object.keys(n).forEach(function(e){E(n[e])&&o.push(_(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(E).forEach(function(r){e.push(_(t,r))}):Object.keys(n).forEach(function(r){E(n[r])&&(e.push(w(r)),e.push(_(t,n[r].toString())))}),k(t)?o.push(w(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?E(n)&&o.push(w(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(w(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return v(n)}),"/"===e?e:e.replace(/\/$/,"")}function O(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=b(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(g);return t?t.map(y).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:T.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=b(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function S(e,t,r){return O(m(e,t,r))}var A=function e(t,r){const s=m(t,r),n=S.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:m.bind(null,s),parse:O})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:""}}),$=r(6773);class P extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var j={headers:{"user-agent":`octokit-request.js/10.0.7 ${n()}`}};var R=()=>"";async function I(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new P(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new P(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await C(i),new P("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await C(i),new P(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await C(i):i.body,l}async function C(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(R);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(R):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var N=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return I(s.parse(n));const o=(e,t)=>I(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(A,j);function x(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var D=`octokit-endpoint.js/0.0.0-development ${x()}`;function q(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=q(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function G(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function L(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},G(r),G(r.headers);const n=q(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var F=/\{[^{}}]+\}/g;function U(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function M(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function K(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function B(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function V(e,t,r){return t="+"===e||"#"===e?K(t):B(t),r?B(r)+"="+t:t}function z(e){return null!=e}function H(e){return";"===e||"&"===e||"?"===e}function W(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(z(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(V(t,n,H(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(z).forEach(function(e){o.push(V(t,e,H(t)?r:""))}):Object.keys(n).forEach(function(e){z(n[e])&&o.push(V(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(z).forEach(function(r){e.push(V(t,r))}):Object.keys(n).forEach(function(r){z(n[r])&&(e.push(B(r)),e.push(V(t,n[r].toString())))}),H(t)?o.push(B(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?z(n)&&o.push(B(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(B(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return K(n)}),"/"===e?e:e.replace(/\/$/,"")}function J(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=M(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(F);return t?t.map(U).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:W.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=M(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Y(e,t,r){return J(L(e,t,r))}var Q=function e(t,r){const s=L(t,r),n=Y.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:L.bind(null,s),parse:J})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":D},mediaType:{format:""}});class Z extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var X={headers:{"user-agent":`octokit-request.js/10.0.7 ${x()}`}};var ee=()=>"";async function te(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Z(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Z(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await re(i),new Z("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await re(i),new Z(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await re(i):i.body,l}async function re(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(ee);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(ee):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var se=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return te(s.parse(n));const o=(e,t)=>te(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Q,X);var ne=class extends Error{constructor(e,t,r){super("Request failed due to following response errors:\n"+r.errors.map(e=>` - ${e.message}`).join("\n")),this.request=e,this.headers=t,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},oe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],ie=["query","method","url"],ae=/\/api\/v3\/?$/;function ce(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if(r){if("string"==typeof t&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in r)if(ie.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const s="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(s).reduce((e,t)=>oe.includes(t)?(e[t]=s[t],e):(e.variables||(e.variables={}),e.variables[t]=s[t],e),{}),o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;return ae.test(o)&&(n.url=o.replace(ae,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new ne(n,t,e.data)}return e.data.data})}(r,e,t),{defaults:ce.bind(null,r),endpoint:r.endpoint})}ce(se,{headers:{"user-agent":`octokit-graphql.js/0.0.0-development ${x()}`},method:"POST",url:"/graphql"});var ue="(?:[a-zA-Z0-9_-]+)",le=new RegExp(`^${ue}\\.${ue}\\.${ue}$`),pe=le.test.bind(le);async function de(e){const t=pe(e),r=e.startsWith("v1.")||e.startsWith("ghs_"),s=e.startsWith("ghu_");return{type:"token",token:e,tokenType:t?"app":r?"installation":s?"user-to-server":"oauth"}}async function he(e,t,r,s){const n=t.endpoint.merge(r,s);return n.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(n)}var fe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(de.bind(null,e),{hook:he.bind(null,e)})};const me="7.0.6",ge=()=>{},ye=console.warn.bind(console),be=console.error.bind(console);const ve=`octokit-core.js/${me} ${n()}`;class we{static VERSION=me;static defaults(e){return class extends(this){constructor(...t){const r=t[0]||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null):e(r))}}}static plugins=[];static plugin(...e){const t=this.plugins;return class extends(this){static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){const t=new p.Collection,r={baseUrl:N.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var s;if(r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${ve}`:ve,e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=N.defaults(r),this.graphql=(s=this.request,ce(s,{method:"POST",url:"/graphql"})).defaults(r),this.log=function(e={}){return"function"!=typeof e.debug&&(e.debug=ge),"function"!=typeof e.info&&(e.info=ge),"function"!=typeof e.warn&&(e.warn=ye),"function"!=typeof e.error&&(e.error=be),e}(e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...s}=e,n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const r=fe(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});const n=this.constructor;for(let t=0;t<n.plugins.length;++t)Object.assign(this,n.plugins[t](this,e))}request;graphql;log;hook;auth}function _e(e,t,r){const s="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),n="function"==typeof t?t:e.request,o=s.method,i=s.headers;let a=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)&&!("total_commits"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,r=e.data.repository_selection,s=e.data.total_count,n=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;const o=Object.keys(e.data)[0],i=e.data[o];return e.data=i,void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=s,e.data.total_commits=n,e}(await n({method:o,url:a,headers:i}));if(a=((e.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!a&&"total_commits"in e.data){const t=new URL(e.url),r=t.searchParams,s=parseInt(r.get("page")||"1",10);s*parseInt(r.get("per_page")||"250",10)<e.data.total_commits&&(r.set("page",String(s+1)),a=t.toString())}return{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function Ee(e,t,r,s){return"function"==typeof r&&(s=r,r=void 0),ke(e,[],_e(e,t,r)[Symbol.asyncIterator](),s)}function ke(e,t,r,s){return r.next().then(n=>{if(n.done)return t;let o=!1;return t=t.concat(s?s(n.value,function(){o=!0}):n.value.data),o?t:ke(e,t,r,s)})}var Te=Object.assign(Ee,{iterator:_e});function Oe(e){return{paginate:Object.assign(Ee.bind(null,e),{iterator:_e.bind(null,e)})}}Oe.VERSION="0.0.0-development";var Se=class extends Error{constructor(e,t){super(((e,t)=>`The cursor at "${e.join(",")}" did not change its value "${t}" after a page transition. Please make sure your that your query is set up correctly.`)(e.pathInQuery,t)),this.pageInfo=e,this.cursorValue=t,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingCursorChangeError"},Ae=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingPageInfo"},$e=e=>"[object Object]"===Object.prototype.toString.call(e);function Pe(e){const t=je(e,"pageInfo");if(0===t.length)throw new Ae(e);return t}var je=(e,t,r=[])=>{for(const s of Object.keys(e)){const n=[...r,s],o=e[s];if($e(o)){if(o.hasOwnProperty(t))return n;const e=je(o,t,n);if(e.length>0)return e}}return[]},Re=(e,t)=>t.reduce((e,t)=>e[t],e),Ie=(e,t,r)=>{const s=t[t.length-1],n=[...t].slice(0,-1),o=Re(e,n);o[s]="function"==typeof r?r(o[s]):r},Ce=e=>e.hasOwnProperty("hasNextPage"),Ne=e=>(t,r={})=>{let s=!0,n={...r};return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0,value:{}};const r=await e.graphql(t,n),o=(e=>{const t=Pe(e);return{pathInQuery:t,pageInfo:Re(e,[...t,"pageInfo"])}})(r),i=(a=o.pageInfo,Ce(a)?a.endCursor:a.startCursor);var a;if(s=(e=>Ce(e)?e.hasNextPage:e.hasPreviousPage)(o.pageInfo),s&&i===n.cursor)throw new Se(o,i);return n={...n,cursor:i},{done:!1,value:r}}})}},xe=(e,t)=>{if(0===Object.keys(e).length)return Object.assign(e,t);const r=Pe(e),s=[...r,"nodes"],n=Re(t,s);n&&Ie(e,s,e=>[...e,...n]);const o=[...r,"edges"],i=Re(t,o);i&&Ie(e,o,e=>[...e,...i]);const a=[...r,"pageInfo"];return Ie(e,a,Re(t,a)),e},De=e=>{const t=Ne(e);return async(e,r={})=>{let s={};for await(const n of t(e,r))s=xe(s,n);return s}};const qe="17.0.0";var Ge={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const Le=new Map;for(const[e,t]of Object.entries(Ge))for(const[r,s]of Object.entries(t)){const[t,n,o]=s,[i,a]=t.split(/ /),c=Object.assign({method:i,url:a},n);Le.has(e)||Le.set(e,new Map),Le.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}const Fe={has:({scope:e},t)=>Le.get(e).has(t),getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty:(e,t,r)=>(Object.defineProperty(e.cache,t,r),!0),deleteProperty:(e,t)=>(delete e.cache[t],!0),ownKeys:({scope:e})=>[...Le.get(e).keys()],set:(e,t,r)=>e.cache[t]=r,get({octokit:e,scope:t,cache:r},s){if(r[s])return r[s];const n=Le.get(t).get(s);if(!n)return;const{endpointDefaults:o,decorations:i}=n;return r[s]=i?function(e,t,r,s,n){const o=e.request.defaults(s);function i(...s){let i=o.endpoint.merge(...s);if(n.mapToData)return i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:void 0}),o(i);if(n.renamed){const[s,o]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${s}.${o}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const i=o.endpoint.merge(...s);for(const[s,o]of Object.entries(n.renamedParameters))s in i&&(e.log.warn(`"${s}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`),o in i||(i[o]=i[s]),delete i[s]);return o(i)}return o(...s)}return Object.assign(i,o)}(e,t,s,o,i):e.request.defaults(o),r[s]}};function Ue(e){const t={};for(const r of Le.keys())t[r]=new Proxy({octokit:e,scope:r,cache:{}},Fe);return t}function Me(e){return{rest:Ue(e)}}Me.VERSION=qe;var Ke=r(8454);class Be extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}async function Ve(e,t,r,s){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!e.doNotRetry.includes(r.status)){const n=null!=s.request.retries?s.request.retries:e.retries,o=Math.pow((s.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,n,o)}throw r}async function ze(e,t,r,s){const n=new Ke;return n.on("failed",function(t,r){const n=~~t.request.request.retries,o=~~t.request.request.retryAfter;if(s.request.retryCount=r.retryCount+1,n>r.retryCount)return o*e.retryAfterBaseValue}),n.schedule(He.bind(null,e,t,r),s)}async function He(e,t,r,s){const n=await r(r,s);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){return Ve(e,t,new Be(n.data.errors[0].message,500,{request:s,response:n}),s)}return n}function We(e,t){const r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry);return r.enabled&&(e.hook.error("request",Ve.bind(null,r,e)),e.hook.wrap("request",ze.bind(null,r,e))),{retry:{retryRequest:(e,t,r)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r}),e)}}}We.VERSION="0.0.0-development";var Je=()=>Promise.resolve();function Ye(e,t,r){return e.retryLimiter.schedule(Qe,e,t,r)}async function Qe(e,t,r){const{pathname:s}=new URL(r.url,"http://github.test"),n=function(e,t){return"PATCH"===e&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||"POST"===e&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||"/login/oauth/access_token"===t)}(r.method,s),o=!n&&"GET"!==r.method&&"HEAD"!==r.method,i="GET"===r.method&&s.startsWith("/search/"),a=s.startsWith("/graphql"),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=6e4),(o||a)&&await e.write.key(e.id).schedule(c,Je),o&&e.triggersNotification(s)&&await e.notifications.key(e.id).schedule(c,Je),i&&await e.search.key(e.id).schedule(c,Je);const u=(n?e.auth:e.global).key(e.id).schedule(c,t,r);if(a){const e=await u;if(null!=e.data.errors&&e.data.errors.some(e=>"RATE_LIMITED"===e.type)){throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data})}}return u}var Ze=function(e){const t=`^(?:${e.map(e=>e.split("/").map(e=>e.startsWith("{")?"(?:.+?)":e).join("/")).map(e=>`(?:${e})`).join("|")})[^/]*$`;return new RegExp(t,"i")}(["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/issues/{issue_number}/sub_issue","/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"]),Xe=Ze.test.bind(Ze),et={};function tt(e,t){const{enabled:r=!0,Bottleneck:s=Ke,id:n="no-id",timeout:o=12e4,connection:i}=t.throttle||{};if(!r)return{};const a={timeout:o};void 0!==i&&(a.connection=i),null==et.global&&function(e,t){et.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t}),et.auth=new e.Group({id:"octokit-auth",maxConcurrent:1,...t}),et.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t}),et.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t}),et.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})}(s,a);const c=Object.assign({clustering:null!=i,triggersNotification:Xe,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new s,id:n,...et},t.throttle);if("function"!=typeof c.onSecondaryRateLimit||"function"!=typeof c.onRateLimit)throw new Error("octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n ");const u={},l=new s.Events(u);return u.on("secondary-limit",c.onSecondaryRateLimit),u.on("rate-limit",c.onRateLimit),u.on("error",t=>e.log.warn("Error in throttling-plugin limit handler",t)),c.retryLimiter.on("failed",async function(t,r){const[s,n,o]=r.args,{pathname:i}=new URL(o.url,"http://github.test");if(!(i.startsWith("/graphql")&&401!==t.status)&&403!==t.status&&429!==t.status)return;const a=~~n.retryCount;n.retryCount=a,o.request.retryCount=a;const{wantRetry:c,retryAfter:u=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||s.fallbackSecondaryRateRetryAfter;return{wantRetry:await l.trigger("secondary-limit",r,o,e,a),retryAfter:r}}if(null!=t.response.headers&&"0"===t.response.headers["x-ratelimit-remaining"]||(t.response.data?.errors??[]).some(e=>"RATE_LIMITED"===e.type)){const r=new Date(1e3*~~t.response.headers["x-ratelimit-reset"]).getTime(),s=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);return{wantRetry:await l.trigger("rate-limit",s,o,e,a),retryAfter:s}}return{}}();return c?(n.retryCount++,u*s.retryAfterBaseValue):void 0}),e.hook.wrap("request",Ye.bind(null,c)),{}}function rt(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}tt.VERSION="0.0.0-development",tt.triggersNotification=Xe;var st=`octokit-endpoint.js/0.0.0-development ${rt()}`;function nt(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=nt(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function ot(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function it(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},ot(r),ot(r.headers);const n=nt(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var at=/\{[^{}}]+\}/g;function ct(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function ut(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function lt(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function pt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function dt(e,t,r){return t="+"===e||"#"===e?lt(t):pt(t),r?pt(r)+"="+t:t}function ht(e){return null!=e}function ft(e){return";"===e||"&"===e||"?"===e}function mt(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(ht(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(dt(t,n,ft(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(ht).forEach(function(e){o.push(dt(t,e,ft(t)?r:""))}):Object.keys(n).forEach(function(e){ht(n[e])&&o.push(dt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(ht).forEach(function(r){e.push(dt(t,r))}):Object.keys(n).forEach(function(r){ht(n[r])&&(e.push(pt(r)),e.push(dt(t,n[r].toString())))}),ft(t)?o.push(pt(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?ht(n)&&o.push(pt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(pt(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return lt(n)}),"/"===e?e:e.replace(/\/$/,"")}function gt(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=ut(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(at);return t?t.map(ct).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:mt.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=ut(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function yt(e,t,r){return gt(it(e,t,r))}var bt=function e(t,r){const s=it(t,r),n=yt.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:it.bind(null,s),parse:gt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":st},mediaType:{format:""}});class vt extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var wt={headers:{"user-agent":`octokit-request.js/10.0.7 ${rt()}`}};var _t=()=>"";async function Et(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new vt(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new vt(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await kt(i),new vt("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await kt(i),new vt(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await kt(i):i.body,l}async function kt(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(_t);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(_t):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Tt=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return Et(s.parse(n));const o=(e,t)=>Et(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(bt,wt);function Ot(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var St=`octokit-endpoint.js/0.0.0-development ${Ot()}`;function At(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=At(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function $t(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Pt(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},$t(r),$t(r.headers);const n=At(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var jt=/\{[^{}}]+\}/g;function Rt(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function It(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Ct(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Nt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function xt(e,t,r){return t="+"===e||"#"===e?Ct(t):Nt(t),r?Nt(r)+"="+t:t}function Dt(e){return null!=e}function qt(e){return";"===e||"&"===e||"?"===e}function Gt(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(Dt(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(xt(t,n,qt(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(Dt).forEach(function(e){o.push(xt(t,e,qt(t)?r:""))}):Object.keys(n).forEach(function(e){Dt(n[e])&&o.push(xt(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(Dt).forEach(function(r){e.push(xt(t,r))}):Object.keys(n).forEach(function(r){Dt(n[r])&&(e.push(Nt(r)),e.push(xt(t,n[r].toString())))}),qt(t)?o.push(Nt(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?Dt(n)&&o.push(Nt(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Nt(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Ct(n)}),"/"===e?e:e.replace(/\/$/,"")}function Lt(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=It(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(jt);return t?t.map(Rt).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:Gt.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=It(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Ft(e,t,r){return Lt(Pt(e,t,r))}var Ut=function e(t,r){const s=Pt(t,r),n=Ft.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Pt.bind(null,s),parse:Lt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":St},mediaType:{format:""}});class Mt extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var Kt={headers:{"user-agent":`octokit-request.js/10.0.7 ${Ot()}`}};var Bt=()=>"";async function Vt(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Mt(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Mt(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await zt(i),new Mt("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await zt(i),new Mt(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await zt(i):i.body,l}async function zt(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(Bt);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(Bt):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Ht=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return Vt(s.parse(n));const o=(e,t)=>Vt(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Ut,Kt);function Wt(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var Jt=`octokit-endpoint.js/0.0.0-development ${Wt()}`;function Yt(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=Yt(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function Qt(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Zt(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},Qt(r),Qt(r.headers);const n=Yt(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var Xt=/\{[^{}}]+\}/g;function er(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function tr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function rr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function sr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function nr(e,t,r){return t="+"===e||"#"===e?rr(t):sr(t),r?sr(r)+"="+t:t}function or(e){return null!=e}function ir(e){return";"===e||"&"===e||"?"===e}function ar(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(or(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(nr(t,n,ir(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(or).forEach(function(e){o.push(nr(t,e,ir(t)?r:""))}):Object.keys(n).forEach(function(e){or(n[e])&&o.push(nr(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(or).forEach(function(r){e.push(nr(t,r))}):Object.keys(n).forEach(function(r){or(n[r])&&(e.push(sr(r)),e.push(nr(t,n[r].toString())))}),ir(t)?o.push(sr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?or(n)&&o.push(sr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(sr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return rr(n)}),"/"===e?e:e.replace(/\/$/,"")}function cr(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=tr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Xt);return t?t.map(er).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:ar.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=tr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function ur(e,t,r){return cr(Zt(e,t,r))}var lr=function e(t,r){const s=Zt(t,r),n=ur.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Zt.bind(null,s),parse:cr})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Jt},mediaType:{format:""}});class pr extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var dr={headers:{"user-agent":`octokit-request.js/10.0.7 ${Wt()}`}};var hr=()=>"";async function fr(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new pr(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new pr(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await mr(i),new pr("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await mr(i),new pr(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await mr(i):i.body,l}async function mr(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(hr);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(hr):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var gr=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return fr(s.parse(n));const o=(e,t)=>fr(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(lr,dr);function yr(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var br=`octokit-endpoint.js/0.0.0-development ${yr()}`;function vr(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=vr(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function wr(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function _r(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},wr(r),wr(r.headers);const n=vr(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var Er=/\{[^{}}]+\}/g;function kr(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function Tr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Or(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Sr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Ar(e,t,r){return t="+"===e||"#"===e?Or(t):Sr(t),r?Sr(r)+"="+t:t}function $r(e){return null!=e}function Pr(e){return";"===e||"&"===e||"?"===e}function jr(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if($r(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(Ar(t,n,Pr(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter($r).forEach(function(e){o.push(Ar(t,e,Pr(t)?r:""))}):Object.keys(n).forEach(function(e){$r(n[e])&&o.push(Ar(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter($r).forEach(function(r){e.push(Ar(t,r))}):Object.keys(n).forEach(function(r){$r(n[r])&&(e.push(Sr(r)),e.push(Ar(t,n[r].toString())))}),Pr(t)?o.push(Sr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?$r(n)&&o.push(Sr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Sr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Or(n)}),"/"===e?e:e.replace(/\/$/,"")}function Rr(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=Tr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(Er);return t?t.map(kr).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:jr.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=Tr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function Ir(e,t,r){return Rr(_r(e,t,r))}var Cr=function e(t,r){const s=_r(t,r),n=Ir.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:_r.bind(null,s),parse:Rr})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":br},mediaType:{format:""}});class Nr extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var xr={headers:{"user-agent":`octokit-request.js/10.0.7 ${yr()}`}};var Dr=()=>"";async function qr(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new Nr(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new Nr(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await Gr(i),new Nr("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await Gr(i),new Nr(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await Gr(i):i.body,l}async function Gr(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(Dr);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(Dr):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var Lr=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return qr(s.parse(n));const o=(e,t)=>qr(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(Cr,xr);function Fr(e){const t=e.clientType||"oauth-app",r=e.baseUrl||"https://github.com",s={clientType:t,allowSignup:!1!==e.allowSignup,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:""};if("oauth-app"===t){const t="scopes"in e?e.scopes:[];s.scopes="string"==typeof t?t.split(/[,\s]+/).filter(Boolean):t}return s.url=function(e,t){const r={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let s=e;return Object.keys(r).filter(e=>null!==t[e]).filter(e=>"scopes"!==e||"github-app"!==t.clientType&&(!Array.isArray(t[e])||t[e].length>0)).map(e=>[r[e],`${t[e]}`]).forEach(([e,t],r)=>{s+=0===r?"?":"&",s+=`${e}=${encodeURIComponent(t)}`}),s}(`${r}/login/oauth/authorize`,s),s}function Ur(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var Mr=`octokit-endpoint.js/0.0.0-development ${Ur()}`;function Kr(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(s=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[s])?Object.assign(r,{[s]:t[s]}):s in e?r[s]=Kr(e[s],t[s]):Object.assign(r,{[s]:t[s]})}),r}function Br(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Vr(e,t,r){if("string"==typeof t){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else r=Object.assign({},t);var s;r.headers=(s=r.headers)?Object.keys(s).reduce((e,t)=>(e[t.toLowerCase()]=s[t],e),{}):{},Br(r),Br(r.headers);const n=Kr(e||{},r);return"/graphql"===r.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(e=>e.replace(/-preview/,""))),n}var zr=/\{[^{}}]+\}/g;function Hr(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function Wr(e,t){const r={__proto__:null};for(const s of Object.keys(e))-1===t.indexOf(s)&&(r[s]=e[s]);return r}function Jr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function Yr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Qr(e,t,r){return t="+"===e||"#"===e?Jr(t):Yr(t),r?Yr(r)+"="+t:t}function Zr(e){return null!=e}function Xr(e){return";"===e||"&"===e||"?"===e}function es(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,s,n){if(s){let e="";const n=[];if(-1!==r.indexOf(s.charAt(0))&&(e=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,s){var n=e[r],o=[];if(Zr(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),s&&"*"!==s&&(n=n.substring(0,parseInt(s,10))),o.push(Qr(t,n,Xr(t)?r:""));else if("*"===s)Array.isArray(n)?n.filter(Zr).forEach(function(e){o.push(Qr(t,e,Xr(t)?r:""))}):Object.keys(n).forEach(function(e){Zr(n[e])&&o.push(Qr(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(Zr).forEach(function(r){e.push(Qr(t,r))}):Object.keys(n).forEach(function(r){Zr(n[r])&&(e.push(Yr(r)),e.push(Qr(t,n[r].toString())))}),Xr(t)?o.push(Yr(r)+"="+e.join(",")):0!==e.length&&o.push(e.join(","))}else";"===t?Zr(n)&&o.push(Yr(r)):""!==n||"&"!==t&&"?"!==t?""===n&&o.push(""):o.push(Yr(r)+"=");return o}(t,e,s[1],s[2]||s[3]))}),e&&"+"!==e){var o=",";return"?"===e?o="&":"#"!==e&&(o=e),(0!==n.length?e:"")+n.join(o)}return n.join(",")}return Jr(n)}),"/"===e?e:e.replace(/\/$/,"")}function ts(e){let t,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),o=Wr(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(zr);return t?t.map(Hr).reduce((e,t)=>e.concat(t),[]):[]}(s);var a;s=(a=s,{expand:es.bind(null,a)}).expand(o),/^http/.test(s)||(s=e.baseUrl+s);const c=Wr(o,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const r=/\?/.test(e)?"&":"?",s=Object.keys(t);return 0===s.length?e:e+r+s.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(s,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:s,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function rs(e,t,r){return ts(Vr(e,t,r))}var ss=function e(t,r){const s=Vr(t,r),n=rs.bind(null,s);return Object.assign(n,{DEFAULTS:s,defaults:e.bind(null,s),merge:Vr.bind(null,s),parse:ts})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Mr},mediaType:{format:""}});class ns extends Error{name;status;request;response;constructor(e,t,r){super(e,{cause:r.cause}),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in r&&(this.response=r.response);const s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}}var os={headers:{"user-agent":`octokit-request.js/10.0.7 ${Ur()}`}};var is=()=>"";async function as(e){const t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const r=e.request?.log||console,s=!1!==e.request?.parseSuccessResponseBody,n=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,o=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)]));let i;try{i=await t(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if("AbortError"===t.name)throw t.status=500,t;r=t.message,"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"==typeof t.cause&&(r=t.cause))}const s=new ns(r,500,{request:e});throw s.cause=t,s}const a=i.status,c=i.url,u={};for(const[e,t]of i.headers)u[e]=t;const l={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),s=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${s?`. See ${s}`:""}`)}if(204===a||205===a)return l;if("HEAD"===e.method){if(a<400)return l;throw new ns(i.statusText,a,{response:l,request:e})}if(304===a)throw l.data=await cs(i),new ns("Not modified",a,{response:l,request:e});if(a>=400)throw l.data=await cs(i),new ns(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(l.data),a,{response:l,request:e});return l.data=s?await cs(i):i.body,l}async function cs(e){const t=e.headers.get("content-type");if(!t)return e.text().catch(is);const r=(0,$.xL)(t);if(!function(e){return"application/json"===e.type||"application/scim+json"===e.type}(r))return r.type.startsWith("text/")||"utf-8"===r.parameters.charset?.toLowerCase()?e.text().catch(is):e.arrayBuffer().catch(()=>new ArrayBuffer(0));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(e){return t}}}var us=function e(t,r){const s=t.defaults(r);return Object.assign(function(t,r){const n=s.merge(t,r);if(!n.request||!n.request.hook)return as(s.parse(n));const o=(e,t)=>as(s.parse(s.merge(e,t)));return Object.assign(o,{endpoint:s,defaults:e.bind(null,s)}),n.request.hook(o,n)},{endpoint:s,defaults:e.bind(null,s)})}(ss,os);function ls(e){const t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?"https://github.com":t.baseUrl.replace("/api/v3","")}async function ps(e,t,r){const s={baseUrl:ls(e),headers:{accept:"application/json"},...r},n=await e(t,s);if("error"in n.data){const r=new ns(`${n.data.error_description} (${n.data.error}, ${n.data.error_uri})`,400,{request:e.endpoint.merge(t,s)});throw r.response=n,r}return n}function ds(e,t){return new Date(e+1e3*t).toISOString()}async function hs(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,device_code:e.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),s={clientType:e.clientType,clientId:e.clientId,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in e&&(s.clientSecret=e.clientSecret),"github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();s.refreshToken=r.data.refresh_token,s.expiresAt=fs(e,r.data.expires_in),s.refreshTokenExpiresAt=fs(e,r.data.refresh_token_expires_in)}delete s.scopes}return{...r,authentication:s}}function fs(e,t){return new Date(e+1e3*t).toISOString()}async function ms(e){const t=e.request||us,r=await t("POST /applications/{client_id}/token",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),s={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:r.data.scopes};return r.data.expires_at&&(s.expiresAt=r.data.expires_at),"github-app"===e.clientType&&delete s.scopes,{...r,authentication:s}}async function gs(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,grant_type:"refresh_token",refresh_token:e.refreshToken}),s=new Date(r.headers.date).getTime(),n={clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,refreshToken:r.data.refresh_token,expiresAt:ys(s,r.data.expires_in),refreshTokenExpiresAt:ys(s,r.data.refresh_token_expires_in)};return{...r,authentication:n}}function ys(e,t){return new Date(e+1e3*t).toISOString()}async function bs(e){const t=e.request||us,r=btoa(`${e.clientId}:${e.clientSecret}`),s=await t("PATCH /applications/{client_id}/token",{headers:{authorization:`basic ${r}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.data.token,scopes:s.data.scopes};return s.data.expires_at&&(n.expiresAt=s.data.expires_at),"github-app"===e.clientType&&delete n.scopes,{...s,authentication:n}}async function vs(e){return(e.request||us)("DELETE /applications/{client_id}/token",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function ws(e){return(e.request||us)("DELETE /applications/{client_id}/grant",{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function _s(e,t){const r=function(e,t){if(!0===t.refresh)return!1;if(!e.authentication)return!1;if("github-app"===e.clientType)return e.authentication;const r=e.authentication,s=("scopes"in t&&t.scopes||e.scopes).join(" "),n=r.scopes.join(" ");return s===n&&r}(e,t.auth);if(r)return r;const{data:s}=await async function(e){const t=e.request||us,r={client_id:e.clientId};return"scopes"in e&&Array.isArray(e.scopes)&&(r.scope=e.scopes.join(" ")),ps(t,"POST /login/device/code",r)}({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(s);const n=await ks(t.request||e.request,e.clientId,e.clientType,s);return e.authentication=n,n}async function Es(e){await new Promise(t=>setTimeout(t,1e3*e))}async function ks(e,t,r,s){try{const n={clientId:t,request:e,code:s.device_code},{authentication:o}="oauth-app"===r?await hs({...n,clientType:"oauth-app"}):await hs({...n,clientType:"github-app"});return{type:"token",tokenType:"oauth",...o}}catch(n){if(!n.response)throw n;const o=n.response.data.error;if("authorization_pending"===o)return await Es(s.interval),ks(e,t,r,s);if("slow_down"===o)return await Es(s.interval+7),ks(e,t,r,s);throw n}}async function Ts(e,t){return _s(e,{auth:t})}async function Os(e,t,r,s){let n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);const{token:o}=await _s(e,{request:t,auth:{type:"oauth"}});return n.headers.authorization=`token ${o}`,t(n)}function Ss(e){const t=e.request||Lr.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/0.0.0-development ${yr()}`}}),{request:r=t,...s}=e,n="github-app"===e.clientType?{...s,clientType:"github-app",request:r}:{...s,clientType:"oauth-app",request:r,scopes:e.scopes||[]};if(!e.clientId)throw new Error('[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)');if(!e.onVerification)throw new Error('[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)');return Object.assign(Ts.bind(null,n),{hook:Os.bind(null,n)})}var As="0.0.0-development";async function $s(e){if("code"in e.strategyOptions){const{authentication:t}=await async function(e){const t=e.request||us,r=await ps(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),s={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();s.refreshToken=r.data.refresh_token,s.expiresAt=ds(e,r.data.expires_in),s.refreshTokenExpiresAt=ds(e,r.data.refresh_token_expires_in)}delete s.scopes}return{...r,authentication:s}}({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:"token",tokenType:"oauth",...t}}if("onVerification"in e.strategyOptions){const t=Ss({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request}),r=await t({type:"oauth"});return{clientSecret:e.clientSecret,...r}}if("token"in e.strategyOptions)return{type:"token",tokenType:"oauth",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw new Error("[@octokit/auth-oauth-user] Invalid strategy options")}async function Ps(e,t={}){if(e.authentication||(e.authentication=(e.clientType,await $s(e))),e.authentication.invalid)throw new Error("[@octokit/auth-oauth-user] Token is invalid");const r=e.authentication;if("expiresAt"in r&&("refresh"===t.type||new Date(r.expiresAt)<new Date)){const{authentication:t}=await gs({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:r.refreshToken,request:e.request});e.authentication={tokenType:"oauth",type:"token",...t}}if("refresh"===t.type){if("oauth-app"===e.clientType)throw new Error("[@octokit/auth-oauth-user] OAuth Apps do not support expiring tokens");if(!r.hasOwnProperty("expiresAt"))throw new Error("[@octokit/auth-oauth-user] Refresh token missing");await(e.onTokenCreated?.(e.authentication,{type:t.type}))}if("check"===t.type||"reset"===t.type){const r="check"===t.type?ms:bs;try{const{authentication:s}=await r({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request});return e.authentication={tokenType:"oauth",type:"token",...s},"reset"===t.type&&await(e.onTokenCreated?.(e.authentication,{type:t.type})),e.authentication}catch(t){throw 404===t.status&&(t.message="[@octokit/auth-oauth-user] Token is invalid",e.authentication.invalid=!0),t}}if("delete"===t.type||"deleteAuthorization"===t.type){const r="delete"===t.type?vs:ws;try{await r({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request})}catch(e){if(404!==e.status)throw e}return e.authentication.invalid=!0,e.authentication}return e.authentication}var js=/\/applications\/[^/]+\/(token|grant)s?/;function Rs(e){return e&&js.test(e)}async function Is(e,t,r,s={}){const n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);if(Rs(n.url)){const r=btoa(`${e.clientId}:${e.clientSecret}`);return n.headers.authorization=`basic ${r}`,t(n)}const{token:o}=(e.clientType,await Ps({...e,request:t}));return n.headers.authorization="token "+o,t(n)}function Cs({clientId:e,clientSecret:t,clientType:r="oauth-app",request:s=gr.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${As} ${Wt()}`}}),onTokenCreated:n,...o}){const i=Object.assign({clientType:r,clientId:e,clientSecret:t,onTokenCreated:n,strategyOptions:o,request:s});return Object.assign(Ps.bind(null,i),{hook:Is.bind(null,i)})}async function Ns(e,t){if("oauth-app"===t.type)return{type:"oauth-app",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`}};if("factory"in t){const{type:r,...s}={...t,...e};return t.factory(s)}const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.request,...t};return(e.clientType,await Cs({...r,clientType:e.clientType}))()}async function xs(e,t,r,s){let n=t.endpoint.merge(r,s);if(/\/login\/(oauth\/access_token|device\/code)$/.test(n.url))return t(n);if("github-app"===e.clientType&&!Rs(n.url))throw new Error(`[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "${n.method} ${n.url}" is not supported.`);const o=btoa(`${e.clientId}:${e.clientSecret}`);n.headers.authorization=`basic ${o}`;try{return await t(n)}catch(e){if(401!==e.status)throw e;throw e.message=`[@octokit/auth-oauth-app] "${n.method} ${n.url}" does not support clientId/clientSecret basic authentication.`,e}}Cs.VERSION=As;function Ds(e){const t=Object.assign({request:Ht.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/0.0.0-development ${Ot()}`}}),clientType:"oauth-app"},e);return Object.assign(Ns.bind(null,t),{hook:xs.bind(null,t)})}function qs(e){return e.includes("-----BEGIN RSA PRIVATE KEY-----")}function Gs(e){const t=new ArrayBuffer(e.length),r=new Uint8Array(t);for(let t=0,s=e.length;t<s;t++)r[t]=e.charCodeAt(t);return t}function Ls(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Fs(e){return Ls(btoa(JSON.stringify(e)))}const Us=require("node:crypto");async function Ms({privateKey:e,payload:t}){const r=function(e){return qs(e)?(0,Us.createPrivateKey)(e).export({type:"pkcs8",format:"pem"}):e}(e);if(qs(r))throw new Error("[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats");if(function(e){return e.includes("-----BEGIN OPENSSH PRIVATE KEY-----")}(r))throw new Error("[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats");const s={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=function(e){const t=e.trim().split("\n").slice(1,-1).join("");return Gs(atob(t))}(r),o=await Us.subtle.importKey("pkcs8",n,s,!1,["sign"]),i=function(e,t){return`${Fs(e)}.${Fs(t)}`}({alg:"RS256",typ:"JWT"},t),a=Gs(i);return`${i}.${function(e){for(var t="",r=new Uint8Array(e),s=r.byteLength,n=0;n<s;n++)t+=String.fromCharCode(r[n]);return Ls(btoa(t))}(await Us.subtle.sign(s.name,o,a))}`}class Ks{constructor(e=1e3,t=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(t)||t<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=t}bumpLru(e){if(this.last===e)return;const t=this.last,r=e.next,s=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=t,t.next=e,null!==s&&(s.next=r),null!==r&&(r.prev=s),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){const t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}}deleteMany(e){for(var t=0;t<e.length;t++)this.delete(e[t])}evict(){if(this.size>0){const e=this.first;delete this.items[e.key],0===--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){const t=this.items[e];return this.ttl>0&&t.expiry<=Date.now()?void this.delete(e):(this.bumpLru(t),t.value)}}getMany(e){const t=[];for(var r=0;r<e.length;r++)t.push(this.get(e[r]));return t}keys(){return Object.keys(this.items)}set(e,t){if(Object.prototype.hasOwnProperty.call(this.items,e)){const r=this.items[e];return r.value=t,r.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,void(this.last!==r&&this.bumpLru(r))}this.max>0&&this.size===this.max&&this.evict();const r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t};this.items[e]=r,1===++this.size?this.first=r:this.last.next=r,this.last=r}}async function Bs({appId:e,privateKey:t,timeDifference:r,createJwt:s}){try{if(s){const{jwt:t,expiresAt:n}=await s(e,r);return{type:"app",token:t,appId:e,expiresAt:n}}const n={id:e,privateKey:t};r&&Object.assign(n,{now:Math.floor(Date.now()/1e3)+r});const o=await async function({id:e,privateKey:t,now:r=Math.floor(Date.now()/1e3)}){const s=t.replace(/\\n/g,"\n"),n=r-30,o=n+600,i={iat:n,exp:o,iss:e};return{appId:e,expiration:o,token:await Ms({privateKey:s,payload:i})}}(n);return{type:"app",token:o.token,appId:o.appId,expiresAt:new Date(1e3*o.expiration).toISOString()}}catch(e){throw"-----BEGIN RSA PRIVATE KEY-----"===t?new Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):e}}function Vs({installationId:e,permissions:t={},repositoryIds:r=[],repositoryNames:s=[]}){const n=Object.keys(t).sort().map(e=>"read"===t[e]?e:`${e}!`).join(",");return[e,r.sort().join(","),s.join(","),n].filter(Boolean).join("|")}function zs({installationId:e,token:t,createdAt:r,expiresAt:s,repositorySelection:n,permissions:o,repositoryIds:i,repositoryNames:a,singleFileName:c}){return Object.assign({type:"token",tokenType:"installation",token:t,installationId:e,permissions:o,createdAt:r,expiresAt:s,repositorySelection:n},i?{repositoryIds:i}:null,a?{repositoryNames:a}:null,c?{singleFileName:c}:null)}async function Hs(e,t,r){const s=Number(t.installationId||e.installationId);if(!s)throw new Error("[@octokit/auth-app] installationId option is required for installation authentication.");if(t.factory){const{type:r,factory:s,oauthApp:n,...o}={...e,...t};return s(o)}const n=r||e.request;return function(e,t,r){const s=Vs(t);if(Ws.has(s))return Ws.get(s);const n=async function(e,t,r){if(!t.refresh){const r=await async function(e,t){const r=Vs(t),s=await e.get(r);if(!s)return;const[n,o,i,a,c,u]=s.split("|");return{token:n,createdAt:o,expiresAt:i,permissions:t.permissions||c.split(/,/).reduce((e,t)=>(/!$/.test(t)?e[t.slice(0,-1)]="write":e[t]="read",e),{}),repositoryIds:t.repositoryIds,repositoryNames:t.repositoryNames,singleFileName:u,repositorySelection:a}}(e.cache,t);if(r){const{token:e,createdAt:s,expiresAt:n,permissions:o,repositoryIds:i,repositoryNames:a,singleFileName:c,repositorySelection:u}=r;return zs({installationId:t.installationId,token:e,createdAt:s,expiresAt:n,permissions:o,repositorySelection:u,repositoryIds:i,repositoryNames:a,singleFileName:c})}}const s=await Bs(e),n={installation_id:t.installationId,mediaType:{previews:["machine-man"]},headers:{authorization:`bearer ${s.token}`}};t.repositoryIds&&Object.assign(n,{repository_ids:t.repositoryIds});t.repositoryNames&&Object.assign(n,{repositories:t.repositoryNames});t.permissions&&Object.assign(n,{permissions:t.permissions});const{data:{token:o,expires_at:i,repositories:a,permissions:c,repository_selection:u,single_file:l}}=await r("POST /app/installations/{installation_id}/access_tokens",n),p=c||{},d=u||"all",h=a?a.map(e=>e.id):void 0,f=a?a.map(e=>e.name):void 0,m=(new Date).toISOString(),g={token:o,createdAt:m,expiresAt:i,repositorySelection:d,permissions:p,repositoryIds:h,repositoryNames:f};l&&Object.assign(n,{singleFileName:l});await async function(e,t,r){const s=Vs(t),n=t.permissions?"":Object.keys(r.permissions).map(e=>`${e}${"write"===r.permissions[e]?"!":""}`).join(","),o=[r.token,r.createdAt,r.expiresAt,r.repositorySelection,n,r.singleFileName].join("|");await e.set(s,o)}(e.cache,t,g);const y={installationId:t.installationId,token:o,createdAt:m,expiresAt:i,repositorySelection:d,permissions:p,repositoryIds:h,repositoryNames:f};l&&Object.assign(y,{singleFileName:l});return zs(y)}(e,t,r).finally(()=>Ws.delete(s));return Ws.set(s,n),n}(e,{...t,installationId:s},n)}var Ws=new Map;async function Js(e,t){switch(t.type){case"app":return Bs(e);case"oauth-app":return e.oauthApp({type:"oauth-app"});case"installation":return Hs(e,{...t,type:"installation"});case"oauth-user":return e.oauthApp(t);default:throw new Error(`Invalid auth type: ${t.type}`)}}var Ys=function(e){const t=`^(?:${e.map(e=>e.split("/").map(e=>e.startsWith("{")?"(?:.+?)":e).join("/")).map(e=>`(?:${e})`).join("|")})$`;return new RegExp(t,"i")}(["/app","/app/hook/config","/app/hook/deliveries","/app/hook/deliveries/{delivery_id}","/app/hook/deliveries/{delivery_id}/attempts","/app/installations","/app/installations/{installation_id}","/app/installations/{installation_id}/access_tokens","/app/installations/{installation_id}/suspended","/app/installation-requests","/marketplace_listing/accounts/{account_id}","/marketplace_listing/plan","/marketplace_listing/plans","/marketplace_listing/plans/{plan_id}/accounts","/marketplace_listing/stubbed/accounts/{account_id}","/marketplace_listing/stubbed/plan","/marketplace_listing/stubbed/plans","/marketplace_listing/stubbed/plans/{plan_id}/accounts","/orgs/{org}/installation","/repos/{owner}/{repo}/installation","/users/{username}/installation"]);async function Qs(e,t,r,s){const n=t.endpoint.merge(r,s),o=n.url;if(/\/login\/oauth\/access_token$/.test(o))return t(n);if(function(e){return!!e&&Ys.test(e.split("?")[0])}(o.replace(t.endpoint.DEFAULTS.baseUrl,""))){const{token:r}=await Bs(e);let s;n.headers.authorization=`bearer ${r}`;try{s=await t(n)}catch(r){if(function(e){return!(e.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||e.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}(r))throw r;if(void 0===r.response.headers.date)throw r;const s=Math.floor((Date.parse(r.response.headers.date)-Date.parse((new Date).toString()))/1e3);e.log.warn(r.message),e.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${s} seconds. Retrying request with the difference accounted for.`);const{token:o}=await Bs({...e,timeDifference:s});return n.headers.authorization=`bearer ${o}`,t(n)}return s}if(Rs(o)){const r=await e.oauthApp({type:"oauth-app"});return n.headers.authorization=r.headers.authorization,t(n)}const{token:i,createdAt:a}=await Hs(e,{},t.defaults({baseUrl:n.baseUrl}));return n.headers.authorization=`token ${i}`,Zs(e,t,n,a)}async function Zs(e,t,r,s,n=0){const o=+new Date-+new Date(s);try{return await t(r)}catch(i){if(401!==i.status)throw i;if(o>=5e3)throw n>0&&(i.message=`After ${n} retries within ${o/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`),i;const a=1e3*++n;return e.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${n}, wait: ${a/1e3}s)`),await new Promise(e=>setTimeout(e,a)),Zs(e,t,r,s,n)}}function Xs(e){if(!e.appId)throw new Error("[@octokit/auth-app] appId option is required");if(!e.privateKey&&!e.createJwt)throw new Error("[@octokit/auth-app] privateKey option is required");if(e.privateKey&&e.createJwt)throw new Error("[@octokit/auth-app] privateKey and createJwt options are mutually exclusive");if("installationId"in e&&!e.installationId)throw new Error("[@octokit/auth-app] installationId is set to a falsy value");const t=e.log||{};"function"!=typeof t.warn&&(t.warn=console.warn.bind(console));const r=e.request||Tt.defaults({headers:{"user-agent":`octokit-auth-app.js/8.1.2 ${rt()}`}}),s=Object.assign({request:r,cache:new Ks(15e3,354e4)},e,e.installationId?{installationId:Number(e.installationId)}:{},{log:t,oauthApp:Ds({clientType:"github-app",clientId:e.clientId||"",clientSecret:e.clientSecret||"",request:r})});return Object.assign(Js.bind(null,s),{hook:Qs.bind(null,s)})}async function en(e){return{type:"unauthenticated",reason:e}}var tn=/\babuse\b/i;async function rn(e,t,r,s){const n=t.endpoint.merge(r,s);return t(n).catch(t=>{if(404===t.status)throw t.message=`Not found. May be due to lack of authentication. Reason: ${e}`,t;if(function(e){return 403===e.status&&!!e.response&&"0"===e.response.headers["x-ratelimit-remaining"]}(t))throw t.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${e}`,t;if(function(e){return 403===e.status&&tn.test(e.message)}(t))throw t.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${e}`,t;if(401===t.status)throw t.message=`Unauthorized. "${n.method} ${n.url}" failed most likely due to lack of authentication. Reason: ${e}`,t;throw t.status>=400&&t.status<500&&(t.message=t.message.replace(/\.?$/,`. May be caused by lack of authentication (${e}).`)),t})}var sn=function(e){if(!e||!e.reason)throw new Error("[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth");return Object.assign(en.bind(null,e.reason),{hook:rn.bind(null,e.reason)})},nn="8.0.3";function on(e,t,r){if(Array.isArray(t))for(const s of t)on(e,s,r);else e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(r)}var an=we.defaults({userAgent:`octokit-oauth-app.js/${nn} ${"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}`});async function cn(e,t){const{name:r,action:s}=t;if(e.eventHandlers[`${r}.${s}`])for(const n of e.eventHandlers[`${r}.${s}`])await n(t);if(e.eventHandlers[r])for(const s of e.eventHandlers[r])await s(t)}async function un(e,t){return e.octokit.auth({type:"oauth-user",...t,async factory(t){const r=new e.Octokit({authStrategy:Cs,auth:t}),s=await r.auth({type:"get"});return await cn(e,{name:"token",action:"created",token:s.token,scopes:s.scopes,authentication:s,octokit:r}),r}})}function ln(e,t){const r={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return function({request:e=us,...t}){return Fr({...t,baseUrl:ls(e)})}({clientType:e.clientType,...r})}async function pn(e,t){const r=await e.octokit.auth({type:"oauth-user",...t});return await cn(e,{name:"token",action:"created",token:r.token,scopes:r.scopes,authentication:r,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.token,scopes:r.scopes,refreshToken:r.refreshToken,expiresAt:r.expiresAt,refreshTokenExpiresAt:r.refreshTokenExpiresAt}})}),{authentication:r}}async function dn(e,t){const r=await ms({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(r.authentication,{type:"token",tokenType:"oauth"}),r}async function hn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if("oauth-app"===e.clientType){const t=await bs({clientType:"oauth-app",...r}),s=Object.assign(t.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"reset",token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:s}}const s=await bs({clientType:"github-app",...r}),n=Object.assign(s.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"reset",token:s.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.authentication.token}})}),{...s,authentication:n}}async function fn(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps");const r=await gs({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),s=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"refreshed",token:r.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:s}}async function mn(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps");const r=await async function(e){const{request:t,clientType:r,clientId:s,clientSecret:n,token:o,...i}=e,a=e.request||us,c=await a("POST /applications/{client_id}/token/scoped",{headers:{authorization:`basic ${btoa(`${s}:${n}`)}`},client_id:s,access_token:o,...i}),u=Object.assign({clientType:r,clientId:s,clientSecret:n,token:c.data.token},c.data.expires_at?{expiresAt:c.data.expires_at}:{});return{...c,authentication:u}}({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),s=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await cn(e,{name:"token",action:"scoped",token:r.authentication.token,authentication:s,octokit:new e.Octokit({authStrategy:Cs,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:s}}async function gn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await vs({clientType:"oauth-app",...r}):await vs({clientType:"github-app",...r});return await cn(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),s}async function yn(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},s="oauth-app"===e.clientType?await ws({clientType:"oauth-app",...r}):await ws({clientType:"github-app",...r});return await cn(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),await cn(e,{name:"authorization",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:sn,auth:{reason:'Handling "authorization.deleted" event. The access for the app has been revoked.'}})}),s}var bn=class{static VERSION=nn;static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}constructor(e){const t=e.Octokit||an;this.type=e.clientType||"oauth-app";const r=new t({authStrategy:Ds,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),s={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:r,eventHandlers:{}};this.on=on.bind(null,s),this.octokit=r,this.getUserOctokit=un.bind(null,s),this.getWebFlowAuthorizationUrl=ln.bind(null,s),this.createToken=pn.bind(null,s),this.checkToken=dn.bind(null,s),this.resetToken=hn.bind(null,s),this.refreshToken=fn.bind(null,s),this.scopeToken=mn.bind(null,s),this.deleteToken=gn.bind(null,s),this.deleteAuthorization=yn.bind(null,s)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization};const vn=require("node:buffer");var wn="6.0.0";async function _n(e,t){if(!e||!t)throw new TypeError("[@octokit/webhooks-methods] secret & payload required for sign()");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] payload must be a string");const r="sha256";return`${r}=${(0,Us.createHmac)(r,e).update(t).digest("hex")}`}async function En(e,t,r){if(!e||!t||!r)throw new TypeError("[@octokit/webhooks-methods] secret, eventPayload & signature required");if("string"!=typeof t)throw new TypeError("[@octokit/webhooks-methods] eventPayload must be a string");const s=vn.Buffer.from(r),n=vn.Buffer.from(await _n(e,t));return s.length===n.length&&(0,Us.timingSafeEqual)(s,n)}_n.VERSION=wn,En.VERSION=wn;var kn=(e={})=>("function"!=typeof e.debug&&(e.debug=()=>{}),"function"!=typeof e.info&&(e.info=()=>{}),"function"!=typeof e.warn&&(e.warn=console.warn.bind(console)),"function"!=typeof e.error&&(e.error=console.error.bind(console)),e),Tn=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.promote_to_enterprise","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.typed","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","issues.untyped","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","projects_v2_status_update","projects_v2_status_update.created","projects_v2_status_update.deleted","projects_v2_status_update.edited","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.publicly_leaked","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","secret_scanning_scan","secret_scanning_scan.completed","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","sub_issues","sub_issues.parent_issue_added","sub_issues.parent_issue_removed","sub_issues.sub_issue_added","sub_issues.sub_issue_removed","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function On(e,t,r){e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(r)}function Sn(e,t,r){Array.isArray(t)?t.forEach(t=>Sn(e,t,r)):(!function(e,t={}){if("string"!=typeof e)throw new TypeError("eventName must be of type string");if("*"===e)throw new TypeError('Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead');if("error"===e)throw new TypeError('Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead');if("ignore"!==t.onUnknownEventName&&!Tn.includes(e)){if("warn"!==t.onUnknownEventName)throw new TypeError(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`);(t.log||console).warn(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}(t,{onUnknownEventName:"warn",log:e.log}),On(e,t,r))}function An(e,t){On(e,"*",t)}function $n(e,t){On(e,"error",t)}function Pn(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler'),console.log(e)}r&&r.catch&&r.catch(e=>{console.log('FATAL: Error occurred in "error" event handler'),console.log(e)})}function jn(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});return r.forEach(t=>Pn(t,e)),Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const s=function(e,t,r){const s=[e.hooks[r],e.hooks["*"]];return t&&s.unshift(e.hooks[`${r}.${t}`]),[].concat(...s.filter(Boolean))}(e,"action"in t.payload?t.payload.action:null,t.name);if(0===s.length)return Promise.resolve();const n=[],o=s.map(r=>{let s=Promise.resolve(t);return e.transform&&(s=s.then(e.transform)),s.then(e=>r(e)).catch(e=>n.push(Object.assign(e,{event:t})))});return Promise.all(o).then(()=>{if(0===n.length)return;const e=new AggregateError(n,n.map(e=>e.message).join("\n"));throw Object.assign(e,{event:t}),r.forEach(t=>Pn(t,e)),e})}function Rn(e,t,r){if(Array.isArray(t))t.forEach(t=>Rn(e,t,r));else if(e.hooks[t])for(let s=e.hooks[t].length-1;s>=0;s--)if(e.hooks[t][s]===r)return void e.hooks[t].splice(s,1)}function In(e){const t={hooks:{},log:kn(e&&e.log)};return e&&e.transform&&(t.transform=e.transform),{on:Sn.bind(null,t),onAny:An.bind(null,t),onError:$n.bind(null,t),removeListener:Rn.bind(null,t),receive:jn.bind(null,t)}}async function Cn(e,t){const r=await async function(e,t,r,s){if(await En(e,t,r))return!0;if(void 0!==s)for(const e of s){const s=await En(e,t,r);if(s)return s}return!1}(e.secret,t.payload,t.signature,e.additionalSecrets).catch(()=>!1);if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return r.event=t,r.status=400,e.eventHandler.receive(r)}let s;try{s=JSON.parse(t.payload)}catch(e){throw e.message="Invalid JSON",e.status=400,new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:s})}var Nn=new TextDecoder("utf-8",{fatal:!1});Nn.decode.bind(Nn);var xn=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret)throw new Error("[@octokit/webhooks] options.secret required");const t={eventHandler:In(e),secret:e.secret,additionalSecrets:e.additionalSecrets,hooks:{},log:kn(e.log)};this.sign=_n.bind(null,e.secret),this.verify=En.bind(null,e.secret),this.on=t.eventHandler.on,this.onAny=t.eventHandler.onAny,this.onError=t.eventHandler.onError,this.removeListener=t.eventHandler.removeListener,this.receive=t.eventHandler.receive,this.verifyAndReceive=Cn.bind(null,t)}};async function Dn(e,t){return e.octokit.auth({type:"installation",installationId:t,factory(e){const r={...e.octokitOptions,authStrategy:Xs,auth:{...e,installationId:t}};return new e.octokit.constructor(r)}})}function qn(e){return Object.assign(Gn.bind(null,e),{iterator:Ln.bind(null,e)})}async function Gn(e,t){const r=Ln(e)[Symbol.asyncIterator]();let s=await r.next();for(;!s.done;)await t(s.value),s=await r.next()}function Ln(e){return{async*[Symbol.asyncIterator](){const t=Te.iterator(e.octokit,"GET /app/installations");for await(const{data:r}of t)for(const t of r){const r=await Dn(e,t.id);yield{octokit:r,installation:t}}}}}function Fn(e){return Object.assign(Un.bind(null,e),{iterator:Mn.bind(null,e)})}async function Un(e,t,r){const s=Mn(e,r?t:void 0)[Symbol.asyncIterator]();let n=await s.next();for(;!n.done;)r?await r(n.value):await t(n.value),n=await s.next()}function Mn(e,t){return{async*[Symbol.asyncIterator](){const r=t?function(e,t){return{async*[Symbol.asyncIterator](){yield{octokit:await e.getInstallationOctokit(t)}}}}(e,t.installationId):e.eachInstallation.iterator();for await(const{octokit:e}of r){const t=Te.iterator(e,"GET /installation/repositories");for await(const{data:r}of t)for(const t of r)yield{octokit:e,repository:t}}}}}function Kn(e){let t;return async function(r={}){t||(t=async function(e){const{data:t}=await e.octokit.request("GET /app");if(!t)throw new Error("[@octokit/app] unable to fetch metadata for app");return`${t.html_url}/installations/new`}(e));const s=await t,n=new URL(s);return void 0!==r.target_id&&(n.pathname+="/permissions",n.searchParams.append("target_id",r.target_id.toFixed())),void 0!==r.state&&n.searchParams.append("state",r.state),n.href}}var Bn=we.plugin(Me,Oe,function(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(De(e),{iterator:Ne(e)})})}},We,tt).defaults({userAgent:"octokit.js/0.0.0-development",throttle:{onRateLimit:function(e,t,r){if(r.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),0===t.request.retryCount)return r.log.info(`Retrying after ${e} seconds!`),!0},onSecondaryRateLimit:function(e,t,r){if(r.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),0===t.request.retryCount)return r.log.info(`Retrying after ${e} seconds!`),!0}}});(class{static VERSION="16.1.2";static defaults(e){return class extends(this){constructor(...t){super({...e,...t[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(e){const t=e.Octokit||we,r={authStrategy:Xs,auth:Object.assign({appId:e.appId,privateKey:e.privateKey},e.oauth?{clientId:e.oauth.clientId,clientSecret:e.oauth.clientSecret}:{})};"log"in e&&void 0!==e.log&&(r.log=e.log),this.octokit=new t(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),e.webhooks?this.webhooks=function(e,t){return new xn({secret:t.secret,transform:async t=>{if(!("installation"in t.payload)||"object"!=typeof t.payload.installation){const r=new e.constructor({authStrategy:sn,auth:{reason:'"installation" key missing in webhook event payload'}});return{...t,octokit:r}}const r=t.payload.installation.id,s=await e.auth({type:"installation",installationId:r,factory:e=>new e.octokit.constructor({...e.octokitOptions,authStrategy:Xs,auth:{...e,installationId:r}})});return s.hook.before("request",e=>{e.headers["x-github-delivery"]=t.id}),{...t,octokit:s}}})}(this.octokit,e.webhooks):Object.defineProperty(this,"webhooks",{get(){throw new Error("[@octokit/app] webhooks option not set")}}),e.oauth?this.oauth=new bn({...e.oauth,clientType:"github-app",Octokit:t}):Object.defineProperty(this,"oauth",{get(){throw new Error("[@octokit/app] oauth.clientId / oauth.clientSecret options are not set")}}),this.getInstallationOctokit=Dn.bind(null,this),this.eachInstallation=qn(this),this.eachRepository=Fn(this),this.getInstallationUrl=Kn(this)}}).defaults({Octokit:Bn}),bn.defaults({Octokit:Bn});var Vn=r(1354);class zn{octokit;owner;repo;logger;constructor(e,t){this.logger=t??new Vn.A;const r=e??process.env.GITHUB_TOKEN;if(void 0===r)throw new Error("GitHub authentication token is required. Specify it explicitly or use GITHUB_TOKEN environment variable.");this.octokit=new Bn({auth:r});const n=function(){const e=process.env.GITHUB_REPOSITORY;if("string"!=typeof e||""===e.trim())return{};const[t,r]=e.split("/");return{owner:t,repo:r}}(),o=function(){const e=(0,s.execSync)("git remote get-url origin").toString().trim().replace(/\.git$/u,"");if(e.startsWith("git@")){const[,t]=e.split(":"),[r,s]=(t??"").split("/");return{owner:r,repo:s}}if(e.startsWith("http")){const t=e.split("/");return{owner:t.at(-2),repo:t.at(-1)}}return{}}(),i=n.repo??o.repo;if(void 0===i)throw new Error("");this.repo=i;const a=n.owner??process.env.GITHUB_REPOSITORY_OWNER??(process.env.GITHUB_REPOSITORY??"").split("/")[0]??o.owner;if(void 0===a)throw new Error("");this.owner=a,this.logger.debug(`Resolved GitHub target repository: ${this.owner}/${this.repo}`)}}},8898:(e,t,r)=>{"use strict";var s=r(6906),n=r(484),o=r(3732);t.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!n.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},u=o.toJS(this,"",c);if("function"==typeof i)for(const{count:e,res:t}of c.anchors.values())i(t,e);return"function"==typeof a?s.applyReviver(a,{"":u},"",u):u}}},9029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(1520),n=r(7845);var o=r(1520);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var i=r(7845);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&"),ADD:new s._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,s=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof s.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return j(this.lhs instanceof s.Name?{}:{...this.lhs.names},this.rhs)}}class l extends u{constructor(e,t,r,s){super(e,r,s),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=R(this.code,e,t),this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;for(;s--;){const n=r[s];n.optimizeNames(e,t)||(I(e,n.names),r.splice(s,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>P(e,t.names),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class b extends g{}b.kind="else";class v extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new b(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(C(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return j(e,this.condition),this.else&&P(e,this.else.names),e}}v.kind="if";class w extends g{}w.kind="for";class _ extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=R(this.iteration,e,t),this}get names(){return P(super.names,this.iteration.names)}}class E extends w{constructor(e,t,r,s){super(),this.varKind=e,this.name=t,this.from=r,this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:s,to:o}=this;return`for(${t} ${r}=${s}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=j(super.names,this.from);return j(e,this.to)}}class k extends w{constructor(e,t,r,s){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=R(this.iterable,e,t),this}get names(){return P(super.names,this.iterable.names)}}class T extends g{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}T.kind="func";class O extends m{render(e){return"return "+super.render(e)}}O.kind="return";class S extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,s;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(s=this.finally)||void 0===s||s.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class A extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}A.kind="catch";class $ extends g{render(e){return"finally"+super.render(e)}}$.kind="finally";function P(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function j(e,t){return t instanceof s._CodeOrName?P(e,t.names):e}function R(e,t,r){return e instanceof s.Name?o(e):(n=e)instanceof s._Code&&n._items.some(e=>e instanceof s.Name&&1===t[e.str]&&void 0!==r[e.str])?new s._Code(e._items.reduce((e,t)=>(t instanceof s.Name&&(t=o(t)),t instanceof s._Code?e.push(...t._items):e.push(t),e),[])):e;var n;function o(e){const s=r[e.str];return void 0===s||1!==t[e.str]?e:(delete t[e.str],s)}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function C(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:s._`!${q(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);return void 0!==r&&s&&(this._constants[n.str]=r),this._leafNode(new c(e,n,r)),n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new l(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==s.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[r,n]of e)t.length>1&&t.push(","),t.push(r),(r!==n||this.opts.es5)&&(t.push(":"),(0,s.addCodeArg)(t,n));return t.push("}"),new s._Code(t)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,s,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const i=this._scope.toName(e);return this._for(new E(o,i,t,r),()=>s(i))}forOf(e,t,r,o=n.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,s._`${e}.length`,t=>{this.var(i,s._`${e}[${t}]`),r(i)})}return this._for(new k("of",o,i,t),()=>r(i))}forIn(e,t,r,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,s._`Object.keys(${t})`,r);const i=this._scope.toName(e);return this._for(new k("in",o,i,t),()=>r(i))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new O;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new S;if(this._blockNode(s),this.code(e),t){const e=this.name("e");this._currNode=s.catch=new A(e),t(e)}return r&&(this._currNode=s.finally=new $,this.code(r)),this._endBlockNode(A,$)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=s.nil,r,n){return this._blockNode(new T(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=C;const N=D(t.operators.AND);t.and=function(...e){return e.reduce(N)};const x=D(t.operators.OR);function D(e){return(t,r)=>t===s.nil?r:r===s.nil?t:s._`${q(t)} ${e} ${q(r)}`}function q(e){return e instanceof s.Name?e:s._`(${e})`}t.or=function(...e){return e.reduce(x)}},9046:(e,t,r)=>{"use strict";var s=r(1736),n=r(1614),o=r(484),i=r(7902),a=r(3732),c=r(625),u=r(1768),l=r(6261),p=r(6906),d=r(5219),h=r(8673);class f{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===r&&t&&(r=t,t=void 0);const n=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=n;let{version:i}=n;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new h.Directives({version:i}),this.setSchema(i,r),this.contents=void 0===e?null:this.createNode(e,s,r)}clone(){const e=Object.create(f.prototype,{[o.NODE_TYPE]:{value:o.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){m(this.contents)&&this.contents.add(e)}addIn(e,t){m(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=l.anchorNames(this);e.anchor=!t||r.has(t)?l.findNewAnchor(t||"a",r):t}return new s.Alias(e.anchor)}createNode(e,t,r){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,r=t.filter(e).map(String);r.length>0&&(t=t.concat(r)),s=t}else void 0===r&&t&&(r=t,t=void 0);const{aliasDuplicateObjects:n,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:p}=r??{},{onAnchor:h,setAnchors:f,sourceObjects:m}=l.createNodeAnchors(this,i||"a"),g={aliasDuplicateObjects:n??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:u,replacer:s,schema:this.schema,sourceObjects:m},y=d.createNode(e,p,g);return a&&o.isCollection(y)&&(y.flow=!0),f(),y}createPair(e,t,r={}){const s=this.createNode(e,null,r),n=this.createNode(t,null,r);return new i.Pair(s,n)}delete(e){return!!m(this.contents)&&this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!m(this.contents)&&this.contents.deleteIn(e)}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&o.isScalar(this.contents)?this.contents.value:this.contents:o.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!o.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:!!o.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=n.collectionFromPath(this.schema,[e],t):m(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):m(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new h.Directives({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new h.Directives({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!r)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(r,t))}}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:s,onAnchor:n,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},c=a.toJS(this.contents,t??"",i);if("function"==typeof n)for(const{count:e,res:t}of i.anchors.values())n(t,e);return"function"==typeof o?p.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function m(e){if(o.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=f},9094:(e,t,r)=>{"use strict";var s=r(484),n=r(9714),o=r(4070),i=r(7571);t.composeScalar=function(e,t,r,a){const{value:c,type:u,comment:l,range:p}="block-scalar"===t.type?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a),d=r?e.directives.tagName(r.source,e=>a(r,"TAG_RESOLVE_FAILED",e)):null;let h,f;h=e.options.stringKeys&&e.atKey?e.schema[s.SCALAR]:d?function(e,t,r,n,o){if("!"===r)return e[s.SCALAR];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection)return e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a;return o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[s.SCALAR]}(e.schema,c,d,r,a):"scalar"===t.type?function({atKey:e,directives:t,schema:r},n,o,i){const a=r.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(n))||r[s.SCALAR];if(r.compat){const e=r.compat.find(e=>e.default&&e.test?.test(n))??r[s.SCALAR];if(a.tag!==e.tag){i(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t.tagString(a.tag)} or ${t.tagString(e.tag)}`,!0)}}return a}(e,c,t,a):e.schema[s.SCALAR];try{const o=h.resolve(c,e=>a(r??t,"TAG_RESOLVE_FAILED",e),e.options);f=s.isScalar(o)?o:new n.Scalar(o)}catch(e){const s=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",s),f=new n.Scalar(c)}return f.range=p,f.source=c,u&&(f.type=u),d&&(f.tag=d),h.format&&(f.format=h.format),l&&(f.comment=l),f}},9108:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const s={parse(e){const t=Number.parseFloat(e);if(Number.isNaN(t))throw new Error(`Cannot parse "${e}" as number.`);return t},toString:()=>"number"}},9112:(e,t,r)=>{"use strict";var s=r(5141),n=r(7808),o=r(5970);t.createScalarToken=s.createScalarToken,t.resolveAsScalar=s.resolveAsScalar,t.setScalarValue=s.setScalarValue,t.stringify=n.stringify,t.visit=o.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},9125:(e,t,r)=>{"use strict";var s=r(484);const n=Symbol("break visit"),o=Symbol("skip children"),i=Symbol("remove node");function a(e,t){const r=p(t);if(s.isDocument(e)){c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null)}else c(null,e,r,Object.freeze([]))}function c(e,t,r,o){const a=d(e,t,r,o);if(s.isNode(a)||s.isPair(a))return h(e,o,a),c(e,a,r,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=c(e,t.items[e],r,o);if("number"==typeof s)e=s-1;else{if(s===n)return n;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=c("key",t.key,r,o);if(e===n)return n;e===i&&(t.key=null);const s=c("value",t.value,r,o);if(s===n)return n;s===i&&(t.value=null)}return a}async function u(e,t){const r=p(t);if(s.isDocument(e)){await l(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null)}else await l(null,e,r,Object.freeze([]))}async function l(e,t,r,o){const a=await d(e,t,r,o);if(s.isNode(a)||s.isPair(a))return h(e,o,a),l(e,a,r,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=await l(e,t.items[e],r,o);if("number"==typeof s)e=s-1;else{if(s===n)return n;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=await l("key",t.key,r,o);if(e===n)return n;e===i&&(t.key=null);const s=await l("value",t.value,r,o);if(s===n)return n;s===i&&(t.value=null)}return a}function p(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function d(e,t,r,n){return"function"==typeof r?r(e,t,n):s.isMap(t)?r.Map?.(e,t,n):s.isSeq(t)?r.Seq?.(e,t,n):s.isPair(t)?r.Pair?.(e,t,n):s.isScalar(t)?r.Scalar?.(e,t,n):s.isAlias(t)?r.Alias?.(e,t,n):void 0}function h(e,t,r){const n=t[t.length-1];if(s.isCollection(n))n.items[e]=r;else if(s.isPair(n))"key"===e?n.key=r:n.value=r;else{if(!s.isDocument(n)){const e=s.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}n.contents=r}}a.BREAK=n,a.SKIP=o,a.REMOVE=i,u.BREAK=n,u.SKIP=o,u.REMOVE=i,t.visit=a,t.visitAsync=u},9378:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const r of t.items){for(const e of r.start)if("newline"===e.type)return!0;if(r.sep)for(const e of r.sep)if("newline"===e.type)return!0;if(e(r.key)||e(r.value))return!0}return!1;default:return!0}}},9542:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var s,n=r(6903),o=r(4523),i=r(9108),a=r(2596),c=r(1170),u=r(3121),l=r(6502),p=r(1354),d=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},h=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(e,t){return function(r,s){t(r,s,e)}};let m=class{static{0}static schema={description:"Pull an entity into the local storage.",parameters:{key:{description:"Key to filter entities to pull.",required:!0,type:a.A},of:{description:"Entity type to pull.",required:!0,type:u.o4},value:{description:"Value to filter entities to pull.",required:!0,type:new c.A([i.A,a.A])}}};#e;#t;#y;constructor(e,t,r){this.#y=e,this.#e=t,this.#t=r}async execute({key:e,of:t,value:r}){this.#t.info(`Pulling ${t} with ${e} equals to ${r} from the remote to the local storage.`);const s=await this.#y.one(t,{[e]:r});if((0,o.b0)(s))throw this.#t.info(`Stopped, cause of an error. Can't find ${t} with ${e} equals to ${r} in the remote storage.`),new Error(`Can't find ${t} with ${e} equals to "${r}" in the remote storage.`);const n=await this.#e.one(t,{[e]:r});(0,o.b0)(n)?(this.#t.info(`Can't find ${t} with ${e} equals to ${r} in the local storage, adding.`),await this.#e.new(t,s.entity)):(this.#t.info(`Updating ${t} with ${e} equals to "${r}" in the local storage.`),(0,o.b0)(n.hash)||(0,l.A)(n.entity)===n.hash||this.#t.warn(`The saved hash of the local ${t} "${n.hash}" don't match its calculated hash "${(0,l.A)(n.entity)}", milestone probably has not commited local changes, which will be overriten with remote label.`),n.substitute(s.entity)),this.#t.info("Commiting changes to the local storage."),await this.#e.commit()}};m=d([(0,n.Gr)(),f(0,(0,n.WQ)("RemoteStorage")),f(1,(0,n.WQ)("LocalStorage")),f(2,(0,n.WQ)(p.A)),h("design:paramtypes",[Object,Object,"function"==typeof(s=void 0!==p.A&&p.A)?s:Object])],m);const g=m},9637:(e,t,r)=>{"use strict";var s=r(484),n=r(9714);const o="<<",i={identify:e=>e===o||"symbol"==typeof e&&e.description===o,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(o)),{addToJSMap:a}),stringify:()=>o};function a(e,t,r){if(r=e&&s.isAlias(r)?r.resolve(e.doc):r,s.isSeq(r))for(const s of r.items)c(e,t,s);else if(Array.isArray(r))for(const s of r)c(e,t,s);else c(e,t,r)}function c(e,t,r){const n=e&&s.isAlias(r)?r.resolve(e.doc):r;if(!s.isMap(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[e,r]of o)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}t.addMergeToJSMap=a,t.isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===n.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===i.tag&&e.default),t.merge=i},9669:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var s=r(1943),n=r(6928),o=r(6903),i=r(4078),a=r(262);async function c(e){if(!await(0,a.t)(e))return[];if((await(0,s.stat)(e)).isFile())return[e];let t=[];try{const r=await(0,s.readdir)(e,{withFileTypes:!0});for(const s of r){const r=(0,n.join)(e,s.name);if(s.isDirectory()){const e=await c(r);t=t.concat(e)}else s.isFile()&&t.push(r)}}catch(t){throw new Error(`Error reading "${e}".`,{cause:t})}return t}var u=r(6486),l=r(3989);function p(e){return e.endsWith(".yml")||e.endsWith(".yaml")}var d=r(1354),h=r(5458),f=r(4523),m=r(1198),g=r(3121),y=r(6502);function b(e){if("string"==typeof e){const t=new m.X5(e);return e.includes("\n")&&(t.type=m.X5.BLOCK_LITERAL),t}if(Array.isArray(e)){const t=new m.Rw;return e.forEach(e=>{t.add(b(e))}),t}if("object"==typeof e&&null!==e){const t=new m.CA;return Object.keys(e).toSorted().forEach(r=>{t.add({key:r,value:b((0,h.A)(e[r]))})}),t}return new m.X5(e)}var v,w,_=r(6276),E=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},T=function(e,t){return function(r,s){t(r,s,e)}};const O=/^#?\s*(?<key>[^:]+):\s*(?<value>.+)\s*$/u;let S=class{entitySchemaRegistry;filePath;storage;#c;#G=!1;#t;constructor({filePath:e},t,r,s){this.filePath=e,this.entitySchemaRegistry=t,this.#c=new u.A(this.entitySchemaRegistry),this.#t=r,this.storage=s}async*all(e){await this.#L();for(const t of this.#c.all(e))yield t}async commit(){this.#t.debug(`Commiting changes to "${this.filePath}"...`),await this.#L();const e=this.#c.all(),t=e.some(e=>[i.jm,i.W4,i.dy].includes(e.state)||(0,y.A)(e.entity)!==e.hash),r=(0,f.$z)(e,e=>e.state);if(this.#t.debug(`Have ${Object.entries(r).map(([e,t])=>`[${e.toUpperCase()}]: ${t.length}`).join(", ")}`),t){const t=e.filter(e=>![i.W4].includes(e.state));if(0===t.length)await(0,s.unlink)(this.filePath);else{const e=(0,f.Ul)(t,e=>e.cookie.index??Number.MAX_SAFE_INTEGER).map(e=>this.#F(e)).map(e=>e.toString().trimEnd()).join("\n\n---\n").concat("\n");await(0,s.writeFile)(this.filePath,e),t.forEach(e=>{e.clean(e.entity)})}e.filter(e=>[i.W4].includes(e.state)).forEach(e=>{this.#c.delete(e)})}else this.#t.debug(`Skipping commit to "${this.filePath}". Nothing changed.`)}async new(e,t){const r=(0,_.A)(this.entitySchemaRegistry.get(e));if((0,f.b0)(r))throw new Error(`Can't find "${e}" entity schema.`);const s=new i.Ay({cookie:{file:this},entity:t,schema:r,state:i.dy,storage:this.storage}),n=this.entitySchemaRegistry.get(e);if((0,f.b0)(n))throw new Error(`Can't find "${e}" entity schema.`);return this.#c.set(s),Promise.resolve(s)}async one(e,t){return await this.#L(),this.#c.one(e,t)}async#L(){if(this.#G)return;const e=await(0,s.readFile)(this.filePath,"utf8"),t=(0,m.hR)(e);for(let e=0;e<t.length;e++){const r=(0,h.A)(t[e]),s=(0,_.A)(r.toJS());let n,o="",a=null,c=null,u=null,l=!1;if((0,f.Kg)(r.commentBefore)?u=r.commentBefore:(0,f.Kg)(r.contents?.commentBefore)&&(u=r.contents.commentBefore),null!==u){this.#t.debug(`Parsing comment before document #${e}:\n${u}`);const t=$(u);if("hash"in t&&(o=t.hash,this.#t.debug(`Found saved hash: ${o}`)),"yaml-language-server"in t){this.#t.debug(`Found yaml-language-server schema info: ${t["yaml-language-server"]}`);const e=/\$schema=(?<schema>.+)/u.exec(t["yaml-language-server"]);if(null!==e){const t=e[1]?.trim()??null;null!==t&&null!==/(?:^|[\\/])(?:issue|label|milestone)\.schema\.yml$/u.exec(t)&&(a=t,l=!0,this.#t.debug(`Resolved schema path: ${a}`))}}if("type"in t){this.#t.debug(`Found saved type: ${t.type}`);const e=t.type;(0,g.md)(e)&&(c=e,l=!0,this.#t.debug(`Resolved saved type: ${c}`))}}if(null!==c?(n=this.entitySchemaRegistry.get(c),this.#t.debug(`Resolved entity schema by saved type: ${n?.type}`)):null!==a&&(n=this.entitySchemaRegistry.resolve(a,this.#t),this.#t.debug(`Resolved entity schema by schema path: ${n?.type}`)),(0,f.b0)(n)&&(n=this.entitySchemaRegistry.all.find(e=>e.validate(s)),(0,f.b0)(n)||(l=!0)),(0,f.b0)(n)){if(l)throw new Error("Can't resolve schema for entity.");this.#t.debug(`Skipping YAML document #${e} in "${this.filePath}" (not a KickCat entity).`)}else if(n.validate(s)){""===o.trim()&&(o=void 0);const t=new i.Ay({cookie:{file:this,index:e},entity:s,hash:o,schema:n,state:i.w_,storage:this.storage});this.#c.set(t)}}this.#G=!0}#U(e,t){const r=e=>e.replaceAll("\\","/").replace(/^(?<temp1>[A-Za-z]):/u,(e,t)=>`/${t.toLowerCase()}`);return n.posix.relative(r(e),r(t))}#F(e){const t=this.entitySchemaRegistry.get(e.schema.type);if((0,f.b0)(t))throw new Error(`Can't find schema "${t}".`);const r=new m.yo,s=this.#U((0,n.dirname)(this.filePath),t.filePath),o=e.state!==i.w_&&!e.preserveHash||this.storage.repair?(0,y.A)(e.entity):e.hash;return r.commentBefore=[` yaml-language-server: $schema=${s}`,...(0,f.b0)(o)?[]:[` hash: ${o}`]].join("\n"),r.contents=this.#M(e.entity,t),r}#M(e,t){const r=new m.CA,s=Object.entries(t.properties).sort(([,e],[,t])=>e.order-t.order).map(([e])=>e),n=Object.keys(e).filter(e=>!s.includes(e)).toSorted();for(const t of[...s,...n]){if(!(t in e))continue;const s=e[t];r.add({key:t,value:b(s)})}return r}};S=E([T(1,(0,o.WQ)(l.A)),T(2,(0,o.WQ)(d.A)),k("design:paramtypes",[Object,"function"==typeof(v=void 0!==l.A&&l.A)?v:Object,"function"==typeof(w=void 0!==d.A&&d.A)?w:Object,Object])],S);const A=S;function $(e){return Object.fromEntries(e.split(/(?:\r\n|\r|\n)+/u).map(e=>function(e){const t=O.exec(e);return null===t||(0,f.b0)(t[1])||(0,f.b0)(t[2])?null:[t[1],t[2]]}(e.trim())).filter(e=>null!==e))}var P,j,R=function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},C=function(e,t){return function(r,s){t(r,s,e)}};let N=class{entitySchemaRegistry;storagePath;repair;get fetched(){return this.#K}#c;#K=!1;#B=new Map;#t;constructor({storagePath:e,repair:t},r,s){this.storagePath=e??process.cwd(),this.repair=t??!1,this.entitySchemaRegistry=r,this.#c=new u.A(this.entitySchemaRegistry),this.#t=s}async*all(e){await this.#L();for(const t of this.#c.all(e))yield t}async commit(){this.#t.debug("Commiting local storage changes..."),await this.#V();for(const e of this.#B.values())await e.commit();this.#c.all().filter(e=>[i.W4].includes(e.state)).forEach(e=>{this.#c.delete(e)})}async new(e,t){return(await this.#z(e)).new(e,t)}async one(e,t){return await this.#L(),this.#c.one(e,t)}async#V(){this.#K||((await c(this.storagePath)).filter(p).forEach(e=>{this.#B.set(e,new A({filePath:e},this.entitySchemaRegistry,this.#t,this))}),this.#K=!0)}async#z(e){const t=await this.#H(e);if(this.#B.has(t))return(0,h.A)(this.#B.get(t));const r=new A({filePath:t},this.entitySchemaRegistry,this.#t,this);return this.#B.set(t,r),r}async#L(){await this.#V();for(const e of this.#B.values())for await(const t of e.all())this.#c.set(t)}async#H(e){await this.#V(),await(0,a.t)(this.storagePath)||(this.storagePath.endsWith(".yml")||this.storagePath.endsWith(".yaml")?await(0,s.writeFile)(this.storagePath,""):await(0,s.mkdir)(this.storagePath));const t=await(0,s.stat)(this.storagePath);if(t.isFile())return this.storagePath;if(t.isDirectory()){const t=(await(0,s.readdir)(this.storagePath)).filter(t=>t.includes(e));if(t.length>1)throw new Error(`Can't resolve path for "${e}" storage. Found ${t.length} candidates: ${t.join(", ")}`);if(0===t.length)return(0,n.resolve)(this.storagePath,`${e}.yml`);const r=await(0,s.stat)((0,h.A)(t[0]));if(r.isFile())return(0,h.A)(t[0]);if(r.isDirectory())return(await(0,s.readdir)((0,h.A)(t[0]))).find(e=>/(?:common|shared)/u.exec(e))??(0,n.resolve)(this.storagePath,"shared.yml")}throw new Error(`Can't resolve path to storage for ${e}.`)}};N=R([C(1,(0,o.WQ)(l.A)),C(2,(0,o.WQ)(d.A)),I("design:paramtypes",[Object,"function"==typeof(P=void 0!==l.A&&l.A)?P:Object,"function"==typeof(j=void 0!==d.A&&d.A)?j:Object])],N);const x=N},9713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(9029),n=r(4227),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>s._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return;const a=t.name("valid");t.forIn("key",o,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,s.not)(a),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(a)}};t.default=o},9714:(e,t,r)=>{"use strict";var s=r(484),n=r(8898),o=r(3732);class i extends n.NodeBase{constructor(e){super(s.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}i.BLOCK_FOLDED="BLOCK_FOLDED",i.BLOCK_LITERAL="BLOCK_LITERAL",i.PLAIN="PLAIN",i.QUOTE_DOUBLE="QUOTE_DOUBLE",i.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=i,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},9857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},9896:e=>{"use strict";e.exports=require("fs")},9973:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class s{options={};raw;route;constructor(e){this.raw=e}static new(){return new s(process.argv.slice(2))}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e].call(r.exports,r,r.exports,a),r.exports}e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",r=e?Symbol("webpack exports"):"__webpack_exports__",s=e?Symbol("webpack error"):"__webpack_error__",n=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},a.a=(e,o,i)=>{var a;i&&((a=[]).d=-1);var c,u,l,p=new Set,d=e.exports,h=new Promise((e,t)=>{l=t,u=e});h[r]=d,h[t]=e=>(a&&e(a),p.forEach(e),h.catch(e=>{})),e.exports=h,o(e=>{var o;c=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){var o=[];o.d=0,e.then(e=>{i[r]=e,n(o)},e=>{i[s]=e,n(o)});var i={};return i[t]=e=>e(o),i}}var a={};return a[t]=e=>{},a[r]=e,a}))(e);var i=()=>c.map(e=>{if(e[s])throw e[s];return e[r]}),u=new Promise(e=>{(o=()=>e(i)).r=0;var r=e=>e!==a&&!p.has(e)&&(p.add(e),e&&!e.d&&(o.r++,e.push(o)));c.map(e=>e[t](r))});return o.r?u:i()},e=>(e?l(h[s]=e):u(d),n(a))),a&&a.d<0&&(a.d=0)},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};a(8156)})();
9
9
  //# sourceMappingURL=bundle.js.map