2026-03-03 14:25:56 +01:00
import './sourcemap-register.cjs' ; import { createRequire as i } from "module" ; var u = { 23311 : function ( i , u ){ var p = this && this . __awaiter || function ( i , u , p , A ){ function adopt ( i ){ return i instanceof p ? i : new p (( function ( u ){ u ( i )}))} return new ( p || ( p = Promise ))(( function ( p , g ){ function fulfilled ( i ){ try { step ( A . next ( i ))} catch ( i ){ g ( i )}} function rejected ( i ){ try { step ( A [ "throw" ]( i ))} catch ( i ){ g ( i )}} function step ( i ){ i . done ? p ( i . value ) : adopt ( i . value ). then ( fulfilled , rejected )} step (( A = A . apply ( i , u || [])). next ())}))}; Object . defineProperty ( u , "__esModule" ,{ value : true }); u . ClientStreamingCall = void 0 ; class ClientStreamingCall { constructor ( i , u , p , A , g , C , S ){ this . method = i ; this . requestHeaders = u ; this . requests = p ; this . headers = A ; this . response = g ; this . status = C ; this . trailers = S } then ( i , u ){ return this . promiseFinished (). then (( u => i ? Promise . resolve ( i ( u )) : u ),( i => u ? Promise . resolve ( u ( i )) : Promise . reject ( i )))} promiseFinished (){ return p ( this , void 0 , void 0 ,( function * (){ let [ i , u , p , A ] = yield Promise . all ([ this . headers , this . response , this . status , this . trailers ]); return { method : this . method , requestHeaders : this . requestHeaders , headers : i , response : u , status : p , trailers : A }}))}} u . ClientStreamingCall = ClientStreamingCall }, 69499 : ( i , u )=>{ Object . defineProperty ( u , "__esModule" ,{ value : true }); u . Deferred = u . DeferredState = void 0 ; var p ;( function ( i ){ i [ i [ "PENDING" ] = 0 ] = "PENDING" ; i [ i [ "REJECTED" ] = 1 ] = "REJECTED" ; i [ i [ "RESOLVED" ] = 2 ] = "RESOLVED" })( p = u . DeferredState || ( u . DeferredState = {})); class Deferred { constructor ( i = true ){ this . _state = p . PENDING ; this . _promise = new Promise ((( i , u )=>{ this . _resolve = i ; this . _reject = u })); if ( i ){ this . _promise . catch (( i =>{}))}} get state (){ return this . _state } get promise (){ return this . _promise } resolve ( i ){ if ( this . state !== p . PENDING ) throw new Error ( `cannot resolve ${ p [ this . state ]. toLowerCase () } ` ); this . _resolve ( i ); this . _state = p . RESOLVED } reject ( i ){ if ( this . state !== p . PENDING ) throw new Error ( `cannot reject ${ p [ this . state ]. toLowerCase () } ` ); this . _reject ( i ); this . _state = p . REJECTED } resolvePending ( i ){ if ( this . _state === p . PENDING ) this . resolve ( i )} rejectPending ( i ){ if ( this . _state === p . PENDING ) this . reject ( i )}} u . Deferred = Deferred }, 40800 : function ( i , u ){ var p = this && this . __awaiter || function ( i , u , p , A ){ function adopt ( i ){ return i instanceof p ? i : new p (( function ( u ){ u ( i )}))} return new ( p || ( p = Promise ))(( function ( p , g ){ function fulfilled ( i ){ try { step ( A . next ( i ))} catch ( i ){ g ( i )}} function rejected ( i ){ try { step ( A [ "throw" ]( i ))} catch ( i ){ g ( i )}} function step ( i ){ i . done ? p ( i . value ) : adopt ( i . value ). then ( fulfilled , rejected )} step (( A = A . apply ( i , u || [])). next ())}))}; Object . defineProperty ( u , "__esModule" ,{ value : true }); u . DuplexStreamingCall = void 0 ; class DuplexStreamingCall { constructor ( i , u , p , A , g , C , S ){ this . method = i ; this . requestHeaders = u ; this . requests = p ; this . headers = A ; this . responses = g ; this . status = C ; this . trailers = S } then ( i , u ){ return this . promiseFinished (). then (( u => i ? Promise . resolve ( i ( u )) : u ),( i => u ? Promise . resolve ( u ( i )) : Promise . reject ( i )))} promiseFinished (){ return p ( this , void 0 , void 0 ,( function * (){ let [ i , u , p ] = yield Promise . all ([ this . headers , this . status , this . trailers ]); return { method : this . method , requestHeaders : this . requestHeaders , headers : i , status : u , trailers : p }}))}} u . DuplexStreamingCall = DuplexStreamingCall }, 76762 : ( i , u , p )=>{ var A ; A = { value : true }; var g = p ( 42554 ); Object . defineProperty ( u , "C0" ,{ enumerable : true , get : function (){ return g . ServiceType }}); var C = p ( 83402 ); A = { enumerable : true , get : function (){ return C . readMethodOptions }}; A = { enumerable : true , get : function (){ return C . readMethodOption }}; A = { enumerable : true , get : function (){ return C . readServiceOption }}; var S = p ( 50422 ); A = { enumerable : true , get : function (){ return S . RpcError }}; var w = p ( 63474 ); A = { enumerable : true , get : function (){ return w . mergeRpcOptions }}; var B = p ( 58788 ); A = { enumerable : true , get : function (){ return B . RpcOutputStreamController }}; var v = p ( 37816 ); A = { enumerable : true , get : function (){ return v . TestTransport }}; var N = p ( 69499 ); A = { enumerable : true , get : function (){ return N . Deferred }}; A = { enumerable : true , get : function (){ return N . DeferredState }}; var T = p ( 40800 ); A = { enumerable : true , get : function (){ return T . DuplexStreamingCall }}; var Q = p ( 23311 ); A = { enumerable : true , get : function (){ return Q . ClientStreamingCall }}; var x = p ( 22715 ); A = { enumerable : true , get : function (){ return x . Serv
/**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*/
( function (){ var u ; function MurmurHash3 ( i , p ){ var A = this instanceof MurmurHash3 ? this : u ; A . reset ( p ); if ( typeof i === "string" && i . length > 0 ){ A . hash ( i )} if ( A !== this ){ return A }} MurmurHash3 . prototype . hash = function ( i ){ var u , p , A , g , C ; C = i . length ; this . len += C ; p = this . k1 ; A = 0 ; switch ( this . rem ){ case 0 : p ^= C > A ? i . charCodeAt ( A ++ ) & 65535 : 0 ; case 1 : p ^= C > A ? ( i . charCodeAt ( A ++ ) & 65535 ) << 8 : 0 ; case 2 : p ^= C > A ? ( i . charCodeAt ( A ++ ) & 65535 ) << 16 : 0 ; case 3 : p ^= C > A ? ( i . charCodeAt ( A ) & 255 ) << 24 : 0 ; p ^= C > A ? ( i . charCodeAt ( A ++ ) & 65280 ) >> 8 : 0 } this . rem = C + this . rem & 3 ; C -= this . rem ; if ( C > 0 ){ u = this . h1 ; while ( 1 ){ p = p * 11601 + ( p & 65535 ) * 3432906752 & 4294967295 ; p = p << 15 | p >>> 17 ; p = p * 13715 + ( p & 65535 ) * 461832192 & 4294967295 ; u ^= p ; u = u << 13 | u >>> 19 ; u = u * 5 + 3864292196 & 4294967295 ; if ( A >= C ){ break } p = i . charCodeAt ( A ++ ) & 65535 ^ ( i . charCodeAt ( A ++ ) & 65535 ) << 8 ^ ( i . charCodeAt ( A ++ ) & 65535 ) << 16 ; g = i . charCodeAt ( A ++ ); p ^= ( g & 255 ) << 24 ^ ( g & 65280 ) >> 8 } p = 0 ; switch ( this . rem ){ case 3 : p ^= ( i . charCodeAt ( A + 2 ) & 65535 ) << 16 ; case 2 : p ^= ( i . charCodeAt ( A + 1 ) & 65535 ) << 8 ; case 1 : p ^= i . charCodeAt ( A ) & 65535 } this . h1 = u } this . k1 = p ; return this }; MurmurHash3 . prototype . result = function (){ var i , u ; i = this . k1 ; u = this . h1 ; if ( i > 0 ){ i = i * 11601 + ( i & 65535 ) * 3432906752 & 4294967295 ; i = i << 15 | i >>> 17 ; i = i * 13715 + ( i & 65535 ) * 461832192 & 4294967295 ; u ^= i } u ^= this . len ; u ^= u >>> 16 ; u = u * 51819 + ( u & 65535 ) * 2246770688 & 4294967295 ; u ^= u >>> 13 ; u = u * 44597 + ( u & 65535 ) * 3266445312 & 4294967295 ; u ^= u >>> 16 ; return u >>> 0 }; MurmurHash3 . prototype . reset = function ( i ){ this . h1 = typeof i === "number" ? i : 0 ; this . rem = this . k1 = this . len = 0 ; return this }; u = new MurmurHash3 ; if ( true ){ i . exports = MurmurHash3 } else {}})()}, 68850 : ( i , u )=>{ Object . defineProperty ( u , "__esModule" ,{ value : true }); u . AddressError = void 0 ; class AddressError extends Error { constructor ( i , u ){ super ( i ); this . name = "AddressError" ; if ( u !== null ){ this . parseMessage = u }}} u . AddressError = AddressError }, 45864 : ( i , u )=>{ Object . defineProperty ( u , "__esModule" ,{ value : true }); u . isCorrect = u . isInSubnet = void 0 ; function isInSubnet ( i ){ if ( this . subnetMask < i . subnetMask ){ return false } if ( this . mask ( i . subnetMask ) === i . mask ()){ return true } return false } u . isInSubnet = isInSubnet ; function isCorrect ( i ){ return function (){ if ( this . addressMinusSuffix !== this . correctForm ()){ return false } if ( this . subnetMask === i &&! this . parsedSubnet ){ return true } return this . parsedSubnet === String ( this . subnetMask )}} u . isCorrect = isCorrect }, 79253 : function ( i , u , p ){ var A = this && this . __createBinding || ( Object . create ? function ( i , u , p , A ){ if ( A === undefined ) A = p ; var g = Object . getOwnPropertyDescriptor ( u , p ); if ( ! g || ( "get" in g ?! u . __esModule : g . writable || g . configurable )){ g = { enumerable : true , get : function (){ return u [ p ]}}} Object . defineProperty ( i , A , g )} : function ( i , u , p , A ){ if ( A === undefined ) A = p ; i [ A ] = u [ p ]}); var g = this && this . __setModuleDefault || ( Object . create ? function ( i , u ){ Object . defineProperty ( i , "default" ,{ enumerable : true , value : u })} : function ( i , u ){ i [ "default" ] = u }); var C = this && this . __importStar || function ( i ){ if ( i && i . __esModule ) return i ; var u = {}; if ( i != null ) for ( var p in i ) if ( p !== "default" && Object . prototype . hasOwnProperty . call ( i , p )) A ( u , i , p ); g ( u , i ); return u }; Object . defineProperty ( u , "__esModule" ,{ value : true }); u . v6 = u . AddressError = u . Address6 = u . Address4 = void 0 ; const S = p ( 17946 ); Object . defineProperty ( u , "Address4" ,{ enumerable : true , get : function (){ return S . Address4 }}); const w = p ( 38096 ); Object . defineProperty ( u , "Address6" ,{ enumerable : true , get : function (){ return w . Address6 }}); const B = p ( 68850 ); Object . defineProperty ( u , "AddressError" ,{ enumerable : true , get : function (){ return B . AddressError }}); const v = C ( p ( 20339 )); u . v6 = { helpers : v }}, 17946 : function ( i , u , p ){ var A = this && this . __createBinding || ( Object . create ? function ( i , u , p , A ){ if ( A === undefined ) A = p ; var g = Object . getOwnPropertyDescriptor ( u , p ); if ( ! g || ( "get" in g ?! u . __esModule : g . writable || g . configurable )){ g = { enumerable : true , get : function (){ return u [ p ]}}} Object . defineProperty ( i , A , g )} : function ( i , u , p , A ){ if ( A === undefined ) A = p ; i [ A ] = u [ p ]}); var g = this && this . __setModuleDefault || ( Object . create ? function ( i , u ){ Object . defineProperty ( i , "default" ,{ enumerable : true , value : u })} : function ( i , u ){ i [ "default" ] = u }); var C = this && this . __importStar || function ( i ){ if ( i && i . __esModule ) return i ; var u = {}; if ( i != null ) for ( var p in i ) if ( p !== "default" && Object . prototype . hasOwnProperty . call ( i , p )) A ( u , i , p ); g ( u , i ); return u }; Object . defineProperty ( u , "__e
/**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the " License ");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an " AS
* IS " BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/if(new S.URL(i.url).hostname!==w.hostname){i.headers.delete(" authorization ");i.headers.delete(" cookie ")}if(u.status===303||i.method===" POST "&&[301,302].includes(u.status)){A.method=" GET ";A.body=null;i.headers.delete(" content - length ")}A.headers={};i.headers.forEach(((i,u)=>{A.headers[u]=i}));A.counter=++i.counter;const B=new g(S.format(w),A);return{request:B,options:A}};const fetch=async(i,u)=>{const p=w.storable(i,u)?await B(i,u):await v(i,u);if(![" GET "," HEAD "].includes(i.method)&&p.status>=200&&p.status<=399){await B.invalidate(i,u)}if(!canFollowRedirect(i,p,u)){return p}const A=getRedirect(i,p,u);return fetch(A.request,A.options)};i.exports=fetch},39310:(i,u,p)=>{const{FetchError:A,Headers:g,Request:C,Response:S}=p(88483);const w=p(99824);const B=p(67242);const makeFetchHappen=(i,u)=>{const p=w(u);const A=new C(i,p);return B(A,p)};makeFetchHappen.defaults=(i,u={},p=makeFetchHappen)=>{if(typeof i===" object "){u=i;i=null}const defaultedFetch=(A,g={})=>{const C=A||i;const S={...u,...g,headers:{...u.headers,...g.headers}};return p(C,S)};defaultedFetch.defaults=(i,u={})=>makeFetchHappen.defaults(i,u,defaultedFetch);return defaultedFetch};i.exports=makeFetchHappen;i.exports.FetchError=A;i.exports.Headers=g;i.exports.Request=C;i.exports.Response=S},99824:(i,u,p)=>{const A=p(72250);const g=[" if - modified - since "," if - none - match "," if - unmodified - since "," if - match "," if - range "];const configureOptions=i=>{const{strictSSL:u,...p}={...i};p.method=p.method?p.method.toUpperCase():" GET ";if(u===undefined||u===null){p.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!==" 0 "}else{p.rejectUnauthorized=u!==false}if(!p.retry){p.retry={retries:0}}else if(typeof p.retry===" string "){const i=parseInt(p.retry,10);if(isFinite(i)){p.retry={retries:i}}else{p.retry={retries:0}}}else if(typeof p.retry===" number "){p.retry={retries:p.retry}}else{p.retry={retries:0,...p.retry}}p.dns={ttl:5*60*1e3,lookup:A.lookup,...p.dns};p.cache=p.cache||" default ";if(p.cache===" default "){const i=Object.keys(p.headers||{}).some((i=>g.includes(i.toLowerCase())));if(i){p.cache=" no - store "}}p.cacheAdditionalHeaders=p.cacheAdditionalHeaders||[];if(p.cacheManager&&!p.cachePath){p.cachePath=p.cacheManager}return p};i.exports=configureOptions},22314:(i,u,p)=>{const A=p(52899);class CachingMinipassPipeline extends A{#a=[];#c=new Map;constructor(i,...u){super();this.#a=i.events;if(u.length){this.push(...u)}}on(i,u){if(this.#a.includes(i)&&this.#c.has(i)){return u(...this.#c.get(i))}return super.on(i,u)}emit(i,...u){if(this.#a.includes(i)){this.#c.set(i,u)}return super.emit(i,...u)}}i.exports=CachingMinipassPipeline},20766:(i,u,p)=>{const{Minipass:A}=p(78275);const g=p(88483);const{promiseRetry:C}=p(49498);const S=p(68951);const{log:w}=p(26687);const B=p(22314);const{getAgent:v}=p(57995);const N=p(96734);const T=`${N.name}/${N.version} (+https://npm.im/${N.name})`;const Q=[" ECONNRESET "," ECONNREFUSED "," EADDRINUSE "," ETIMEDOUT "," ECONNECTIONTIMEOUT "," EIDLETIMEOUT "," ERESPONSETIMEOUT "," ETRANSFERTIMEOUT "];const x=[" request - timeout "];const remoteFetch=(i,u)=>{const p=v(i.url,{...u,signal:undefined});if(!i.headers.has(" connection ")){i.headers.set(" connection ",p?" keep - alive ":" close ")}if(!i.headers.has(" user - agent ")){i.headers.set(" user - agent ",T)}const N={...u,agent:p,redirect:" manual "};return C((async(p,C)=>{const v=new g.Request(i,N);try{let i=await g(v,N);if(N.integrity&&i.status===200){const u=S.integrityStream({algorithms:N.algorithms,integrity:N.integrity,size:N.size});const p=new B({events:[" integrity "," size "]},i.body,u);u.on(" integrity ",(i=>p.emit(" integrity ",i)));u.on(" size ",(i=>p.emit(" size ",i)));i=new g.Response(p,i);i.body.hasIntegrityEmitter=true}i.headers.set(" x - fetch - attempts ",C);const T=A.isStream(v.body);const Q=v.method!==" POST "&&!T&&([408,420,429].includes(i.status)||i.status>=500);if(Q){if(typeof u.onRetry===" function "){u.onRetry(i)}w.http(" fetch ",`${v.method} ${v.url} attempt ${C} failed with ${i.status}`);return p(i)}return i}catch(i){const A=i.code===" EPROMISERETRY "?i.retried.code:i.code;const S=i.retried instanceof g.Response||Q.includes(A)&&x.includes(i.type)
2023-07-06 23:17:35 +02:00
/*!
2026-03-03 14:25:56 +01:00
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
2023-07-06 23:17:35 +02:00
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
2026-02-28 10:09:21 +01:00
*/
2026-03-03 14:25:56 +01:00
var A=p(79168);var g=p(25111);var C=p(56008);var S=p(53672);i.exports=Negotiator;i.exports.Negotiator=Negotiator;function Negotiator(i){if(!(this instanceof Negotiator)){return new Negotiator(i)}this.request=i}Negotiator.prototype.charset=function charset(i){var u=this.charsets(i);return u&&u[0]};Negotiator.prototype.charsets=function charsets(i){return A(this.request.headers[" accept - charset "],i)};Negotiator.prototype.encoding=function encoding(i,u){var p=this.encodings(i,u);return p&&p[0]};Negotiator.prototype.encodings=function encodings(i,u){var p=u||{};return g(this.request.headers[" accept - encoding "],i,p.preferred)};Negotiator.prototype.language=function language(i){var u=this.languages(i);return u&&u[0]};Negotiator.prototype.languages=function languages(i){return C(this.request.headers[" accept - language "],i)};Negotiator.prototype.mediaType=function mediaType(i){var u=this.mediaTypes(i);return u&&u[0]};Negotiator.prototype.mediaTypes=function mediaTypes(i){return S(this.request.headers.accept,i)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:i=>{i.exports=preferredCharsets;i.exports.preferredCharsets=preferredCharsets;var u=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(i){var u=i.split(" , ");for(var p=0,A=0;p<u.length;p++){var g=parseCharset(u[p].trim(),p);if(g){u[A++]=g}}u.length=A;return u}function parseCharset(i,p){var A=u.exec(i);if(!A)return null;var g=A[1];var C=1;if(A[2]){var S=A[2].split(" ; ");for(var w=0;w<S.length;w++){var B=S[w].trim().split(" = ");if(B[0]===" q "){C=parseFloat(B[1]);break}}}return{charset:g,q:C,i:p}}function getCharsetPriority(i,u,p){var A={o:-1,q:0,s:0};for(var g=0;g<u.length;g++){var C=specify(i,u[g],p);if(C&&(A.s-C.s||A.q-C.q||A.o-C.o)<0){A=C}}return A}function specify(i,u,p){var A=0;if(u.charset.toLowerCase()===i.toLowerCase()){A|=1}else if(u.charset!==" * "){return null}return{i:p,o:u.i,q:u.q,s:A}}function preferredCharsets(i,u){var p=parseAcceptCharset(i===undefined?" * ":i||"");if(!u){return p.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var A=u.map((function getPriority(i,u){return getCharsetPriority(i,p,u)}));return A.filter(isQuality).sort(compareSpecs).map((function getCharset(i){return u[A.indexOf(i)]}))}function compareSpecs(i,u){return u.q-i.q||u.s-i.s||i.o-u.o||i.i-u.i||0}function getFullCharset(i){return i.charset}function isQuality(i){return i.q>0}},25111:i=>{i.exports=preferredEncodings;i.exports.preferredEncodings=preferredEncodings;var u=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(i){var u=i.split(" , ");var p=false;var A=1;for(var g=0,C=0;g<u.length;g++){var S=parseEncoding(u[g].trim(),g);if(S){u[C++]=S;p=p||specify(" identity ",S);A=Math.min(A,S.q||1)}}if(!p){u[C++]={encoding:" identity ",q:A,i:g}}u.length=C;return u}function parseEncoding(i,p){var A=u.exec(i);if(!A)return null;var g=A[1];var C=1;if(A[2]){var S=A[2].split(" ; ");for(var w=0;w<S.length;w++){var B=S[w].trim().split(" = ");if(B[0]===" q "){C=parseFloat(B[1]);break}}}return{encoding:g,q:C,i:p}}function getEncodingPriority(i,u,p){var A={encoding:i,o:-1,q:0,s:0};for(var g=0;g<u.length;g++){var C=specify(i,u[g],p);if(C&&(A.s-C.s||A.q-C.q||A.o-C.o)<0){A=C}}return A}function specify(i,u,p){var A=0;if(u.encoding.toLowerCase()===i.toLowerCase()){A|=1}else if(u.encoding!==" * "){return null}return{encoding:i,i:p,o:u.i,q:u.q,s:A}}function preferredEncodings(i,u,p){var A=parseAcceptEncoding(i||"");var g=p?function comparator(i,u){if(i.q!==u.q){return u.q-i.q}var A=p.indexOf(i.encoding);var g=p.indexOf(u.encoding);if(A===-1&&g===-1){return u.s-i.s||i.o-u.o||i.i-u.i}if(A!==-1&&g!==-1){retur
2021-09-03 22:21:20 +02:00
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
2026-03-03 14:25:56 +01:00
*/const g=p(79896);const C=p(70857);const S=p(16928);const w=p(76982);const B={fs:g.constants,os:C.constants};const v=" 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ",N=/XXXXXX/,T=3,Q=(B.O_CREAT||B.fs.O_CREAT)|(B.O_EXCL||B.fs.O_EXCL)|(B.O_RDWR||B.fs.O_RDWR),x=C.platform()===" win32 ",_=B.EBADF||B.os.errno.EBADF,k=B.ENOENT||B.os.errno.ENOENT,O=448,D=384,P=" exit ",L=[],U=g.rmdirSync.bind(g);let H=false;function rimraf(i,u){return g.rm(i,{recursive:true},u)}function FN_RIMRAF_SYNC(i){return g.rmSync(i,{recursive:true})}function tmpName(i,u){const p=_parseArguments(i,u),A=p[0],C=p[1];_assertAndSanitizeOptions(A,(function(i,u){if(i)return C(i);let p=u.tries;(function _getUniqueName(){try{const i=_generateTmpName(u);g.stat(i,(function(u){if(!u){if(p-- >0)return _getUniqueName();return C(new Error(" Could not get a unique tmp filename , max tries reached "+i))}C(null,i)}))}catch(i){C(i)}})()}))}function tmpNameSync(i){const u=_parseArguments(i),p=u[0];const A=_assertAndSanitizeOptionsSync(p);let C=A.tries;do{const i=_generateTmpName(A);try{g.statSync(i)}catch(u){return i}}while(C-- >0);throw new Error(" Could not get a unique tmp filename , max tries reached ")}function file(i,u){const p=_parseArguments(i,u),A=p[0],C=p[1];tmpName(A,(function _tmpNameCreated(i,u){if(i)return C(i);g.open(u,Q,A.mode||D,(function _fileCreated(i,p){if(i)return C(i);if(A.discardDescriptor){return g.close(p,(function _discardCallback(i){return C(i,u,undefined,_prepareTmpFileRemoveCallback(u,-1,A,false))}))}else{const i=A.discardDescriptor||A.detachDescriptor;C(null,u,p,_prepareTmpFileRemoveCallback(u,i?-1:p,A,false))}}))}))}function fileSync(i){const u=_parseArguments(i),p=u[0];const A=p.discardDescriptor||p.detachDescriptor;const C=tmpNameSync(p);let S=g.openSync(C,Q,p.mode||D);if(p.discardDescriptor){g.closeSync(S);S=undefined}return{name:C,fd:S,removeCallback:_prepareTmpFileRemoveCallback(C,A?-1:S,p,true)}}function dir(i,u){const p=_parseArguments(i,u),A=p[0],C=p[1];tmpName(A,(function _tmpNameCreated(i,u){if(i)return C(i);g.mkdir(u,A.mode||O,(function _dirCreated(i){if(i)return C(i);C(null,u,_prepareTmpDirRemoveCallback(u,A,false))}))}))}function dirSync(i){const u=_parseArguments(i),p=u[0];const A=tmpNameSync(p);g.mkdirSync(A,p.mode||O);return{name:A,removeCallback:_prepareTmpDirRemoveCallback(A,p,true)}}function _removeFileAsync(i,u){const _handler=function(i){if(i&&!_isENOENT(i)){return u(i)}u()};if(0<=i[0])g.close(i[0],(function(){g.unlink(i[1],_handler)}));else g.unlink(i[1],_handler)}function _removeFileSync(i){let u=null;try{if(0<=i[0])g.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{g.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))u=i}}if(u!==null){throw u}}function _prepareTmpFileRemoveCallback(i,u,p,A){const g=_prepareRemoveCallback(_removeFileSync,[u,i],A);const C=_prepareRemoveCallback(_removeFileAsync,[u,i],A,g);if(!p.keep)L.unshift(g);return A?g:C}function _prepareTmpDirRemoveCallback(i,u,p){const A=u.unsafeCleanup?rimraf:g.rmdir.bind(g);const C=u.unsafeCleanup?FN_RIMRAF_SYNC:U;const S=_prepareRemoveCallback(C,i,p);const w=_prepareRemoveCallback(A,i,p,S);if(!u.keep)L.unshift(S);return p?S:w}function _prepareRemoveCallback(i,u,p,A){let g=false;return function _cleanupCallback(C){if(!g){const S=A||_cleanupCallback;const w=L.indexOf(S);if(w>=0)L.splice(w,1);g=true;if(p||i===U||i===FN_RIMRAF_SYNC){return i(u)}else{return i(u,C||function(){})}}}}function _garbageCollector(){if(!H)return;while(L.length){try{L[0]()}catch(i){}}}function _randomChars(i){let u=[],p=null;try{p=w.randomBytes(i)}catch(u){p=w.pseudoRandomBytes(i)}for(let A=0;A<i;A++){u.push(v[p[A]%v.length])}return u.join("")}function _isUndefined(i){return typeof i===" undefined "}function _parseArguments(i,u){if(typeof i===" function "){return[{},i]}if(_isUndefined(i)){return[{},u]}const p={};for(const u of Object.getOwnPropertyNames(i)){p[u]=i[u]}return[p,u]}function _resolvePath(i,u,p){const A=S.isAbsolute(i)?i:S.join(u,i);g.stat(A,(function(i){if(i){g.realpath(S.dirname(A),(function(i,u){if(i)return p(i);p(null,S.join(u,S.basename(A)))}))}else{g
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g," % 0 A ").replace(/\r/g," % 0 D ").replace(/" / g , "%22" ); const normalizeLinefeeds = i => i . replace ( /\r?\n|\r/g , "\r\n" ); const A = []; const g = new Uint8Array ([ 13 , 10 ]); N = 0 ; let C = false ; for ( const [ u , S ] of i ){ if ( typeof S === "string" ){ const i = j . encode ( p + `; name=" ${ escape ( normalizeLinefeeds ( u )) } "` + `\r\n\r\n ${ normalizeLinefeeds ( S ) } \r\n` ); A . push ( i ); N += i . byteLength } else { const i = j . encode ( ` ${ p } ; name=" ${ escape ( normalizeLinefeeds ( u )) } "` + ( S . name ? `; filename=" ${ escape ( S . name ) } "` : "" ) + "\r\n" + `Content-Type: ${ S . type || "application/octet-stream" } \r\n\r\n` ); A . push ( i , S , g ); if ( typeof S . size === "number" ){ N += i . byteLength + S . size + g . byteLength } else { C = true }}} const S = j . encode ( `-- ${ u } --\r\n` ); A . push ( S ); N += S . byteLength ; if ( C ){ N = null } v = i ; B = async function * (){ for ( const i of A ){ if ( i . stream ){ yield * i . stream ()} else { yield i }}}; T = `multipart/form-data; boundary= ${ u } ` } else if ( C ( i )){ v = i ; N = i . size ; if ( i . type ){ T = i . type }} else if ( typeof i [ Symbol . asyncIterator ] === "function" ){ if ( u ){ throw new TypeError ( "keepalive" )} if ( A . isDisturbed ( i ) || i . locked ){ throw new TypeError ( "Response body object should not be disturbed or locked" )} p = i instanceof ReadableStream ? i : g ( i )} if ( typeof v === "string" || A . isBuffer ( v )){ N = Buffer . byteLength ( v )} if ( B != null ){ let u ; p = new ReadableStream ({ async start (){ u = B ( i )[ Symbol . asyncIterator ]()}, async pull ( i ){ const { value : A , done : g } = await u . next (); if ( g ){ queueMicrotask ((()=>{ i . close (); i . byobRequest ? . respond ( 0 )}))} else { if ( ! D ( p )){ const u = new Uint8Array ( A ); if ( u . byteLength ){ i . enqueue ( u )}}} return i . desiredSize > 0 }, async cancel ( i ){ await u . return ()}, type : "bytes" })} const Q = { stream : p , source : v , length : N }; return [ Q , T ]} function safelyExtractBody ( i , u = false ){ if ( i instanceof ReadableStream ){ O ( ! A . isDisturbed ( i ), "The body has already been consumed." ); O ( ! i . locked , "The stream is locked." )} return extractBody ( i , u )} function cloneBody ( i , u ){ const [ p , A ] = u . stream . tee (); u . stream = p ; return { stream : A , length : u . length , source : u . source }} function throwIfAborted ( i ){ if ( i . aborted ){ throw new DOMException ( "The operation was aborted." , "AbortError" )}} function bodyMixinMethods ( i ){ const u = { blob (){ return consumeBody ( this ,( i =>{ let u = bodyMimeType ( this ); if ( u === null ){ u = "" } else if ( u ){ u = U ( u )} return new k ([ i ],{ type : u })}), i )}, arrayBuffer (){ return consumeBody ( this ,( i => new Uint8Array ( i ). buffer ), i )}, text (){ return consumeBody ( this , T , i )}, json (){ return consumeBody ( this , parseJSONFromBytes , i )}, formData (){ return consumeBody ( this ,( i =>{ const u = bodyMimeType ( this ); if ( u !== null ){ switch ( u . essence ){ case "multipart/form-data" : { const p = H ( i , u ); if ( p === "failure" ){ throw new TypeError ( "Failed to parse body as FormData." )} const A = new Q ; A [ x ] = p ; return A } case "application/x-www-form-urlencoded" : { const u = new URLSearchParams ( i . toString ()); const p = new Q ; for ( const [ i , A ] of u ){ p . append ( i , A )} return p }}} throw new TypeError ( 'Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".' )}), i )}, bytes (){ return consumeBody ( this ,( i => new Uint8Array ( i )), i )}}; return u } function mixinBody ( i ){ Object . assign ( i . prototype , bodyMixinMethods ( i ))} async function consumeBody ( i , u , p ){ _ . brandCheck ( i , p ); if ( bodyUnusable ( i )){ throw new TypeError ( "Body is unusable: Body has already been read" )} throwIfAborted ( i [ x ]); const A = B (); const errorSteps = i => A . reject ( i ); const successSteps = i =>{ try { A . resolve ( u ( i ))} catch ( i ){ errorSteps ( i )}}; if ( i [ x ]. body == null ){ successSteps ( Buffer . allocUnsafe ( 0 )); return A . promise } await v ( i [ x ]. body , successSteps , errorSteps ); return A . promise } function bodyUnusable ( i ){ const u = i [ x ]. body ; return u != null && ( u . stream . locked || A . isDisturbed ( u . stream ))} function parseJSONFromBytes ( i ){ return JSON . parse ( T ( i ))} function bodyMimeType ( i ){ const u = i [ x ]. headersList ; const p = N ( u ); if ( p === "failure" ){ return null } return p } i . exports = { extractBody : extractBody , safelyExtractBody : safelyExtractBody , cloneBody : cloneBody , mixinBody : mixinBody , streamRegistry : $ , hasFinalizationRegistry : q , bodyUnusable : bodyUnusable }}, 4495 : i =>{ const u = [ "GET" , "HEAD" , "POST" ]; const p = new Set ( u ); const A = [ 101 , 204 , 205 , 304 ]; const g = [ 301 , 302 , 303 , 307 , 308 ]; const C = new Set ( g ); const S = [ "1" , "7" , "9" , "11" , "13" , "15" , "17" , "19" , "
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */w[S-4]=p[0];w[S-3]=p[1];w[S-2]=p[2];w[S-1]=p[3];w[1]=C;if(C===126){w.writeUInt16BE(g,2)}else if(C===127){w[2]=w[3]=0;w.writeUIntBE(g,4,6)}w[1]|=128;for(let i=0;i<g;++i){w[S+i]=u[i]^p[i&3]}return w}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(i,u,p)=>{const{createInflateRaw:A,Z_DEFAULT_WINDOWBITS:g}=p(38522);const{isValidClientWindowBits:C}=p(98625);const S=Buffer.from([0,0,255,255]);const w=Symbol(" kBuffer ");const B=Symbol(" kLength ");class PerMessageDeflate{#ce;#e={};constructor(i){this.#e.serverNoContextTakeover=i.has(" server_no_context_takeover ");this.#e.serverMaxWindowBits=i.get(" server_max_window_bits ")}decompress(i,u,p){if(!this.#ce){let i=g;if(this.#e.serverMaxWindowBits){if(!C(this.#e.serverMaxWindowBits)){p(new Error(" Invalid server_max_window_bits "));return}i=Number.parseInt(this.#e.serverMaxWindowBits)}this.#ce=A({windowBits:i});this.#ce[w]=[];this.#ce[B]=0;this.#ce.on(" data ",(i=>{this.#ce[w].push(i);this.#ce[B]+=i.length}));this.#ce.on(" error ",(i=>{this.#ce=null;p(i)}))}this.#ce.write(i);if(u){this.#ce.write(S)}this.#ce.flush((()=>{const i=Buffer.concat(this.#ce[w],this.#ce[B]);this.#ce[w].length=0;this.#ce[B]=0;p(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},81652:(i,u,p)=>{const{Writable:A}=p(57075);const g=p(34589);const{parserStates:C,opcodes:S,states:w,emptyBuffer:B,sentCloseFrameState:v}=p(20736);const{kReadyState:N,kSentClose:T,kResponse:Q,kReceivedClose:x}=p(61216);const{channels:_}=p(42414);const{isValidStatusCode:k,isValidOpcode:O,failWebsocketConnection:D,websocketMessageReceived:P,utf8Decode:L,isControlFrame:U,isTextBinaryFrame:H,isContinuationFrame:z}=p(98625);const{WebsocketFrameSend:j}=p(3264);const{closeWebSocketConnection:q}=p(86897);const{PerMessageDeflate:$}=p(19469);class ByteParser extends A{#le=[];#ue=0;#de=false;#k=C.INFO;#he={};#pe=[];#fe;constructor(i,u){super();this.ws=i;this.#fe=u==null?new Map:u;if(this.#fe.has(" permessage - deflate ")){this.#fe.set(" permessage - deflate ",new $(u))}}_write(i,u,p){this.#le.push(i);this.#ue+=i.length;this.#de=true;this.run(p)}run(i){while(this.#de){if(this.#k===C.INFO){if(this.#ue<2){return i()}const u=this.consume(2);const p=(u[0]&128)!==0;const A=u[0]&15;const g=(u[1]&128)===128;const w=!p&&A!==S.CONTINUATION;const B=u[1]&127;const v=u[0]&64;const N=u[0]&32;const T=u[0]&16;if(!O(A)){D(this.ws," Invalid opcode received ");return i()}if(g){D(this.ws," Frame cannot be masked ");return i()}if(v!==0&&!this.#fe.has(" permessage - deflate ")){D(this.ws," Expected RSV1 to be clear . ");return}if(N!==0||T!==0){D(this.ws," RSV1 , RSV2 , RSV3 must be clear ");return}if(w&&!H(A)){D(this.ws," Invalid frame type was fragmented . ");return}if(H(A)&&this.#pe.length>0){D(this.ws," Expected continuation frame ");return}if(this.#he.fragmented&&w){D(this.ws," Fragmented frame exceeded 125 bytes . ");return}if((B>125||w)&&U(A)){D(this.ws," Control frame either too large or fragmented ");return}if(z(A)&&this.#pe.length===0&&!this.#he.compressed){D(this.ws," Unexpected continuation frame ");return}if(B<=125){this.#he.payloadLength=B;this.#k=C.READ_DATA}else if(B===126){this.#k=C.PAYLOADLENGTH_16}else if(B===127){this.#k=C.PAYLOADLENGTH_64}if(H(A)){this.#he.binaryType=A;this.#he.compressed=v!==0}this.#he.opcode=A;this.#he.masked=g;this.#he.fin=p;this.#he.fragmented=w}else if(this.#k===C.PAYLOADLENGTH_16){if(this.#ue<2){return i()}const u=this.consume(2);this.#he.payloadLength=u.readUInt16BE(0);this.#k=C.READ_DATA}else if(this.#k===C.PAYLOADLENGTH_64){if(this.#ue<8){return i()}const u=this.consume(8);const p=u.readUInt32BE(0);if(p>2**31-1){D(this.ws," Received payload length > 2 ^ 31 bytes . ");return}const A=u.readUInt32BE(4);this.#he.payloadLength=(p<<8)+A;this.#k=C.READ_DATA}else if(this.#k===C.READ_DATA){if(this.#ue<this.#he.payloadLength){return i()}const u=this.consume(this.#he.payloadLength);if(U(this.#he.opcode)){this.#de=this.parseControlFrame(u);this.#k=C.INFO}else{if(!this.#he.compressed){this.#pe.push(u);if(!this.#he.fragmented&&this.#he.fin){const i=Buffer.concat(this.#pe);P(this.ws,this.#he.binaryType,i);
2026-03-03 12:58:13 +00:00
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
2026-03-03 14:25:56 +01:00
function isNothing(i){return typeof i===" undefined "||i===null}function isObject(i){return typeof i===" object "&&i!==null}function toArray(i){if(Array.isArray(i))return i;else if(isNothing(i))return[];return[i]}function extend(i,u){var p,A,g,C;if(u){C=Object.keys(u);for(p=0,A=C.length;p<A;p+=1){g=C[p];i[g]=u[g]}}return i}function repeat(i,u){var p="",A;for(A=0;A<u;A+=1){p+=i}return p}function isNegativeZero(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}var w=isNothing;var B=isObject;var v=toArray;var N=repeat;var T=isNegativeZero;var Q=extend;var x={isNothing:w,isObject:B,toArray:v,repeat:N,isNegativeZero:T,extend:Q};function formatError(i,u){var p="",A=i.reason||" ( unknown reason ) ";if(!i.mark)return A;if(i.mark.name){p+='in " '+i.mark.name+' " '}p+=" ( "+(i.mark.line+1)+" : "+(i.mark.column+1)+" ) ";if(!u&&i.mark.snippet){p+=" \ n \ n "+i.mark.snippet}return A+" "+p}function YAMLException$1(i,u){Error.call(this);this.name=" YAMLException ";this.reason=i;this.mark=u;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(i){return this.name+" : "+formatError(this,i)};var _=YAMLException$1;function getLine(i,u,p,A,g){var C="";var S="";var w=Math.floor(g/2)-1;if(A-u>w){C=" ... ";u=A-w+C.length}if(p-A>w){S=" ... ";p=A+w-S.length}return{str:C+i.slice(u,p).replace(/\t/g," → ")+S,pos:A-u+C.length}}function padStart(i,u){return x.repeat(" ",u-i.length)+i}function makeSnippet(i,u){u=Object.create(u||null);if(!i.buffer)return null;if(!u.maxLength)u.maxLength=79;if(typeof u.indent!==" number ")u.indent=1;if(typeof u.linesBefore!==" number ")u.linesBefore=3;if(typeof u.linesAfter!==" number ")u.linesAfter=2;var p=/\r?\n|\r|\0/g;var A=[0];var g=[];var C;var S=-1;while(C=p.exec(i.buffer)){g.push(C.index);A.push(C.index+C[0].length);if(i.position<=C.index&&S<0){S=A.length-2}}if(S<0)S=A.length-1;var w="",B,v;var N=Math.min(i.line+u.linesAfter,g.length).toString().length;var T=u.maxLength-(u.indent+N+3);for(B=1;B<=u.linesBefore;B++){if(S-B<0)break;v=getLine(i.buffer,A[S-B],g[S-B],i.position-(A[S]-A[S-B]),T);w=x.repeat(" ",u.indent)+padStart((i.line-B+1).toString(),N)+" | "+v.str+" \ n "+w}v=getLine(i.buffer,A[S],g[S],i.position,T);w+=x.repeat(" ",u.indent)+padStart((i.line+1).toString(),N)+" | "+v.str+" \ n ";w+=x.repeat(" - ",u.indent+N+3+v.pos)+" ^ "+" \ n ";for(B=1;B<=u.linesAfter;B++){if(S+B>=g.length)break;v=getLine(i.buffer,A[S+B],g[S+B],i.position-(A[S]-A[S+B]),T);w+=x.repeat(" ",u.indent)+padStart((i.line+B+1).toString(),N)+" | "+v.str+" \ n "}return w.replace(/\n$/,"")}var k=makeSnippet;var O=[" kind "," multi "," resolve "," construct "," instanceOf "," predicate "," represent "," representName "," defaultStyle "," styleAliases "];var D=[" scalar "," sequence "," mapping "];function compileStyleAliases(i){var u={};if(i!==null){Object.keys(i).forEach((function(p){i[p].forEach((function(i){u[String(i)]=p}))}))}return u}function Type$1(i,u){u=u||{};Object.keys(u).forEach((function(u){if(O.indexOf(u)===-1){throw new _('Unknown option " '+u+' " is met in definition of " '+i+' " YAML type.')}}));this.options=u;this.tag=i;this.kind=u[" kind "]||null;this.resolve=u[" resolve "]||function(){return true};this.construct=u[" construct "]||function(i){return i};this.instanceOf=u[" instanceOf "]||null;this.predicate=u[" predicate "]||null;this.represent=u[" represent "]||null;this.representName=u[" representName "]||null;this.defaultStyle=u[" defaultStyle "]||null;this.multi=u[" multi "]||false;this.styleAliases=compileStyleAliases(u[" styleAliases "]||null);if(D.indexOf(this.kind)===-1){throw new _('Unknown kind " '+this.kind+' " is specified for " '+i+' " YAML type.')}}var P=Type$1;function compileList(i,u){var p=[];i[u].forEach((function(i){var u=p.length;p.forEach((function(p,A){if(p.tag===i.tag&&p.kind===i.kind&&p.multi===i.multi){u=A}}));p[u]=i}));return p}function compileMap(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fal
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if(" response "in p){this.response=p.response}const A=Object.assign({},p.request);if(p.request.headers.authorization){A.headers=Object.assign({},p.request.headers,{authorization:p.request.headers.authorization.replace(/(?<! ) .*$/," [ REDACTED ] ")})}A.url=A.url.replace(/\bclient_secret=\w+/g," client_secret = [ REDACTED ] ").replace(/\baccess_token=\w+/g," access_token = [ REDACTED ] ");this.request=A}}var Km=" 10.0 . 8 ";var Zm={headers:{" user - agent ":`octokit-request.js/${Km} ${getUserAgent()}`}};function dist_bundle_isPlainObject(i){if(typeof i!==" object "||i===null)return false;if(Object.prototype.toString.call(i)!==" [ object Object ] ")return false;const u=Object.getPrototypeOf(i);if(u===null)return true;const p=Object.prototype.hasOwnProperty.call(u," constructor ")&&u.constructor;return typeof p===" function "&&p instanceof p&&Function.prototype.call(p)===Function.prototype.call(i)}var noop=()=>"";async function fetchWrapper(i){const u=i.request?.fetch||globalThis.fetch;if(!u){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 p=i.request?.log||console;const A=i.request?.parseSuccessResponseBody!==false;const g=dist_bundle_isPlainObject(i.body)||Array.isArray(i.body)?JSONStringify(i.body):i.body;const C=Object.fromEntries(Object.entries(i.headers).map((([i,u])=>[i,String(u)])));let S;try{S=await u(i.url,{method:i.method,body:g,redirect:i.request?.redirect,headers:C,signal:i.request?.signal,...i.body&&{duplex:"half"}})}catch(u){let p="Unknown Error";if(u instanceof Error){if(u.name==="AbortError"){u.status=500;throw u}p=u.message;if(u.name==="TypeError"&&"cause"in u){if(u.cause instanceof Error){p=u.cause.message}else if(typeof u.cause==="string"){p=u.cause}}}const A=new RequestError(p,500,{request:i});A.cause=u;throw A}const w=S.status;const B=S.url;const v={};for(const[i,u]of S.headers){v[i]=u}const N={url:B,status:w,headers:v,data:""};if("deprecation"in v){const u=v.link&&v.link.match(/<([^<>]+)>; rel="deprecation"/);const A=u&&u.pop();p.warn(`[@octokit/request] "${i.method} ${i.url}" is deprecated. It is scheduled to be removed on ${v.sunset}${A?`. See ${A}`:""}`)}if(w===204||w===205){return N}if(i.method==="HEAD"){if(w<400){return N}throw new RequestError(S.statusText,w,{response:N,request:i})}if(w===304){N.data=await getResponseData(S);throw new RequestError("Not modified",w,{response:N,request:i})}if(w>=400){N.data=await getResponseData(S);throw new RequestError(toErrorMessage(N.data),w,{response:N,request:i})}N.data=A?await getResponseData(S):S.body;return N}async function getResponseData(i){const u=i.headers.get("content-type");if(!u){return i.text().catch(noop)}const p=(0,Fm.xL)(u);if(isJSONResponse(p)){let u="";try{u=await i.text();return JSONParse(u)}catch(i){return u}}else if(p.type.startsWith("text/")||p.parameters.charset?.toLowerCase()==="utf-8"){return i.text().catch(noop)}else{return i.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=> new ArrayBuffer ( 0 )))}} function isJSONResponse ( i ){ return i . type === "application/json" || i . type === "application/scim+json" } function toErrorMessage ( i ){ if ( typeof i === "string" ){ return i } if ( i instanceof ArrayBuffer ){ return "Unknown error" } if ( "message" in i ){ const u = "documentation_url" in i ? ` - ${ i . documentation_url } ` : "" ; return Array . isArray ( i . errors ) ? ` ${ i . message } : ${ i . errors . map (( i => JSON . stringify ( i ))). join ( ", " ) }${ u } ` : ` ${ i . message }${ u } ` } return `Unknown error: ${ JSON . stringify ( i ) } ` } function dist_bundle_withDefaults ( i , u ){ const p = i . defaults ( u ); const newApi = function ( i , u ){ const A = p . merge ( i , u ); if ( ! A . request ||! A . request . hook ){ return fetchWrapper ( p . parse ( A ))} const request2 = ( i , u )=> fetchWrapper ( p . parse ( p . merge ( i , u ))); Object . assign ( request2 ,{ endpoint : p , defaults : dist_bundle_withDefaults . bind ( null , p )}); return A . request . hook ( request2 , A )}; return Object . assign ( newApi ,{ endpoint : p , defaults : dist_bundle_withDefaults . bind ( null , p )})} var Xm = dist_bundle_withDefaults ( Lm , Zm );
/* v8 ignore next -- @preserve */
2026-03-05 07:38:34 +00:00
/* v8 ignore else -- @preserve */ var ey = "0.0.0-development" ; function _buildMessageForResponseErrors ( i ){ return `Request failed due to following response errors:\n` + i . errors . map (( i => ` - ${ i . message } ` )). join ( "\n" )} var ty = class extends Error { constructor ( i , u , p ){ super ( _buildMessageForResponseErrors ( p )); this . request = i ; this . headers = u ; this . response = p ; this . errors = p . errors ; this . data = p . data ; if ( Error . captureStackTrace ){ Error . captureStackTrace ( this , this . constructor )}} name = "GraphqlResponseError" ; errors ; data }; var ry = [ "method" , "baseUrl" , "url" , "headers" , "request" , "query" , "mediaType" , "operationName" ]; var sy = [ "query" , "method" , "url" ]; var ny = /\/api\/v3\/?$/ ; function graphql ( i , u , p ){ if ( p ){ if ( typeof u === "string" && "query" in p ){ return Promise . reject ( new Error ( `[@octokit/graphql] "query" cannot be used as variable name` ))} for ( const i in p ){ if ( ! sy . includes ( i )) continue ; return Promise . reject ( new Error ( `[@octokit/graphql] " ${ i } " cannot be used as variable name` ))}} const A = typeof u === "string" ? Object . assign ({ query : u }, p ) : u ; const g = Object . keys ( A ). reduce ((( i , u )=>{ if ( ry . includes ( u )){ i [ u ] = A [ u ]; return i } if ( ! i . variables ){ i . variables = {}} i . variables [ u ] = A [ u ]; return i }),{}); const C = A . baseUrl || i . endpoint . DEFAULTS . baseUrl ; if ( ny . test ( C )){ g . url = C . replace ( ny , "/api/graphql" )} return i ( g ). then (( i =>{ if ( i . data . errors ){ const u = {}; for ( const p of Object . keys ( i . headers )){ u [ p ] = i . headers [ p ]} throw new ty ( g , u , i . data )} return i . data . data }))} function graphql_dist_bundle_withDefaults ( i , u ){ const p = i . defaults ( u ); const newApi = ( i , u )=> graphql ( p , i , u ); return Object . assign ( newApi ,{ defaults : graphql_dist_bundle_withDefaults . bind ( null , p ), endpoint : p . endpoint })} var iy = graphql_dist_bundle_withDefaults ( Xm ,{ headers : { "user-agent" : `octokit-graphql.js/ ${ ey } ${ getUserAgent () } ` }, method : "POST" , url : "/graphql" }); function withCustomRequest ( i ){ return graphql_dist_bundle_withDefaults ( i ,{ method : "POST" , url : "/graphql" })} var oy = "(?:[a-zA-Z0-9_-]+)" ; var ay = "\\." ; var cy = new RegExp ( `^ ${ oy }${ ay }${ oy }${ ay }${ oy } $` ); var ly = cy . test . bind ( cy ); async function auth ( i ){ const u = ly ( i ); const p = i . startsWith ( "v1." ) || i . startsWith ( "ghs_" ); const A = i . startsWith ( "ghu_" ); const g = u ? "app" : p ? "installation" : A ? "user-to-server" : "oauth" ; return { type : "token" , token : i , tokenType : g }} function withAuthorizationPrefix ( i ){ if ( i . split ( /\./ ). length === 3 ){ return `bearer ${ i } ` } return `token ${ i } ` } async function hook ( i , u , p , A ){ const g = u . endpoint . merge ( p , A ); g . headers . authorization = withAuthorizationPrefix ( i ); return u ( g )} var uy = function createTokenAuth2 ( i ){ if ( ! i ){ throw new Error ( "[@octokit/auth-token] No token passed to createTokenAuth" )} if ( typeof i !== "string" ){ throw new Error ( "[@octokit/auth-token] Token passed to createTokenAuth is not a string" )} i = i . replace ( /^(token|bearer) +/i , "" ); return Object . assign ( auth . bind ( null , i ),{ hook : hook . bind ( null , i )})}; const dy = "7.0.6" ; const dist_src_noop = ()=>{}; const hy = console . warn . bind ( console ); const py = console . error . bind ( console ); function createLogger ( i = {}){ if ( typeof i . debug !== "function" ){ i . debug = dist_src_noop } if ( typeof i . info !== "function" ){ i . info = dist_src_noop } if ( typeof i . warn !== "function" ){ i . warn = hy } if ( typeof i . error !== "function" ){ i . error = py } return i } const fy = `octokit-core.js/ ${ dy } ${ getUserAgent () } ` ; class Octokit { static VERSION = dy ; static defaults ( i ){ const u = class extends ( this ){ constructor (... u ){ const p = u [ 0 ] || {}; if ( typeof i === "function" ){ super ( i ( p )); return } super ( Object . assign ({}, i , p , p . userAgent && i . userAgent ? { userAgent : ` ${ p . userAgent } ${ i . userAgent } ` } : null ))}}; return u } static plugins = []; static plugin (... i ){ const u = this . plugins ; const p = class extends ( this ){ static plugins = u . concat ( i . filter (( i => ! u . includes ( i ))))}; return p } constructor ( i = {}){ const u = new km . Collection ; const p = { baseUrl : Xm . endpoint . DEFAULTS . baseUrl , headers : {}, request : Object . assign ({}, i . request ,{ hook : u . bind ( null , "request" )}), mediaType : { previews : [], format : "" }}; p . headers [ "user-agent" ] = i . userAgent ? ` ${ i . userAgent } ${ fy } ` : fy ; if ( i . baseUrl ){ p . baseUrl = i . baseUrl } if ( i . previews ){ p . mediaType . previews = i . previews } if ( i . timeZone ){ p . headers [ "time-zone" ] = i . timeZone } this . request = Xm . defaults ( p ); this . graphql = withCustomRequest ( this . request ). defaults ( p ); this . log = createLogger ( i . log ); this . hook = u ; if ( ! i . a
2022-03-21 13:43:41 +01:00
//# sourceMappingURL=index.js.map