docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped

This commit is contained in:
TanTan committed 2026-11-13 09:27:07 +08:00
1 parent fa9c73363d
commit 2a69b23b47
18210 files changed
+5101211 -16

No files matched your search

@@ -0,0 +1,113 @@
// Generated by LiveScript 1.6.0
(function(){
var reject, special, tokenRegex;
reject = require('prelude-ls').reject;
function consumeOp(tokens, op){
if (tokens[0] === op) {
return tokens.shift();
} else {
throw new Error("Expected '" + op + "', but got '" + tokens[0] + "' instead in " + JSON.stringify(tokens) + ".");
}
}
function maybeConsumeOp(tokens, op){
if (tokens[0] === op) {
return tokens.shift();
}
}
function consumeList(tokens, arg$, hasDelimiters){
var open, close, result, untilTest;
open = arg$[0], close = arg$[1];
if (hasDelimiters) {
consumeOp(tokens, open);
}
result = [];
untilTest = "," + (hasDelimiters ? close : '');
while (tokens.length && (hasDelimiters && tokens[0] !== close)) {
result.push(consumeElement(tokens, untilTest));
maybeConsumeOp(tokens, ',');
}
if (hasDelimiters) {
consumeOp(tokens, close);
}
return result;
}
function consumeArray(tokens, hasDelimiters){
return consumeList(tokens, ['[', ']'], hasDelimiters);
}
function consumeTuple(tokens, hasDelimiters){
return consumeList(tokens, ['(', ')'], hasDelimiters);
}
function consumeFields(tokens, hasDelimiters){
var result, untilTest, key;
if (hasDelimiters) {
consumeOp(tokens, '{');
}
result = {};
untilTest = "," + (hasDelimiters ? '}' : '');
while (tokens.length && (!hasDelimiters || tokens[0] !== '}')) {
key = consumeValue(tokens, ':');
consumeOp(tokens, ':');
result[key] = consumeElement(tokens, untilTest);
maybeConsumeOp(tokens, ',');
}
if (hasDelimiters) {
consumeOp(tokens, '}');
}
return result;
}
function consumeValue(tokens, untilTest){
var out;
untilTest == null && (untilTest = '');
out = '';
while (tokens.length && -1 === untilTest.indexOf(tokens[0])) {
out += tokens.shift();
}
return out;
}
function consumeElement(tokens, untilTest){
switch (tokens[0]) {
case '[':
return consumeArray(tokens, true);
case '(':
return consumeTuple(tokens, true);
case '{':
return consumeFields(tokens, true);
default:
return consumeValue(tokens, untilTest);
}
}
function consumeTopLevel(tokens, types, options){
var ref$, type, structure, origTokens, result, finalResult, x$, y$;
ref$ = types[0], type = ref$.type, structure = ref$.structure;
origTokens = tokens.concat();
if (!options.explicit && types.length === 1 && ((!type && structure) || (type === 'Array' || type === 'Object'))) {
result = structure === 'array' || type === 'Array'
? consumeArray(tokens, tokens[0] === '[')
: structure === 'tuple'
? consumeTuple(tokens, tokens[0] === '(')
: consumeFields(tokens, tokens[0] === '{');
finalResult = tokens.length ? consumeElement(structure === 'array' || type === 'Array'
? (x$ = origTokens, x$.unshift('['), x$.push(']'), x$)
: (y$ = origTokens, y$.unshift('('), y$.push(')'), y$)) : result;
} else {
finalResult = consumeElement(tokens);
}
return finalResult;
}
special = /\[\]\(\)}{:,/.source;
tokenRegex = RegExp('("(?:\\\\"|[^"])*")|(\'(?:\\\\\'|[^\'])*\')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([' + special + '])|([^\\s' + special + '](?:\\s*[^\\s' + special + ']+)*)|\\s*');
module.exports = function(types, string, options){
var tokens, node;
options == null && (options = {});
if (!options.explicit && types.length === 1 && types[0].type === 'String') {
return string;
}
tokens = reject(not$, string.split(tokenRegex));
node = consumeTopLevel(tokens, types, options);
if (!node) {
throw new Error("Error parsing '" + string + "'.");
}
return node;
};
function not$(x){ return !x; }
}).call(this);
@@ -0,0 +1,316 @@
import { expect, test } from "vitest";
import * as z from "zod/v4";
test("basic datetime parsing", () => {
const datetime = z.string().datetime();
datetime.parse("1970-01-01T00:00:00.000Z");
datetime.parse("2022-10-13T09:52:31.816Z");
datetime.parse("2022-10-13T09:52:31.8162314Z");
datetime.parse("1970-01-01T00:00:00Z");
datetime.parse("2022-10-13T09:52:31Z");
expect(() => datetime.parse("")).toThrow();
expect(() => datetime.parse("foo")).toThrow();
expect(() => datetime.parse("2020-10-14")).toThrow();
expect(() => datetime.parse("T18:45:12.123")).toThrow();
expect(() => datetime.parse("2020-10-14T17:42:29+00:00")).toThrow();
});
test("datetime parsing with precision -1", () => {
const datetimeNoMs = z.string().datetime({ precision: -1, offset: true, local: true });
datetimeNoMs.parse("1970-01-01T00:00Z");
datetimeNoMs.parse("2022-10-13T09:52Z");
datetimeNoMs.parse("2022-10-13T09:52+02:00");
datetimeNoMs.parse("2022-10-13T09:52");
expect(() => datetimeNoMs.parse("tuna")).toThrow();
expect(() => datetimeNoMs.parse("2022-10-13T09:52+02")).toThrow();
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
expect(() => datetimeNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
});
test("datetime parsing with precision 0", () => {
const datetimeNoMs = z.string().datetime({ precision: 0 });
datetimeNoMs.parse("1970-01-01T00:00:00Z");
datetimeNoMs.parse("2022-10-13T09:52:31Z");
expect(() => datetimeNoMs.parse("tuna")).toThrow();
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
expect(() => datetimeNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
});
test("datetime parsing with precision 3", () => {
const datetime3Ms = z.string().datetime({ precision: 3 });
datetime3Ms.parse("1970-01-01T00:00:00.000Z");
datetime3Ms.parse("2022-10-13T09:52:31.123Z");
expect(() => datetime3Ms.parse("tuna")).toThrow();
expect(() => datetime3Ms.parse("1970-01-01T00:00:00.1Z")).toThrow();
expect(() => datetime3Ms.parse("1970-01-01T00:00:00.12Z")).toThrow();
expect(() => datetime3Ms.parse("2022-10-13T09:52:31Z")).toThrow();
});
test("datetime parsing with offset", () => {
const datetimeOffset = z.string().datetime({ offset: true });
datetimeOffset.parse("1970-01-01T00:00:00.000Z");
datetimeOffset.parse("2022-10-13T09:52:31.816234134Z");
datetimeOffset.parse("1970-01-01T00:00:00Z");
datetimeOffset.parse("2022-10-13T09:52:31.4Z");
datetimeOffset.parse("2020-10-14T17:42:29+00:00");
datetimeOffset.parse("2020-10-14T17:42:29+03:15");
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+0315")).toThrow();
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+03")).toThrow();
expect(() => datetimeOffset.parse("tuna")).toThrow();
expect(() => datetimeOffset.parse("2022-10-13T09:52:31.Z")).toThrow();
// Invalid offset tests
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+24:00")).toThrow(); // out of range hours
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+00:60")).toThrow(); // out of range minutes
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+1:30")).toThrow(); // single digit hours
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+00:")).toThrow(); // incomplete offset
});
test("datetime parsing with offset and precision 0", () => {
const datetimeOffsetNoMs = z.string().datetime({ offset: true, precision: 0 });
datetimeOffsetNoMs.parse("1970-01-01T00:00:00Z");
datetimeOffsetNoMs.parse("2022-10-13T09:52:31Z");
datetimeOffsetNoMs.parse("2020-10-14T17:42:29+00:00");
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29+0000")).toThrow();
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29+00")).toThrow();
expect(() => datetimeOffsetNoMs.parse("tuna")).toThrow();
expect(() => datetimeOffsetNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
expect(() => datetimeOffsetNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
expect(() => datetimeOffsetNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29.124+00:00")).toThrow();
});
test("datetime parsing with offset and precision 4", () => {
const datetimeOffset4Ms = z.string().datetime({ offset: true, precision: 4 });
datetimeOffset4Ms.parse("1970-01-01T00:00:00.1234Z");
datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+00:00");
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+0000")).toThrow();
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+00")).toThrow();
expect(() => datetimeOffset4Ms.parse("tuna")).toThrow();
expect(() => datetimeOffset4Ms.parse("1970-01-01T00:00:00.123Z")).toThrow();
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.124+00:00")).toThrow();
});
test("datetime offset normalization", () => {
const a = z.iso.datetime({ offset: true });
expect(a.safeParse("2020-10-14T17:42:29+02")).toMatchObject({ success: false });
expect(a.safeParse("2020-10-14T17:42:29+0200")).toMatchObject({ success: false });
a.safeParse("2020-10-14T17:42:29+02:00");
});
test("datetime parsing with local option", () => {
const a = z.string().datetime({ local: true });
expect(a.safeParse("1970-01-01T00:00")).toMatchObject({ success: true });
expect(a.safeParse("1970-01-01T00:00:00")).toMatchObject({ success: true });
expect(a.safeParse("2022-10-13T09:52:31.816")).toMatchObject({ success: true });
expect(a.safeParse("1970-01-01T00:00:00.000")).toMatchObject({ success: true });
expect(a.safeParse("1970-01-01T00")).toMatchObject({ success: false });
// Should reject timezone indicators and invalid formats
expect(() => a.parse("2022-10-13T09:52:31+00:00")).toThrow();
expect(() => a.parse("2022-10-13 09:52:31")).toThrow();
expect(() => a.parse("2022-10-13T24:52:31")).toThrow();
expect(() => a.parse("2022-10-13T24:52")).toThrow();
expect(() => a.parse("2022-10-13T24:52Z")).toThrow();
});
test("datetime parsing with local and offset", () => {
const a = z.string().datetime({ local: true, offset: true });
a.parse("2022-10-13T12:52:00");
a.parse("2022-10-13T12:52:00Z");
a.parse("2022-10-13T12:52:00+02:00");
// `local` only makes the suffix optional; the unqualified form may still omit seconds
a.parse("2022-10-13T12:52");
expect(() => a.parse("2022-10-13T12:52:00+02")).toThrow();
// a `Z` or an offset makes it RFC 3339, which mandates seconds
expect(() => a.parse("2022-10-13T12:52Z")).toThrow();
expect(() => a.parse("2022-10-13T12:52+02:00")).toThrow();
});
test("datetime requires seconds once a Z or offset is present", () => {
expect(z.iso.datetime().safeParse("2022-10-13T12:52Z").success).toEqual(false);
expect(z.iso.datetime().safeParse("2022-10-13T12:52:00Z").success).toEqual(true);
expect(z.iso.datetime().safeParse("2022-10-13T12:52:00.123Z").success).toEqual(true);
expect(z.iso.datetime({ offset: true }).safeParse("2022-10-13T12:52+02:00").success).toEqual(false);
expect(z.iso.datetime({ offset: true }).safeParse("2022-10-13T12:52:00+02:00").success).toEqual(true);
// an explicit precision still wins, and gives up `format: "date-time"` in exchange
expect(z.iso.datetime({ precision: -1 }).safeParse("2022-10-13T12:52Z").success).toEqual(true);
expect(z.toJSONSchema(z.iso.datetime()).format).toEqual("date-time");
expect(z.toJSONSchema(z.iso.datetime({ precision: -1 })).format).toEqual(undefined);
});
test("the documented migration union reproduces the old default", () => {
// no single precision covers both, so the docs point at this union — pin that it works
const mixed = z.union([z.iso.datetime(), z.iso.datetime({ precision: -1 })]);
expect(mixed.safeParse("2020-01-01T06:15Z").success).toEqual(true);
expect(mixed.safeParse("2020-01-01T06:15:00Z").success).toEqual(true);
expect(mixed.safeParse("2020-01-01T06:15:00.123Z").success).toEqual(true);
expect(mixed.safeParse("2020-01-01T06:15").success).toEqual(false);
});
test("date parsing", () => {
const date = z.string().date();
date.parse("1970-01-01");
date.parse("2022-01-31");
date.parse("2022-03-31");
date.parse("2022-04-30");
date.parse("2022-05-31");
date.parse("2022-06-30");
date.parse("2022-07-31");
date.parse("2022-08-31");
date.parse("2022-09-30");
date.parse("2022-10-31");
date.parse("2022-11-30");
date.parse("2022-12-31");
date.parse("2000-02-29");
date.parse("2400-02-29");
expect(() => date.parse("2022-02-29")).toThrow();
expect(() => date.parse("2100-02-29")).toThrow();
expect(() => date.parse("2200-02-29")).toThrow();
expect(() => date.parse("2300-02-29")).toThrow();
expect(() => date.parse("2500-02-29")).toThrow();
expect(() => date.parse("")).toThrow();
expect(() => date.parse("foo")).toThrow();
expect(() => date.parse("200-01-01")).toThrow();
expect(() => date.parse("20000-01-01")).toThrow();
expect(() => date.parse("2000-0-01")).toThrow();
expect(() => date.parse("2000-011-01")).toThrow();
expect(() => date.parse("2000-01-0")).toThrow();
expect(() => date.parse("2000-01-011")).toThrow();
expect(() => date.parse("2000/01/01")).toThrow();
expect(() => date.parse("01-01-2022")).toThrow();
expect(() => date.parse("01/01/2022")).toThrow();
expect(() => date.parse("2000-01-01 00:00:00Z")).toThrow();
expect(() => date.parse("2020-10-14T17:42:29+00:00")).toThrow();
expect(() => date.parse("2020-10-14T17:42:29Z")).toThrow();
expect(() => date.parse("2020-10-14T17:42:29")).toThrow();
expect(() => date.parse("2020-10-14T17:42:29.123Z")).toThrow();
expect(() => date.parse("2000-00-12")).toThrow();
expect(() => date.parse("2000-12-00")).toThrow();
expect(() => date.parse("2000-01-32")).toThrow();
expect(() => date.parse("2000-13-01")).toThrow();
expect(() => date.parse("2000-21-01")).toThrow();
expect(() => date.parse("2000-02-30")).toThrow();
expect(() => date.parse("2000-02-31")).toThrow();
expect(() => date.parse("2000-04-31")).toThrow();
expect(() => date.parse("2000-06-31")).toThrow();
expect(() => date.parse("2000-09-31")).toThrow();
expect(() => date.parse("2000-11-31")).toThrow();
});
test("time parsing", () => {
const time = z.string().time();
time.parse("00:00:00");
time.parse("23:00:00");
time.parse("00:59:00");
time.parse("00:00:59");
time.parse("23:59:59");
time.parse("09:52:31");
time.parse("23:59:59.9999999");
time.parse("00:00");
expect(() => time.parse("")).toThrow();
expect(() => time.parse("foo")).toThrow();
expect(() => time.parse("00:00:00Z")).toThrow();
expect(() => time.parse("0:00:00")).toThrow();
expect(() => time.parse("00:0:00")).toThrow();
expect(() => time.parse("00:00:0")).toThrow();
expect(() => time.parse("00:00:00.000+00:00")).toThrow();
expect(() => time.parse("24:00:00")).toThrow();
expect(() => time.parse("00:60:00")).toThrow();
expect(() => time.parse("00:00:60")).toThrow();
expect(() => time.parse("24:60:60")).toThrow();
const time2 = z.string().time({ precision: 2 });
time2.parse("00:00:00.00");
time2.parse("09:52:31.12");
time2.parse("23:59:59.99");
expect(() => time2.parse("")).toThrow();
expect(() => time2.parse("foo")).toThrow();
expect(() => time2.parse("00:00:00")).toThrow();
expect(() => time2.parse("00:00:00.00Z")).toThrow();
expect(() => time2.parse("00:00:00.0")).toThrow();
expect(() => time2.parse("00:00:00.000")).toThrow();
expect(() => time2.parse("00:00:00.00+00:00")).toThrow();
const time3 = z.string().time({ precision: z.TimePrecision.Minute });
time3.parse("00:00");
expect(() => time3.parse("00:00:00")).toThrow();
});
test("duration", () => {
const duration = z.string().duration();
const validDurations = [
"P3Y6M4DT12H30M5S",
"P2Y9M3DT12H31M8.001S",
// "+P3Y6M4DT12H30M5S",
// "-PT0.001S",
// "+PT0.001S",
"PT0,001S",
"PT12H30M5S",
// "-P2M1D",
// "P-2M-1D",
// "-P5DT10H",
// "P-5DT-10H",
"P1Y",
"P2MT30M",
"PT6H",
"P5W",
// "P0.5Y",
// "P0,5Y",
// "P42YT7.004M",
];
const invalidDurations = [
"foo bar",
"",
" ",
"P",
"PT",
"P1Y2MT",
"T1H",
"P0.5Y1D",
"P0,5Y6M",
"P1YT",
"P-2M-1D",
"P-5DT-10H",
"P1W2D",
"-P1D",
];
for (const val of validDurations) {
const result = duration.safeParse(val);
if (!result.success) {
throw Error(`Valid duration could not be parsed: ${val}`);
}
}
for (const val of invalidDurations) {
const result = duration.safeParse(val);
if (result.success) {
throw Error(`Invalid duration was successful parsed: ${val}`);
}
expect(result.error.issues[0].message).toEqual("Invalid ISO duration");
}
});
test("datetime pattern has no empty alternation branch", () => {
for (const args of [{}, { local: true }, { offset: true }, { local: true, offset: true }]) {
const { pattern } = z.toJSONSchema(z.iso.datetime(args));
expect(pattern, JSON.stringify(args)).toBeDefined();
expect(pattern, JSON.stringify(args)).not.toMatch(/\|\||\(\?:\||\|\)/);
}
});
@@ -0,0 +1 @@
{"version":3,"file":"book-x.js","sources":["../../../src/icons/book-x.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name BookX\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTQuNSA3LTUgNSIgLz4KICA8cGF0aCBkPSJNNCAxOS41di0xNUEyLjUgMi41IDAgMCAxIDYuNSAySDE5YTEgMSAwIDAgMSAxIDF2MThhMSAxIDAgMCAxLTEgMUg2LjVhMSAxIDAgMCAxIDAtNUgyMCIgLz4KICA8cGF0aCBkPSJtOS41IDcgNSA1IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/book-x\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst BookX = createLucideIcon('BookX', [\n ['path', { d: 'm14.5 7-5 5', key: 'dy991v' }],\n [\n 'path',\n {\n d: 'M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20',\n key: 'k3hazp',\n },\n ],\n ['path', { d: 'm9.5 7 5 5', key: 's45iea' }],\n]);\n\nexport default BookX;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC5C,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC7C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,165 @@
"use strict";
/**
* Node.js HTTP Streamable HTTP Server Transport
*
* This is a thin wrapper around `WebStandardStreamableHTTPServerTransport` that provides
* compatibility with Node.js HTTP server (IncomingMessage/ServerResponse).
*
* For web-standard environments (Cloudflare Workers, Deno, Bun), use `WebStandardStreamableHTTPServerTransport` directly.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamableHTTPServerTransport = void 0;
const node_server_1 = require("@hono/node-server");
const webStandardStreamableHttp_js_1 = require("./webStandardStreamableHttp.js");
/**
* Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification.
* It supports both SSE streaming and direct HTTP responses.
*
* This is a wrapper around `WebStandardStreamableHTTPServerTransport` that provides Node.js HTTP compatibility.
* It uses the `@hono/node-server` library to convert between Node.js HTTP and Web Standard APIs.
*
* Usage example:
*
* ```typescript
* // Stateful mode - server sets the session ID
* const statefulTransport = new StreamableHTTPServerTransport({
* sessionIdGenerator: () => randomUUID(),
* });
*
* // Stateless mode - explicitly set session ID to undefined
* const statelessTransport = new StreamableHTTPServerTransport({
* sessionIdGenerator: undefined,
* });
*
* // Using with pre-parsed request body
* app.post('/mcp', (req, res) => {
* transport.handleRequest(req, res, req.body);
* });
* ```
*
* In stateful mode:
* - Session ID is generated and included in response headers
* - Session ID is always included in initialization responses
* - Requests with invalid session IDs are rejected with 404 Not Found
* - Non-initialization requests without a session ID are rejected with 400 Bad Request
* - State is maintained in-memory (connections, message history)
*
* In stateless mode:
* - No Session ID is included in any responses
* - No session validation is performed
*/
class StreamableHTTPServerTransport {
constructor(options = {}) {
// Store auth and parsedBody per request for passing through to handleRequest
this._requestContext = new WeakMap();
this._webStandardTransport = new webStandardStreamableHttp_js_1.WebStandardStreamableHTTPServerTransport(options);
// Create a request listener that wraps the web standard transport
// getRequestListener converts Node.js HTTP to Web Standard and properly handles SSE streaming
// overrideGlobalObjects: false prevents Hono from overwriting global Response, which would
// break frameworks like Next.js whose response classes extend the native Response
this._requestListener = (0, node_server_1.getRequestListener)(async (webRequest) => {
// Get context if available (set during handleRequest)
const context = this._requestContext.get(webRequest);
return this._webStandardTransport.handleRequest(webRequest, {
authInfo: context?.authInfo,
parsedBody: context?.parsedBody
});
}, { overrideGlobalObjects: false });
}
/**
* Gets the session ID for this transport instance.
*/
get sessionId() {
return this._webStandardTransport.sessionId;
}
/**
* Sets callback for when the transport is closed.
*/
set onclose(handler) {
this._webStandardTransport.onclose = handler;
}
get onclose() {
return this._webStandardTransport.onclose;
}
/**
* Sets callback for transport errors.
*/
set onerror(handler) {
this._webStandardTransport.onerror = handler;
}
get onerror() {
return this._webStandardTransport.onerror;
}
/**
* Sets callback for incoming messages.
*/
set onmessage(handler) {
this._webStandardTransport.onmessage = handler;
}
get onmessage() {
return this._webStandardTransport.onmessage;
}
/**
* Starts the transport. This is required by the Transport interface but is a no-op
* for the Streamable HTTP transport as connections are managed per-request.
*/
async start() {
return this._webStandardTransport.start();
}
/**
* Closes the transport and all active connections.
*/
async close() {
return this._webStandardTransport.close();
}
/**
* Sends a JSON-RPC message through the transport.
*/
async send(message, options) {
return this._webStandardTransport.send(message, options);
}
/**
* Handles an incoming HTTP request, whether GET or POST.
*
* This method converts Node.js HTTP objects to Web Standard Request/Response
* and delegates to the underlying WebStandardStreamableHTTPServerTransport.
*
* @param req - Node.js IncomingMessage, optionally with auth property from middleware
* @param res - Node.js ServerResponse
* @param parsedBody - Optional pre-parsed body from body-parser middleware
*/
async handleRequest(req, res, parsedBody) {
// Store context for this request to pass through auth and parsedBody
// We need to intercept the request creation to attach this context
const authInfo = req.auth;
// Create a custom handler that includes our context
// overrideGlobalObjects: false prevents Hono from overwriting global Response, which would
// break frameworks like Next.js whose response classes extend the native Response
const handler = (0, node_server_1.getRequestListener)(async (webRequest) => {
return this._webStandardTransport.handleRequest(webRequest, {
authInfo,
parsedBody
});
}, { overrideGlobalObjects: false });
// Delegate to the request listener which handles all the Node.js <-> Web Standard conversion
// including proper SSE streaming support
await handler(req, res);
}
/**
* Close an SSE stream for a specific request, triggering client reconnection.
* Use this to implement polling behavior during long-running operations -
* client will reconnect after the retry interval specified in the priming event.
*/
closeSSEStream(requestId) {
this._webStandardTransport.closeSSEStream(requestId);
}
/**
* Close the standalone GET SSE stream, triggering client reconnection.
* Use this to implement polling behavior for server-initiated notifications.
*/
closeStandaloneSSEStream() {
this._webStandardTransport.closeStandaloneSSEStream();
}
}
exports.StreamableHTTPServerTransport = StreamableHTTPServerTransport;
//# sourceMappingURL=streamableHttp.js.map
@@ -0,0 +1 @@
{"version":3,"file":"map-pin-minus.js","sources":["../../../src/icons/map-pin-minus.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name MapPinMinus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTguOTc3IDE0QzE5LjYgMTIuNzAxIDIwIDExLjM0MyAyMCAxMGE4IDggMCAwIDAtMTYgMGMwIDQuOTkzIDUuNTM5IDEwLjE5MyA3LjM5OSAxMS43OTlhMSAxIDAgMCAwIDEuMjAyIDAgMzIgMzIgMCAwIDAgLjgyNC0uNzM4IiAvPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTAiIHI9IjMiIC8+CiAgPHBhdGggZD0iTTE2IDE4aDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/map-pin-minus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MapPinMinus = createLucideIcon('MapPinMinus', [\n [\n 'path',\n {\n d: 'M18.977 14C19.6 12.701 20 11.343 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738',\n key: '11uxia',\n },\n ],\n ['circle', { cx: '12', cy: '10', r: '3', key: 'ilqhr7' }],\n ['path', { d: 'M16 18h6', key: '987eiv' }],\n]);\n\nexport default MapPinMinus;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAClD,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,108 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports.generate = generate;
var _sourceMap = require("./source-map.js");
var _printer = require("./printer.js");
function normalizeOptions(code, opts, ast) {
var _opts$recordAndTupleS;
if (opts.experimental_preserveFormat) {
if (typeof code !== "string") {
throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");
}
if (!opts.retainLines) {
throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");
}
if (opts.compact && opts.compact !== "auto") {
throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");
}
if (opts.minified) {
throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");
}
if (opts.jsescOption) {
throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
}
if (!Array.isArray(ast.tokens)) {
throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.");
}
}
const format = {
auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
shouldPrintComment: opts.shouldPrintComment,
preserveFormat: opts.experimental_preserveFormat,
retainLines: opts.retainLines,
retainFunctionParens: opts.retainFunctionParens,
comments: opts.comments == null || opts.comments,
compact: opts.compact,
minified: opts.minified,
concise: opts.concise,
indent: {
adjustMultilineComment: true,
style: " "
},
jsescOption: Object.assign({
quotes: "double",
wrap: true,
minimal: false
}, opts.jsescOption),
topicToken: opts.topicToken
};
format.decoratorsBeforeExport = opts.decoratorsBeforeExport;
format.jsescOption.json = opts.jsonCompatibleStrings;
format.recordAndTupleSyntaxType = (_opts$recordAndTupleS = opts.recordAndTupleSyntaxType) != null ? _opts$recordAndTupleS : "hash";
format.importAttributesKeyword = opts.importAttributesKeyword;
if (format.minified) {
format.compact = true;
format.shouldPrintComment = format.shouldPrintComment || (() => format.comments);
} else {
format.shouldPrintComment = format.shouldPrintComment || (value => format.comments || value.includes("@license") || value.includes("@preserve"));
}
if (format.compact === "auto") {
format.compact = typeof code === "string" && code.length > 500000;
if (format.compact) {
console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`);
}
}
if (format.compact || format.preserveFormat) {
format.indent.adjustMultilineComment = false;
}
const {
auxiliaryCommentBefore,
auxiliaryCommentAfter,
shouldPrintComment
} = format;
if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) {
format.auxiliaryCommentBefore = undefined;
}
if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) {
format.auxiliaryCommentAfter = undefined;
}
return format;
}
exports.CodeGenerator = class CodeGenerator {
constructor(ast, opts = {}, code) {
this._ast = void 0;
this._format = void 0;
this._map = void 0;
this._ast = ast;
this._format = normalizeOptions(code, opts, ast);
this._map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
}
generate() {
const printer = new _printer.default(this._format, this._map);
return printer.generate(this._ast);
}
};
function generate(ast, opts = {}, code) {
const format = normalizeOptions(code, opts, ast);
const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
const printer = new _printer.default(format, map, ast.tokens, typeof code === "string" ? code : null);
return printer.generate(ast);
}
var _default = exports.default = generate;
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_Z","132":"_A"},B:{"1":"_J"},C:{"1":"_zF","2":"_OC"},D:{"1":"_xO","2":"_5"},E:{"1":"_dB","2":"_u"},F:{"1":"_aR","2":"_QD"},G:{"1":"_8C","2":"_1"},H:{"2":"1D"},I:{"1":"_8B","2":"_n"},J:{"1":"A","2":"D"},K:{"1":"_eN","2":"_A"},L:{"1":"I"},M:{"1":"YC"},N:{"1":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"_C"}},B:5,C:"FileReader API",D:true};
@@ -0,0 +1 @@
{"version":3,"file":"flag.js","sources":["../../../src/icons/flag.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Flag\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAxNXMxLTEgNC0xIDUgMiA4IDIgNC0xIDQtMVYzcy0xIDEtNCAxLTUtMi04LTItNCAxLTQgMXoiIC8+CiAgPGxpbmUgeDE9IjQiIHgyPSI0IiB5MT0iMjIiIHkyPSIxNSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/flag\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Flag = createLucideIcon('Flag', [\n ['path', { d: 'M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z', key: 'i9b6wo' }],\n ['line', { x1: '4', x2: '4', y1: '22', y2: '15', key: '1cm3nv' }],\n]);\n\nexport default Flag;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,iBAAiB,MAAQ,CAAA,CAAA,CAAA;AAAA,CAAA,CACpC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC1F,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,EAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAM,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAClE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,70 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractNameForMember = extractNameForMember;
exports.extractNameForMemberExpression = extractNameForMemberExpression;
const utils_1 = require("@typescript-eslint/utils");
const types_1 = require("./types");
function extractComputedName(computedName) {
if (computedName.type === utils_1.AST_NODE_TYPES.Literal) {
const name = computedName.value?.toString() ?? 'null';
return {
codeName: name,
key: (0, types_1.publicKey)(name),
nameNode: computedName,
};
}
if (computedName.type === utils_1.AST_NODE_TYPES.TemplateLiteral &&
computedName.expressions.length === 0) {
const name = computedName.quasis[0].value.raw;
return {
codeName: name,
key: (0, types_1.publicKey)(name),
nameNode: computedName,
};
}
return null;
}
function extractNonComputedName(nonComputedName) {
const name = nonComputedName.name;
if (nonComputedName.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) {
return {
codeName: `#${name}`,
key: (0, types_1.privateKey)(nonComputedName),
nameNode: nonComputedName,
};
}
return {
codeName: name,
key: (0, types_1.publicKey)(name),
nameNode: nonComputedName,
};
}
/**
* Extracts the string name for a member.
* @returns `null` if the name cannot be extracted due to it being computed.
*/
function extractNameForMember(node) {
if (node.type === utils_1.AST_NODE_TYPES.TSParameterProperty) {
const identifier = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier
? node.parameter
: node.parameter.left;
return extractNonComputedName(identifier);
}
if (node.computed) {
return extractComputedName(node.key);
}
if (node.key.type === utils_1.AST_NODE_TYPES.Literal) {
return extractComputedName(node.key);
}
return extractNonComputedName(node.key);
}
/**
* Extracts the string property name for a member.
* @returns `null` if the name cannot be extracted due to it being a computed.
*/
function extractNameForMemberExpression(node) {
if (node.computed) {
return extractComputedName(node.property);
}
return extractNonComputedName(node.property);
}
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SquareDot = createLucideIcon("SquareDot", [
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
]);
export { SquareDot as default };
//# sourceMappingURL=square-dot.js.map
@@ -0,0 +1,734 @@
export default `flf2a$ 7 7 18 -1 18
smisome1.flf
Downsized version of isometric1.flf - M. Lindsey (mglindse@nyx.cs.du.edu)
February 24, 1996
---
isometric1.flf
Figlet conversion by Kent Nassen (kentn@cyberspace.org), 8-10-94, based
on the fonts posted by Lennert Stock:
From: stock@fwi.uva.nl (Lennert Stock)
Date: 15 Jul 1994 00:04:25 GMT
Here are some fonts. Non-figlet I'm afraid, if you wanna convert them, be
my guest. I posted the isometric fonts before.
------------------------------------------------------------------------------
--------- L e n n e r t S t o c k
stock@fwi.uva.nl --------
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\:\\::/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\ \\/__/@
\\:\\__\\ @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\:\\:\\/ /@
\\:\\/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\:\\/__/@
\\/__/ @
@@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\:\\/__/@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
/:/__/_ @
/::\\/\\__\\@
\\/\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
_\\:\\ \\ @
/\\/::\\__\\@
\\::/\\/__/@
\\:\\__\\ @
\\/__/ @@
___ @
/\\ \\ @
_\\:\\ \\ @
/\\/::\\__\\@
\\::/\\/__/@
\\/__/ @
@@
___ @
/\\__\\ @
/:/ _/_ @
/::-"\\__\\@
\\;:;-",-"@
|:| | @
\\|__| @@
___ @
/\\__\\ @
/:/ / @
/:/__/ @
\\:\\ \\ @
\\:\\__\\ @
\\/__/ @@
___ @
/\\__\\ @
/::L_L_ @
/:/L:\\__\\@
\\/_/:/ /@
/:/ / @
\\/__/ @@
___ @
/\\__\\ @
/:| _|_ @
/::|/\\__\\@
\\/|::/ /@
|:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\::/ /@
\\/__/ @
@@
___ @
/\\ \\ @
/::\\ \\ @
\\:\\:\\__\\@
\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\;:::/ /@
|:\\/__/ @
\\|__| @@
___ @
/\\ \\ @
/::\\ \\ @
/\\:\\:\\__\\@
\\:\\:\\/__/@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
\\:\\ \\ @
/::\\__\\@
/:/\\/__/@
\\/__/ @
@@
___ @
/\\__\\ @
/:/ _/_ @
/:/_/\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
/:/ _/_ @
|::L/\\__\\@
|::::/ /@
L;;/__/ @
@@
___ @
/\\__\\ @
/:/\\__\\ @
/:/:/\\__\\@
\\::/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
|::L__L @
/::::\\__\\@
\\;::;/__/@
|::|__| @
\\/__/ @@
___ @
/\\__\\ @
|::L__L @
|:::\\__\\@
/:;;/__/@
\\/__/ @
@@
___ @
/\\ \\ @
_\\:\\ \\ @
/::::\\__\\@
\\::;;/__/@
\\:\\__\\ @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:LS:\\__\\@
\\1994/ /@
\\::/ / @
\\/__/ @@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\:\\::/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\ \\/__/@
\\:\\__\\ @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\:\\:\\/ /@
\\:\\/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\:\\/__/@
\\/__/ @
@@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\:\\/__/@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
/:/__/_ @
/::\\/\\__\\@
\\/\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
_\\:\\ \\ @
/\\/::\\__\\@
\\::/\\/__/@
\\:\\__\\ @
\\/__/ @@
___ @
/\\ \\ @
_\\:\\ \\ @
/\\/::\\__\\@
\\::/\\/__/@
\\/__/ @
@@
___ @
/\\__\\ @
/:/ _/_ @
/::-"\\__\\@
\\;:;-",-"@
|:| | @
\\|__| @@
___ @
/\\__\\ @
/:/ / @
/:/__/ @
\\:\\ \\ @
\\:\\__\\ @
\\/__/ @@
___ @
/\\__\\ @
/::L_L_ @
/:/L:\\__\\@
\\/_/:/ /@
/:/ / @
\\/__/ @@
___ @
/\\__\\ @
/:| _|_ @
/::|/\\__\\@
\\/|::/ /@
|:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/:/\\:\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\/\\::/ /@
\\/__/ @
@@
___ @
/\\ \\ @
/::\\ \\ @
\\:\\:\\__\\@
\\::/ /@
/:/ / @
\\/__/ @@
___ @
/\\ \\ @
/::\\ \\ @
/::\\:\\__\\@
\\;:::/ /@
|:\\/__/ @
\\|__| @@
___ @
/\\ \\ @
/::\\ \\ @
/\\:\\:\\__\\@
\\:\\:\\/__/@
\\::/ / @
\\/__/ @@
___ @
/\\ \\ @
\\:\\ \\ @
/::\\__\\@
/:/\\/__/@
\\/__/ @
@@
___ @
/\\__\\ @
/:/ _/_ @
/:/_/\\__\\@
\\:\\/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
/:/ _/_ @
|::L/\\__\\@
|::::/ /@
L;;/__/ @
@@
___ @
/\\__\\ @
/:/\\__\\ @
/:/:/\\__\\@
\\::/:/ /@
\\::/ / @
\\/__/ @@
___ @
/\\__\\ @
|::L__L @
/::::\\__\\@
\\;::;/__/@
|::|__| @
\\/__/ @@
___ @
/\\__\\ @
|::L__L @
|:::\\__\\@
/:;;/__/@
\\/__/ @
@@
___ @
/\\ \\ @
_\\:\\ \\ @
/::::\\__\\@
\\::;;/__/@
\\:\\__\\ @
\\/__/ @@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
`
@@ -0,0 +1,248 @@
# ProxyAgent
<!--introduced_in=v4.8.2-->
<!--type=module-->
<!-- source_link=lib/dispatcher/proxy-agent.js -->
> Stability: 2 - Stable
A `ProxyAgent` routes every request through an HTTP, HTTPS, or SOCKS5 proxy
server. It implements the [`Agent`][] API, so it can be used wherever a
dispatcher is accepted, for example with [`request`][] or [`fetch`][], or
installed globally with [`setGlobalDispatcher`][].
For secure (`https:`) endpoints the proxy connection is established through an
HTTP `CONNECT` tunnel. SOCKS5 proxies (`socks5:` or `socks:` URIs) are handled
by delegating to a [`Socks5ProxyAgent`][].
```mjs
import { ProxyAgent, setGlobalDispatcher } from 'undici'
const proxyAgent = new ProxyAgent('http://localhost:8000')
setGlobalDispatcher(proxyAgent)
```
## Class: `ProxyAgent`
<!-- YAML
added: v4.8.2
-->
* Extends: {Dispatcher}
`ProxyAgent` keeps an internal [`Agent`][] that creates per-origin dispatchers
on demand. The proxy connection is set up lazily when the first request to an
origin is dispatched, then reused for subsequent requests to the same origin.
### `new ProxyAgent(options)`
<!-- YAML
added: v4.8.2
-->
* `options` {ProxyAgentOptions|string|URL} The proxy URI, or an options object.
Required. When a `string` or {URL} is passed it is used as the proxy `uri`.
The options object extends {AgentOptions} (omitting `connect`).
* `uri` {string} The URI of the proxy server. Required when `options` is an
object. Parsed into a {URL} according to the
[WHATWG URL Specification][].
* `token` {string} A pre-formatted `proxy-authorization` header value sent to
the proxy on every request, for example `` `Bearer ${apiKey}` ``.
* `auth` {string} A base64-encoded `username:password` credential sent as a
`Basic` `proxy-authorization` header. Cannot be combined with `token`.
* `headers` {Object} Additional headers sent to the proxy server on the
`CONNECT` request (or on every request for an untunneled HTTP proxy).
**Default:** `{}`.
* `requestTls` {BuildOptions} TLS options for the connection to the request
endpoint, passed to the connector builder.
* `proxyTls` {BuildOptions} TLS options for the connection to the proxy
server, passed to the connector builder.
* `clientFactory` {Function} Builds the {Dispatcher} used to talk to the proxy
server itself. **Default:** `(origin, opts) => new Pool(origin, opts)`.
* `origin` {URL} The proxy origin.
* `opts` {Object} The resolved options for the dispatcher.
* Returns: {Dispatcher}
* `proxyTunnel` {boolean} Forces tunneling through the proxy. By default,
Undici detects tunneling based on the request protocol. If the target
endpoint uses HTTPS, Undici establishes a `CONNECT` tunnel through the proxy
(after the TLS handshake to the proxy itself when the proxy URL is HTTPS).
If the target endpoint uses plain HTTP, Undici forwards the request to the
proxy using an HTTP/1.1 absolute-form request target (over TLS when the
proxy URL is HTTPS), as required by
[RFC 9112 §3.2.2](https://www.rfc-editor.org/rfc/rfc9112.html#name-absolute-form).
This non-tunneled forwarding path does not negotiate HTTP/2 with the proxy.
Set `proxyTunnel` to `true` to force tunneling for plain HTTP requests as
well. Currently, there is no way to facilitate HTTP/1.1 IP tunneling as
described in
[RFC 9484](https://www.rfc-editor.org/rfc/rfc9484.html#name-http-11-request).
Throws an {InvalidArgumentError} when no proxy URI is provided, when
`clientFactory` is not a function, or when both `auth` and `token` are supplied.
The `proxy-authorization` header is derived, in order of precedence, from
`token`, then `auth`, then the `username` and `password` embedded in the proxy
`uri`. Credentials in the URI are URL-decoded before being base64-encoded.
> [!NOTE]
> Unless {AgentOptions} `connections` is set to `0`, the non-standard
> `proxy-connection: keep-alive` header is added to the tunnel `CONNECT`
> request. This includes the default case where `connections` is unset.
The `auth` option is deprecated; use `token` instead.
```mjs
import { ProxyAgent } from 'undici'
// A string or URL is treated as the proxy uri.
const a = new ProxyAgent('http://localhost:8000')
const b = new ProxyAgent(new URL('http://localhost:8000'))
// An options object requires a `uri`.
const c = new ProxyAgent({ uri: 'http://localhost:8000' })
// With proxy TLS settings.
const d = new ProxyAgent({
uri: 'https://secure.proxy.server',
proxyTls: {
signal: AbortSignal.timeout(1000),
},
})
```
#### Example - proxy request with the global dispatcher
```mjs
import { setGlobalDispatcher, request, ProxyAgent } from 'undici'
const proxyAgent = new ProxyAgent('http://localhost:8000')
setGlobalDispatcher(proxyAgent)
const { statusCode, body } = await request('http://localhost:3000/foo')
console.log('response received', statusCode)
console.log('data', await body.text())
```
#### Example - proxy request with a local dispatcher
```mjs
import { ProxyAgent, request } from 'undici'
const proxyAgent = new ProxyAgent('http://localhost:8000')
const { statusCode, body } = await request('http://localhost:3000/foo', {
dispatcher: proxyAgent,
})
console.log('response received', statusCode)
console.log('data', await body.text())
```
#### Example - proxy request with authentication
```mjs
import { setGlobalDispatcher, request, ProxyAgent } from 'undici'
const proxyAgent = new ProxyAgent({
uri: 'http://localhost:8000',
token: `Basic ${Buffer.from('username:password').toString('base64')}`,
})
setGlobalDispatcher(proxyAgent)
const { statusCode } = await request('http://localhost:3000/foo')
console.log('response received', statusCode)
```
### `proxyAgent.dispatch(options, handler)`
<!-- YAML
added: v4.8.2
-->
* `options` {AgentDispatchOptions} Extends {DispatchOptions}.
* `origin` {string|URL} The origin to dispatch the request against. Required.
* `handler` {DispatchHandler}
* Returns: {boolean} `false` if the dispatcher is busy and the caller should
wait for the [`'drain'`][] event before dispatching again.
Dispatches the request through the proxy. Throws an {InvalidArgumentError} if
the request headers contain a `proxy-authorization` header, which must instead
be supplied through the constructor's `token` or `auth` option. A `host` header
is derived from `options.origin` when one is not already present. Implements
[`Dispatcher.dispatch()`][].
### `proxyAgent.close()`
<!-- YAML
added: v4.8.2
changes:
- version: v7.10.0
pr-url: https://github.com/nodejs/undici/pull/4180
description: Untunneled HTTP-to-HTTP proxy connections match `curl` behavior.
-->
* Returns: {Promise<void>}
Closes the proxy agent and waits for its internal agent and proxy client (when
present) to close before resolving. Implements [`Dispatcher.close()`][].
```mjs
import { ProxyAgent, setGlobalDispatcher } from 'undici'
const proxyAgent = new ProxyAgent('http://localhost:8000')
setGlobalDispatcher(proxyAgent)
await proxyAgent.close()
```
### `proxyAgent.request(options[, callback])`
<!-- YAML
added: v5.0.0
-->
See [`Dispatcher.request()`][]. The request is routed through the proxy.
#### Example - proxy request with `fetch`
```mjs
import { ProxyAgent, fetch } from 'undici'
const proxyAgent = new ProxyAgent('http://localhost:8000')
const response = await fetch('http://localhost:3000/foo', {
dispatcher: proxyAgent,
method: 'GET',
})
console.log('response status', response.status)
console.log('response data', await response.text())
```
#### Example - HTTPS tunneling
```mjs
import { ProxyAgent, fetch } from 'undici'
const proxyAgent = new ProxyAgent('https://secure.proxy.server')
const response = await fetch('https://secure.endpoint.com/api/data', {
dispatcher: proxyAgent,
method: 'GET',
})
console.log('response status', response.status)
console.log('response data', await response.json())
```
[WHATWG URL Specification]: https://url.spec.whatwg.org
[`'drain'`]: Dispatcher.md#event-drain
[`Agent`]: Agent.md#class-agent
[`Dispatcher.close()`]: Dispatcher.md#dispatcherclosecallback-promise
[`Dispatcher.dispatch()`]: Dispatcher.md#dispatcherdispatchoptions-handler
[`Dispatcher.request()`]: Dispatcher.md#dispatcherrequestoptions-callback
[`Socks5ProxyAgent`]: Socks5ProxyAgent.md#class-socks5proxyagent
[`fetch`]: Fetch.md
[`request`]: Dispatcher.md#dispatcherrequestoptions-callback
[`setGlobalDispatcher`]: Dispatcher.md#setglobaldispatcherdispatcher
@@ -0,0 +1 @@
{"version":3,"file":"cfWorkerProvider-BwbPzsdI.cjs","names":["regex","keywordLocation","declaredDialect"],"sources":["../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.js","../../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.js","../../core-internal/src/validators/cfWorkerProvider.ts"],"sourcesContent":["export function deepCompareStrict(a, b) {\n const typeofa = typeof a;\n if (typeofa !== typeof b) {\n return false;\n }\n if (Array.isArray(a)) {\n if (!Array.isArray(b)) {\n return false;\n }\n const length = a.length;\n if (length !== b.length) {\n return false;\n }\n for (let i = 0; i < length; i++) {\n if (!deepCompareStrict(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n if (typeofa === 'object') {\n if (!a || !b) {\n return a === b;\n }\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n const length = aKeys.length;\n if (length !== bKeys.length) {\n return false;\n }\n for (const k of aKeys) {\n if (!deepCompareStrict(a[k], b[k])) {\n return false;\n }\n }\n return true;\n }\n return a === b;\n}\n","export function encodePointer(p) {\n return encodeURI(escapePointer(p));\n}\nexport function escapePointer(p) {\n return p.replace(/~/g, '~0').replace(/\\//g, '~1');\n}\n","import { encodePointer } from './pointer.js';\nexport const schemaKeyword = {\n additionalItems: true,\n unevaluatedItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n unevaluatedProperties: true,\n propertyNames: true,\n not: true,\n if: true,\n then: true,\n else: true\n};\nexport const schemaArrayKeyword = {\n prefixItems: true,\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\nexport const schemaMapKeyword = {\n $defs: true,\n definitions: true,\n properties: true,\n patternProperties: true,\n dependentSchemas: true\n};\nexport const ignoredKeyword = {\n id: true,\n $id: true,\n $ref: true,\n $schema: true,\n $anchor: true,\n $vocabulary: true,\n $comment: true,\n default: true,\n enum: true,\n const: true,\n required: true,\n type: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\nexport let initialBaseURI = typeof self !== 'undefined' &&\n self.location &&\n self.location.origin !== 'null'\n ?\n new URL(self.location.origin + self.location.pathname + location.search)\n : new URL('https://github.com/cfworker');\nexport function dereference(schema, lookup = Object.create(null), baseURI = initialBaseURI, basePointer = '') {\n if (schema && typeof schema === 'object' && !Array.isArray(schema)) {\n const id = schema.$id || schema.id;\n if (id) {\n const url = new URL(id, baseURI.href);\n if (url.hash.length > 1) {\n lookup[url.href] = schema;\n }\n else {\n url.hash = '';\n if (basePointer === '') {\n baseURI = url;\n }\n else {\n dereference(schema, lookup, baseURI);\n }\n }\n }\n }\n else if (schema !== true && schema !== false) {\n return lookup;\n }\n const schemaURI = baseURI.href + (basePointer ? '#' + basePointer : '');\n if (lookup[schemaURI] !== undefined) {\n throw new Error(`Duplicate schema URI \"${schemaURI}\".`);\n }\n lookup[schemaURI] = schema;\n if (schema === true || schema === false) {\n return lookup;\n }\n if (schema.__absolute_uri__ === undefined) {\n Object.defineProperty(schema, '__absolute_uri__', {\n enumerable: false,\n value: schemaURI\n });\n }\n if (schema.$ref && schema.__absolute_ref__ ==Line truncated
@@ -0,0 +1 @@
{"version":3,"file":"unwrap-motion-component.mjs","sources":["../../../../src/motion/utils/unwrap-motion-component.ts"],"sourcesContent":["import { isMotionComponent } from \"./is-motion-component\"\nimport { motionComponentSymbol } from \"./symbol\"\n\n/**\n * Unwraps a `motion` component and returns either a string for `motion.div` or\n * the React component for `motion(Component)`.\n *\n * If the component is not a `motion` component it returns undefined.\n */\nexport function unwrapMotionComponent(\n component: React.ComponentType | string\n): React.ComponentType | string | undefined {\n if (isMotionComponent(component)) {\n return component[motionComponentSymbol as keyof typeof component]\n }\n\n return undefined\n}\n"],"names":[],"mappings":";;;AAGA;;;;;AAKG;AACG,SAAU,qBAAqB,CACjC,SAAuC,EAAA;AAEvC,IAAA,IAAI,iBAAiB,CAAC,SAAS,CAAC,EAAE;AAC9B,QAAA,OAAO,SAAS,CAAC,qBAA+C,CAAC;IACrE;AAEA,IAAA,OAAO,SAAS;AACpB;;;;"}
@@ -0,0 +1,37 @@
//#region src/helper/adapter/index.ts
const env = (c, runtime) => {
const globalEnv = globalThis?.process?.env;
runtime ??= getRuntimeKey();
return {
bun: () => globalEnv,
node: () => globalEnv,
"edge-light": () => globalEnv,
deno: () => {
return Deno.env.toObject();
},
workerd: () => c.env,
fastly: () => ({}),
other: () => ({})
}[runtime]();
};
const knownUserAgents = {
deno: "Deno",
bun: "Bun",
workerd: "Cloudflare-Workers",
node: "Node.js"
};
const getRuntimeKey = () => {
const global = globalThis;
if (typeof navigator !== "undefined" && typeof navigator.userAgent === "string") {
for (const [runtimeKey, userAgent] of Object.entries(knownUserAgents)) if (checkUserAgentEquals(userAgent)) return runtimeKey;
}
if (typeof global?.EdgeRuntime === "string") return "edge-light";
if (global?.fastly !== void 0) return "fastly";
if (global?.process?.release?.name === "node") return "node";
return "other";
};
const checkUserAgentEquals = (platform) => {
return navigator.userAgent.startsWith(platform);
};
//#endregion
export { checkUserAgentEquals, env, getRuntimeKey, knownUserAgents };
@@ -0,0 +1 @@
{"version":3,"file":"debug.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SendToBack = createLucideIcon("SendToBack", [
["rect", { x: "14", y: "14", width: "8", height: "8", rx: "2", key: "1b0bso" }],
["rect", { x: "2", y: "2", width: "8", height: "8", rx: "2", key: "1x09vl" }],
["path", { d: "M7 14v1a2 2 0 0 0 2 2h1", key: "pao6x6" }],
["path", { d: "M14 7h1a2 2 0 0 1 2 2v1", key: "19tdru" }]
]);
export { SendToBack as default };
//# sourceMappingURL=send-to-back.js.map
@@ -0,0 +1,69 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createTemplateBuilder;
var _options = require("./options.js");
var _string = require("./string.js");
var _literal = require("./literal.js");
const NO_PLACEHOLDER = (0, _options.validate)({
placeholderPattern: false
});
function createTemplateBuilder(formatter, defaultOpts) {
const templateFnCache = new WeakMap();
const templateAstCache = new WeakMap();
const cachedOpts = defaultOpts || (0, _options.validate)(null);
return Object.assign((tpl, ...args) => {
if (typeof tpl === "string") {
if (args.length > 1) throw new Error("Unexpected extra params.");
return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0]))));
} else if (Array.isArray(tpl)) {
let builder = templateFnCache.get(tpl);
if (!builder) {
builder = (0, _literal.default)(formatter, tpl, cachedOpts);
templateFnCache.set(tpl, builder);
}
return extendedTrace(builder(args));
} else if (typeof tpl === "object" && tpl) {
if (args.length > 0) throw new Error("Unexpected extra params.");
return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl)));
}
throw new Error(`Unexpected template param ${typeof tpl}`);
}, {
ast: (tpl, ...args) => {
if (typeof tpl === "string") {
if (args.length > 1) throw new Error("Unexpected extra params.");
return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))();
} else if (Array.isArray(tpl)) {
let builder = templateAstCache.get(tpl);
if (!builder) {
builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER));
templateAstCache.set(tpl, builder);
}
return builder(args)();
}
throw new Error(`Unexpected template param ${typeof tpl}`);
}
});
}
function extendedTrace(fn) {
let rootStack = "";
try {
throw new Error();
} catch (error) {
if (error.stack) {
rootStack = error.stack.split("\n").slice(3).join("\n");
}
}
return arg => {
try {
return fn(arg);
} catch (err) {
err.stack += `\n =============\n${rootStack}`;
throw err;
}
};
}
//# sourceMappingURL=builder.js.map
@@ -0,0 +1 @@
{"version":3,"file":"outdent.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,320 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
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
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABILITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
@@ -0,0 +1 @@
{"version":3,"file":"float-regex.mjs","sources":["../../../../../src/value/types/utils/float-regex.ts"],"sourcesContent":["export const floatRegex = /-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;;;;"}
@@ -0,0 +1,22 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Settings = createLucideIcon("Settings", [
[
"path",
{
d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
key: "1qme2f"
}
],
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
]);
export { Settings as default };
//# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
{"version":3,"file":"rows-4.js","sources":["../../../src/icons/rows-4.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Rows4\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0yMSA3LjVIMyIgLz4KICA8cGF0aCBkPSJNMjEgMTJIMyIgLz4KICA8cGF0aCBkPSJNMjEgMTYuNUgzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/rows-4\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Rows4 = createLucideIcon('Rows4', [\n ['rect', { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' }],\n ['path', { d: 'M21 7.5H3', key: '1hm9pq' }],\n ['path', { d: 'M21 12H3', key: '2avoz0' }],\n ['path', { d: 'M21 16.5H3', key: 'n7jzkj' }],\n]);\n\nexport default Rows4;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC7C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"wifi-high.js","sources":["../../../src/icons/wifi-high.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name WifiHigh\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMjBoLjAxIiAvPgogIDxwYXRoIGQ9Ik01IDEyLjg1OWExMCAxMCAwIDAgMSAxNCAwIiAvPgogIDxwYXRoIGQ9Ik04LjUgMTYuNDI5YTUgNSAwIDAgMSA3IDAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/wifi-high\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst WifiHigh = createLucideIcon('WifiHigh', [\n ['path', { d: 'M12 20h.01', key: 'zekei9' }],\n ['path', { d: 'M5 12.859a10 10 0 0 1 14 0', key: '1x1e6c' }],\n ['path', { d: 'M8.5 16.429a5 5 0 0 1 7 0', key: '1bycff' }],\n]);\n\nexport default WifiHigh;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,iBAAiB,UAAY,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC3C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC3D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"get-write-flag.js","sourceRoot":"","sources":["../../src/get-write-flag.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uDAAuD;AACvD,wDAAwD;AACxD,wDAAwD;AACxD,qDAAqD;AACrD,uDAAuD;AACvD,8CAA8C;;;;;;AAE9C,4CAAmB;AAEnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,OAAO,CAAC,QAAQ,CAAA;AAClE,MAAM,SAAS,GAAG,QAAQ,KAAK,OAAO,CAAA;AAEtC,qBAAqB;AACrB,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,YAAE,CAAC,SAAS,CAAA;AAC/D,MAAM,eAAe,GACnB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;IAC1C,YAAE,CAAC,SAAS,CAAC,eAAe;IAC5B,CAAC,CAAA;AACH,oBAAoB;AAEpB,MAAM,WAAW,GAAG,SAAS,IAAI,CAAC,CAAC,eAAe,CAAA;AAClD,MAAM,SAAS,GAAG,GAAG,GAAG,IAAI,CAAA;AAC5B,MAAM,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC/D,MAAM,YAAY,GAChB,CAAC,SAAS,IAAI,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC;IAC5C,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ;IAC3C,CAAC,CAAC,IAAI,CAAA;AACK,QAAA,YAAY,GACvB,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY;IAC1C,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG;QAC1B,CAAC,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA","sourcesContent":["// Get the appropriate flag to use for creating files\n// We use fmap on Windows platforms for files less than\n// 512kb. This is a fairly low limit, but avoids making\n// things slower in some cases. Since most of what this\n// library is used for is extracting tarballs of many\n// relatively small files in npm packages and the like,\n// it can be a big boost on Windows platforms.\n\nimport fs from 'fs'\n\nconst platform = process.env.__FAKE_PLATFORM__ || process.platform\nconst isWindows = platform === 'win32'\n\n/* c8 ignore start */\nconst { O_CREAT, O_NOFOLLOW, O_TRUNC, O_WRONLY } = fs.constants\nconst UV_FS_O_FILEMAP =\n Number(process.env.__FAKE_FS_O_FILENAME__) ||\n fs.constants.UV_FS_O_FILEMAP ||\n 0\n/* c8 ignore stop */\n\nconst fMapEnabled = isWindows && !!UV_FS_O_FILEMAP\nconst fMapLimit = 512 * 1024\nconst fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY\nconst noFollowFlag =\n !isWindows && typeof O_NOFOLLOW === 'number' ?\n O_NOFOLLOW | O_TRUNC | O_CREAT | O_WRONLY\n : null\nexport const getWriteFlag =\n noFollowFlag !== null ? () => noFollowFlag\n : !fMapEnabled ? () => 'w'\n : (size: number) => (size < fMapLimit ? fMapFlag : 'w')\n"]}
@@ -0,0 +1 @@
{"version":3,"file":"auto-scroll.mjs","sources":["../../../../../src/components/Reorder/utils/auto-scroll.ts"],"sourcesContent":["const threshold = 50\nconst maxSpeed = 25\n\nconst overflowStyles = new Set([\"auto\", \"scroll\"])\n\n// Track initial scroll limits per scrollable element (Bug 1 fix)\nconst initialScrollLimits = new WeakMap<HTMLElement, number>()\n\n// Track auto-scroll active state per edge: \"start\" (top/left) or \"end\" (bottom/right)\ntype ActiveEdge = \"start\" | \"end\" | null\nconst activeScrollEdge = new WeakMap<HTMLElement, ActiveEdge>()\n\n// Track which group element is currently dragging to clear state on end\nlet currentGroupElement: Element | null = null\n\nexport function resetAutoScrollState(): void {\n if (currentGroupElement) {\n const scrollableAncestor = findScrollableAncestor(\n currentGroupElement,\n \"y\"\n )\n if (scrollableAncestor) {\n activeScrollEdge.delete(scrollableAncestor)\n initialScrollLimits.delete(scrollableAncestor)\n }\n // Also try x axis\n const scrollableAncestorX = findScrollableAncestor(\n currentGroupElement,\n \"x\"\n )\n if (scrollableAncestorX && scrollableAncestorX !== scrollableAncestor) {\n activeScrollEdge.delete(scrollableAncestorX)\n initialScrollLimits.delete(scrollableAncestorX)\n }\n currentGroupElement = null\n }\n}\n\nfunction isScrollableElement(element: Element, axis: \"x\" | \"y\"): boolean {\n const style = getComputedStyle(element)\n const overflow = axis === \"x\" ? style.overflowX : style.overflowY\n\n const isDocumentScroll =\n element === document.body ||\n element === document.documentElement\n\n return overflowStyles.has(overflow) || isDocumentScroll\n}\n\nfunction findScrollableAncestor(\n element: Element | null,\n axis: \"x\" | \"y\"\n): HTMLElement | null {\n let current = element?.parentElement\n while (current) {\n if (isScrollableElement(current, axis)) {\n return current\n }\n current = current.parentElement\n }\n return null\n}\n\nfunction getScrollAmount(\n pointerPosition: number,\n scrollElement: HTMLElement,\n axis: \"x\" | \"y\"\n): { amount: number; edge: ActiveEdge } {\n const rect = scrollElement.getBoundingClientRect()\n\n const start = axis === \"x\" ? Math.max(0, rect.left) : Math.max(0, rect.top)\n const end = axis === \"x\" ? Math.min(window.innerWidth, rect.right) : Math.min(window.innerHeight, rect.bottom)\n\n const distanceFromStart = pointerPosition - start\n const distanceFromEnd = end - pointerPosition\n\n if (distanceFromStart < threshold) {\n const intensity = 1 - distanceFromStart / threshold\n return { amount: -maxSpeed * intensity * intensity, edge: \"start\" }\n } else if (distanceFromEnd < threshold) {\n const intensity = 1 - distanceFromEnd / threshold\n return { amount: maxSpeed * intensity * intensity, edge: \"end\" }\n }\n\n return { amount: 0, edge: null }\n}\n\nexport function autoScrollIfNeeded(\n groupElement: Element | null,\n pointerPosition: number,\n axis: \"x\" | \"y\",\n velocity: number\n): void {\n if (!groupElement) return\n\n // Track the group element for cleanup\n currentGroupElement = groupElement\n\n const scrollableAncestor = findScrollableAncestor(groupElement, axis)\n if (!scrollableAncestor) return\n\n // Convert pointer position from page coordinates to viewport coordinates.\n // The gesture system uses pageX/pageY but getBoundingClientRect() returns\n // viewport-relative coordinates, so we need to account for page scroll.\n const viewportPointerPosition =\n pointerPosition - (axis === \"x\" ? window.scrollX : window.scrollY)\n\n const { amount: scrollAmount, edge } = getScrollAmount(\n viewportPointerPosition,\n scrollableAncestor,\n axis\n )\n\n // If not in any threshold zone, clear all state\n if (edge === null) {\n activeScrollEdge.delete(scrollableAncestor)\n initialScrollLimits.delete(scrollableAncestor)\n return\n }\n\n const currentActiveEdge = activeScrollEdge.get(scrollableAncestor)\n\n const isDocumentScroll =\n scrollableAncestor === document.body ||\n scrollableAncestor === document.documentElement\n\n // If not currently scrolling this edge, check velocity to see if we should start\n if (currentActiveEdge !== edge) {\n // Only start scrolling if velocity is towards the edge\n const shouldStart =\n (edge === \"start\" && velocity < 0) ||\n (edge === \"end\" && velocity > 0)\n if (!shouldStart) return\n\n // Activate this edge\n activeScrollEdge.set(scrollableAncestor, edge)\n\n // Record initial scroll limit (prevents infinite scroll)\n const maxScroll =Line truncated
@@ -0,0 +1 @@
module.exports={C:{"115":0.01603,"120":0.2004,"121":0.38477,"122":0.00401,"123":0.00802,"124":0.00802,"125":0.00401,"139":0.00401,"140":0.04008,"142":0.00401,"150":0.00802,"152":0.01202,"153":0.01202,"154":0.06814,"155":0.23246,"156":0.2485,"157":0.00401,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 126 127 128 129 130 131 132 133 134 135 136 137 138 141 143 144 145 146 147 148 149 151 158 159 160 3.5 3.6"},D:{"76":0.00401,"80":0.00802,"87":0.00401,"91":0.01603,"92":0.00401,"93":0.25651,"101":0.00401,"103":1.00601,"104":0.07615,"105":0.07615,"106":0.07615,"107":0.07615,"108":0.08016,"109":0.39679,"110":0.07615,"111":0.08016,"112":0.07615,"114":0.02405,"116":0.18036,"117":0.07615,"118":0.40481,"119":0.39679,"120":0.47294,"121":0.02004,"122":0.02806,"123":0.06814,"124":0.10822,"125":0.00802,"126":0.14028,"127":0.00802,"128":0.03206,"129":0.01202,"130":0.01202,"131":0.22044,"132":0.02004,"133":0.22044,"134":0.06814,"135":0.07615,"136":0.07615,"137":0.10822,"138":0.18437,"139":0.12024,"140":0.10421,"141":0.08818,"142":0.25651,"143":0.0521,"144":0.29659,"145":0.1002,"146":0.12425,"147":0.05611,"148":0.16834,"149":0.14429,"150":0.62124,"151":3.14628,"152":11.01398,"153":8.08814,"154":1.54709,"155":0.01603,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 81 83 84 85 86 88 89 90 94 95 96 97 98 99 100 102 113 115 156 157"},F:{"95":0.00401,"101":0.00401,"105":0.00401,"106":0.00401,"107":0.00401,"131":0.00802,"133":0.03607,"134":0.08417,"135":0.48096,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 102 103 104 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00401,"109":0.01202,"114":0.00401,"119":0.19238,"120":0.19639,"122":0.00802,"131":0.00401,"132":0.00401,"138":0.00401,"139":0.00401,"140":0.00401,"141":0.00401,"142":0.00401,"143":0.00401,"144":0.00401,"145":0.00802,"146":0.00401,"147":0.00802,"148":0.00802,"149":0.0481,"150":0.02405,"151":0.1002,"152":1.54308,"153":1.71542,"154":0.42485,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 121 123 124 125 126 127 128 129 130 133 134 135 136 137"},E:{"27":0.04409,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.5 16.0 16.4 17.0 27.1 27.2 TP","13.1":0.00401,"14.1":0.00802,"15.1":0.00401,"15.4":0.00401,"15.6":0.02405,"16.1":0.00401,"16.2":0.00401,"16.3":0.00401,"16.5":0.00401,"16.6":0.02405,"17.1":0.02004,"17.2":0.00401,"17.3":0.00401,"17.4":0.01202,"17.5":0.00802,"17.6":0.03607,"18.0":0.00401,"18.1":0.01202,"18.2":0.00802,"18.3":0.01202,"18.4":0.00401,"18.5-18.7":0.02004,"26.0":0.00802,"26.1":0.00802,"26.2":0.03206,"26.3":0.02806,"26.4":0.02405,"26.5":0.12425,"26.6":0.42886},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00066,"5.0-5.1":0.00066,"6.0-6.1":0,"7.0-7.1":0.00132,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.00662,"11.0-11.2":0.00066,"11.3-11.4":0.00132,"12.0-12.1":0,"12.2-12.5":0.01722,"13.0-13.1":0,"13.2":0.00331,"13.3":0,"13.4-13.7":0.00066,"14.0-14.4":0.00265,"14.5-14.8":0.00397,"15.0-15.1":0.00397,"15.2-15.3":0.00265,"15.4":0.00331,"15.5":0.00397,"15.6-15.8":0.08608,"16.0":0.00662,"16.1":0.01192,"16.2":0.00662,"16.3":0.01457,"16.4":0.00331,"16.5":0.0053,"16.6-16.7":0.11984,"17.0":0.00463,"17.1":0.00662,"17.2":0.00662,"17.3":0.00993,"17.4":0.0139,"17.5":0.02715,"17.6-17.7":0.07018,"18.0":0.01457,"18.1":0.02913,"18.2":0.03973,"18.3":0.06886,"18.4":0.04304,"18.5-18.7":0.88922,"26.0":0.04304,"26.1":0.0437,"26.2":0.11388,"26.3":0.12315,"26.4":0.09005,"26.5":0.60319,"26.6":3.72175,"27.0":0.28537,"27.1":0,"27.2":0.00728},P:{"28":0.00907,"29":0.00907,"30":0.29943,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.17365,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.1498,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":53.16763},R:{_:"0"},M:{"0":0.0779},Q:{_:"14.9"},O:{"0":0.0779},H:{all:0}};
@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './arrow-up-a-z.js';
//# sourceMappingURL=arrow-up-az.js.map
@@ -0,0 +1 @@
{"version":3,"names":["_toPropertyKey","require","_defineProperty","obj","key","value","toPropertyKey","Object","defineProperty","enumerable","configurable","writable"],"sources":["../../src/helpers/defineProperty.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\nimport toPropertyKey from \"./toPropertyKey.ts\";\n\nexport default function _defineProperty<T extends object>(\n obj: T,\n key: PropertyKey,\n value: any,\n) {\n key = toPropertyKey(key);\n // Shortcircuit the slow defineProperty path when possible.\n // We are trying to avoid issues where setters defined on the\n // prototype cause side effects under the fast path of simple\n // assignment. By checking for existence of the property with\n // the in operator, we can optimize most of this overhead away.\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true,\n });\n } else {\n // @ts-expect-error - Explicitly assigning to generic type key\n obj[key] = value;\n }\n return obj;\n}\n"],"mappings":";;;;;;AACA,IAAAA,cAAA,GAAAC,OAAA;AAEe,SAASC,eAAeA,CACrCC,GAAM,EACNC,GAAgB,EAChBC,KAAU,EACV;EACAD,GAAG,GAAG,IAAAE,sBAAa,EAACF,GAAG,CAAC;EAMxB,IAAIA,GAAG,IAAID,GAAG,EAAE;IACdI,MAAM,CAACC,cAAc,CAACL,GAAG,EAAEC,GAAG,EAAE;MAC9BC,KAAK,EAAEA,KAAK;MACZI,UAAU,EAAE,IAAI;MAChBC,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE;IACZ,CAAC,CAAC;EACJ,CAAC,MAAM;IAELR,GAAG,CAACC,GAAG,CAAC,GAAGC,KAAK;EAClB;EACA,OAAOF,GAAG;AACZ","ignoreList":[]}
@@ -0,0 +1,11 @@
import { HeadContentProps } from './HeadContent.cjs';
/**
* Render route-managed head tags (title, meta, links, styles, head scripts).
* Place inside the document head of your app shell.
*
* Development version: filters out dev styles link after hydration and
* includes a fallback cleanup effect for hydration mismatch cases.
*
* @link https://tanstack.com/router/latest/docs/framework/react/guide/document-head-management
*/
export declare function HeadContent(props: HeadContentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"_V","2":"_b"},B:{"1":"_J"},C:{"1":"_LF","257":"_eL","289":"fC _L","292":"GD"},D:{"1":"_7D","33":"J"},E:{"1":"mB _7C","33":"_k","129":"_iG OD"},F:{"1":"_dD","2":"_fB"},G:{"1":"_eB","33":"lC"},H:{"2":"1D"},I:{"1":"_IR","33":"2D"},J:{"1":"_B"},K:{"1":"_CB","2":"A"},L:{"1":"I"},M:{"1":"YC"},N:{"1":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"ME","257":"LE"}},B:4,C:"CSS3 Border-radius (rounded corners)",D:true};
@@ -0,0 +1 @@
{"version":3,"file":"coins.js","sources":["../../../src/icons/coins.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Coins\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNiIgLz4KICA8cGF0aCBkPSJNMTguMDkgMTAuMzdBNiA2IDAgMSAxIDEwLjM0IDE4IiAvPgogIDxwYXRoIGQ9Ik03IDZoMXY0IiAvPgogIDxwYXRoIGQ9Im0xNi43MSAxMy44OC43LjcxLTIuODIgMi44MiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/coins\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Coins = createLucideIcon('Coins', [\n ['circle', { cx: '8', cy: '8', r: '6', key: '3yglwk' }],\n ['path', { d: 'M18.09 10.37A6 6 0 1 1 10.34 18', key: 't5s6rm' }],\n ['path', { d: 'M7 6h1v4', key: '1obek4' }],\n ['path', { d: 'm16.71 13.88.7.71-2.82 2.82', key: '1rbuyh' }],\n]);\n\nexport default Coins;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CACtC,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,EAAK,CAAI,CAAA,CAAA,CAAA,GAAA,CAAK,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACtD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAChE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA+B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC9D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParameterDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ParameterDefinition extends DefinitionBase_1.DefinitionBase {
/**
* Whether the parameter definition is a part of a rest parameter.
*/
isTypeDefinition = false;
isVariableDefinition = true;
rest;
constructor(name, node, rest) {
super(DefinitionType_1.DefinitionType.Parameter, name, node, null);
this.rest = rest;
}
}
exports.ParameterDefinition = ParameterDefinition;
@@ -0,0 +1,7 @@
declare function ToObject<T extends object>(value: number): Number;
declare function ToObject<T extends object>(value: boolean): Boolean;
declare function ToObject<T extends object>(value: string): String;
declare function ToObject<T extends object>(value: bigint): BigInt;
declare function ToObject<T extends object>(value: T): T;
export = ToObject;
@@ -0,0 +1,949 @@
flf2a$ 9 8 15 0 20 0 16255 0
Author : myflix
Date : 2004/9/26 12:46:52
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
---
Font modified June 17, 2007 by patorjk
- Widened the space character.
Font modified May 26, 2012 by patorjk
- Switched the _ and - character (which were swapped).
- Added the 0xCA0 character
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $##
,---. #
| | #
| | #
| | #
| | #
| .' #
`--' #
.--. #
'--' ##
#
,--.,--. #
\ |\ | #
`-' `-' #
#
#
#
#
##
#
,-. ,-. #
| | | | #
,--| |-| |--.#
'--| |-| |--'#
'--| |-| |--'#
| | | | #
`-' `-' #
##
,-. #
.-| |-. #
| | |_/ #
\ | |. #
'-| | '. #
.- | | | #
| `| | / #
`-| |'` #
`-' ##
,-. #
,--. / / #
'--'/ / #
/ / #
/ / #
/ / #
/ / ,--. #
/ / '--' #
`-' ##
#
.-----. #
/ .-. \ #
| \_.' / #
/ .-. ',-. #
| | | . /_ #
\ '-' _.__)#
`----'' #
##
#
,--. #
\ | #
`-' #
#
#
#
#
##
,-. #
/ | #
' .' #
| | #
| | #
| | #
' '. #
\ | #
`-' ##
,-. #
| \ #
'. ' #
| | #
| | #
| | #
.' ' #
| / #
`-' ##
#
.-. #
.-,| |,-. #
_\ ' ' /_ #
(__ __) #
/ . . \ #
`-'| |`-' #
`-' #
##
#
#
,-. #
| | #
,---| |---. #
'---| |---' #
| | #
`-' #
##
#
#
#
#
#
#
#
.-. #
',/ ##
#
#
#
.-') #
_( OO) #
(,------. #
'------' #
#
##
#
#
#
#
#
#
#
.-. #
`-' ##
,-. #
/ / #
/ / #
/ / #
/ / #
/ / #
/ / #
/ / #
`-' ##
#
#
.----. #
/ .. \ #
. / \ . #
| | ' | #
' \ / ' #
\ `' / #
`---'' ##
#
#
.---. #
/_ | #
| | #
| | #
| | #
| | #
`---' ##
#
#
.-----. #
/ ,-. \ #
'-' | | #
.' / #
.' /__ #
| | #
`-------' ##
#
#
.-----. #
/ -. \ #
'-' _' | #
|_ < #
.-. | | #
\ `-' / #
`----'' ##
#
#
.---. #
/ . | #
/ /| | #
/ / | |_ #
/ '-' | #
`----| |-' #
`--' ##
#
#
.------. #
| ___| #
| '--. #
`---. '. #
.- | | #
| `-' / #
`----'' ##
#
#
,--. #
/ .' #
. / -. #
| .-. ' #
' \ | | #
\ `' / #
`----' ##
#
#
.--------. #
| __ ' #
`--' . / #
/ / #
. / #
/ / #
`--' ##
#
#
.-----. #
/ .-. \ #
| \_.' / #
/ .-. '. #
| | | | #
\ '-' / #
`----'' ##
#
#
.----. #
/ ,. \ #
| | \ | #
' `-' ' #
`- / ' #
,' / #
`---' ##
#
#
.-. #
`-' #
#
.-. #
`-' #
#
##
#
#
.-. #
'-' #
#
.-. #
',/ #
#
##
#
,-. #
/ / #
/ / #
/ / #
\ \ #
\ \ #
\ \ #
`-' ##
#
#
,-----. #
'-----' #
#
,-----. #
'-----' #
#
##
#
,-. #
\ \ #
\ \ #
\ \ #
/ / #
/ / #
/ / #
`-' ##
,------. #
' .--. ' #
| | | | #
'--' | | #
__. | #
| .' #
|___| #
.---. #
'---' ##
#
#
____ #
.' __ \ #
/ .' \ | #
| | (_/ | #
\ `.__.'\ #
`.___ .' #
##
('-. #
( OO ).-. #
/ . --. / #
| \-. \ #
.-'-' | | #
\| |_.' | #
| .-. | #
| | | | #
`--' `--' ##
.-. .-') #
\ ( OO ) #
;-----.\ #
| .-. | #
| '-' /_) #
| .-. `. #
| | \ | #
| '--' / #
`------' ##
#
#
.-----. #
' .--./ #
| |('-. #
/_) |OO ) #
|| |`-'| #
(_' '--'\ #
`-----' ##
_ .-') _ #
( ( OO) ) #
\ .'_ #
,`'--..._) #
| | \ ' #
| | ' | #
| | / : #
| '--' / #
`-------' ##
('-. #
_( OO) #
(,------. #
| .---' #
| | #
(| '--. #
| .--' #
| `---. #
`------' ##
#
#
,------. #
('-| _.---' #
(OO|(_\ #
/ | '--. #
\_)| .--' #
\| |_) #
`--' ##
#
#
,----. #
' .-./-') #
| |_( O- ) #
| | .--, \ #
(| | '. (_/ #
| '--' | #
`------' ##
('-. .-. #
( OO ) / #
,--. ,--. #
| | | | #
| .| | #
| | #
| .-. | #
| | | | #
`--' `--' ##
#
#
,-.-') #
| |OO) #
| | \ #
| |(_/ #
,| |_.' #
(_| | #
`--' ##
#
#
,--. #
.-')| ,| #
( OO |(_| #
| `-'| | #
,--. | | #
| '-' / #
`-----' ##
.-. .-') #
\ ( OO ) #
,--. ,--. #
| .' / #
| /, #
| ' _) #
| . \ #
| |\ \ #
`--' '--' ##
#
#
,--. #
| |.-') #
| | OO ) #
| |`-' | #
(| '---.' #
| | #
`------' ##
_ .-') #
( '.( OO )_ #
,--. ,--.)#
| `.' | #
| | #
| |'.'| | #
| | | | #
| | | | #
`--' `--' ##
.-') _ #
( OO ) ) #
,--./ ,--,' #
| \ | |\ #
| \| | ) #
| . |/ #
| |\ | #
| | \ | #
`--' `--' ##
#
#
.-'),-----. #
( OO' .-. '#
/ | | | |#
\_) | |\| |#
\ | | | |#
`' '-' '#
`-----' ##
_ (`-. #
( (OO ) #
_.` \ #
(__...--'' #
| / | | #
| |_.' | #
| .___.' #
| | #
`--' ##
.-') #
.( OO) #
(_)---\_) #
' .-. ' #
,| | | | #
(_| | | | #
| | | | #
' '-' '-.#
`-----'--'##
_ .-') #
( \( -O ) #
,------. #
| /`. ' #
| / | | #
| |_.' | #
| . '.' #
| |\ \ #
`--' '--' ##
.-') #
( OO ). #
(_)---\_) #
/ _ | #
\ :` `. #
'..`''.) #
.-._) \ #
\ / #
`-----' ##
.-') _ #
( OO) ) #
/ '._ #
|'--...__) #
'--. .--' #
| | #
| | #
| | #
`--' ##
#
#
,--. ,--. #
| | | | #
| | | .-') #
| |_|( OO )#
| | | `-' /#
(' '-'(_.-' #
`-----' ##
(`-. #
_(OO )_ #
,--(_/ ,. \#
\ \ /(__/#
\ \ / / #
\ ' /, #
\ /__)#
\ / #
`-' ##
(`\ .-') /`#
`.( OO ),'#
,--./ .--. #
| | | #
| | | |, #
| |.'.| |_)#
| | #
| ,'. | #
'--' '--' ##
) (`-. #
( OO ). #
(_/. \_)-. #
\ `.' / #
\ /\ #
\ \ | #
.' \_) #
/ .'. \ #
'--' '--' ##
#
#
,--. ,--.#
\ `.' / #
.-') / #
(OO \ / #
| / /\_ #
`-./ /.__) #
`--' ##
.-') _ #
( OO) ) #
,(_)----. #
| | #
'--. / #
(_/ / #
/ /___ #
| | #
`--------' ##
,----. #
| | #
| .-' #
| | #
| | #
| | #
| '-. #
| | #
`----' ##
,-. #
\ \ #
\ \ #
\ \ #
\ \ #
\ \ #
\ \ #
\ \ #
`-' ##
,----. #
| | #
`-. | #
| | #
| | #
| | #
.-' | #
| | #
`----' ##
#
#
,---. #
/ \ \ #
`--' `--' #
#
#
#
##
#
#
#
#
#
(`-. #
(OO )_ #
,------.) #
`------' ##
#
#
,--. #
'. \ #
`--' #
#
#
#
##
('-. #
( OO ).-. #
/ . --. / #
| \-. \ #
.-'-' | | #
\| |_.' | #
| .-. | #
| | | | #
`--' `--' ##
.-. .-') #
\ ( OO ) #
;-----.\ #
| .-. | #
| '-' /_) #
| .-. `. #
| | \ | #
| '--' / #
`------' ##
#
#
.-----. #
' .--./ #
| |('-. #
/_) |OO ) #
|| |`-'| #
(_' '--'\ #
`-----' ##
_ .-') _ #
( ( OO) ) #
\ .'_ #
,`'--..._) #
| | \ ' #
| | ' | #
| | / : #
| '--' / #
`-------' ##
('-. #
_( OO) #
(,------. #
| .---' #
| | #
(| '--. #
| .--' #
| `---. #
`------' ##
#
#
,------. #
('-| _.---' #
(OO|(_\ #
/ | '--. #
\_)| .--' #
\| |_) #
`--' ##
#
#
,----. #
' .-./-') #
| |_( O- ) #
| | .--, \ #
(| | '. (_/ #
| '--' | #
`------' ##
('-. .-. #
( OO ) / #
,--. ,--. #
| | | | #
| .| | #
| | #
| .-. | #
| | | | #
`--' `--' ##
#
#
,-.-') #
| |OO) #
| | \ #
| |(_/ #
,| |_.' #
(_| | #
`--' ##
#
#
,--. #
.-')| ,| #
( OO |(_| #
| `-'| | #
,--. | | #
| '-' / #
`-----' ##
.-. .-') #
\ ( OO ) #
,--. ,--. #
| .' / #
| /, #
| ' _) #
| . \ #
| |\ \ #
`--' '--' ##
#
#
,--. #
| |.-') #
| | OO ) #
| |`-' | #
(| '---.' #
| | #
`------' ##
_ .-') #
( '.( OO )_ #
,--. ,--.)#
| `.' | #
| | #
| |'.'| | #
| | | | #
| | | | #
`--' `--' ##
.-') _ #
( OO ) ) #
,--./ ,--,' #
| \ | |\ #
| \| | ) #
| . |/ #
| |\ | #
| | \ | #
`--' `--' ##
#
#
.-'),-----. #
( OO' .-. '#
/ | | | |#
\_) | |\| |#
\ | | | |#
`' '-' '#
`-----' ##
_ (`-. #
( (OO ) #
_.` \ #
(__...--'' #
| / | | #
| |_.' | #
| .___.' #
| | #
`--' ##
.-') #
.( OO) #
(_)---\_) #
' .-. ' #
,| | | | #
(_| | | | #
| | | | #
' '-' '-.#
`-----'--'##
_ .-') #
( \( -O ) #
,------. #
| /`. ' #
| / | | #
| |_.' | #
| . '.' #
| |\ \ #
`--' '--' ##
.-') #
( OO ). #
(_)---\_) #
/ _ | #
\ :` `. #
'..`''.) #
.-._) \ #
\ / #
`-----' ##
.-') _ #
( OO) ) #
/ '._ #
|'--...__) #
'--. .--' #
| | #
| | #
| | #
`--' ##
#
#
,--. ,--. #
| | | | #
| | | .-') #
| |_|( OO )#
| | | `-' /#
(' '-'(_.-' #
`-----' ##
(`-. #
_(OO )_ #
,--(_/ ,. \#
\ \ /(__/#
\ \ / / #
\ ' /, #
\ /__)#
\ / #
`-' ##
(`\ .-') /`#
`.( OO ),'#
,--./ .--. #
| | | #
| | | |, #
| |.'.| |_)#
| | #
| ,'. | #
'--' '--' ##
) (`-. #
( OO ). #
(_/. \_)-. #
\ `.' / #
\ /\ #
\ \ | #
.' \_) #
/ .'. \ #
'--' '--' ##
#
#
,--. ,--.#
\ `.' / #
.-') / #
(OO \ / #
| / /\_ #
`-./ /.__) #
`--' ##
.-') _ #
( OO) ) #
,(_)----. #
| | #
'--. / #
(_/ / #
/ /___ #
| | #
`--------' ##
,--. #
| | #
| .' #
.' / #
< < #
`. \ #
| '. #
| | #
`--' ##
,-. #
| | #
| | #
| | #
| | #
| | #
| | #
| | #
`-' ##
,--. #
| | #
'. | #
\ ` #
> > #
/ . #
.' | #
| | #
`--' ##
#
.--, #
.--' / #
/ ---` #
`--' #
#
#
#
##
('-. #
( OO ).-. #
/ . --. / #
| \-. \ #
.-'-' | | #
\| |_.' | #
| .-. | #
| | | | #
`--' `--' ##
#
#
.-'),-----. #
( OO' .-. '#
/ | | | |#
\_) | |\| |#
\ | | | |#
`' '-' '#
`-----' ##
#
#
,--. ,--. #
| | | | #
| | | .-') #
| |_|( OO )#
| | | `-' /#
(' '-'(_.-' #
`-----' ##
('-. #
( OO ).-. #
/ . --. / #
| \-. \ #
.-'-' | | #
\| |_.' | #
| .-. | #
| | | | #
`--' `--' ##
#
#
.-'),-----. #
( OO' .-. '#
/ | | | |#
\_) | |\| |#
\ | | | |#
`' '-' '#
`-----' ##
#
#
,--. ,--. #
| | | | #
| | | .-') #
| |_|( OO )#
| | | `-' /#
(' '-'(_.-' #
`-----' ##
ß#
#
#
#
#
#
#
#
##
0xCA0 KANNADA LETTER TTHA
#
#
_ _ _ _)#
|______/ #
,-----. #
' .-. ' #
| | | | #
' '-' ' #
`-----' ##
@@ -0,0 +1,68 @@
import { n as __toESM, t as require_binding } from "./binding-TuFFIE_J.mjs";
import { c as logPluginError, n as error } from "./logs-ZGEh6uhb.mjs";
//#region src/builtin-plugin/utils.ts
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
var BuiltinPlugin = class {
name;
_options;
/** Vite-specific option to control plugin ordering */
enforce;
constructor(name, _options) {
this.name = name;
this._options = _options;
}
};
function makeBuiltinPluginCallable(plugin) {
let callablePlugin = new import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
const wrappedPlugin = plugin;
for (const key in callablePlugin) {
const wrappedHook = async function(...args) {
try {
return await callablePlugin[key](...args);
} catch (e) {
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
return error(logPluginError(e, plugin.name, {
hook: key,
id: key === "transform" ? args[2] : void 0
}));
}
};
const order = callablePlugin.getOrder(key);
if (order == void 0) wrappedPlugin[key] = wrappedHook;
else wrappedPlugin[key] = {
handler: wrappedHook,
order
};
}
return wrappedPlugin;
}
function bindingifyBuiltInPlugin(plugin) {
return {
__name: plugin.name,
options: plugin._options
};
}
function bindingifyManifestPlugin(plugin, pluginContextData) {
const { isOutputOptionsForLegacyChunks, ...options } = plugin._options;
return {
__name: plugin.name,
options: {
...options,
isLegacy: isOutputOptionsForLegacyChunks ? (opts) => {
return isOutputOptionsForLegacyChunks(pluginContextData.getOutputOptions(opts));
} : void 0
}
};
}
//#endregion
//#region src/utils/normalize-string-or-regex.ts
function normalizedStringOrRegex(pattern) {
if (!pattern) return;
if (!isReadonlyArray(pattern)) return [pattern];
return pattern;
}
function isReadonlyArray(input) {
return Array.isArray(input);
}
//#endregion
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
@@ -0,0 +1,85 @@
{
"name": "call-bind-apply-helpers",
"version": "1.0.2",
"description": "Helper functions around Function call/apply/bind, for use in `call-bind`",
"main": "index.js",
"exports": {
".": "./index.js",
"./actualApply": "./actualApply.js",
"./applyBind": "./applyBind.js",
"./functionApply": "./functionApply.js",
"./functionCall": "./functionCall.js",
"./reflectApply": "./reflectApply.js",
"./package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=auto",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"prelint": "evalmd README.md",
"lint": "eslint --ext=.js,.mjs .",
"postlint": "tsc -p . && attw -P",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ljharb/call-bind-apply-helpers.git"
},
"author": "Jordan Harband <ljharb@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/call-bind-apply-helpers/issues"
},
"homepage": "https://github.com/ljharb/call-bind-apply-helpers#readme",
"dependencies": {
"es-errors": "^1.3.0",
"function-bind": "^1.1.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.3",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.3",
"@types/for-each": "^0.3.3",
"@types/function-bind": "^1.1.10",
"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.8.1",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"es-value-fixtures": "^1.7.1",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"for-each": "^0.3.5",
"has-strict-mode": "^1.1.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.13.4",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"testling": {
"files": "test/index.js"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
},
"engines": {
"node": ">= 0.4"
}
}
@@ -0,0 +1 @@
{"version":3,"file":"limitNumber.js","sourceRoot":"","sources":["../../../lib/vocabularies/validation/limitNumber.ts"],"names":[],"mappings":";;AAEA,mDAA6D;AAE7D,MAAM,GAAG,GAAG,mBAAS,CAAA;AAMrB,MAAM,IAAI,GAA4D;IACpE,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAC;IACjD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;IACzD,gBAAgB,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAC;CAC1D,CAAA;AAQD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,WAAW,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,IAAI,UAAU,EAAE;IAC5F,MAAM,EAAE,CAAC,EAAC,OAAO,EAAE,UAAU,EAAC,EAAE,EAAE,CAChC,IAAA,WAAC,EAAA,gBAAgB,IAAI,CAAC,OAAc,CAAC,CAAC,KAAK,YAAY,UAAU,GAAG;CACvE,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,IAAI;IACX,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC,GAAG,GAAG,CAAA;QACvC,GAAG,CAAC,SAAS,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,IAAI,IAAI,CAAC,OAAc,CAAC,CAAC,IAAI,IAAI,UAAU,aAAa,IAAI,GAAG,CAAC,CAAA;IACxF,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"}
@@ -0,0 +1 @@
{"version":3,"file":"delay.factory.js","sourceRoot":"","sources":["../../src/delay/delay.factory.ts"],"names":[],"mappings":";;AACA,kEAA+D;AAC/D,sDAAoD;AAGpD,SAAgB,YAAY,CAAC,OAAwB,EAAE,OAAe;IAClE,IAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC;AACjB,CAAC;AAJD,oCAIC;AAED,SAAS,cAAc,CAAC,OAAwB;IAC5C,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QAC5B,OAAO,IAAI,iCAAc,CAAC,OAAO,CAAC,CAAC;KACtC;IAED,OAAO,IAAI,0BAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"}
@@ -0,0 +1 @@
{"version":3,"names":["_OverloadYield","require","_regenerator","_regeneratorAsync","_regeneratorAsyncGen","_regeneratorAsyncIterator","_regeneratorKeys","_regeneratorValues","_regeneratorRuntime","r","regenerator","gen","m","GeneratorFunctionPrototype","Object","getPrototypeOf","__proto__","GeneratorFunction","constructor","isGeneratorFunction","genFun","ctor","displayName","name","abruptMap","throw","return","break","continue","wrapInnerFn","innerFn","compatContext","callSyncState","context","stop","a","catch","v","abrupt","type","arg","delegateYield","iterable","resultName","nextLoc","d","values","finish","finallyLoc","f","fn","a1","a2","p","prev","n","next","undefined","sent","call","exports","default","wrap","outerFn","self","tryLocsList","w","reverse","mark","awrap","value","kind","OverloadYield","AsyncIterator","async","PromiseImpl","asyncGen","keys"],"sources":["../../src/helpers/regeneratorRuntime.ts"],"sourcesContent":["/* @minVersion 7.18.0 */\n/* @mangleFns */\n/* @onlyBabel7 */\n\nimport OverloadYield from \"./OverloadYield.ts\";\nimport regenerator from \"./regenerator.ts\";\nimport async from \"./regeneratorAsync.ts\";\nimport asyncGen from \"./regeneratorAsyncGen.ts\";\nimport AsyncIterator from \"./regeneratorAsyncIterator.ts\";\nimport keys from \"./regeneratorKeys.ts\";\nimport values from \"./regeneratorValues.ts\";\n\ntype CompatContext = {\n prev?: number;\n next?: number;\n sent?: any;\n\n stop(): any;\n abrupt(type: \"throw\" | \"break\" | \"continue\" | \"return\", arg: any): any;\n finish(finallyLoc: number): any;\n catch(tryLoc: number): any;\n delegateYield(iterable: any, resultName: `t${number}`, nextLoc: number): any;\n\n resultName?: `t${number}` | undefined;\n\n [key: `t${number}`]: any;\n};\ntype CompatInnerFn = (this: unknown, context: CompatContext) => unknown;\n\nexport default function /* @no-mangle */ _regeneratorRuntime() {\n \"use strict\";\n\n var r = regenerator();\n\n type InnerFn = Parameters<typeof r.w>[0];\n type Context = Parameters<InnerFn>[0];\n\n var gen = r.m(_regeneratorRuntime);\n var GeneratorFunctionPrototype = Object.getPrototypeOf\n ? Object.getPrototypeOf(gen)\n : (gen as any).__proto__;\n var GeneratorFunction = GeneratorFunctionPrototype.constructor;\n\n function isGeneratorFunction(genFun: any) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n }\n\n var abruptMap = {\n throw: 1,\n return: 2,\n break: 3,\n continue: 3,\n };\n\n function wrapInnerFn(innerFn: CompatInnerFn): InnerFn {\n var compatContext: CompatContext;\n var callSyncState: <A1, A2, R>(\n fn: (a: A1, b: A2) => R,\n a1: A1,\n a2?: A2,\n ) => R;\n return function (context: Context) {\n if (!compatContext) {\n // Shim the old context shape on top of the new one.\n compatContext = {\n stop: function () {\n return callSyncState(context.a, 2);\n },\n catch: function () {\n return context.v;\n },\n abrupt: function (type, arg) {\n return callSyncState(context.a, abruptMap[type], arg);\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n compatContext.resultName = resultName;\n return callSyncState(context.d, values(iterable), nextLoc);\n },\n finish: function (finallyLoc) {\n return callSyncState(context.f, finallyLoc);\n },\n };\n callSyncState = function (fn, a1, a2) {\n context.p = compatContext.prev!;\n context.n = compatContext.next!;\n try {\n return fn(a1, a2!);\n } finally {\n compatContext.next = context.n;\n }\n };\n }\n if (compatContext.resultName) {\n compatContext[compatContext.resultName] = context.v;\n compatContext.resultName = undefined;\n }\n compatContext.sent = context.v;\n compatContext.next = context.n;\n try {\n return innerFn.call(this, compatContext);\n } finally {\n context.p = compatContext.prev!;\n context.n = compatContext.next;\n }\n };\n }\n\n // @ts-expect-error explicit function assignment\n return (_regeneratorRuntime = function () {\n return {\n wrap: function (\n innerFn: CompatInnerFn,\n outerFn: Parameters<typeof r.w>[1],\n self: Parameters<typeof r.w>[2],\n tryLocsList: Parameters<typeof r.w>[3],\n ) {\n return r.w(\n wrapInnerFn(innerFn),\n outerFn,\n self,\n tryLocsList && tryLocsList.reverse(),\n );\n },\n isGeneratorFunction: isGeneratorFunction,Line truncated
@@ -0,0 +1,54 @@
{
"name": "glob-parent",
"version": "6.0.2",
"description": "Extract the non-magic parent path from a glob string.",
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"contributors": [
"Elan Shanker (https://github.com/es128)",
"Blaine Bublitz <blaine.bublitz@gmail.com>"
],
"repository": "gulpjs/glob-parent",
"license": "ISC",
"engines": {
"node": ">=10.13.0"
},
"main": "index.js",
"files": [
"LICENSE",
"index.js"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "nyc mocha --async-only"
},
"dependencies": {
"is-glob": "^4.0.3"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-gulp": "^5.0.0",
"expect": "^26.0.1",
"mocha": "^7.1.2",
"nyc": "^15.0.1"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [
"glob",
"parent",
"strip",
"path",
"dirname",
"directory",
"base",
"wildcard"
]
}
@@ -0,0 +1,22 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const ScanQrCode = createLucideIcon("ScanQrCode", [
["path", { d: "M17 12v4a1 1 0 0 1-1 1h-4", key: "uk4fdo" }],
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
["path", { d: "M17 8V7", key: "q2g9wo" }],
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
["path", { d: "M7 17h.01", key: "19xn7k" }],
["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2", key: "ioqczr" }],
["rect", { x: "7", y: "7", width: "5", height: "5", rx: "1", key: "m9kyts" }]
]);
export { ScanQrCode as default };
//# sourceMappingURL=scan-qr-code.js.map
@@ -0,0 +1 @@
{"version":3,"file":"flashlight.js","sources":["../../../src/icons/flashlight.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Flashlight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTggNmMwIDItMiAyLTIgNHYxMGEyIDIgMCAwIDEtMiAyaC00YTIgMiAwIDAgMS0yLTJWMTBjMC0yLTItMi0yLTRWMmgxMnoiIC8+CiAgPGxpbmUgeDE9IjYiIHgyPSIxOCIgeTE9IjYiIHkyPSI2IiAvPgogIDxsaW5lIHgxPSIxMiIgeDI9IjEyIiB5MT0iMTIiIHkyPSIxMiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/flashlight\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Flashlight = createLucideIcon('Flashlight', [\n [\n 'path',\n {\n d: 'M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z',\n key: '1orkel',\n },\n ],\n ['line', { x1: '6', x2: '18', y1: '6', y2: '6', key: '1z11jq' }],\n ['line', { x1: '12', x2: '12', y1: '12', y2: '12', key: '1f4yc1' }],\n]);\n\nexport default Flashlight;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,iBAAiB,YAAc,CAAA,CAAA,CAAA;AAAA,CAChD,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,EAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC/D,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,EAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAM,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACpE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,14 @@
import { decode, sign, verify, verifyWithJwks } from "./jwt.js";
//#region src/utils/jwt/index.ts
/**
* @module
* JWT utility.
*/
const Jwt = {
sign,
verify,
decode,
verifyWithJwks
};
//#endregion
export { Jwt };
@@ -0,0 +1 @@
{"version":3,"file":"columns-2.js","sources":["../../../src/icons/columns-2.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Columns2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0xMiAzdjE4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/columns-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Columns2 = createLucideIcon('Columns2', [\n ['rect', { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' }],\n ['path', { d: 'M12 3v18', key: '108xh3' }],\n]);\n\nexport default Columns2;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,iBAAiB,UAAY,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"lru-cache.cjs","names":[],"sources":["../../src/lru-cache.ts"],"sourcesContent":["export type LRUCache<TKey, TValue> = {\n get: (key: TKey) => TValue | undefined\n set: (key: TKey, value: TValue) => void\n clear: () => void\n}\n\nexport function createLRUCache<TKey, TValue>(\n max: number,\n): LRUCache<TKey, TValue> {\n type Node = { prev?: Node; next?: Node; key: TKey; value: TValue }\n const cache = new Map<TKey, Node>()\n let oldest: Node | undefined\n let newest: Node | undefined\n\n const touch = (entry: Node) => {\n if (!entry.next) return\n if (!entry.prev) {\n entry.next.prev = undefined\n oldest = entry.next\n entry.next = undefined\n if (newest) {\n entry.prev = newest\n newest.next = entry\n }\n } else {\n entry.prev.next = entry.next\n entry.next.prev = entry.prev\n entry.next = undefined\n if (newest) {\n newest.next = entry\n entry.prev = newest\n }\n }\n newest = entry\n }\n\n return {\n get(key) {\n const entry = cache.get(key)\n if (!entry) return undefined\n touch(entry)\n return entry.value\n },\n set(key, value) {\n if (cache.size >= max && oldest) {\n const toDelete = oldest\n cache.delete(toDelete.key)\n if (toDelete.next) {\n oldest = toDelete.next\n toDelete.next.prev = undefined\n }\n if (toDelete === newest) {\n newest = undefined\n }\n }\n const existing = cache.get(key)\n if (existing) {\n existing.value = value\n touch(existing)\n } else {\n const entry: Node = { key, value, prev: newest }\n if (newest) newest.next = entry\n newest = entry\n if (!oldest) oldest = entry\n cache.set(key, entry)\n }\n },\n clear() {\n cache.clear()\n oldest = undefined\n newest = undefined\n },\n }\n}\n"],"mappings":";AAMA,SAAgB,eACd,KACwB;CAExB,MAAM,wBAAQ,IAAI,KAAiB;CACnC,IAAI;CACJ,IAAI;CAEJ,MAAM,SAAS,UAAgB;AAC7B,MAAI,CAAC,MAAM,KAAM;AACjB,MAAI,CAAC,MAAM,MAAM;AACf,SAAM,KAAK,OAAO,KAAA;AAClB,YAAS,MAAM;AACf,SAAM,OAAO,KAAA;AACb,OAAI,QAAQ;AACV,UAAM,OAAO;AACb,WAAO,OAAO;;SAEX;AACL,SAAM,KAAK,OAAO,MAAM;AACxB,SAAM,KAAK,OAAO,MAAM;AACxB,SAAM,OAAO,KAAA;AACb,OAAI,QAAQ;AACV,WAAO,OAAO;AACd,UAAM,OAAO;;;AAGjB,WAAS;;AAGX,QAAO;EACL,IAAI,KAAK;GACP,MAAM,QAAQ,MAAM,IAAI,IAAI;AAC5B,OAAI,CAAC,MAAO,QAAO,KAAA;AACnB,SAAM,MAAM;AACZ,UAAO,MAAM;;EAEf,IAAI,KAAK,OAAO;AACd,OAAI,MAAM,QAAQ,OAAO,QAAQ;IAC/B,MAAM,WAAW;AACjB,UAAM,OAAO,SAAS,IAAI;AAC1B,QAAI,SAAS,MAAM;AACjB,cAAS,SAAS;AAClB,cAAS,KAAK,OAAO,KAAA;;AAEvB,QAAI,aAAa,OACf,UAAS,KAAA;;GAGb,MAAM,WAAW,MAAM,IAAI,IAAI;AAC/B,OAAI,UAAU;AACZ,aAAS,QAAQ;AACjB,UAAM,SAAS;UACV;IACL,MAAM,QAAc;KAAE;KAAK;KAAO,MAAM;KAAQ;AAChD,QAAI,OAAQ,QAAO,OAAO;AAC1B,aAAS;AACT,QAAI,CAAC,OAAQ,UAAS;AACtB,UAAM,IAAI,KAAK,MAAM;;;EAGzB,QAAQ;AACN,SAAM,OAAO;AACb,YAAS,KAAA;AACT,YAAS,KAAA;;EAEZ"}
@@ -0,0 +1,113 @@
import MockAgent from './mock-agent'
declare class SnapshotRecorder {
constructor (options?: SnapshotRecorder.Options)
record (requestOpts: any, response: any): Promise<void>
findSnapshot (requestOpts: any): SnapshotRecorder.Snapshot | undefined
loadSnapshots (filePath?: string): Promise<void>
saveSnapshots (filePath?: string): Promise<void>
clear (): void
getSnapshots (): SnapshotRecorder.Snapshot[]
size (): number
resetCallCounts (): void
deleteSnapshot (requestOpts: any): boolean
getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null
replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void
destroy (): void
}
declare namespace SnapshotRecorder {
type SnapshotRecorderMode = 'record' | 'playback' | 'update'
export interface Options {
snapshotPath?: string
mode?: SnapshotRecorderMode
maxSnapshots?: number
autoFlush?: boolean
flushInterval?: number
matchHeaders?: string[]
ignoreHeaders?: string[]
excludeHeaders?: string[]
matchBody?: boolean
normalizeBody?: (body: string | Buffer | null | undefined) => string
matchQuery?: boolean
normalizeQuery?: (query: URLSearchParams) => string
caseSensitive?: boolean
shouldRecord?: (requestOpts: any) => boolean
shouldPlayback?: (requestOpts: any) => boolean
excludeUrls?: (string | RegExp)[]
}
export interface Snapshot {
request: {
method: string
url: string
headers: Record<string, string>
body?: string
}
responses: {
statusCode: number
headers: Record<string, string>
body: string
trailers: Record<string, string>
}[]
callCount: number
timestamp: string
}
export interface SnapshotInfo {
hash: string
request: {
method: string
url: string
headers: Record<string, string>
body?: string
}
responseCount: number
callCount: number
timestamp: string
}
export interface SnapshotData {
hash: string
snapshot: Snapshot
}
}
declare class SnapshotAgent extends MockAgent {
constructor (options?: SnapshotAgent.Options)
saveSnapshots (filePath?: string): Promise<void>
loadSnapshots (filePath?: string): Promise<void>
getRecorder (): SnapshotRecorder
getMode (): SnapshotRecorder.SnapshotRecorderMode
clearSnapshots (): void
resetCallCounts (): void
deleteSnapshot (requestOpts: any): boolean
getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null
replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void
}
declare namespace SnapshotAgent {
export interface Options extends MockAgent.Options {
mode?: SnapshotRecorder.SnapshotRecorderMode
snapshotPath?: string
maxSnapshots?: number
autoFlush?: boolean
flushInterval?: number
matchHeaders?: string[]
ignoreHeaders?: string[]
excludeHeaders?: string[]
matchBody?: boolean
normalizeBody?: (body: string | Buffer | null | undefined) => string
matchQuery?: boolean
normalizeQuery?: (query: URLSearchParams) => string
caseSensitive?: boolean
shouldRecord?: (requestOpts: any) => boolean
shouldPlayback?: (requestOpts: any) => boolean
excludeUrls?: (string | RegExp)[]
}
}
export { SnapshotAgent, SnapshotRecorder }
@@ -0,0 +1,21 @@
"use client";
import { frame } from 'motion-dom';
import { useState, useCallback } from 'react';
import { useIsMounted } from './use-is-mounted.mjs';
function useForceUpdate() {
const isMounted = useIsMounted();
const [forcedRenderCount, setForcedRenderCount] = useState(0);
const forceRender = useCallback(() => {
isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
}, [forcedRenderCount]);
/**
* Defer this to the end of the next animation frame in case there are multiple
* synchronous calls.
*/
const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);
return [deferredForceRender, forcedRenderCount];
}
export { useForceUpdate };
//# sourceMappingURL=use-force-update.mjs.map
@@ -0,0 +1,73 @@
import { HtmlEscapedString } from "../utils/html.js";
import { ErrorBoundary, ErrorHandler, FallbackRender } from "./components.js";
import { JSX } from "./intrinsic-elements.js";
import { RefObject, createRef, forwardRef, startTransition, startViewTransition, use, useCallback, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition } from "./hooks/index.js";
import { AnimationEvent, CSSProperties, ClipboardEvent, ComponentClass, DragEvent, Event, FocusEvent, InputEvent, KeyboardEvent, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, TouchEvent, TransitionEvent, WheelEvent } from "./types.js";
import { Children } from "./children.js";
import { useActionState, useOptimistic } from "./dom/hooks/index.js";
import { Suspense } from "./streaming.js";
import { Context, createContext, useContext } from "./context.js";
import { Child, DOMAttributes, FC, Fragment, JSX as JSX$1, JSXNode, Props, cloneElement, isValidElement, jsx, memo, reactAPICompatVersion } from "./base.js";
//#region src/jsx/index.d.ts
declare const _default: {
version: string;
memo: <T>(component: FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => FC<T>;
Fragment: ({ children }: {
key?: string;
children?: Child | HtmlEscapedString;
}) => HtmlEscapedString;
StrictMode: ({ children }: {
key?: string;
children?: Child | HtmlEscapedString;
}) => HtmlEscapedString;
isValidElement: (element: unknown) => element is JSXNode;
createElement: (tag: string | Function, props: Props | null, ...children: Child[]) => JSXNode;
cloneElement: <T extends JSXNode | JSX$1.Element>(element: T, props: Partial<Props>, ...children: Child[]) => T;
ErrorBoundary: FC<PropsWithChildren<{
fallback?: Child;
fallbackRender?: FallbackRender;
onError?: ErrorHandler;
}>>;
createContext: <T>(defaultValue: T) => Context<T>;
useContext: <T>(context: Context<T>) => T;
useState: {
<T>(initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void];
<T = undefined>(): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void];
};
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
useRef: typeof useRef;
useCallback: <T extends Function>(callback: T, deps: readonly unknown[]) => T;
useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
useId: () => string;
useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
use: <T>(promise: Promise<T>) => T;
startTransition: (callback: () => void) => void;
useTransition: () => [boolean, (callback: () => void | Promise<void>) => void];
useDeferredValue: <T>(value: T, initialValue?: T) => T;
startViewTransition: (callback: () => void) => void;
useViewTransition: () => [boolean, (callback: () => void) => void];
useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
createRef: <T>() => RefObject<T | null>;
forwardRef: <T, P = {}>(Component: (props: P, ref?: RefObject<T | null>) => JSX$1.Element) => ((props: P & {
ref?: RefObject<T | null>;
}) => JSX$1.Element);
useImperativeHandle: <T>(ref: RefObject<T | null>, createHandle: () => T, deps: readonly unknown[]) => void;
useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
useActionState: <T>(fn: Function, initialState: T, permalink?: string) => [T, Function];
useOptimistic: <T, N>(state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void];
Suspense: FC<PropsWithChildren<{
fallback: any;
}>>;
Children: {
map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[];
forEach: (children: Child[], fn: (child: Child, index: number) => void) => void;
count: (children: Child[]) => number;
only: (_children: Child[]) => Child;
toArray: (children: Child) => Child[];
};
};
//#endregion
export { type AnimationEvent, type CSSProperties, type Child, Children, type ClipboardEvent, type ComponentClass, type Context, type DOMAttributes, type DragEvent, ErrorBoundary, type Event, type FC, type FocusEvent, Fragment, Fragment as StrictMode, type InputEvent, type JSX, type JSXNode, type KeyboardEvent, type MouseEvent, type PointerEvent, type PropsWithChildren, type ReactElement, type ReactNode, type RefObject, Suspense, type TouchEvent, type TransitionEvent, type WheelEvent, cloneElement, createContext, jsx as createElement, jsx, createRef, _default as default, forwardRef, isValidElement, memo, startTransition, startViewTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition, reactAPICompatVersion as version };
export {};
@@ -0,0 +1,139 @@
import Container, {
ContainerProps,
ContainerWithChildren
} from './container.js'
declare namespace AtRule {
export interface AtRuleRaws extends Record<string, unknown> {
/**
* The space symbols after the last child of the node to the end of the node.
*/
after?: string
/**
* The space between the at-rule name and its parameters.
*/
afterName?: string
/**
* The space symbols before the node. It also stores `*`
* and `_` symbols before the declaration (IE hack).
*/
before?: string
/**
* The symbols between the last parameter and `{` for rules.
*/
between?: string
/**
* The rule’s selector with comments.
*/
params?: {
raw: string
value: string
}
/**
* Contains `true` if the last child has an (optional) semicolon.
*/
semicolon?: boolean
}
export interface AtRuleProps extends ContainerProps {
/** Name of the at-rule. */
name: string
/** Parameters following the name of the at-rule. */
params?: number | string
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
raws?: AtRuleRaws
}
export { AtRule_ as default }
}
/**
* Represents an at-rule.
*
* ```js
* Once (root, { AtRule }) {
* let media = new AtRule({ name: 'media', params: 'print' })
* media.append(…)
* root.append(media)
* }
* ```
*
* If it’s followed in the CSS by a `{}` block, this node will have
* a nodes property representing its children.
*
* ```js
* const root = postcss.parse('@charset "UTF-8"; @media print {}')
*
* const charset = root.first
* charset.type //=> 'atrule'
* charset.nodes //=> undefined
*
* const media = root.last
* media.nodes //=> []
* ```
*/
declare class AtRule_ extends Container {
/**
* An array containing the layer’s children.
*
* ```js
* const root = postcss.parse('@layer example { a { color: black } }')
* const layer = root.first
* layer.nodes.length //=> 1
* layer.nodes[0].selector //=> 'a'
* ```
*
* Can be `undefinded` if the at-rule has no body.
*
* ```js
* const root = postcss.parse('@layer a, b, c;')
* const layer = root.first
* layer.nodes //=> undefined
* ```
*/
nodes: Container['nodes'] | undefined
parent: ContainerWithChildren | undefined
raws: AtRule.AtRuleRaws
type: 'atrule'
/**
* The at-rule’s name immediately follows the `@`.
*
* ```js
* const root = postcss.parse('@media print {}')
* const media = root.first
* media.name //=> 'media'
* ```
*/
get name(): string
set name(value: string)
/**
* The at-rule’s parameters, the values that follow the at-rule’s name
* but precede any `{}` block.
*
* ```js
* const root = postcss.parse('@media print, screen {}')
* const media = root.first
* media.params //=> 'print, screen'
* ```
*/
get params(): string
set params(value: string)
constructor(defaults?: AtRule.AtRuleProps)
assign(overrides: AtRule.AtRuleProps | object): this
clone(overrides?: Partial<AtRule.AtRuleProps>): this
cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
}
declare class AtRule extends AtRule_ {}
export = AtRule
@@ -0,0 +1,67 @@
import { AnyNode, ChildNode, Element, ParentNode } from "domhandler";
/**
* Get a node's children.
*
* @category Traversal
* @param elem Node to get the children of.
* @returns `elem`'s children, or an empty array.
*/
export declare function getChildren(elem: AnyNode): ChildNode[];
export declare function getParent(elem: AnyNode): ParentNode | null;
/**
* Gets an elements siblings, including the element itself.
*
* Attempts to get the children through the element's parent first. If we don't
* have a parent (the element is a root node), we walk the element's `prev` &
* `next` to get all remaining nodes.
*
* @category Traversal
* @param elem Element to get the siblings of.
* @returns `elem`'s siblings, including `elem`.
*/
export declare function getSiblings(elem: AnyNode): AnyNode[];
/**
* Gets an attribute from an element.
*
* @category Traversal
* @param elem Element to check.
* @param name Attribute name to retrieve.
* @returns The element's attribute value, or `undefined`.
*/
export declare function getAttributeValue(elem: Element, name: string): string | undefined;
/**
* Checks whether an element has an attribute.
*
* @category Traversal
* @param elem Element to check.
* @param name Attribute name to look for.
* @returns Returns whether `elem` has the attribute `name`.
*/
export declare function hasAttrib(elem: Element, name: string): boolean;
/**
* Get the tag name of an element.
*
* @category Traversal
* @param elem The element to get the name for.
* @returns The tag name of `elem`.
*/
export declare function getName(elem: Element): string;
/**
* Returns the next element sibling of a node.
*
* @category Traversal
* @param elem The element to get the next sibling of.
* @returns `elem`'s next sibling that is a tag, or `null` if there is no next
* sibling.
*/
export declare function nextElementSibling(elem: AnyNode): Element | null;
/**
* Returns the previous element sibling of a node.
*
* @category Traversal
* @param elem The element to get the previous sibling of.
* @returns `elem`'s previous sibling that is a tag, or `null` if there is no
* previous sibling.
*/
export declare function prevElementSibling(elem: AnyNode): Element | null;
//# sourceMappingURL=traversal.d.ts.map
@@ -0,0 +1,54 @@
import { c as colorize } from './shared/consola.DXBYu-KD.mjs';
export { b as align, d as box, a as centerAlign, e as colors, g as getColor, l as leftAlign, r as rightAlign, s as stripAnsi } from './shared/consola.DXBYu-KD.mjs';
import 'node:tty';
function formatTree(items, options) {
options = {
prefix: " ",
ellipsis: "...",
...options
};
const tree = _buildTree(items, options).join("");
if (options && options.color) {
return colorize(options.color, tree);
}
return tree;
}
function _buildTree(items, options) {
const chunks = [];
const total = items.length - 1;
for (let i = 0; i <= total; i++) {
const item = items[i];
const isItemString = typeof item === "string";
const isLimit = options?.maxDepth != null && options.maxDepth <= 0;
if (isLimit) {
const ellipsis = `${options.prefix}${options.ellipsis}
`;
return [
isItemString ? ellipsis : item.color ? colorize(item.color, ellipsis) : ellipsis
// prettier-ignore
];
}
const isLast = i === total;
const prefix = isLast ? `${options?.prefix}\u2514\u2500` : `${options?.prefix}\u251C\u2500`;
if (isItemString) {
chunks.push(`${prefix}${item}
`);
} else {
const log = `${prefix}${item.text}
`;
chunks.push(item.color ? colorize(item.color, log) : log);
if (item.children) {
const _tree = _buildTree(item.children, {
...options,
maxDepth: options?.maxDepth == null ? void 0 : options.maxDepth - 1,
prefix: `${options?.prefix}${isLast ? " " : "\u2502 "}`
});
chunks.push(..._tree);
}
}
}
return chunks;
}
export { colorize, formatTree };
@@ -0,0 +1,38 @@
import { REGEXEN } from '../../data/const.mjs';
import { sorted } from '../../utils/helper.mjs';
import { MatcherBaseClass } from '../../types.mjs';
/*
* -------------------------------------------------------------------------------
* regex matching ---------------------------------------------------------------
* -------------------------------------------------------------------------------
*/
class MatchRegex extends MatcherBaseClass {
match({
password
}) {
const matches = [];
Object.keys(REGEXEN).forEach(name => {
const regex = REGEXEN[name];
regex.lastIndex = 0; // keeps regexMatch stateless
let regexMatch;
while (regexMatch = regex.exec(password)) {
if (regexMatch) {
const token = regexMatch[0];
matches.push({
pattern: 'regex',
token,
i: regexMatch.index,
j: regexMatch.index + regexMatch[0].length - 1,
regexName: name,
regexMatch
});
}
}
});
return sorted(matches);
}
}
export { MatchRegex as default };
//# sourceMappingURL=matching.mjs.map
@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './ellipsis.js';
//# sourceMappingURL=more-horizontal.js.map
@@ -0,0 +1,22 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Sunset = createLucideIcon("Sunset", [
["path", { d: "M12 10V2", key: "16sf7g" }],
["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
["path", { d: "M2 18h2", key: "j10viu" }],
["path", { d: "M20 18h2", key: "wocana" }],
["path", { d: "m19.07 10.93-1.41 1.41", key: "15zs5n" }],
["path", { d: "M22 22H2", key: "19qnx5" }],
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
]);
export { Sunset as default };
//# sourceMappingURL=sunset.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_K","2":"C","260":"_tQ"},C:{"1":"_LF","2":"_5D","516":"_rB _9O"},D:{"1":"_oR","2":"J","16":"_DJ","260":"9B","772":"_KR"},E:{"1":"_JB","2":"_k","16":"mB","772":"_DI"},F:{"1":"_FM","16":"_mB","260":"_6 wB _EN","772":"_MD vB"},G:{"1":"_9","2":"_d","772":"_wD _FF"},H:{"132":"1D"},I:{"1":"I","2":"_LB","260":"_HL"},J:{"2":"D","260":"A"},K:{"1":"H","260":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_U","260":"J"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"ME","516":"LE"}},B:5,C:":in-range and :out-of-range CSS pseudo-classes",D:true};
@@ -0,0 +1,120 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SimpleTransform = void 0;
var _SimpleTraverser = require("../traverse/SimpleTraverser");
var _astNodeMutationHelpers = require("./astNodeMutationHelpers");
function setParentPointer(node, parent) {
if (parent != null) {
// $FlowExpectedError[cannot-write]
node.parent = parent;
}
}
/**
* A simple class to recursively tranform AST trees.
*/
class SimpleTransform {
/**
* Transform the given AST tree.
* @param rootNode The root node to traverse.
* @param options The option object.
* @return The modified rootNode or a new node if the rootNode was transformed directly.
*/
transform(rootNode, options) {
let resultRootNode = rootNode;
_SimpleTraverser.SimpleTraverser.traverse(rootNode, {
enter: (node, parent) => {
// Ensure the parent pointers are correctly set before entering the node.
setParentPointer(node, parent);
const resultNode = options.transform(node);
if (resultNode !== node) {
let traversedResultNode = null;
if (resultNode != null) {
// Ensure the new node has the correct parent pointers before recursing again.
setParentPointer(resultNode, parent);
traversedResultNode = this.transform(resultNode, options);
}
if (parent == null) {
if (node !== rootNode) {
throw new Error('SimpleTransform infra error: Parent not set on non root node, this should not be possible');
}
resultRootNode = traversedResultNode;
} else if (traversedResultNode == null) {
(0, _astNodeMutationHelpers.removeNodeOnParent)(node, parent, options.visitorKeys);
} else {
(0, _astNodeMutationHelpers.replaceNodeOnParent)(node, parent, traversedResultNode, options.visitorKeys);
setParentPointer(traversedResultNode, parent);
}
throw _SimpleTraverser.SimpleTraverser.Skip;
}
},
leave(_node) {},
visitorKeys: options.visitorKeys
});
return resultRootNode;
}
/**
* Transform the given AST tree.
* @param node The root node to traverse.
* @param options The option object.
*/
static transform(node, options) {
return new SimpleTransform().transform(node, options);
}
static transformProgram(program, options) {
const result = SimpleTransform.transform(program, options);
if ((result == null ? void 0 : result.type) === 'Program') {
return result;
}
throw new Error('SimpleTransform.transformProgram: Expected program node.');
}
/**
* Return a new AST node with the given properties overrided if needed.
*
* This function takes care to only create new nodes when needed. Referential equality of nodes
* is important as its used to know if a node should be re-traversed.
*
* @param node The base AST node.
* @param overrideProps New properties to apply to the node.
* @return Either the orginal node if the properties matched the existing node or a new node with
* the new properties.
*/
static nodeWith(node, overrideProps, visitorKeys) {
return (0, _astNodeMutationHelpers.nodeWith)(node, overrideProps, visitorKeys);
}
}
exports.SimpleTransform = SimpleTransform;
@@ -0,0 +1,74 @@
{
"name": "isbot",
"version": "5.1.40",
"description": "🤖/👨‍🦰 Recognise bots/crawlers/spiders using the user agent string.",
"keywords": [
"bot",
"crawlers",
"spiders",
"googlebot",
"useragent",
"user agent parsing",
"🤖"
],
"license": "Unlicense",
"homepage": "https://isbot.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/omrilotan/isbot.git"
},
"engines": {
"node": ">=18"
},
"files": [
"./index*",
"./AUTHORS"
],
"type": "commonjs",
"main": "./index.js",
"module": "./index.mjs",
"browser": "./index.mjs",
"jsdelivr": "./browser.global.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"import": "./index.mjs",
"require": "./index.js"
},
"node": {
"import": "./index.mjs",
"require": "./index.js"
},
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"
}
},
"sideEffects": false,
"types": "index.d.ts",
"scripts": {
"prepare": "./scripts/prepare/index.js",
"build": "./scripts/build/procedure.sh",
"format": "./scripts/format/procedure.sh",
"test": "./scripts/test/procedure.sh",
"prepublishOnly": "./scripts/prepublish/procedure.sh",
"prestart": "npm ls parcel-bundler --depth=0 >/dev/null 2>&1 || npm i parcel-bundler --no-save",
"start": "npx --no-install parcel-bundler page/index.pug --out-dir docs",
"prepage": "npm ls parcel-bundler --depth=0 >/dev/null 2>&1 || npm i parcel-bundler --no-save",
"page": "npx --no-install parcel-bundler build page/index.pug --out-dir docs --public-url ./",
"maintenance": "npm update && npm run prepare -- --force && npm run format && npm t"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"jest": "^30.0.2",
"prettier": "^3.6.0",
"pug": "^3.0.3",
"stdline": "^2.1.0",
"ts-jest": "^29.4.0",
"tsup": "^8.5.1",
"typescript": "^6.0.2",
"user-agents": "^2.1.4",
"yaml": "^2.8.0"
}
}
@@ -0,0 +1,15 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Moon = createLucideIcon("Moon", [
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
]);
export { Moon as default };
//# sourceMappingURL=moon.js.map
@@ -0,0 +1,90 @@
/**
* @fileoverview Enforce a maximum number of classes per file
* @author James Garbutt <https://github.com/43081j>
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "suggestion",
docs: {
description: "Enforce a maximum number of classes per file",
recommended: false,
url: "https://eslint.org/docs/latest/rules/max-classes-per-file",
},
schema: [
{
oneOf: [
{
type: "integer",
minimum: 1,
},
{
type: "object",
properties: {
ignoreExpressions: {
type: "boolean",
},
max: {
type: "integer",
minimum: 1,
},
},
additionalProperties: false,
},
],
},
],
messages: {
maximumExceeded:
"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}.",
},
},
create(context) {
const [option = {}] = context.options;
const [ignoreExpressions, max] =
typeof option === "number"
? [false, option || 1]
: [option.ignoreExpressions, option.max || 1];
let classCount = 0;
return {
Program() {
classCount = 0;
},
"Program:exit"(node) {
if (classCount > max) {
context.report({
node,
messageId: "maximumExceeded",
data: {
classCount,
max,
},
});
}
},
ClassDeclaration() {
classCount++;
},
ClassExpression() {
if (!ignoreExpressions) {
classCount++;
}
},
};
},
};
@@ -0,0 +1,23 @@
MIT License
Copyright Julian Gruber <julian@juliangruber.com>
TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1 @@
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GACjB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAazE,CAAA"}
@@ -0,0 +1,166 @@
# Changes
## 2.0.2
* Rename bin to `node-which`
## 2.0.1
* generate changelog and publish on version bump
* enforce 100% test coverage
* Promise interface
## 2.0.0
* Parallel tests, modern JavaScript, and drop support for node < 8
## 1.3.1
* update deps
* update travis
## v1.3.0
* Add nothrow option to which.sync
* update tap
## v1.2.14
* appveyor: drop node 5 and 0.x
* travis-ci: add node 6, drop 0.x
## v1.2.13
* test: Pass missing option to pass on windows
* update tap
* update isexe to 2.0.0
* neveragain.tech pledge request
## v1.2.12
* Removed unused require
## v1.2.11
* Prevent changelog script from being included in package
## v1.2.10
* Use env.PATH only, not env.Path
## v1.2.9
* fix for paths starting with ../
* Remove unused `is-absolute` module
## v1.2.8
* bullet items in changelog that contain (but don't start with) #
## v1.2.7
* strip 'update changelog' changelog entries out of changelog
## v1.2.6
* make the changelog bulleted
## v1.2.5
* make a changelog, and keep it up to date
* don't include tests in package
* Properly handle relative-path executables
* appveyor
* Attach error code to Not Found error
* Make tests pass on Windows
## v1.2.4
* Fix typo
## v1.2.3
* update isexe, fix regression in pathExt handling
## v1.2.2
* update deps, use isexe module, test windows
## v1.2.1
* Sometimes windows PATH entries are quoted
* Fixed a bug in the check for group and user mode bits. This bug was introduced during refactoring for supporting strict mode.
* doc cli
## v1.2.0
* Add support for opt.all and -as cli flags
* test the bin
* update travis
* Allow checking for multiple programs in bin/which
* tap 2
## v1.1.2
* travis
* Refactored and fixed undefined error on Windows
* Support strict mode
## v1.1.1
* test +g exes against secondary groups, if available
* Use windows exe semantics on cygwin & msys
* cwd should be first in path on win32, not last
* Handle lower-case 'env.Path' on Windows
* Update docs
* use single-quotes
## v1.1.0
* Add tests, depend on is-absolute
## v1.0.9
* which.js: root is allowed to execute files owned by anyone
## v1.0.8
* don't use graceful-fs
## v1.0.7
* add license to package.json
## v1.0.6
* isc license
## 1.0.5
* Awful typo
## 1.0.4
* Test for path absoluteness properly
* win: Allow '' as a pathext if cmd has a . in it
## 1.0.3
* Remove references to execPath
* Make `which.sync()` work on Windows by honoring the PATHEXT variable.
* Make `isExe()` always return true on Windows.
* MIT
## 1.0.2
* Only files can be exes
## 1.0.1
* Respect the PATHEXT env for win32 support
* should 0755 the bin
* binary
* guts
* package
* 1st
@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const format_1 = require("./format");
const format = [format_1.default];
exports.default = format;
//# sourceMappingURL=index.js.map
@@ -0,0 +1,85 @@
import * as _radix_ui_react_context from '@radix-ui/react-context';
import * as React from 'react';
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
import { FocusScope } from '@radix-ui/react-focus-scope';
import * as PopperPrimitive from '@radix-ui/react-popper';
import { Portal as Portal$1 } from '@radix-ui/react-portal';
import { Primitive } from '@radix-ui/react-primitive';
declare const createPopoverScope: _radix_ui_react_context.CreateScope;
interface PopoverProps {
children?: React.ReactNode;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
modal?: boolean;
}
declare const Popover: React.FC<PopoverProps>;
type PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
interface PopoverAnchorProps extends PopperAnchorProps {
}
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
interface PopoverTriggerProps extends PrimitiveButtonProps {
}
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
interface PopoverPortalProps {
children?: React.ReactNode;
/**
* Specify a container element to portal the content into.
*/
container?: PortalProps['container'];
/**
* Used to force mounting when more control is needed. Useful when
* controlling animation with React animation libraries.
*/
forceMount?: true;
}
declare const PopoverPortal: React.FC<PopoverPortalProps>;
interface PopoverContentProps extends PopoverContentTypeProps {
/**
* Used to force mounting when more control is needed. Useful when
* controlling animation with React animation libraries.
*/
forceMount?: true;
}
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
}
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
/**
* Whether focus should be trapped within the `Popover`
* (default: false)
*/
trapFocus?: FocusScopeProps['trapped'];
/**
* Event handler called when auto-focusing on open.
* Can be prevented.
*/
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
/**
* Event handler called when auto-focusing on close.
* Can be prevented.
*/
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
}
interface PopoverCloseProps extends PrimitiveButtonProps {
}
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
interface PopoverArrowProps extends PopperArrowProps {
}
declare const PopoverArrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
declare const Root: React.FC<PopoverProps>;
declare const Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
declare const Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
declare const Portal: React.FC<PopoverPortalProps>;
declare const Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
declare const Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
declare const Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
export { Anchor, Arrow, Close, Content, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, Root, Trigger, createPopoverScope };
@@ -0,0 +1,124 @@
import { type ZodErrorMap, ZodIssueCode } from "../ZodError.js";
import { util, ZodParsedType } from "../helpers/util.js";
const errorMap: ZodErrorMap = (issue, _ctx) => {
let message: string;
switch (issue.code) {
case ZodIssueCode.invalid_type:
if (issue.received === ZodParsedType.undefined) {
message = "Required";
} else {
message = `Expected ${issue.expected}, received ${issue.received}`;
}
break;
case ZodIssueCode.invalid_literal:
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
break;
case ZodIssueCode.unrecognized_keys:
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
break;
case ZodIssueCode.invalid_union:
message = `Invalid input`;
break;
case ZodIssueCode.invalid_union_discriminator:
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
break;
case ZodIssueCode.invalid_enum_value:
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
break;
case ZodIssueCode.invalid_arguments:
message = `Invalid function arguments`;
break;
case ZodIssueCode.invalid_return_type:
message = `Invalid function return type`;
break;
case ZodIssueCode.invalid_date:
message = `Invalid date`;
break;
case ZodIssueCode.invalid_string:
if (typeof issue.validation === "object") {
if ("includes" in issue.validation) {
message = `Invalid input: must include "${issue.validation.includes}"`;
if (typeof issue.validation.position === "number") {
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
}
} else if ("startsWith" in issue.validation) {
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
} else if ("endsWith" in issue.validation) {
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
} else {
util.assertNever(issue.validation);
}
} else if (issue.validation !== "regex") {
message = `Invalid ${issue.validation}`;
} else {
message = "Invalid";
}
break;
case ZodIssueCode.too_small:
if (issue.type === "array")
message = `Array must contain ${
issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`
} ${issue.minimum} element(s)`;
else if (issue.type === "string")
message = `String must contain ${
issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`
} ${issue.minimum} character(s)`;
else if (issue.type === "number")
message = `Number must be ${
issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
}${issue.minimum}`;
else if (issue.type === "bigint")
message = `Number must be ${
issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
}${issue.minimum}`;
else if (issue.type === "date")
message = `Date must be ${
issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `
}${new Date(Number(issue.minimum))}`;
else message = "Invalid input";
break;
case ZodIssueCode.too_big:
if (issue.type === "array")
message = `Array must contain ${
issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`
} ${issue.maximum} element(s)`;
else if (issue.type === "string")
message = `String must contain ${
issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`
} ${issue.maximum} character(s)`;
else if (issue.type === "number")
message = `Number must be ${
issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`
} ${issue.maximum}`;
else if (issue.type === "bigint")
message = `BigInt must be ${
issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`
} ${issue.maximum}`;
else if (issue.type === "date")
message = `Date must be ${
issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`
} ${new Date(Number(issue.maximum))}`;
else message = "Invalid input";
break;
case ZodIssueCode.custom:
message = `Invalid input`;
break;
case ZodIssueCode.invalid_intersection_types:
message = `Intersection results could not be merged`;
break;
case ZodIssueCode.not_multiple_of:
message = `Number must be a multiple of ${issue.multipleOf}`;
break;
case ZodIssueCode.not_finite:
message = "Number must be finite";
break;
default:
message = _ctx.defaultError;
util.assertNever(issue);
}
return { message };
};
export default errorMap;
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CircleParkingOff = createLucideIcon("CircleParkingOff", [
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
["path", { d: "m5 5 14 14", key: "11anup" }],
["path", { d: "M13 13a3 3 0 1 0 0-6H9v2", key: "uoagbd" }],
["path", { d: "M9 17v-2.34", key: "a9qo08" }]
]);
export { CircleParkingOff as default };
//# sourceMappingURL=circle-parking-off.js.map
@@ -0,0 +1,30 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Rocket = createLucideIcon("Rocket", [
[
"path",
{
d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",
key: "m3kijz"
}
],
[
"path",
{
d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",
key: "1fmvmk"
}
],
["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", key: "1f8sc4" }],
["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", key: "qeys4" }]
]);
export { Rocket as default };
//# sourceMappingURL=rocket.js.map
@@ -0,0 +1,2 @@
"use strict";var S=Object.defineProperty;var l=(e,t)=>S(e,"name",{value:t,configurable:!0});var _=require("node:worker_threads"),d=require("../node-features-roYmp9jK.cjs"),L=require("../register-2sWVXuRQ.cjs");require("../get-pipe-path-BoR10qr8.cjs"),require("node:module");var p=require("node:path"),g=require("node:url");require("get-tsconfig");var s=require("../register-D46fvsV_.cjs"),E=require("node:fs");require("esbuild"),require("node:crypto");var f=require("../index-gckBtVBf.cjs"),v=require("../client-D6NvIMSC.cjs");require("../require-D4F1Lv60.cjs");var F=require("node:fs/promises");require("module"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:util"),require("../index-BWFBUo6r.cjs"),require("node:net");const u={active:!0},b=l(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);u.namespace=e.namespace,e.tsconfig!==!1&&s.loadTsconfig(e.tsconfig??process.env.TSX_TSCONFIG_PATH),e.port&&(u.port=e.port,e.port.on("message",t=>{t==="deactivate"&&(u.active=!1,e.port.postMessage({type:"deactivated"}))}))},"initialize"),J=l(()=>(s.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),h=new Map,M=l(async e=>{if(h.has(e))return h.get(e);if(!await E.promises.access(e).then(()=>!0,()=>!1)){h.set(e,void 0);return}const n=await E.promises.readFile(e,"utf8");try{const r=JSON.parse(n);return h.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),j=l(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const n=g.fileURLToPath(t),r=await M(n);if(r)return r;const a=t;if(t=new URL("../package.json",t),t.pathname===a.pathname)break}},"findPackageJson"),N=l(async e=>(await j(e))?.type??"commonjs","getPackageType"),O=l(e=>{const{pathname:t}=new URL(e),n=p.extname(t);if(n===".mts"||n===".mjs")return"module";if(n===".cts"||n===".cjs")return"commonjs";if(n===".js"||s.tsExtensions.includes(n))return N(e)},"getFormatFromFileUrl"),P="tsx-namespace=",w=l(e=>{const t=e.indexOf(P);if(t===-1)return;const n=e[t-1];if(n!=="?"&&n!=="&")return;const r=t+P.length,a=e.indexOf("&",r);return a===-1?e.slice(r):e.slice(r,a)},"getNamespace"),U=d.isFeatureSupported(d.importAttributes)?"importAttributes":"importAssertions";if(exports.load=async(e,t,n)=>{if(!u.active)return n(e,t);const r=w(e);if(u.namespace&&u.namespace!==r)return n(e,t);if(u.port){const o=new URL(e);o.searchParams.delete("tsx-namespace"),u.port.postMessage({type:"load",url:o.toString()})}if(v.parent.send&&v.parent.send({type:"dependency",path:e}),s.isJsonPattern.test(e)){let o=t[U];o||(o={},t[U]=o),o.type||(o.type="json")}const a=await n(e,t);s.logEsm(3,"loaded by next loader",{url:e,loaded:a});const c=e.startsWith(s.fileUrlPrefix)?g.fileURLToPath(e):e;if(a.format==="commonjs"&&d.isFeatureSupported(d.esmLoadReadFile)&&a.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const o=await F.readFile(new URL(e),"utf8");if(!c.endsWith(".js")||f.isESM(o)){const m=f.transformSync(o,c,{tsconfigRaw:s.fileMatcher?.(c)}),T=r?`${c}?namespace=${encodeURIComponent(r)}`:c;return a.responseURL=`data:text/javascript,${encodeURIComponent(m.code)}?filePath=${encodeURIComponent(T)}`,s.logEsm(3,"returning CJS export annotation",a),a}}if(!a.source)return a;const i=a.source.toString();if(a.format==="json"||s.tsExtensionsPattern.test(e)){const o=await f.transform(i,c,{tsconfigRaw:p.isAbsolute(c)?s.fileMatcher?.(c):void 0});return{format:"module",source:s.inlineSourceMap(o)}}if(a.format==="module"){const o=f.transformDynamicImport(c,i);o&&(a.source=s.inlineSourceMap(o))}return a},s.debugEnabled){const e=exports.load;exports.load=async(t,n,r)=>{s.logEsm(2,"load",{url:t,context:n});const a=await e(t,n,r);return s.logEsm(1,"loaded",{url:t,result:a}),a}}const R=l(e=>{if(e.url)return e.url;const t=e.message.match(/^Cannot find module '([^']+)'/);if(t){const[,r]=t;return r}const n=e.message.match(/^Cannot find package '([^']+)'/);if(n){const[,r]=n;if(!p.isAbsolute(r))return;const a=g.pathToFileURL(r);if(a.pathname.endsWith("/")&&(a.pathname+="package.json"),a.pathname.endsWith("/package.json")){const c=f.readJsonFile(a);if(c?.main)return new URL(c.main,a).toString()}else return a.toString()}},"getMissingPathFromNotFound"),y=l(async(e,t,n,r)=>{const a=s.mapTsExtensions(e);if(s.logEsm(3,"resolveExtensions",{url:e,context:t,throwError:r,tryPaths:a}),!a)return;let c;for(const i of a)try{return await n(i,t)}catch(o){const{code:m}=o;if(m!=="ERR_MODULE_NOT_FOUND"&&m!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw o;c=o}if(r)throw c},"resolveExtensions"),A=l(async(e,t,n)=>{if(s.logEsm(3,"resolveBase",{specifier:e,context:t,specifierStartsWithFileUrl:e.startsWith(s.fileUrlPrefix),isRelativePath:s.isRelativePath(e),tsExtensionsPattern:s.tsExtensionsPattern.test(t.parentURL),allowJs:s.allowJs}),(e.startsWith(s.fileUrlPrefix)||s.isRelativePath(e))&&(s.tsExtensionsPattern.test(t.parentURL)||s.allowJs)){const r=await y(e,t,n);if(s.logEsm(3,"resolveBase resolved",{specifier:e,context:t,resolved:r}),r)return r}try{return await n(e,t)}catch(r){if(s.logEsm(3,"resolveBase error",{specifier:e,context:t,error:r}),r instanceof Error){const a=r;if(a.code==="ERR_MODULE_NOT_FOUND"){const c=R(a);if(c){const i=await y(c,t,n);if(i)return i}}}throw r}},"resolveBase"),q=l(async(e,t,n)=>{if(s.logEsm(3,"resolveDirectory",{specifier:e,context:t,isDirectory:s.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),s.isDirectoryPattern.test(e)){const r=new URL(e,t.parentURL);return r.pathname=p.join(r.pathname,"index"),await y(r.toString(),t,n,!0)}try{return await A(e,t,n)}catch(r){if(r instanceof Error){s.logEsm(3,"resolveDirectory error",{specifier:e,context:t,error:r});const a=r;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const cLine truncated
@@ -0,0 +1,8 @@
import type { TSESTree } from '@typescript-eslint/types';
import type { ScopeManager } from '../ScopeManager';
import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
export declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSESTree.TSMappedType, Scope> {
constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']);
}
@@ -0,0 +1,47 @@
{
"name": "blf-colorful-appender",
"version": "1.0.6",
"description": "A ColorfulAppender for `base-log-factory`.",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/index.js",
"keywords": [
"log",
"logging",
"log4j"
],
"author": "Jesse Feng <fxm0016@126.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/fengxinming/base-log-factory.git"
},
"bugs": {
"url": "https://github.com/fengxinming/base-log-factory/issues"
},
"homepage": "https://fengxinming.github.io/base-log-factory/",
"dependencies": {
"picocolors": "^1.1.1",
"base-log-factory": "^2.1.4"
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.1.2",
"@vitest/coverage-v8": "^3.0.8",
"typedoc": "^0.28.1",
"typedoc-plugin-markdown": "^4.5.2",
"vite": "^6.2.2",
"vite-plugin-combine": "^6.2.1",
"vite-plugin-external": "6.0.1",
"vitest": "^3.0.8"
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf node_modules",
"build": "vite build",
"test": "vitest run --coverage",
"release": "pnpm publish --no-git-checks",
"typedoc": "typedoc && typedoc --options typedoc.zh.json"
}
}
@@ -0,0 +1,17 @@
var Et=Object.defineProperty;var ae=(e,t)=>{for(var n in t)Et(e,n,{get:t[n],enumerable:!0})};var ht={};ae(ht,{languages:()=>Qe,options:()=>Xe,parsers:()=>_e,printers:()=>oi});var Ae=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i);var Tt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},xt=Ae("replaceAll",function(){if(typeof this=="string")return Tt}),X=xt;var yt=()=>{},ce=yt;var Ie="indent";var ge="group";var Se="if-break";var H="line";var Oe="break-parent";var O=ce,J=ce;function m(e){return O(e),{type:Ie,contents:e}}var pe={type:Oe};function N(e,t={}){return O(e),J(t.expandedStates,!0),{type:ge,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function _(e,t="",n={}){return O(e),t!==""&&O(t),{type:Se,breakContents:e,flatContents:t,groupId:n.groupId}}function d(e,t){O(e),J(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var S={type:H},u={type:H,soft:!0},Nt={type:H,hard:!0},l=[Nt,pe];function W(e){return(t,n,r)=>{if(n===!1)return!1;let i=!!r?.backwards,{length:s}=t,a=n;for(;a>=0&&a<s;){let p=t.charAt(a);if(e instanceof RegExp){if(!e.test(p))return a}else if(!e.includes(p))return a;i?a--:a++}return a===-1||a===s?a:!1}}var Ri=W(/\s/),z=W(" "),ve=W(",; "),ke=W(/[^\n\r]/);var Ce=e=>e===`
`||e==="\r"||e==="\u2028"||e==="\u2029";function Dt(e,t,n){if(t===!1)return!1;let r=!!n?.backwards,i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
`)return t-2;if(Ce(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
`)return t+2;if(Ce(i))return t+1}return t}var Z=Dt;function _t(e,t,n={}){let r=z(e,n.backwards?t-1:t,n),i=Z(e,r,n);return r!==i}var Re=_t;var At=()=>!0;function It(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function ue(e,t,n={}){let{indent:r=!1,marker:i,filter:s=At}=n,a=new Set(e.node?.comments?.filter(x=>!(x.leading||x.trailing||x.marker!==i||!s(x))));if(a.size===0)return"";let p=e.map(({node:x})=>a.has(x)?It(e,t):"","comments").filter(Boolean),E=d(l,p);return r?m([l,E]):E}function gt(e){return Array.isArray(e)&&e.length>0}var T=gt;var le=class extends Error{name="UnexpectedNodeError";constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},Le=le;var K=null;function j(e){if(K!==null&&typeof K.property){let t=K;return K=j.prototype=null,t}return K=j.prototype=e??Object.create(null),new j}var St=10;for(let e=0;e<=St;e++)j();function de(e){return j(e)}function Ot(e,t="type"){de(e);function n(r){let i=r[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var be=Ot;var D=[["name"],["name","value"],["type"],["description","name","directives"],["description","name","interfaces","directives","fields"],["name","directives"],["name","interfaces","directives","fields"]],Fe={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:D[0],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:D[1],FragmentArgument:D[1],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:D[1],Directive:["name","arguments"],NamedType:D[0],ListType:D[2],NonNullType:D[2],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:D[2],ScalarTypeDefinition:D[3],ObjectTypeDefinition:D[4],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:D[4],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:D[3],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:D[5],ScalarTypeExtension:D[5],ObjectTypeExtension:D[6],InterfaceTypeExtension:D[6],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var vt=be(Fe,"kind"),Pe=vt;var ee=e=>e.loc.start,te=e=>e.loc.end;function fe(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
`)&&(t.value=e.value.trim())}fe.ignoredProperties=new Set(["loc","comments"]);var we="format",Ve=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/,Me=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/;var Ue=e=>Me.test(e),Be=e=>Ve.test(e),Ge=e=>`# @${we}
${e}`;function kt(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Ke=kt;function Ct(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?ke(e,t):t}var je=Ct;function Rt(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ve(e,r),r=Ke(e,r),r=z(e,r);return r=je(e,r),r=Z(e,r),r!==!1&&Re(e,r)}var Ye=Rt;function I(e,t,n,r){return e.map(({isLast:i,node:s})=>{let a=n();return!i&&Ye(t.originalText,te(s))?[a,l]:a},r)}function me(e,t,n){let{node:r}=e;return T(r.arguments)?N(["(",m([u,d([_("",", "),u],I(e,t,n,"arguments"))]),u,")"]):""}function A(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return r.kind==="InputValueDefinition"&&!r.description.block?i.push(S):i.push(l),i}function y(e,t){let{node:n}=e;if(!T(n.directives))return"";let r=d(S,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?N([S,r]):[" ",N(m([u,r]))]}function he(e,t){let{node:n}=e;return T(n.variableDefinitions)?N(["(",m([u,d([_("",", "),u],e.map(t,"variableDefinitions"))]),u,")"]):""}function Lt(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...d(l,I(e,t,n,"definitions")),l];case"OperationDefinition":{let i=t.originalText[ee(r)]!=="{",s=!!r.name;return[A(e,t,n),i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&T(r.variableDefinitions)?" ":"",he(e,n),y(e,n),!i&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return[A(e,t,n),"fragment ",n("name"),he(e,n)," on ",n("typeCondition"),y(e,n)," ",n("selectionSet")];case"SelectionSet":return["{",m([l,d(l,I(e,t,n,"selections"))]),l,"}"];case"Field":return N([r.alias?[n("alias"),": "]:"",n("name"),T(r.arguments)?N(["(",m([u,d([_("",", "),u],I(e,t,n,"arguments"))]),u,")"]):"",y(e,n),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":if(r.block){let i=X(0,r.value,'"""','\\"""').split(`
`);return i.length===1&&(i[0]=i[0].trim()),i.every(s=>s==="")&&(i.length=0),d(l,['"""',...i,'"""'])}return['"',X(0,X(0,r.value,/["\\]/g,"\\$&"),`
`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":{let i=!T(r.values);return N(["[",ue(e,t,{indent:!0}),i?"":m([u,d([_("",", "),u],e.map(n,"values"))]),u,"]"])}case"ObjectValue":{let i=!T(r.fields),s=t.bracketSpacing&&!i?" ":"";return N(["{",s,ue(e,t,{indent:!0}),i?"":[m([u,d([_("",", "),u],e.map(n,"fields"))])],u,_("",s),"}"])}case"ObjectField":case"Argument":case"FragmentArgument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),me(e,t,n)];case"NamedType":return n("name");case"VariableDefinition":return[A(e,t,n),n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",y(e,n)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(A(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&T(r.interfaces)&&s.push(" implements ",m([N([d([" &",S],e.map(n,"interfaces"))])])),s.push(y(e,n)),T(r.fields)&&s.push([" {",m([l,d(l,I(e,t,n,"fields"))]),l,"}"]),s}case"FieldDefinition":return[A(e,t,n),n("name"),T(r.arguments)?N(["(",m([u,d([_("",", "),u],I(e,t,n,"arguments"))]),u,")"]):"",": ",n("type"),y(e,n)];case"DirectiveDefinition":return[A(e,t,n),"directive ","@",n("name"),T(r.arguments)?N(["(",m([u,d([_("",", "),u],I(e,t,n,"arguments"))]),u,")"]):"",y(e,n),r.repeatable?" repeatable":""," on ",...d(" | ",e.map(n,"locations"))];case"DirectiveExtension":return["extend directive @",n("name"),y(e,n)];case"EnumTypeExtension":case"EnumTypeDefinition":return[A(e,t,n),r.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),y(e,n),T(r.values)?[" {",m([l,d(l,I(e,t,n,"values"))]),l,"}"]:""];case"EnumValueDefinition":return[A(e,t,n),n("name"),y(e,n)];case"InputValueDefinition":return[A(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",y(e,n)];case"SchemaExtension":return["extend schema",y(e,n),...T(r.operationTypes)?[" {",m([l,d(l,I(e,t,n,"operationTypes"))]),l,"}"]:[]];case"SchemaDefinition":return[A(e,t,n),"schema",y(e,n)," {",T(r.operationTypes)?m([l,d(l,I(e,t,n,"operationTypes"))]):"",l,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),me(e,t,n),y(e,n)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",y(e,n)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return N([A(e,t,n),N([r.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),y(e,n),T(r.types)?[" =",_(""," "),m([_([S,"| "]),d([S,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[A(e,t,n),r.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),y(e,n)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Le(r,"Graphql","kind")}}function bt(e){return e.kind!=="Comment"}function Ft({node:e}){if(e.kind==="Comment")return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))}function Pt(e){let{node:t}=e;return t?.comments?.some(n=>n.value.trim()==="prettier-ignore")}var wt={print:Lt,massageAstNode:fe,hasPrettierIgnore:Pt,insertPragma:Ge,printComment:Ft,canAttachComment:bt,getVisitorKeys:Pe},qe=wt;var Qe=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}];var $e={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Vt={bracketSpacing:$e.bracketSpacing},Xe=Vt;var _e={};ae(_e,{graLine truncated
`,v=r.split(/\r\n|[\n\r]/g),P=v[i];if(P.length>120){let $=Math.floor(E/80),G=E%80,k=[];for(let C=0;C<P.length;C+=80)k.push(P.slice(C,C+80));return x+ze([[`${a} |`,k[0]],...k.slice(1,$+1).map(C=>["|",C]),["|","^".padStart(G)],["|",k[$+1]]])}return x+ze([[`${a-1} |`,v[i-1]],[`${a} |`,P],["|","^".padStart(E)],[`${a+1} |`,v[i+1]]])}function ze(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
`)}var R=class e extends Error{constructor(t,n={}){let{nodes:r,source:i,positions:s,path:a,originalError:p,cause:E,extensions:x}=n,v="cause"in n,P=v?E:p,$=v||p!=null?{cause:P}:void 0;super(t,$),this.name="GraphQLError",this.path=a??void 0;let G=p??(E instanceof Error?E:void 0);this.originalError=G,this.nodes=Ze(Array.isArray(r)?r:r?[r]:void 0);let k=Ze(this.nodes?.map(g=>g.loc).filter(g=>g!=null));this.source=i??k?.[0]?.source,this.positions=s??k?.map(g=>g.start),this.locations=s&&i?s.map(g=>w(i,g)):k?.map(g=>w(g.source,g.start));let C=Je(G?.extensions)?G.extensions:void 0;this.extensions=x??C??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p?.stack!=null?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace!=null?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
`+Ee(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
`+ne(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Ze(e){return e===void 0||e.length===0?void 0:e}var Bt=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),et=Bt;var Y=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},V=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};var M={QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription"};var c={};ae(c,{ARGUMENT:()=>$t,ARGUMENT_COORDINATE:()=>Pn,BOOLEAN:()=>nn,DIRECTIVE:()=>pn,DIRECTIVE_ARGUMENT_COORDINATE:()=>Vn,DIRECTIVE_COORDINATE:()=>wn,DIRECTIVE_DEFINITION:()=>In,DIRECTIVE_EXTENSION:()=>Sn,DOCUMENT:()=>Kt,ENUM:()=>sn,ENUM_TYPE_DEFINITION:()=>Dn,ENUM_TYPE_EXTENSION:()=>Rn,ENUM_VALUE_DEFINITION:()=>_n,FIELD:()=>Qt,FIELD_DEFINITION:()=>Tn,FLOAT:()=>en,FRAGMENT_ARGUMENT:()=>Xt,FRAGMENT_DEFINITION:()=>Wt,FRAGMENT_SPREAD:()=>Ht,INLINE_FRAGMENT:()=>Jt,INPUT_OBJECT_TYPE_DEFINITION:()=>An,INPUT_OBJECT_TYPE_EXTENSION:()=>Ln,INPUT_VALUE_DEFINITION:()=>xn,INT:()=>Zt,INTERFACE_TYPE_DEFINITION:()=>yn,INTERFACE_TYPE_EXTENSION:()=>kn,LIST:()=>on,LIST_TYPE:()=>ln,MEMBER_COORDINATE:()=>Fn,NAME:()=>Gt,NAMED_TYPE:()=>un,NON_NULL_TYPE:()=>dn,NULL:()=>rn,OBJECT:()=>an,OBJECT_FIELD:()=>cn,OBJECT_TYPE_DEFINITION:()=>En,OBJECT_TYPE_EXTENSION:()=>vn,OPERATION_DEFINITION:()=>jt,OPERATION_TYPE_DEFINITION:()=>mn,SCALAR_TYPE_DEFINITION:()=>hn,SCALAR_TYPE_EXTENSION:()=>On,SCHEMA_DEFINITION:()=>fn,SCHEMA_EXTENSION:()=>gn,SELECTION_SET:()=>qt,STRING:()=>tn,TYPE_COORDINATE:()=>bn,UNION_TYPE_DEFINITION:()=>Nn,UNION_TYPE_EXTENSION:()=>Cn,VARIABLE:()=>zt,VARIABLE_DEFINITION:()=>Yt});var Gt="Name",Kt="Document",jt="OperationDefinition",Yt="VariableDefinition",qt="SelectionSet",Qt="Field",$t="Argument",Xt="FragmentArgument",Ht="FragmentSpread",Jt="InlineFragment",Wt="FragmentDefinition",zt="Variable",Zt="IntValue",en="FloatValue",tn="StringValue",nn="BooleanValue",rn="NullValue",sn="EnumValue",on="ListValue",an="ObjectValue",cn="ObjectField",pn="Directive",un="NamedType",ln="ListType",dn="NonNullType",fn="SchemaDefinition",mn="OperationTypeDefinition",hn="ScalarTypeDefinition",En="ObjectTypeDefinition",Tn="FieldDefinition",xn="InputValueDefinition",yn="InterfaceTypeDefinition",Nn="UnionTypeDefinition",Dn="EnumTypeDefinition",_n="EnumValueDefinition",An="InputObjectTypeDefinition",In="DirectiveDefinition",gn="SchemaExtension",Sn="DirectiveExtension",On="ScalarTypeExtension",vn="ObjectTypeExtension",kn="InterfaceTypeExtension",Cn="UnionTypeExtension",Rn="EnumTypeExtension",Ln="InputObjectTypeExtension",bn="TypeCoordinate",Fn="MemberCoordinate",Pn="ArgumentCoordinate",wn="DirectiveCoordinate",Vn="DirectiveArgumentCoordinate";function Te(e,t){if(!e)throw new Error(t)}function tt(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function nt(e){return e>=97&&e<=122||e>=65&&e<=90}function xe(e){return nt(e)||e===95}function it(e){return nt(e)||L(e)||e===95}function rt(e){let t=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let i=0;i<e.length;++i){let s=e[i],a=Mn(s);a!==s.length&&(n??(n=i),r=i,i!==0&&a<t&&(t=a))}return e.map((i,s)=>s===0?i:i.slice(t)).slice(n??0,r+1)}function Mn(e){let t=0;for(;t<e.length&&tt(e.charCodeAt(t));)++t;return t}var ye={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"};function f(e,t,n){return new R(`Syntax Error: ${n}`,{source:e,positions:[t]})}function Un(){let e;try{let t=globalThis.process;typeof t?.getBuiltinModule=="function"&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}var b=Un(),Ne=b?.tracingChannel("graphql:parse"),ds=b?.tracingChannel("graphql:validate"),fs=b?.tracingChannel("graphql:execute"),ms=b?.tracingChannel("graphql:execute:variableCoercion"),hs=b?.tracingChannel("graphql:execute:rootSelectionSet"),Es=b?.tracingChannel("graphql:subscribe"),Ts=b?.tracingChannel("graphql:resolve"),Bn=["start","end","asyncStart","asyncEnd","error"];function st(e){if(e==null)return!1;let t=e.hasSubscribers;if(t!==vLine truncated
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Xn(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,a=s,p="",E=[];for(;s<r;){let x=n.charCodeAt(s);if(x===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){p+=n.slice(a,s),E.push(p);let v=h(e,o.BLOCK_STRING,t,s+3,rt(E).join(`
`));return e.line+=E.length-1,e.lineStart=i,v}if(x===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){p+=n.slice(a,s),a=s+1,s+=4;continue}if(x===10||x===13){p+=n.slice(a,s),E.push(p),x===13&&n.charCodeAt(s+1)===10?s+=2:++s,p="",a=s,i=s;continue}if(U(x))++s;else if(re(n,s))s+=2;else throw f(e.source,s,`Invalid character within String: ${F(e,s)}.`)}throw f(e.source,s,"Unterminated string.")}function Hn(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let s=n.charCodeAt(i);if(it(s))++i;else break}return h(e,o.NAME,t,i,n.slice(t,i))}var ut=Symbol("Source"),B=class{constructor(t,n="GraphQL request",r={line:1,column:1}){this.__kind=ut,this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Te(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Te(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function lt(e){return He(e,ut,B)}function oe(e,t){return st(Ne)?Ne.traceSync(()=>dt(e,t),{source:e}):dt(e,t)}function dt(e,t){let n=new De(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var De=class{constructor(t,n={}){let{lexer:r,...i}=n;if(r)this._lexer=r;else{let s=lt(t)?t:new B(t);this._lexer=new Q(s)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===o.BRACE_L)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:M.QUERY,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType(),i;return this.peek(o.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:r,description:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return M.QUERY;case"mutation":return M.MUTATION;case"subscription":return M.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(o.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseFragmentArguments(){let t=this.parseFragmentArgument;return this.optionalMany(o.PAREN_L,t,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteLine truncated
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"2":"_I","1025":"_K"},C:{"2":"_S"},D:{"2":"_3J","194":"_LG _jE","706":"_hE CC","1025":"_KK"},E:{"2":"_R"},F:{"2":"_9G","450":"_QF _hD","706":"_3I","1025":"_QL"},G:{"2":"_M"},H:{"2":"1D"},I:{"2":"_G","1025":"I"},J:{"2":"_B"},K:{"2":"_D","1025":"H"},L:{"1025":"I"},M:{"2":"YC"},N:{"2":"_A"},O:{"1025":"bC"},P:{"1":"_hB","2":"_rC"},Q:{"2":"JE"},R:{"1025":"KE"},S:{"2":"_C"}},B:7,C:"Web Bluetooth",D:true};
@@ -0,0 +1,6 @@
import { MatcherBaseClass, MatchOptions } from '../../types';
type RegexMatchOptions = Pick<MatchOptions, 'password'>;
declare class MatchRegex extends MatcherBaseClass {
match({ password }: RegexMatchOptions): import("../..").MatchExtended[];
}
export default MatchRegex;