docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Type Check & Test (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:25:58 +08:00
1 parent f954252a34
commit e311ca3275
35554 files changed
+6229626 -4

No files matched your search

@@ -0,0 +1,86 @@
import { expect, expectTypeOf, test } from "vitest";
import { z } from "zod/v4";
test("nonoptional", () => {
const schema = z.string().nonoptional();
expectTypeOf<typeof schema._input>().toEqualTypeOf<string>();
expectTypeOf<typeof schema._output>().toEqualTypeOf<string>();
const result = schema.safeParse(undefined);
expect(result.success).toBe(false);
expect(result).toMatchInlineSnapshot(`
{
"error": [ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected string, received undefined"
}
]],
"success": false,
}
`);
});
test("nonoptional with default", () => {
const schema = z.string().optional().nonoptional();
expectTypeOf<typeof schema._input>().toEqualTypeOf<string>();
expectTypeOf<typeof schema._output>().toEqualTypeOf<string>();
const result = schema.safeParse(undefined);
expect(result.success).toBe(false);
expect(result).toMatchInlineSnapshot(`
{
"error": [ZodError: [
{
"code": "invalid_type",
"expected": "nonoptional",
"path": [],
"message": "Invalid input: expected nonoptional, received undefined"
}
]],
"success": false,
}
`);
});
test("nonoptional in object", () => {
const schema = z.object({ hi: z.string().optional().nonoptional() });
expectTypeOf<typeof schema._input>().toEqualTypeOf<{ hi: string }>();
expectTypeOf<typeof schema._output>().toEqualTypeOf<{ hi: string }>();
const r1 = schema.safeParse({ hi: "asdf" });
expect(r1.success).toEqual(true);
const r2 = schema.safeParse({ hi: undefined });
// expect(schema.safeParse({ hi: undefined }).success).toEqual(false);
expect(r2.success).toEqual(false);
expect(r2.error).toMatchInlineSnapshot(`
[ZodError: [
{
"code": "invalid_type",
"expected": "nonoptional",
"path": [
"hi"
],
"message": "Invalid input: expected nonoptional, received undefined"
}
]]
`);
const r3 = schema.safeParse({});
expect(r3.success).toEqual(false);
expect(r3.error).toMatchInlineSnapshot(`
[ZodError: [
{
"code": "invalid_type",
"expected": "nonoptional",
"path": [
"hi"
],
"message": "Invalid input: expected nonoptional, received undefined"
}
]]
`);
});
@@ -0,0 +1 @@
{"name":"js-yaml","version":"4.1.1","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532093416,"integrity":"sha512-MRTMe8nmIQOK3OuNSpkMIgEYLDuFHhjR2b6LweiRY2VQExym0tD6OyhKZZb+HbbYNCR1blG+mOwE+qX7PXbuUQ==","mode":420,"size":1084},"lib/type/binary.js":{"checkedAt":1794532093416,"integrity":"sha512-FAGw30YlD/lZKR4Sj1s9Eaq9FuHN2Pzm2t+HmgaL4hXAX+83ZSrHDB5/iZEud/VTZS7muzq6kKVZ/ywPuO6J1g==","mode":420,"size":2912},"lib/type/bool.js":{"checkedAt":1794532093416,"integrity":"sha512-9cFT7Vxy0/zvATd2yfp+XDbDUX801f98Hmmiss0wxm/o08j/S8H0N1GQ4bWm4yTxZ5C7tJaKgajcZwZes16HXA==","mode":420,"size":971},"lib/common.js":{"checkedAt":1794532093416,"integrity":"sha512-akdNoPJcXTVU9ZC0zoANAlACxnMf6DmdJeibDeYJZmCBxNIFpRXyApuWzh7SL083cS0JXGEwXYSA0OMP97vuTw==","mode":420,"size":1177},"lib/schema/core.js":{"checkedAt":1794532093416,"integrity":"sha512-98uVmTdwoajZi5plDS3efqJZMBRZixEhmX0TjJzKmbr2e0WXQ9ITHXqaNo22u4xhmxFjgzMU+g7z1oo8i8blKw==","mode":420,"size":288},"lib/schema/default.js":{"checkedAt":1794532093416,"integrity":"sha512-ls2xSnCKVYL7SGSuEtyj+JRoX99zULCOgrFy6lDCk3N8WEaIVZ8pToE5DW7ZbW0Mf+ktwOMImwc6lJa+9PNuKQ==","mode":420,"size":538},"lib/dumper.js":{"checkedAt":1794532093416,"integrity":"sha512-7hMaOb7mayBCmsZeL+LE8/FM9LaOj7oUIug1SWjWFnUBMQXxE8xg3ScLu4dKFyMeyXXQug5KZPUHSSrR5fZwCQ==","mode":420,"size":31893},"lib/exception.js":{"checkedAt":1794532093416,"integrity":"sha512-UtGzUv8myQvWtsa5EARPY+CluJl8LAqzGxrn0t3ntQYwHUggp9YGtE6zj7GD0jWgjFLHUtrMOwMYmmi+g7CWmQ==","mode":420,"size":1299},"lib/schema/failsafe.js":{"checkedAt":1794532093417,"integrity":"sha512-rX3U6vurvx/w4o47/7PdYGBtm8p3clpugYnsHkkk+yDpjaHeJTVizM06GnAgEycmO8gAkP0sL+knmHRGIezbaw==","mode":420,"size":278},"lib/type/float.js":{"checkedAt":1794532093417,"integrity":"sha512-LKa7F7QNM9D39pPPtc19mjVo+rutyvRoBCPSSsiVGRNOuYvoL2PZm6rVK8VDafE0Hb7vdgovuOlITQ+KA0DHPw==","mode":420,"size":2467},"index.js":{"checkedAt":1794532093417,"integrity":"sha512-QiIrhmpcuMAID8QrDwtJwR6DgT4VC9YE0Huhxt9+Kw+1gIMRi6b5cjlu3WuWangzzsBr6d1BQARENQXspoalFg==","mode":420,"size":1793},"lib/type/int.js":{"checkedAt":1794532093417,"integrity":"sha512-gur4XFhjocLTYFXVS4nxda7W1hQXsdFQmKoFwlIy7/+WiCwqTCBICgA1uGXr28Gw+uIQUohL7j47x6HGMEZZrw==","mode":420,"size":3691},"bin/js-yaml.js":{"checkedAt":1794532093417,"integrity":"sha512-ik5UfvIt3wVKyt/nTsfooIOvA9f9/pGPzwtB0VXw4xY8WPlAl+T//v+mKN7S3jZPliDQIIu+flrJwBBzw3SqJg==","mode":493,"size":2736},"dist/js-yaml.js":{"checkedAt":1794532093418,"integrity":"sha512-t244CqdJGTZlXruzi/qmKCY0hcNJf+Wspf4noHJS34rwxDcFg/UtLVwAu9DULmjGf9Ud8/BELgcsIBJo5gwt6g==","mode":420,"size":114586},"dist/js-yaml.min.js":{"checkedAt":1794532093418,"integrity":"sha512-Ccva9tZjPfyRDMMosATBaEnAKvX+eBbDfHMnr+0LhTa+NMqKRxUAoDGPotb8biwzQ6xnf4IYuDaPiXw10DYaNA==","mode":420,"size":39513},"lib/schema/json.js":{"checkedAt":1794532093418,"integrity":"sha512-9VGA2nabWP0GZIRVMSFrfRcsGcyEdJSq5TsPI3T1i7/w1n+UAVVsyzLtA89yJBtNB4JAdAsID6jXqhYZfm73RA==","mode":420,"size":523},"lib/loader.js":{"checkedAt":1794532093418,"integrity":"sha512-2giBcwC18AhLwp/noqBxBHk75VPKddhMv8Xo1+pR7Rbrrsw1+2+1KitOTdDJkXuATEcgX4XKa8F5BE2SHJa4yA==","mode":420,"size":47356},"lib/type/map.js":{"checkedAt":1794532093418,"integrity":"sha512-msv1TmhjvcTUiWVw/DYjZyGvb+hbTbxh2kX/yZuOJeThw9AzgX21jNzpN3qo4i5K1mf34k+5K32Jj1w/I4XbFQ==","mode":420,"size":190},"lib/type/merge.js":{"checkedAt":1794532093418,"integrity":"sha512-ll1wK9FAw3P3jR4K0HNhGdd+xi82XCHKLCPFDVNp+Br8He227YE7iqeoBekx9OM7pkAJbm86GRObhYDOij7abg==","mode":420,"size":230},"lib/type/null.js":{"checkedAt":1794532093418,"integrity":"sha512-H/WNJvEewRmYVtJLLCnulXnLAf+lsgW+gkXcYPS8q4V6eqR+UOxoRQSxRPtFyPvb8VQImJSpPXXmwzJgsv1dgQ==","mode":420,"size":808},"lib/type/omap.js":{"checkedAt":1794532093419,"integrity":"sha512-KtCiEmPwvqM+l29vtHgkAx0zmwSZmgJUKk8n1BqCResdKK0SK2dnZXHgYbr6zzshObg4W87cVdSvJngXvBhFcA==","mode":420,"size":1023},"lib/type/pairs.js":{"checkedAt":1794532093419,"integrity":"sha512-Nv21ofC4mMV3xu1A3CHObD9PWcpTzLkC/oYeumB9t/K0Y4rRIYEFf8HvWw0kA8wsO82Vlhuppk8yRMLaxWKluQ==","mode":420,"size":1084},"lib/schema.js":{"checkedAt":1794532093419,"integrity":"sha512-UHgepefBZYsFMlTvs+Zv4jOcbF8uVE+KdBjeR7Nfjk35WvD3EWUFM5LHHAKr7/t8CwgCDLcSVfWcByGuqVzuhQ==","mode":420,"size":3384},"lib/type/seq.js":{"checkedAt":1794532093419,"integrity":"sha512-LsV/LMg/aB3BQsixKNl9heqbGdFuiOYw3yTDjMEEkgKR1HG876NMcN3ISw1NTdf/9qiuFqtfRcHK4QIz7Vw29A==","mode":420,"size":191},"lib/type/set.js":{"checkedAt":1794532093419,"integrity":"sha512-afYWIRqDQj9aIFhYJDMSSU1BFvNDxNH7H6buCs48lK/mFOOLJT0useCUjRRnBIZZlfXqp68vTVj/+UG+uu2CWA==","mode":420,"size":547},"lib/snippet.js":{"checkedAt":1794532093419,"integrity":"sha512-f3/Hsua2NlLNHh0MiQfFurZIi6oSqQ5jeq32SkQ4fEki8YRfkoS2pbkDnprYGijASIcIp7akKbHw5YNjirq/bA==","mode":420,"size":3088},"lib/type/str.js":{"checkedAt":1794532093419,"integrity":"sha512-Kmq9y9r4akN0Tcaf5HWrRU7si9/BlT16L5cL6ahKOVryGn+7Zs8eL+ECPUpTFvPyT68SBycrlzrhNbSR/j+8Fg==","mode":420,"size":189},"lib/type/timestamp.js":{"checkedAt":1794532093419,"integrity":"sha512-fJZ5sjkz6i7T4oXYXFHJ3X7Line truncated
@@ -0,0 +1,31 @@
import type { FetchBaseQueryMeta } from '@reduxjs/toolkit/query'
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'
const api = createApi({
baseQuery: fetchBaseQuery({ baseUrl: 'https://example.com' }),
endpoints: () => ({}),
})
describe('type tests', () => {
test(`mutation: await cacheDataLoaded, await cacheEntryRemoved (success)`, () => {
const extended = api.injectEndpoints({
overrideExisting: true,
endpoints: (build) => ({
injected: build.mutation<number, string>({
query: () => '/success',
async onCacheEntryAdded(
arg,
{ dispatch, getState, cacheEntryRemoved, cacheDataLoaded },
) {
const firstValue = await cacheDataLoaded
expectTypeOf(firstValue).toMatchTypeOf<{
data: number
meta?: FetchBaseQueryMeta
}>()
},
}),
}),
})
})
})
@@ -0,0 +1,150 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
const analyzeChain_1 = require("./prefer-optional-chain-utils/analyzeChain");
const checkNullishAndReport_1 = require("./prefer-optional-chain-utils/checkNullishAndReport");
const gatherLogicalOperands_1 = require("./prefer-optional-chain-utils/gatherLogicalOperands");
exports.default = (0, util_1.createRule)({
name: 'prefer-optional-chain',
meta: {
type: 'suggestion',
docs: {
description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects',
recommended: 'stylistic',
requiresTypeChecking: true,
},
fixable: 'code',
hasSuggestions: true,
messages: {
optionalChainSuggest: 'Change to an optional chain.',
preferOptionalChain: "Prefer using an optional chain expression instead, as it's more concise and easier to read.",
},
schema: [
{
type: 'object',
additionalProperties: false,
properties: {
allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: {
type: 'boolean',
description: 'Allow autofixers that will change the return type of the expression. This option is considered unsafe as it may break the build.',
},
checkAny: {
type: 'boolean',
description: 'Check operands that are typed as `any` when inspecting "loose boolean" operands.',
},
checkBigInt: {
type: 'boolean',
description: 'Check operands that are typed as `bigint` when inspecting "loose boolean" operands.',
},
checkBoolean: {
type: 'boolean',
description: 'Check operands that are typed as `boolean` when inspecting "loose boolean" operands.',
},
checkNumber: {
type: 'boolean',
description: 'Check operands that are typed as `number` when inspecting "loose boolean" operands.',
},
checkString: {
type: 'boolean',
description: 'Check operands that are typed as `string` when inspecting "loose boolean" operands.',
},
checkUnknown: {
type: 'boolean',
description: 'Check operands that are typed as `unknown` when inspecting "loose boolean" operands.',
},
requireNullish: {
type: 'boolean',
description: 'Skip operands that are not typed with `null` and/or `undefined` when inspecting "loose boolean" operands.',
},
},
},
],
},
defaultOptions: [
{
allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
checkAny: true,
checkBigInt: true,
checkBoolean: true,
checkNumber: true,
checkString: true,
checkUnknown: true,
requireNullish: false,
},
],
create(context, [options]) {
const parserServices = (0, util_1.getParserServices)(context);
const seenLogicals = new Set();
return {
'LogicalExpression[operator!="??"]'(node) {
if (seenLogicals.has(node)) {
return;
}
const { newlySeenLogicals, operands } = (0, gatherLogicalOperands_1.gatherLogicalOperands)(node, parserServices, context.sourceCode, options);
for (const logical of newlySeenLogicals) {
seenLogicals.add(logical);
}
let currentChain = [];
for (const operand of operands) {
if (operand.type === gatherLogicalOperands_1.OperandValidity.Invalid) {
(0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain);
currentChain = [];
}
else if (operand.type === gatherLogicalOperands_1.OperandValidity.Last) {
(0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain, operand);
currentChain = [];
}
else {
currentChain.push(operand);
}
}
// make sure to check whatever's left
if (currentChain.length > 0) {
(0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain);
}
},
// specific handling for `(foo ?? {}).bar` / `(foo || {}).bar`
'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(node) {
const leftNode = node.left;
const rightNode = node.right;
const parentNode = node.parent;
const isRightNodeAnEmptyObjectLiteral = rightNode.type === utils_1.AST_NODE_TYPES.ObjectExpression &&
rightNode.properties.length === 0;
if (!isRightNodeAnEmptyObjectLiteral ||
parentNode.type !== utils_1.AST_NODE_TYPES.MemberExpression ||
parentNode.optional) {
return;
}
seenLogicals.add(node);
function isLeftSideLowerPrecedence() {
const logicalTsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
const leftTsNode = parserServices.esTreeNodeToTSNodeMap.get(leftNode);
const leftPrecedence = (0, util_1.getOperatorPrecedence)(leftTsNode.kind, logicalTsNode.operatorToken.kind);
return leftPrecedence < util_1.OperatorPrecedence.LeftHandSide;
}
(0, checkNullishAndReport_1.checkNullishAndReport)(context, parserServices, options, [leftNode], {
node: parentNode,
messageId: 'preferOptionalChain',
suggest: [
{
messageId: 'optionalChainSuggest',
fix: (fixer) => {
const leftNodeText = context.sourceCode.getText(leftNode);
// Any node that is made of an operator with higher or equal precedence,
const maybeWrappedLeftNode = isLeftSideLowerPrecedence()
? `(${leftNodeText})`
: leftNodeText;
const propertyToBeOptionalText = context.sourceCode.getText(parentNode.property);
const maybeWrappedProperty = parentNode.computed
? `[${propertyToBeOptionalText}]`
: propertyToBeOptionalText;
return fixer.replaceTextRange(parentNode.range, `${maybeWrappedLeftNode}?.${maybeWrappedProperty}`);
},
},
],
});
},
};
},
});
@@ -0,0 +1 @@
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ja=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return t.default.locale(d,null,!0),d}));
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('stubString', require('../stubString'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,6 @@
module.exports = {
"breadcrumbs": `Popis cesty`
};
//# sourceMappingURL=cs-CZ.main.js.map
@@ -0,0 +1,30 @@
import Picker from './picker.js';
class ColorPicker extends Picker {
constructor(select, label) {
super(select);
this.label.innerHTML = label;
this.container.classList.add('ql-color-picker');
Array.from(this.container.querySelectorAll('.ql-picker-item')).slice(0, 7).forEach(item => {
item.classList.add('ql-primary');
});
}
buildItem(option) {
const item = super.buildItem(option);
item.style.backgroundColor = option.getAttribute('value') || '';
return item;
}
selectItem(item, trigger) {
super.selectItem(item, trigger);
const colorLabel = this.label.querySelector('.ql-color-label');
const value = item ? item.getAttribute('data-value') || '' : '';
if (colorLabel) {
if (colorLabel.tagName === 'line') {
colorLabel.style.stroke = value;
} else {
colorLabel.style.fill = value;
}
}
}
}
export default ColorPicker;
//# sourceMappingURL=color-picker.js.map
@@ -0,0 +1,5 @@
export interface Options {
allow?: string[];
}
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"unassigned", [(Options | undefined)?], import("../utils/create-rule.ts").ImportXPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;
@@ -0,0 +1,40 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1613582597,
"narHash": "sha256-6LvipIvFuhyorHpUqK3HjySC5Y6gshXHFBhU9EJ4DoM=",
"path": "/nix/store/srvplqq673sqd9vyfhyc5w1p88y1gfm4-source",
"rev": "6b1057b452c55bb3b463f0d7055bc4ec3fd1f381",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"utils": "utils"
}
},
"utils": {
"locked": {
"lastModified": 1610051610,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
@@ -0,0 +1,6 @@
"use strict";
function _new_arrow_check(innerThis, boundThis) {
if (innerThis !== boundThis) throw new TypeError("Cannot instantiate an arrow function");
}
exports._ = _new_arrow_check;
@@ -0,0 +1 @@
{"name":"@babel/types","version":"7.28.5","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532116386,"integrity":"sha512-KYRMN3MVTuiy5XkFDHd5PnQmHaQnt3z16nsBDePxZ9YNmq7IFlslpBBlR3UI+zvlbEemzowOYeKil9a0ZkOYxQ==","mode":420,"size":1106},"README.md":{"checkedAt":1794532116524,"integrity":"sha512-kz9HPypjOU8B+TyCubidXRG6DI7GyLahi/YPu20OliYHeYbcYI02kVciATOW8I2bLjAGd/GMk0jMME2OfFc8cg==","mode":420,"size":446},"lib/asserts/assertNode.js":{"checkedAt":1794532116524,"integrity":"sha512-dZVhgB7YCAXfBtwAM145Y63E8KU3rZHgm6TXwEHDelIdhEOpA95b66LB5biAkQcdsAK02SQ0qLkjHVsbXr0SsQ==","mode":420,"size":465},"lib/asserts/assertNode.js.map":{"checkedAt":1794532116524,"integrity":"sha512-F2C0n2HG1z76UVcwp18ZxMXC4F4CEr+yvmq18XJt3bfG92RaXMXlTi4ta0OUXvYO5y1ynIYr1Ui1N0yofSRUHg==","mode":420,"size":842},"lib/asserts/generated/index.js":{"checkedAt":1794532116525,"integrity":"sha512-OXsOiNPruL6okzW1MfOuMl949xqekQ+m6bl/y568Y9klKTxbMjOGVr6wEF41cSV04WijlBRtvqsRLrwaK6zx+w==","mode":420,"size":45593},"lib/asserts/generated/index.js.map":{"checkedAt":1794532116525,"integrity":"sha512-h4ONrPwVUrzLBeWLyq/qe48EK5mWAnFICNghCmwMdJMFC8N3zwzlZUpzQuZKIC6xBKRyq0Rl+/WiBXffLHtu+w==","mode":420,"size":101071},"lib/ast-types/generated/index.js":{"checkedAt":1794532116525,"integrity":"sha512-pZzcqh42hELobINirJzzgxbaClecSXr25VPlTv8nZ1xBkWtMuumx2Vs6hrWAQeC30YDu5m7UcQF5rgLsfX8Tuw==","mode":420,"size":49},"lib/ast-types/generated/index.js.map":{"checkedAt":1794532116526,"integrity":"sha512-rTgZ8JaKT+5If6h0yJ8sgAb6em9hyKwHRb+vXzG9gKzJHqjUY/xx0A8zLTydFvygY1uFpTQa4ZwjDeaIR/b/Hw==","mode":420,"size":224251},"lib/builders/flow/createFlowUnionType.js":{"checkedAt":1794532116526,"integrity":"sha512-kTM0VJr0e4Me73SPRmZ3AREI3dUDkRoTL+LeV4fpLy1Uw+OtGSU8f/8McGJ6nCtH5X740HN2oyUwMdSQDhkYNA==","mode":420,"size":534},"lib/builders/flow/createFlowUnionType.js.map":{"checkedAt":1794532116526,"integrity":"sha512-3I6trJw1uInj4bPfFiftywRT+NdhAJq1X3OOxfJQgIUSIl0I3abnYC/BpADvtoiQqIP5++nwc3rIsnCKgAgoFg==","mode":420,"size":1213},"lib/builders/flow/createTypeAnnotationBasedOnTypeof.js":{"checkedAt":1794532116526,"integrity":"sha512-YixxxoV3pwpfbe8Zp+yefBiT+T9vo/6sERejRvbnTJWvTIL8Kw2unNK7xdHy45lq+N5UHhtyAjcGgya/ElnlCA==","mode":420,"size":1058},"lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map":{"checkedAt":1794532116526,"integrity":"sha512-93nKhsGSxCnnktqpAa5/XhdpbqUTj73Mqx8JCdsv3Yx47ykFt+yDKlQQlvX6513m+UipVQbWYum1d28MBs7b1g==","mode":420,"size":2662},"lib/builders/generated/index.js":{"checkedAt":1794532116526,"integrity":"sha512-tgF/cITPrwfBCwhD2iQ2FpL7qK6Fkn9CwrKxIoXZzjWeAYbTSbVX5e411TpMZl25Kz3o64m+N7lbuzPsQSzL7w==","mode":420,"size":809},"lib/builders/generated/index.js.map":{"checkedAt":1794532116526,"integrity":"sha512-cdDmtVYl93GDcVqqTgqyL+WD0+aOpemYQiTW2RK3oEVxepS5Khr0EIw8aZzK4scDMsWnTnw3zQzQNUAMNzJ8SQ==","mode":420,"size":6773},"lib/builders/generated/lowercase.js":{"checkedAt":1794532116527,"integrity":"sha512-7wusCPUjizDdr5+HpL60uNOrt5ivC1eKt7BCJ7GDkkL0VsEmIF9gJ2v+xZY4aDPu+/QVuTP41rgPh4icCYnDxg==","mode":420,"size":85436},"lib/builders/generated/lowercase.js.map":{"checkedAt":1794532116527,"integrity":"sha512-e8lycJZEqHhylkBk+Yg7LGl8r6CNmrlS7YsL8sRyRXKpuzSTj4pF945qc9r2IOSNc9E1SMCPe/v5kCpNYX4zvA==","mode":420,"size":202630},"lib/builders/generated/uppercase.js":{"checkedAt":1794532116527,"integrity":"sha512-hv1t6UBbMEEOqRrqTnPzXlohXzFP9q6GmVsh3WpHtWLflcUEcd4WQSARfGqTS+UgNHGC00ndkXXLAmUoV+36KA==","mode":420,"size":27099},"lib/builders/generated/uppercase.js.map":{"checkedAt":1794532116528,"integrity":"sha512-CJnq9nwkxC2KMt5bbnWVXioE2SHaaLZRts5dCjvuImQT2PK/s+FVwpXASQPFO5e39JnTYbBmY7vc0InMGJc56w==","mode":420,"size":36722},"lib/builders/productions.js":{"checkedAt":1794532116528,"integrity":"sha512-2zr/8BnnBga2ND88zIQpCm2mDIvjPwXRFmQvCSVj2dMaipwemrq5xJzSXRRGKYXcAS8dE0IOjwDmBiA6mUUcCQ==","mode":420,"size":333},"lib/builders/productions.js.map":{"checkedAt":1794532116528,"integrity":"sha512-hUbapyBWw1Cpq028V/2fq8P+wtOf1A5ZeUvUpnAV84gVcWciv9Y9WYLS2cRF/GAaKCMTwZ45c1N9aOgqIV06QQ==","mode":420,"size":527},"lib/builders/react/buildChildren.js":{"checkedAt":1794532116528,"integrity":"sha512-Bpk40tEWwyMRo5QJOqEXRpj6t7W45i5V7YWlXJe+zgdiPsfUNyU1s4zyVZx4yIO7q7NZMG1ssSZY5qxDCZqg3A==","mode":420,"size":769},"lib/builders/react/buildChildren.js.map":{"checkedAt":1794532116528,"integrity":"sha512-klFUVvKCtyHMbAw1CPe5KXUjyC257Hm22nGvadZSbqypSQ8yJSwd2usu1yitGA7L7iv6z7Q5XJLEeinlOS43lQ==","mode":420,"size":1797},"lib/builders/typescript/createTSUnionType.js":{"checkedAt":1794532116528,"integrity":"sha512-mtTD56dfd2ENZQGTkCj/mx5ykWev3wEZ2A8/BgudhKM54KXUnhLZUwoeW3FChrUVptrnunVmSHGSH3IrleHTeg==","mode":420,"size":729},"lib/builders/typescript/createTSUnionType.js.map":{"checkedAt":1794532116529,"integrity":"sha512-p309T+IlDZvHYhLHBTQmDWVw43wjwB4qFXjvI10Zf2ZOoZynlie1aDEzMkwBr9tGKOhcb3nKLY3capJt6DgzjQ==","mode":420,"size":1629},"lib/builders/validateNode.js":{"checkedAt":1794532116529,"integrity":"sha512-HoTgnWTy3ODRddEqU5v+W2gQ9Ba1T7LcmEOxKSDHKZo5nPYHLQDXhevgwJD12zQss3nIn1Bf5OxCCLine truncated
@@ -0,0 +1,29 @@
import isArray from './isArray.js';
import isSymbol from './isSymbol.js';
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object));
}
export default isKey;
@@ -0,0 +1 @@
export { _ as default } from "../esm/_class_check_private_static_access.js";
@@ -0,0 +1,6 @@
export { FormContext, FormProps } from './base-form.js';
export { useSlottedContext } from './utils.js';
export { Form } from './form.js';
import '@react-types/form';
import 'react';
import '@react-types/shared';
@@ -0,0 +1,118 @@
/**
* @callback Handler
* Handle a value, with a certain ID field set to a certain value.
* The ID field is passed to `zwitch`, and it’s value is this function’s
* place on the `handlers` record.
* @param {...any} parameters
* Arbitrary parameters passed to the zwitch.
* The first will be an object with a certain ID field set to a certain value.
* @returns {any}
* Anything!
*/
/**
* @callback UnknownHandler
* Handle values that do have a certain ID field, but it’s set to a value
* that is not listed in the `handlers` record.
* @param {unknown} value
* An object with a certain ID field set to an unknown value.
* @param {...any} rest
* Arbitrary parameters passed to the zwitch.
* @returns {any}
* Anything!
*/
/**
* @callback InvalidHandler
* Handle values that do not have a certain ID field.
* @param {unknown} value
* Any unknown value.
* @param {...any} rest
* Arbitrary parameters passed to the zwitch.
* @returns {void|null|undefined|never}
* This should crash or return nothing.
*/
/**
* @template {InvalidHandler} [Invalid=InvalidHandler]
* @template {UnknownHandler} [Unknown=UnknownHandler]
* @template {Record<string, Handler>} [Handlers=Record<string, Handler>]
* @typedef Options
* Configuration (required).
* @property {Invalid} [invalid]
* Handler to use for invalid values.
* @property {Unknown} [unknown]
* Handler to use for unknown values.
* @property {Handlers} [handlers]
* Handlers to use.
*/
const own = {}.hasOwnProperty
/**
* Handle values based on a field.
*
* @template {InvalidHandler} [Invalid=InvalidHandler]
* @template {UnknownHandler} [Unknown=UnknownHandler]
* @template {Record<string, Handler>} [Handlers=Record<string, Handler>]
* @param {string} key
* Field to switch on.
* @param {Options<Invalid, Unknown, Handlers>} [options]
* Configuration (required).
* @returns {{unknown: Unknown, invalid: Invalid, handlers: Handlers, (...parameters: Parameters<Handlers[keyof Handlers]>): ReturnType<Handlers[keyof Handlers]>, (...parameters: Parameters<Unknown>): ReturnType<Unknown>}}
*/
export function zwitch(key, options) {
const settings = options || {}
/**
* Handle one value.
*
* Based on the bound `key`, a respective handler will be called.
* If `value` is not an object, or doesn’t have a `key` property, the special
* “invalid” handler will be called.
* If `value` has an unknown `key`, the special “unknown” handler will be
* called.
*
* All arguments, and the context object, are passed through to the handler,
* and it’s result is returned.
*
* @this {unknown}
* Any context object.
* @param {unknown} [value]
* Any value.
* @param {...unknown} parameters
* Arbitrary parameters passed to the zwitch.
* @property {Handler} invalid
* Handle for values that do not have a certain ID field.
* @property {Handler} unknown
* Handle values that do have a certain ID field, but it’s set to a value
* that is not listed in the `handlers` record.
* @property {Handlers} handlers
* Record of handlers.
* @returns {unknown}
* Anything.
*/
function one(value, ...parameters) {
/** @type {Handler|undefined} */
let fn = one.invalid
const handlers = one.handlers
if (value && own.call(value, key)) {
// @ts-expect-error Indexable.
const id = String(value[key])
// @ts-expect-error Indexable.
fn = own.call(handlers, id) ? handlers[id] : one.unknown
}
if (fn) {
return fn.call(this, value, ...parameters)
}
}
one.handlers = settings.handlers || {}
one.invalid = settings.invalid
one.unknown = settings.unknown
// @ts-expect-error: matches!
return one
}
@@ -0,0 +1,38 @@
// Tamil [ta]
import dayjs from '../index';
var locale = {
name: 'ta',
weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, HH:mm',
LLLL: 'dddd, D MMMM YYYY, HH:mm'
},
relativeTime: {
future: '%s இல்',
past: '%s முன்',
s: 'ஒரு சில விநாடிகள்',
m: 'ஒரு நிமிடம்',
mm: '%d நிமிடங்கள்',
h: 'ஒரு மணி நேரம்',
hh: '%d மணி நேரம்',
d: 'ஒரு நாள்',
dd: '%d நாட்கள்',
M: 'ஒரு மாதம்',
MM: '%d மாதங்கள்',
y: 'ஒரு வருடம்',
yy: '%d ஆண்டுகள்'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,16 @@
/**
* Subtracts a specified number of minutes from a date.
* 从日期中减去指定数量的分钟。
*
* @param date - The date to subtract minutes from. (要从日期中减去的日期。)
* @param minutes - The number of minutes to subtract. (要减去的分钟数。)
* @returns A new date with the subtracted minutes. (减去分钟后的新日期。)
* @example
* ```ts
* // Subtracting 30 minutes from a date (从日期中减去30分钟)
* const date = new Date('2023-10-01T12:00:00Z');
* subMinutes(date, 30);
* // Returns: 2023-10-01T11:30:00.000Z (返回: 2023-10-01T11:30:00.000Z)
* ```
*/
export default function subMinutes(date: Date, minutes: number): Date;
@@ -0,0 +1,144 @@
# camelcase
> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Correctly handles Unicode strings.
If you use this on untrusted user input, don't forget to limit the length to something reasonable.
## Install
```
$ npm install camelcase
```
*If you need to support Firefox < 78, stay on version 5 as version 6 uses regex features not available in Firefox < 78.*
## Usage
```js
const camelCase = require('camelcase');
camelCase('foo-bar');
//=> 'fooBar'
camelCase('foo_bar');
//=> 'fooBar'
camelCase('Foo-Bar');
//=> 'fooBar'
camelCase('розовый_пушистый_единорог');
//=> 'розовыйПушистыйЕдинорог'
camelCase('Foo-Bar', {pascalCase: true});
//=> 'FooBar'
camelCase('--foo.bar', {pascalCase: false});
//=> 'fooBar'
camelCase('Foo-BAR', {preserveConsecutiveUppercase: true});
//=> 'fooBAR'
camelCase('fooBAR', {pascalCase: true, preserveConsecutiveUppercase: true}));
//=> 'FooBAR'
camelCase('foo bar');
//=> 'fooBar'
console.log(process.argv[3]);
//=> '--foo-bar'
camelCase(process.argv[3]);
//=> 'fooBar'
camelCase(['foo', 'bar']);
//=> 'fooBar'
camelCase(['__foo__', '--bar'], {pascalCase: true});
//=> 'FooBar'
camelCase(['foo', 'BAR'], {pascalCase: true, preserveConsecutiveUppercase: true})
//=> 'FooBAR'
camelCase('lorem-ipsum', {locale: 'en-US'});
//=> 'loremIpsum'
```
## API
### camelCase(input, options?)
#### input
Type: `string | string[]`
String to convert to camel case.
#### options
Type: `object`
##### pascalCase
Type: `boolean`\
Default: `false`
Uppercase the first character: `foo-bar` → `FooBar`
##### preserveConsecutiveUppercase
Type: `boolean`\
Default: `false`
Preserve the consecutive uppercase characters: `foo-BAR` → `FooBAR`.
##### locale
Type: `false | string | string[]`\
Default: The host environment’s current locale.
The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-specific case mappings. If multiple locales are given in an array, the best available locale is used.
```js
const camelCase = require('camelcase');
camelCase('lorem-ipsum', {locale: 'en-US'});
//=> 'loremIpsum'
camelCase('lorem-ipsum', {locale: 'tr-TR'});
//=> 'loremİpsum'
camelCase('lorem-ipsum', {locale: ['en-US', 'en-GB']});
//=> 'loremIpsum'
camelCase('lorem-ipsum', {locale: ['tr', 'TR', 'tr-TR']});
//=> 'loremİpsum'
```
Setting `locale: false` ignores the platform locale and uses the [Unicode Default Case Conversion](https://unicode-org.github.io/icu/userguide/transforms/casemappings.html#simple-single-character-case-mapping) algorithm:
```js
const camelCase = require('camelcase');
// On a platform with 'tr-TR'
camelCase('lorem-ipsum');
//=> 'loremİpsum'
camelCase('lorem-ipsum', {locale: false});
//=> 'loremIpsum'
```
## camelcase for enterprise
Available as part of the Tidelift Subscription.
The maintainers of camelcase and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
## Related
- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
- [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) - Convert object keys to camel case
@@ -0,0 +1,92 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
/**
* @file 用于国际化的字符串管理类
* @author mengke01(kekee000@gmail.com)
*/
function appendLanguage(store, languageList) {
languageList.forEach(function (item) {
var language = item[0];
store[language] = Object.assign(store[language] || {}, item[1]);
});
return store;
}
/**
* 管理国际化字符,根据lang切换语言版本
*
* @class I18n
* @param {Array} languageList 当前支持的语言列表
* @param {string=} defaultLanguage 默认语言
* languageList = [
* 'en-us', // 语言名称
* langObject // 语言字符串列表
* ]
*/
var I18n = exports.default = /*#__PURE__*/function () {
function I18n(languageList, defaultLanguage) {
_classCallCheck(this, I18n);
this.store = appendLanguage({}, languageList);
this.setLanguage(defaultLanguage || typeof navigator !== 'undefined' && navigator.language && navigator.language.toLowerCase() || 'en-us');
}
/**
* 设置语言
*
* @param {string} language 语言
* @return {this}
*/
return _createClass(I18n, [{
key: "setLanguage",
value: function setLanguage(language) {
if (!this.store[language]) {
language = 'en-us';
}
this.lang = this.store[this.language = language];
return this;
}
/**
* 添加一个语言字符串
*
* @param {string} language 语言
* @param {Object} langObject 语言对象
* @return {this}
*/
}, {
key: "addLanguage",
value: function addLanguage(language, langObject) {
appendLanguage(this.store, [[language, langObject]]);
return this;
}
/**
* 获取当前语言字符串
*
* @param {string} path 语言路径
* @return {string} 语言字符串
*/
}, {
key: "get",
value: function get(path) {
var ref = path.split('.');
var refObject = this.lang;
var level;
while (refObject != null && (level = ref.shift())) {
refObject = refObject[level];
}
return refObject != null ? refObject : '';
}
}]);
}();
@@ -0,0 +1,101 @@
# vary
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Node.js Version][node-version-image]][node-version-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
Manipulate the HTTP Vary header
## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/). Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
```sh
$ npm install vary
```
## API
<!-- eslint-disable no-unused-vars -->
```js
var vary = require('vary')
```
### vary(res, field)
Adds the given header `field` to the `Vary` response header of `res`.
This can be a string of a single field, a string of a valid `Vary`
header, or an array of multiple fields.
This will append the header if not already listed, otherwise leaves
it listed in the current location.
<!-- eslint-disable no-undef -->
```js
// Append "Origin" to the Vary header of the response
vary(res, 'Origin')
```
### vary.append(header, field)
Adds the given header `field` to the `Vary` response header string `header`.
This can be a string of a single field, a string of a valid `Vary` header,
or an array of multiple fields.
This will append the header if not already listed, otherwise leaves
it listed in the current location. The new header string is returned.
<!-- eslint-disable no-undef -->
```js
// Get header string appending "Origin" to "Accept, User-Agent"
vary.append('Accept, User-Agent', 'Origin')
```
## Examples
### Updating the Vary header when content is based on it
```js
var http = require('http')
var vary = require('vary')
http.createServer(function onRequest (req, res) {
// about to user-agent sniff
vary(res, 'User-Agent')
var ua = req.headers['user-agent'] || ''
var isMobile = /mobi|android|touch|mini/i.test(ua)
// serve site, depending on isMobile
res.setHeader('Content-Type', 'text/html')
res.end('You are (probably) ' + (isMobile ? '' : 'not ') + 'a mobile user')
})
```
## Testing
```sh
$ npm test
```
## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/vary.svg
[npm-url]: https://npmjs.org/package/vary
[node-version-image]: https://img.shields.io/node/v/vary.svg
[node-version-url]: https://nodejs.org/en/download
[travis-image]: https://img.shields.io/travis/jshttp/vary/master.svg
[travis-url]: https://travis-ci.org/jshttp/vary
[coveralls-image]: https://img.shields.io/coveralls/jshttp/vary/master.svg
[coveralls-url]: https://coveralls.io/r/jshttp/vary
[downloads-image]: https://img.shields.io/npm/dm/vary.svg
[downloads-url]: https://npmjs.org/package/vary
@@ -0,0 +1,7 @@
export { AddNoteBulkIcon } from './add-note.js';
export { CopyDocumentBulkIcon } from './copy-document.js';
export { DeleteDocumentBulkIcon } from './delete-document.js';
export { EditDocumentBulkIcon } from './edit-document.js';
import 'react/jsx-runtime';
import '../types.js';
import 'react';
@@ -0,0 +1,14 @@
import {version as $iulvE$version} from "react";
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
const pieces = (0, $iulvE$version).split('.');
const major = parseInt(pieces[0], 10);
if (major >= 19) return value;
// compatibility with React < 19
return value ? 'true' : undefined;
}
export {$cdc5a6778b766db2$export$a9d04c5684123369 as inertValue};
//# sourceMappingURL=inertValue.module.js.map
@@ -0,0 +1,114 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
/**
* Is the given value a valid oneof group?
*
* We represent protobuf `oneof` as algebraic data types (ADT) in generated
* code. But when working with messages of unknown type, the ADT does not
* help us.
*
* This type guard checks if the given object adheres to the ADT rules, which
* are as follows:
*
* 1) Must be an object.
*
* 2) Must have a "oneofKind" discriminator property.
*
* 3) If "oneofKind" is `undefined`, no member field is selected. The object
* must not have any other properties.
*
* 4) If "oneofKind" is a `string`, the member field with this name is
* selected.
*
* 5) If a member field is selected, the object must have a second property
* with this name. The property must not be `undefined`.
*
* 6) No extra properties are allowed. The object has either one property
* (no selection) or two properties (selection).
*
*/
function isOneofGroup(any) {
if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {
return false;
}
switch (typeof any.oneofKind) {
case "string":
if (any[any.oneofKind] === undefined)
return false;
return Object.keys(any).length == 2;
case "undefined":
return Object.keys(any).length == 1;
default:
return false;
}
}
exports.isOneofGroup = isOneofGroup;
/**
* Returns the value of the given field in a oneof group.
*/
function getOneofValue(oneof, kind) {
return oneof[kind];
}
exports.getOneofValue = getOneofValue;
function setOneofValue(oneof, kind, value) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = kind;
if (value !== undefined) {
oneof[kind] = value;
}
}
exports.setOneofValue = setOneofValue;
function setUnknownOneofValue(oneof, kind, value) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = kind;
if (value !== undefined && kind !== undefined) {
oneof[kind] = value;
}
}
exports.setUnknownOneofValue = setUnknownOneofValue;
/**
* Removes the selected field in a oneof group.
*
* Note that the recommended way to modify a oneof group is to set
* a new object:
*
* ```ts
* message.result = { oneofKind: undefined };
* ```
*/
function clearOneofValue(oneof) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = undefined;
}
exports.clearOneofValue = clearOneofValue;
/**
* Returns the selected value of the given oneof group.
*
* Not that the recommended way to access a oneof group is to check
* the "oneofKind" property and let TypeScript narrow down the union
* type for you:
*
* ```ts
* if (message.result.oneofKind === "error") {
* message.result.error; // string
* }
* ```
*
* In the rare case you just need the value, and do not care about
* which protobuf field is selected, you can use this function
* for convenience.
*/
function getSelectedOneofValue(oneof) {
if (oneof.oneofKind === undefined) {
return undefined;
}
return oneof[oneof.oneofKind];
}
exports.getSelectedOneofValue = getSelectedOneofValue;
@@ -0,0 +1,46 @@
"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description: "disallow the `Array.prototype.with` method.",
category: "ES2023",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-with.html",
},
fixable: null,
messages: {
forbidden: "ES2023 '{{name}}' method is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
Array: ["with"],
Int8Array: ["with"],
Uint8Array: ["with"],
Uint8ClampedArray: ["with"],
Int16Array: ["with"],
Uint16Array: ["with"],
Int32Array: ["with"],
Uint32Array: ["with"],
Float32Array: ["with"],
Float64Array: ["with"],
BigInt64Array: ["with"],
BigUint64Array: ["with"],
})
},
}
@@ -0,0 +1 @@
module.exports={C:{"115":0.03565,"140":0.02377,"141":0.0713,"142":0.05942,"143":0.33669,"144":0.22578,"145":0.00396,_:"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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 146 147 3.5 3.6"},D:{"40":0.00396,"41":0.00396,"42":0.00396,"46":0.00396,"48":0.00396,"49":0.00396,"50":0.00396,"51":0.00396,"54":0.00396,"55":0.00396,"56":0.00396,"58":0.00396,"59":0.00396,"79":0.00396,"97":0.00396,"101":0.00396,"103":0.13071,"109":1.12889,"114":0.00792,"116":0.05942,"122":0.02377,"125":0.61792,"126":0.03169,"127":0.00792,"128":0.03961,"129":0.00792,"130":0.02773,"131":0.03169,"134":0.00396,"135":0.00396,"136":0.07922,"137":0.04753,"138":0.17428,"139":0.47928,"140":6.21481,"141":9.17764,"142":0.06338,_:"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 43 44 45 47 52 53 57 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 123 124 132 133 143 144 145"},F:{"120":0.05942,"121":0.02773,"122":1.26752,_:"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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01188,"134":0.02773,"135":0.00396,"137":0.00396,"138":0.00396,"139":0.08714,"140":1.5844,"141":5.63254,"142":0.01188,_:"12 13 14 15 16 17 18 79 80 81 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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 136"},E:{"14":0.00396,"15":0.00792,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.4 26.1 26.2","13.1":0.01981,"14.1":0.05149,"15.4":0.12675,"15.5":0.03169,"15.6":0.305,"16.0":0.00792,"16.1":0.00792,"16.2":0.05942,"16.3":0.03169,"16.5":0.00396,"16.6":0.56642,"17.0":0.00396,"17.1":0.69714,"17.2":0.00396,"17.3":0.04357,"17.4":0.01981,"17.5":0.07922,"17.6":0.37233,"18.0":0.03565,"18.1":0.15052,"18.2":0.02377,"18.3":0.1624,"18.4":0.02773,"18.5-18.6":0.1426,"26.0":0.32876},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00291,"5.0-5.1":0,"6.0-6.1":0.01163,"7.0-7.1":0.00872,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02616,"10.0-10.2":0.00291,"10.3":0.04941,"11.0-11.2":0.73246,"11.3-11.4":0.01744,"12.0-12.1":0.00581,"12.2-12.5":0.14242,"13.0-13.1":0,"13.2":0.01453,"13.3":0.00581,"13.4-13.7":0.02325,"14.0-14.4":0.04941,"14.5-14.8":0.05232,"15.0-15.1":0.04941,"15.2-15.3":0.03779,"15.4":0.0436,"15.5":0.04941,"15.6-15.8":0.64526,"16.0":0.0872,"16.1":0.16277,"16.2":0.08429,"16.3":0.15114,"16.4":0.03779,"16.5":0.06685,"16.6-16.7":0.86325,"17.0":0.06104,"17.1":0.09301,"17.2":0.06685,"17.3":0.09882,"17.4":0.17439,"17.5":0.29938,"17.6-17.7":0.75571,"18.0":0.17149,"18.1":0.3546,"18.2":0.19183,"18.3":0.61619,"18.4":0.31682,"18.5-18.6":16.15472,"26.0":1.99681,"26.1":0.07266},P:{"4":0.01121,"26":0.02241,"27":0.02241,"28":4.11286,"29":0.22413,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","9.2":0.11207},I:{"0":0.03618,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.01208,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00396,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4952},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":26.39139}};
@@ -0,0 +1,48 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/chevron-left.tsx
var chevron_left_exports = {};
__export(chevron_left_exports, {
ChevronLeftIcon: () => ChevronLeftIcon
});
module.exports = __toCommonJS(chevron_left_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var ChevronLeftIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"svg",
{
"aria-hidden": "true",
fill: "none",
focusable: "false",
height: "1em",
role: "presentation",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: "1.5",
viewBox: "0 0 24 24",
width: "1em",
...props,
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m15 18-6-6 6-6" })
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ChevronLeftIcon
});
@@ -0,0 +1,28 @@
/*! *****************************************************************************
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,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
}
@@ -0,0 +1,44 @@
var $aaa611146751592e$exports = require("./domHelpers.main.js");
var $loak6$reactstatelyflags = require("@react-stately/flags");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "nodeContains", () => $d723bea02f3e2567$export$4282f70798064fe0);
$parcel$export(module.exports, "getActiveElement", () => $d723bea02f3e2567$export$cd4e5573fbe2b576);
$parcel$export(module.exports, "getEventTarget", () => $d723bea02f3e2567$export$e58f029f0fbfdb29);
// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
function $d723bea02f3e2567$export$4282f70798064fe0(node, otherNode) {
if (!(0, $loak6$reactstatelyflags.shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;
if (!node || !otherNode) return false;
let currentNode = otherNode;
while(currentNode !== null){
if (currentNode === node) return true;
if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted
currentNode = currentNode.assignedSlot.parentNode;
else if ((0, $aaa611146751592e$exports.isShadowRoot)(currentNode)) // Element is in shadow root
currentNode = currentNode.host;
else currentNode = currentNode.parentNode;
}
return false;
}
const $d723bea02f3e2567$export$cd4e5573fbe2b576 = (doc = document)=>{
var _activeElement_shadowRoot;
if (!(0, $loak6$reactstatelyflags.shadowDOM)()) return doc.activeElement;
let activeElement = doc.activeElement;
while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;
return activeElement;
};
function $d723bea02f3e2567$export$e58f029f0fbfdb29(event) {
if ((0, $loak6$reactstatelyflags.shadowDOM)() && event.target.shadowRoot) {
if (event.composedPath) return event.composedPath()[0];
}
return event.target;
}
//# sourceMappingURL=DOMFunctions.main.js.map
@@ -0,0 +1,522 @@
flf2a$ 5 4 8 1 11 0 16769 0
Author :
Date : 2008/8/28 1:12:58
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.
$ $#
$ $#
$ $#
$ $#
$ $##
!#
#
#
#
##
"#
#
#
#
##
##
#
#
#
##
$#
#
#
#
##
%#
#
#
#
##
&#
#
#
#
##
'#
#
#
#
##
(#
#
#
#
##
)#
#
#
#
##
*#
#
#
#
##
+#
#
#
#
##
,#
#
#
#
##
-#
#
#
#
##
.#
#
#
#
##
/#
#
#
#
##
0#
#
#
#
##
1#
#
#
#
##
2#
#
#
#
##
3#
#
#
#
##
4#
#
#
#
##
5#
#
#
#
##
6#
#
#
#
##
7#
#
#
#
##
8#
#
#
#
##
9#
#
#
#
##
:#
#
#
#
##
;#
#
#
#
##
<#
#
#
#
##
=#
#
#
#
##
>#
#
#
#
##
?#
#
#
#
##
@#
#
#
#
##
_ #
'|\ #
|-\ #
' ` #
##
__ #
'|_) #
_|_) #
' #
##
_, #
/ #
'\_ #
` #
##
,_ #
| \,#
_|_/ #
' #
##
_, #
/_, #
'\_ #
` #
##
__, #
'|_, #
| #
' #
##
_, #
/ _ #
'\_|` #
_| #
' ##
, , #
|_|, #
'| | #
' ` #
##
___, #
' | #
_|_, #
' #
##
___, #
',| #
(_| #
#
##
, , #
|_/ #
'| \ #
' ` #
##
, #
| #
'|__ #
' #
##
, , #
|\/| #
| `| #
' ` #
##
, , #
|\ | #
|'\| #
' ` #
##
_, #
/ \, #
'\_/ #
' #
##
,_ #
|_) #
'| #
' #
##
_, #
/ \, #
'\_X #
` #
##
,_ #
|_) #
'| \ #
' ` #
##
_, #
(_, #
_) #
' #
##
___, #
' | #
| #
' #
##
, , #
| | #
'\__| #
` #
##
, , #
\ / #
\/` #
' #
##
, , #
| ,| #
|/\| #
' ` #
##
, , #
\_/ #
/ \ #
' ` #
##
, ,#
\_/ #
, /` #
(_/ #
##
,__, #
/ #
/_ #
' ` #
##
[#
#
#
#
##
\#
#
#
#
##
]#
#
#
#
##
^#
#
#
#
##
_#
#
#
#
##
`#
#
#
#
##
_ #
'|\ #
|-\ #
' ` #
##
__ #
'|_) #
_|_) #
' #
##
_, #
/ #
'\_ #
` #
##
,_ #
| \,#
_|_/ #
' #
##
_, #
/_, #
'\_ #
` #
##
__, #
'|_, #
| #
' #
##
_, #
/ _ #
'\_|` #
_| #
' ##
, , #
|_|, #
'| | #
' ` #
##
___, #
' | #
_|_, #
' #
##
___, #
',| #
(_| #
#
##
, , #
|_/ #
'| \ #
' ` #
##
, #
| #
'|__ #
' #
##
, , #
|\/| #
| `| #
' ` #
##
, , #
|\ | #
|'\| #
' ` #
##
_, #
/ \, #
'\_/ #
' #
##
,_ #
|_) #
'| #
' #
##
_, #
/ \, #
'\_X #
` #
##
,_ #
|_) #
'| \ #
' ` #
##
_, #
(_, #
_) #
' #
##
___, #
' | #
| #
' #
##
, , #
| | #
'\__| #
` #
##
, , #
\ / #
\/` #
' #
##
, , #
| ,| #
|/\| #
' ` #
##
, , #
\_/ #
/ \ #
' ` #
##
, ,#
\_/ #
, /` #
(_/ #
##
,__, #
/ #
/_ #
' ` #
##
{#
#
#
#
##
|#
#
#
#
##
}#
#
#
#
##
~#
#
#
#
##
_ #
'|\ #
|-\ #
' ` #
##
_, #
/ \, #
'\_/ #
' #
##
, , #
| | #
'\__| #
` #
##
_ #
'|\ #
|-\ #
' ` #
##
_, #
/ \, #
'\_/ #
' #
##
, , #
| | #
'\__| #
` #
##
ß#
#
#
#
##
@@ -0,0 +1,14 @@
# @lezer/highlight
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/highlight/blob/master/CHANGELOG.md) ]
[Lezer](https://lezer.codemirror.net/) is an incremental parser system
intended for use in an editor or similar system.
@lezer/highlight provides a syntax highlighting framework for Lezer
parse trees.
Its programming interface is documented on [the
website](https://lezer.codemirror.net/docs/ref/#highlight).
This code is licensed under an MIT license.
@@ -0,0 +1,21 @@
import * as proto from '../../../packet/transformer/proto';
import { OidbPacket, PacketTransformer } from '../../../packet/transformer/base';
declare class FetchSessionKey extends PacketTransformer<typeof proto.HttpConn0x6ff_501Response> {
build(): OidbPacket;
parse(data: Buffer): import("napcat-protobuf").any {
sigSession: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
sessionKey: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
serverInfos: import("napcat-protobuf").MessageProtoFieldType<() => {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
serverAddrs: import("napcat-protobuf").MessageProtoFieldType<() => {
type: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
ip: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.FIXED32, false, false>;
port: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
area: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
}, false, true>;
}, false, true>;
}, false, false>;
}>;
}
declare const _default: FetchSessionKey;
export default _default;
@@ -0,0 +1,9 @@
import { TokenType } from "../tokenizer/types";
export declare function parseSpread(): void;
export declare function parseRest(isBlockScope: boolean): void;
export declare function parseBindingIdentifier(isBlockScope: boolean): void;
export declare function parseImportedIdentifier(): void;
export declare function markPriorBindingIdentifier(isBlockScope: boolean): void;
export declare function parseBindingAtom(isBlockScope: boolean): void;
export declare function parseBindingList(close: TokenType, isBlockScope: boolean, allowEmpty?: boolean, allowModifiers?: boolean, contextId?: number): void;
export declare function parseMaybeDefault(isBlockScope: boolean, leftAlreadyParsed?: boolean): void;
@@ -0,0 +1,25 @@
{
"name": "stream-shift",
"version": "1.0.3",
"description": "Returns the next buffer/object in a stream's readable queue",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"standard": "^7.1.2",
"tape": "^4.6.0",
"through2": "^2.0.1"
},
"scripts": {
"test": "standard && tape test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/mafintosh/stream-shift.git"
},
"author": "Mathias Buus (@mafintosh)",
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/stream-shift/issues"
},
"homepage": "https://github.com/mafintosh/stream-shift"
}
@@ -0,0 +1,94 @@
type Intrinsic = typeof globalThis;
type IntrinsicName = keyof Intrinsic | `%${keyof Intrinsic}%`;
type IntrinsicPath = IntrinsicName | `${StripPercents<IntrinsicName>}.${string}` | `%${StripPercents<IntrinsicName>}.${string}%`;
type AllowMissing = boolean;
type StripPercents<T extends string> = T extends `%${infer U}%` ? U : T;
type BindMethodPrecise<F> =
F extends (this: infer This, ...args: infer Args) => infer R
? (obj: This, ...args: Args) => R
: F extends {
(this: infer This1, ...args: infer Args1): infer R1;
(this: infer This2, ...args: infer Args2): infer R2
}
? {
(obj: This1, ...args: Args1): R1;
(obj: This2, ...args: Args2): R2
}
: never
// Extract method type from a prototype
type GetPrototypeMethod<T extends keyof typeof globalThis, M extends string> =
(typeof globalThis)[T] extends { prototype: any }
? M extends keyof (typeof globalThis)[T]['prototype']
? (typeof globalThis)[T]['prototype'][M]
: never
: never
// Get static property/method
type GetStaticMember<T extends keyof typeof globalThis, P extends string> =
P extends keyof (typeof globalThis)[T] ? (typeof globalThis)[T][P] : never
// Type that maps string path to actual bound function or value with better precision
type BoundIntrinsic<S extends string> =
S extends `${infer Obj}.prototype.${infer Method}`
? Obj extends keyof typeof globalThis
? BindMethodPrecise<GetPrototypeMethod<Obj, Method & string>>
: unknown
: S extends `${infer Obj}.${infer Prop}`
? Obj extends keyof typeof globalThis
? GetStaticMember<Obj, Prop & string>
: unknown
: unknown
declare function arraySlice<T>(array: readonly T[], start?: number, end?: number): T[];
declare function arraySlice<T>(array: ArrayLike<T>, start?: number, end?: number): T[];
declare function arraySlice<T>(array: IArguments, start?: number, end?: number): T[];
// Special cases for methods that need explicit typing
interface SpecialCases {
'%Object.prototype.isPrototypeOf%': (thisArg: {}, obj: unknown) => boolean;
'%String.prototype.replace%': {
(str: string, searchValue: string | RegExp, replaceValue: string): string;
(str: string, searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string
};
'%Object.prototype.toString%': (obj: {}) => string;
'%Object.prototype.hasOwnProperty%': (obj: {}, v: PropertyKey) => boolean;
'%Array.prototype.slice%': typeof arraySlice;
'%Array.prototype.map%': <T, U>(array: readonly T[], callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any) => U[];
'%Array.prototype.filter%': <T>(array: readonly T[], predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any) => T[];
'%Array.prototype.indexOf%': <T>(array: readonly T[], searchElement: T, fromIndex?: number) => number;
'%Function.prototype.apply%': <T, A extends any[], R>(fn: (...args: A) => R, thisArg: any, args: A) => R;
'%Function.prototype.call%': <T, A extends any[], R>(fn: (...args: A) => R, thisArg: any, ...args: A) => R;
'%Function.prototype.bind%': <T, A extends any[], R>(fn: (...args: A) => R, thisArg: any, ...args: A) => (...remainingArgs: A) => R;
'%Promise.prototype.then%': {
<T, R>(promise: Promise<T>, onfulfilled: (value: T) => R | PromiseLike<R>): Promise<R>;
<T, R>(promise: Promise<T>, onfulfilled: ((value: T) => R | PromiseLike<R>) | undefined | null, onrejected: (reason: any) => R | PromiseLike<R>): Promise<R>;
};
'%RegExp.prototype.test%': (regexp: RegExp, str: string) => boolean;
'%RegExp.prototype.exec%': (regexp: RegExp, str: string) => RegExpExecArray | null;
'%Error.prototype.toString%': (error: Error) => string;
'%TypeError.prototype.toString%': (error: TypeError) => string;
'%String.prototype.split%': (
obj: unknown,
splitter: string | RegExp | {
[Symbol.split](string: string, limit?: number): string[];
},
limit?: number | undefined
) => string[];
}
/**
* Returns a bound function for a prototype method, or a value for a static property.
*
* @param name - The name of the intrinsic (e.g. 'Array.prototype.slice')
* @param {AllowMissing} [allowMissing] - Whether to allow missing intrinsics (default: false)
*/
declare function callBound<K extends keyof SpecialCases | StripPercents<keyof SpecialCases>, S extends IntrinsicPath>(name: K, allowMissing?: AllowMissing): SpecialCases[`%${StripPercents<K>}%`];
declare function callBound<K extends keyof SpecialCases | StripPercents<keyof SpecialCases>, S extends IntrinsicPath>(name: S, allowMissing?: AllowMissing): BoundIntrinsic<S>;
export = callBound;
@@ -0,0 +1 @@
{"name":"@babel/helper-validator-identifier","version":"7.28.5","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532116423,"integrity":"sha512-KYRMN3MVTuiy5XkFDHd5PnQmHaQnt3z16nsBDePxZ9YNmq7IFlslpBBlR3UI+zvlbEemzowOYeKil9a0ZkOYxQ==","mode":420,"size":1106},"README.md":{"checkedAt":1794532116423,"integrity":"sha512-OybkXcJeQWCYbybPJoktxeEZZ0klds3mvoHYCblhrMzq6xWRGQqkg91hu4NtOfYNS+3o5hWTJzjNtcmo6r7C/A==","mode":420,"size":369},"lib/identifier.js":{"checkedAt":1794532116423,"integrity":"sha512-NsQdyTzTDJl74hIajplwVnj/z7ubGGoborN7rTClSQ41aAwRyV0Z8ICIuzrlsozj3EWxHDwsCU1YNk6D5VB1zQ==","mode":420,"size":12543},"lib/identifier.js.map":{"checkedAt":1794532116423,"integrity":"sha512-18TqseQ25fpknAgDkv68It+eTNtty6o8V+l5xnLgOMsykRpw5Yh4+O37YyL20YTwiF+mo/cClExy6k0nCFgEsg==","mode":420,"size":26771},"lib/index.js":{"checkedAt":1794532116423,"integrity":"sha512-rGF4OfTHEsHSfwut/nwE8cMlmQYl9BirJUEvc3HOw9r1KJ86UPTDiLwYbYw01frRWMrYgzBj9upRF4VK4zGO4A==","mode":420,"size":1362},"lib/index.js.map":{"checkedAt":1794532116423,"integrity":"sha512-wR9RF6lWXTU0BPRJ+NLr4DbLQvY2OJlA7rvZRJAXmP9V5lTmGEOC2fa6ueo0hZewAdsNYPbBDOdS8QnvFjPT6A==","mode":420,"size":505},"lib/keyword.js":{"checkedAt":1794532116423,"integrity":"sha512-ctIOkwGPZyHcvXJRusvo+QzhIOACyF05DACq6JcHLKj3Alr3tFFtJZvb96aJVm0KmjRbh0UwOtuOzC34PKfnbg==","mode":420,"size":1577},"lib/keyword.js.map":{"checkedAt":1794532116423,"integrity":"sha512-DEr5QONVeYAVTt4aV4Rw40Yc7eBpIParZvg3sy2OC3GZfBrPbwMXrZgE9IqDJmTnDQwHxZBIUosiJpxMThpjcw==","mode":420,"size":3842},"package.json":{"checkedAt":1794532116424,"integrity":"sha512-gQ3mweob8tBi2p23oKW0kkPQyHcJDKnBB2fWgyjXGvoEu4gS9l/a2HQTuB9WeOzt5bGa3svheqJ4C7suN5sHCA==","mode":420,"size":738}}}
@@ -0,0 +1,3 @@
const visualElementStore = new WeakMap();
export { visualElementStore };
@@ -0,0 +1 @@
{"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AAmBD,MAAM,8CAAU,CAAA,GAAA,YAAI,EAAE,aAAa,CAAsB;AAUlD,SAAS,yCAAc,KAAyB;IACrD,IAAI,YAAC,QAAQ,EAAC,GAAG;IACjB,IAAI,SAAS,CAAA,GAAA,iBAAS,EAAE;IACxB,IAAI,CAAC,YAAY,cAAc,GAAG,CAAA,GAAA,eAAO,EAAE;IAC3C,IAAI,UAAU,CAAA,GAAA,cAAM,EAAE,IAAO,CAAA;oBAC3B;wBACA;YACA;gBACE,cAAc,CAAA,QAAS,QAAQ;gBAC/B,IAAI,QACF,OAAO,QAAQ;YAEnB;YACA;gBACE,cAAc,CAAA,QAAS,QAAQ;gBAC/B,IAAI,QACF,OAAO,WAAW;YAEtB;QACF,CAAA,GAAI;QAAC;QAAQ;KAAW;IAExB,qBACE,gCAAC,8BAAQ,QAAQ;QAAC,OAAO;OACtB;AAGP;AAaO,SAAS;IACd,IAAI,UAAU,CAAA,GAAA,iBAAS,EAAE;IACzB,OAAO;QACL,oBAAoB;YAClB,eAAe,WAAW,QAAQ,UAAU,GAAG,IAAI,OAAO;QAC5D;IACF;AACF;AAEA;;CAEC,GACD,SAAS,0CAAoB,KAAyB;IACpD,IAAI,sBAAC,kBAAkB,EAAC,GAAG;IAC3B,qBAAO,gCAAC;QAAI,0BAAA;QAAwB,GAAG,KAAK;QAAG,GAAG,kBAAkB;;AACtE;AAUO,SAAS,0CAAgB,KAAyB;IACvD,qBACE,gCAAC,8DACC,gCAAC,2CAAwB;AAG/B;AAkBO,SAAS,0CAAiB,KAA4B;IAC3D,IAAI,QAAQ,CAAA,GAAA,eAAO;IACnB,IAAI,mBAAC,kBAAkB,QAAQ,OAAO,SAAS,IAAI,EAAE,GAAG,MAAK,GAAG;IAChE,IAAI,gBAAC,YAAY,EAAC,GAAG,CAAA,GAAA,yCAAsB;IAC3C,IAAI,CAAC,MAAM,eAAe,IAAI,cAC5B,kBAAkB;IAGpB,CAAA,GAAA,YAAI,EAAE,SAAS,CAAC;QACd,IAAI,4BAAA,sCAAA,gBAAiB,OAAO,CAAC,6BAC3B,MAAM,IAAI,MAAM;IAEpB,GAAG;QAAC;KAAgB;IAEpB,IAAI,CAAC,iBACH,OAAO;IAGT,IAAI,yBAAW,gCAAC,2CAAoB;IACpC,qBAAO,CAAA,GAAA,eAAO,EAAE,YAAY,CAAC,UAAU;AACzC;AAsBO,SAAS,0CAAS,OAA0B;IACjD,4EAA4E;IAC5E,IAAI,UAAU,CAAA,GAAA,iBAAS,EAAE;IACzB,IAAI,CAAC,SACH,MAAM,IAAI,MAAM;IAGlB,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,CAAA,oBAAA,8BAAA,QAAS,UAAU,KAAI,CAAC,WAAW,CAAC,QAAQ,MAAM,EACpD;QAGF,+EAA+E;QAC/E,+EAA+E;QAC/E,QAAQ,MAAM,CAAC,QAAQ;QACvB,OAAO;YACL,IAAI,WAAW,QAAQ,MAAM,EAC3B,QAAQ,MAAM,CAAC,WAAW;QAE9B;IACF,GAAG;QAAC;QAAS,QAAQ,MAAM;QAAE,oBAAA,8BAAA,QAAS,UAAU;KAAC;IAEjD,OAAO;QACL,YAAY;YACV,gBAAgB,EAAC,oBAAA,8BAAA,QAAS,UAAU;QACtC;IACF;AACF","sources":["packages/@react-aria/overlays/src/useModal.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMAttributes} from '@react-types/shared';\nimport React, {AriaAttributes, JSX, ReactNode, useContext, useEffect, useMemo, useState} from 'react';\nimport ReactDOM from 'react-dom';\nimport {useIsSSR} from '@react-aria/ssr';\nimport {useUNSAFE_PortalContext} from './PortalProvider';\n\nexport interface ModalProviderProps extends DOMAttributes {\n children: ReactNode\n}\n\ninterface ModalContext {\n parent: ModalContext | null,\n modalCount: number,\n addModal: () => void,\n removeModal: () => void\n}\n\nconst Context = React.createContext<ModalContext | null>(null);\n\n/**\n * Each ModalProvider tracks how many modals are open in its subtree. On mount, the modals\n * trigger `addModal` to increment the count, and trigger `removeModal` on unmount to decrement it.\n * This is done recursively so that all parent providers are incremented and decremented.\n * If the modal count is greater than zero, we add `aria-hidden` to this provider to hide its\n * subtree from screen readers. This is done using React context in order to account for things\n * like portals, which can cause the React tree and the DOM tree to differ significantly in structure.\n */\nexport function ModalProvider(props: ModalProviderProps): JSX.Element {\n let {children} = props;\n let parent = useContext(Context);\n let [modalCount, setModalCount] = useState(0);\n let context = useMemo(() => ({\n parent,\n modalCount,\n addModal() {\n setModalCount(count => count + 1);\n if (parent) {\n parent.addModal();\n }\n },\n removeModal() {\n setModalCount(count => count - 1);\n if (parent) {\n parent.removeModal();\n }\n }\n }), [parent, modalCount]);\n\n return (\n <Context.Provider value={context}>\n {children}\n </Context.Provider>\n );\n}\n\nexport interface ModalProviderAria {\n /**\n * Props to be spread on the container element.\n */\n modalProviderProps: AriaAttributes\n}\n\n/**\n * Used to determine if the tree should be aria-hidden based on how many\n * modals are open.\n */\nexport function useModalProvider(): ModalProviderAria {\n let context = useContext(Context);\n return {\n modalProviderProps: {\n 'aria-hidden': context && context.modalCount > 0 ? true : undefined\n }\n };\n}\n\n/**\n * Creates a root node that will be aria-hidden if there are other modals open.\n */\nfunction OverlayContainerDOM(props: ModalProviderProps) {\n let {modalProviderProps} = useModalProvider();\n return <div data-overlay-container {...propsLine truncated
@@ -0,0 +1,10 @@
'use strict';
var floor = require('./floor');
// https://262.ecma-international.org/5.1/#sec-15.9.1.3
module.exports = function DayFromYear(y) {
return (365 * (y - 1970)) + floor((y - 1969) / 4) - floor((y - 1901) / 100) + floor((y - 1601) / 400);
};
@@ -0,0 +1 @@
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_tg=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"tg",weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),weekStart:1,weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"}};return t.default.locale(d,null,!0),d}));
@@ -0,0 +1,9 @@
var path = require('path');
module.exports = function(npath, ext) {
if (typeof npath !== 'string') return npath;
if (npath.length === 0) return npath;
var nFileName = path.basename(npath, path.extname(npath))+ext;
return path.join(path.dirname(npath), nFileName);
};
@@ -0,0 +1,29 @@
import * as react from 'react';
import * as _heroui_system from '@heroui/system';
import { PropGetter, HTMLHeroUIProps } from '@heroui/system';
import { ScrollShadowVariantProps } from '@heroui/theme';
import { ReactRef } from '@heroui/react-utils';
import { UseDataScrollOverflowProps } from '@heroui/use-data-scroll-overflow';
interface Props extends HTMLHeroUIProps<"div">, Omit<UseDataScrollOverflowProps, "domRef"> {
/**
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLElement | null>;
/**
* The shadow size in pixels.
* @default 40
*/
size?: number;
}
type UseScrollShadowProps = Props & ScrollShadowVariantProps;
declare function useScrollShadow(originalProps: UseScrollShadowProps): {
Component: _heroui_system.As<any>;
styles: string;
domRef: react.RefObject<HTMLElement>;
children: react.ReactNode;
getBaseProps: PropGetter<Record<string, unknown>, _heroui_system.DOMAttributes<_heroui_system.DOMElement>>;
};
type UseScrollShadowReturn = ReturnType<typeof useScrollShadow>;
export { UseScrollShadowProps, UseScrollShadowReturn, useScrollShadow };
@@ -0,0 +1,50 @@
{
"name": "resolve-options",
"version": "1.1.0",
"description": "Resolve an options object based on configuration.",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"contributors": [
"Blaine Bublitz <blaine.bublitz@gmail.com>"
],
"repository": "gulpjs/resolve-options",
"license": "MIT",
"engines": {
"node": ">= 0.10"
},
"main": "index.js",
"files": [
"LICENSE",
"index.js"
],
"scripts": {
"lint": "eslint index.js test/ && jscs index.js test/",
"pretest": "npm run lint",
"test": "mocha --async-only",
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls"
},
"dependencies": {
"value-or-function": "^3.0.0"
},
"devDependencies": {
"eslint": "^1.10.3",
"eslint-config-gulp": "^2.0.0",
"expect": "^1.20.2",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.4.0",
"jscs-preset-gulp": "^1.0.0",
"mocha": "^3.2.0"
},
"keywords": [
"options",
"functions",
"resolver",
"type",
"configuration",
"config",
"opts",
"opt",
"default"
]
}
@@ -0,0 +1,171 @@
/** @typedef {import('postcss-selector-parser').Root} Root */
/** @typedef {import('postcss-selector-parser').Selector} Selector */
/** @typedef {import('postcss-selector-parser').Pseudo} Pseudo */
/** @typedef {import('postcss-selector-parser').Node} Node */
// There are some pseudo-elements that may or may not be:
// **Actionable**
// Zero or more user-action pseudo-classes may be attached to the pseudo-element itself
// structural-pseudo-classes are NOT allowed but we don't make
// The spec is not clear on whether this is allowed or not — but in practice it is.
// **Terminal**
// It MUST be placed at the end of a selector
//
// This is the required in the spec. However, some pseudo elements are not "terminal" because
// they represent a "boundary piercing" that is compiled out by a build step.
// **Jumpable**
// Any terminal element may "jump" over combinators when moving to the end of the selector
//
// This is a backwards-compat quirk of pseudo element variants from earlier versions of Tailwind CSS.
/** @typedef {'terminal' | 'actionable' | 'jumpable'} PseudoProperty */
/** @type {Record<string, PseudoProperty[]>} */
let elementProperties = {
// Pseudo elements from the spec
'::after': ['terminal', 'jumpable'],
'::backdrop': ['terminal', 'jumpable'],
'::before': ['terminal', 'jumpable'],
'::cue': ['terminal'],
'::cue-region': ['terminal'],
'::first-letter': ['terminal', 'jumpable'],
'::first-line': ['terminal', 'jumpable'],
'::grammar-error': ['terminal'],
'::marker': ['terminal', 'jumpable'],
'::part': ['terminal', 'actionable'],
'::placeholder': ['terminal', 'jumpable'],
'::selection': ['terminal', 'jumpable'],
'::slotted': ['terminal'],
'::spelling-error': ['terminal'],
'::target-text': ['terminal'],
// Pseudo elements from the spec with special rules
'::file-selector-button': ['terminal', 'actionable'],
// Library-specific pseudo elements used by component libraries
// These are Shadow DOM-like
'::deep': ['actionable'],
'::v-deep': ['actionable'],
'::ng-deep': ['actionable'],
// Note: As a rule, double colons (::) should be used instead of a single colon
// (:). This distinguishes pseudo-classes from pseudo-elements. However, since
// this distinction was not present in older versions of the W3C spec, most
// browsers support both syntaxes for the original pseudo-elements.
':after': ['terminal', 'jumpable'],
':before': ['terminal', 'jumpable'],
':first-letter': ['terminal', 'jumpable'],
':first-line': ['terminal', 'jumpable'],
':where': [],
':is': [],
':has': [],
// The default value is used when the pseudo-element is not recognized
// Because it's not recognized, we don't know if it's terminal or not
// So we assume it can be moved AND can have user-action pseudo classes attached to it
__default__: ['terminal', 'actionable'],
}
/**
* @param {Selector} sel
* @returns {Selector}
*/
export function movePseudos(sel) {
let [pseudos] = movablePseudos(sel)
// Remove all pseudo elements from their respective selectors
pseudos.forEach(([sel, pseudo]) => sel.removeChild(pseudo))
// Re-add them to the end of the selector in the correct order.
// This moves terminal pseudo elements to the end of the
// selector otherwise the selector will not be valid.
//
// Examples:
// - `before:hover:text-center` would result in `.before\:hover\:text-center:hover::before`
// - `hover:before:text-center` would result in `.hover\:before\:text-center:hover::before`
//
// The selector `::before:hover` does not work but we
// can make it work for you by flipping the order.
sel.nodes.push(...pseudos.map(([, pseudo]) => pseudo))
return sel
}
/** @typedef {[sel: Selector, pseudo: Pseudo, attachedTo: Pseudo | null]} MovablePseudo */
/** @typedef {[pseudos: MovablePseudo[], lastSeenElement: Pseudo | null]} MovablePseudosResult */
/**
* @param {Selector} sel
* @returns {MovablePseudosResult}
*/
function movablePseudos(sel) {
/** @type {MovablePseudo[]} */
let buffer = []
/** @type {Pseudo | null} */
let lastSeenElement = null
for (let node of sel.nodes) {
if (node.type === 'combinator') {
buffer = buffer.filter(([, node]) => propertiesForPseudo(node).includes('jumpable'))
lastSeenElement = null
} else if (node.type === 'pseudo') {
if (isMovablePseudoElement(node)) {
lastSeenElement = node
buffer.push([sel, node, null])
} else if (lastSeenElement && isAttachablePseudoClass(node, lastSeenElement)) {
buffer.push([sel, node, lastSeenElement])
} else {
lastSeenElement = null
}
for (let sub of node.nodes ?? []) {
let [movable, lastSeenElementInSub] = movablePseudos(sub)
lastSeenElement = lastSeenElementInSub || lastSeenElement
buffer.push(...movable)
}
}
}
return [buffer, lastSeenElement]
}
/**
* @param {Node} node
* @returns {boolean}
*/
function isPseudoElement(node) {
return node.value.startsWith('::') || elementProperties[node.value] !== undefined
}
/**
* @param {Node} node
* @returns {boolean}
*/
function isMovablePseudoElement(node) {
return isPseudoElement(node) && propertiesForPseudo(node).includes('terminal')
}
/**
* @param {Node} node
* @param {Pseudo} pseudo
* @returns {boolean}
*/
function isAttachablePseudoClass(node, pseudo) {
if (node.type !== 'pseudo') return false
if (isPseudoElement(node)) return false
return propertiesForPseudo(pseudo).includes('actionable')
}
/**
* @param {Pseudo} pseudo
* @returns {PseudoProperty[]}
*/
function propertiesForPseudo(pseudo) {
return elementProperties[pseudo.value] ?? elementProperties.__default__
}
@@ -0,0 +1 @@
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bn=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),n={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},d={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},o={name:"bn",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return d[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return n[e]}))},ordinal:function(e){return e},formats:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return t.default.locale(o,null,!0),o}));
@@ -0,0 +1,42 @@
var Stack = require('./_Stack'),
assignMergeValue = require('./_assignMergeValue'),
baseFor = require('./_baseFor'),
baseMergeDeep = require('./_baseMergeDeep'),
isObject = require('./isObject'),
keysIn = require('./keysIn'),
safeGet = require('./_safeGet');
/**
* The base implementation of `_.merge` without support for multiple sources.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
baseFor(source, function(srcValue, key) {
stack || (stack = new Stack);
if (isObject(srcValue)) {
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
var newValue = customizer
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
: undefined;
if (newValue === undefined) {
newValue = srcValue;
}
assignMergeValue(object, key, newValue);
}
}, keysIn);
}
module.exports = baseMerge;
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAcxC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,KAAa,EACb,QAAmB;IAEnB,IAAI,WAAW,GAAuB,IAAI,CAAC;IAE3C,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,WAAW,GAAG,OAAO,QAAQ,KAAK,UAAU,CAAC;IAEnD,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;QACnC,IAAI,WAAW,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;YACvC,OAAO;QACT,CAAC;QAED,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;QAExC,IAAI,WAAW,EAAE,CAAC;YAChB,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;QACzC,CAAC;aAAM,IAAI,KAAK,EAAE,CAAC;YACjB,WAAW,GAAG,WAAW,IAAI,EAAE,CAAC;YAChC,WAAW,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;QAChC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -0,0 +1 @@
{"version":3,"names":["_OverloadYield","require","_awaitAsyncGenerator","value","OverloadYield"],"sources":["../../src/helpers/awaitAsyncGenerator.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport OverloadYield from \"./OverloadYield.ts\";\n\nexport default function _awaitAsyncGenerator<T>(value: T) {\n return new OverloadYield<T>(value, /* kind: await */ 0);\n}\n"],"mappings":";;;;;;AAEA,IAAAA,cAAA,GAAAC,OAAA;AAEe,SAASC,oBAAoBA,CAAIC,KAAQ,EAAE;EACxD,OAAO,IAAIC,sBAAa,CAAID,KAAK,EAAoB,CAAC,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1,24 @@
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.kotH7DY7.js';
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.op2Re5rn.js';
import 'node:fs';
import 'node:fs/promises';
import 'pathe';
import 'node:perf_hooks';
import '@vitest/runner/utils';
import '@vitest/utils/helpers';
import '@vitest/utils/source-map';
import 'tinyrainbow';
import './chunks/env.D4Lgay0q.js';
import 'std-env';
import 'node:util';
import 'node:console';
import 'node:stream';
import '@vitest/utils/display';
import 'node:os';
import 'tinyexec';
import './path.js';
import 'node:path';
import 'node:url';
import 'vite';
import '@vitest/utils/offset';
import 'node:module';
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AASD,SAAS,gCAAU,IAAW;IAC5B,IAAI,WAAqB,OAAO,IAAI,CAAC,EAAE,KAAK,WACxC,KAAK,KAAK,KACV,IAAI,CAAA,GAAA,2CAAgB;IAExB,IAAI;IACJ,IAAI,OAAO,IAAI,CAAC,EAAE,KAAK,UACrB,MAAM,KAAK,KAAK;SACX;QACL,IAAI,OAAO,SAAS,OAAO;QAC3B,MAAM,IAAI,CAAC,KAAK,MAAM,GAAG,EAAE;IAC7B;IAEA,IAAI,OAAO,KAAK,KAAK;IACrB,IAAI,QAAQ,KAAK,KAAK;IACtB,IAAI,MAAM,KAAK,KAAK;IAEpB,OAAO;QAAC;QAAU;QAAK;QAAM;QAAO;KAAI;AAC1C;IAIE,oFAAoF;AACpF,2FAA2F;AAC3F,0EAA0E;AAC1E,aAAa;AACb;AALK,MAAM;IAoCX,iCAAiC,GACjC,OAAqB;QACnB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAa,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG;aAEhF,OAAO,IAAI,0CAAa,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG;IAE1E;IAEA,sEAAsE,GACtE,IAAI,QAAsB,EAAgB;QACxC,OAAO,CAAA,GAAA,6BAAE,EAAE,IAAI,EAAE;IACnB;IAEA,6EAA6E,GAC7E,SAAS,QAAsB,EAAgB;QAC7C,OAAO,CAAA,GAAA,kCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,iIAAiI,GACjI,IAAI,MAAkB,EAAgB;QACpC,OAAO,CAAA,GAAA,6BAAE,EAAE,IAAI,EAAE;IACnB;IAEA;;;GAGC,GACD,MAAM,KAAgB,EAAE,MAAc,EAAE,OAAsB,EAAgB;QAC5E,OAAO,CAAA,GAAA,mCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;IACxC;IAEA,gHAAgH,GAChH,OAAO,QAAgB,EAAQ;QAC7B,OAAO,CAAA,GAAA,gCAAK,EAAE,IAAI,EAAE;IACtB;IAEA,uDAAuD,GACvD,WAAmB;QACjB,OAAO,CAAA,GAAA,sCAAW,EAAE,IAAI;IAC1B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAkB,EAAU;QAClC,OAAO,CAAA,GAAA,qCAAU,EAAE,IAAI,EAAE;IAC3B;IAxDA,YAAY,GAAG,IAAW,CAAE;QApB5B,8DAAA;;mBAAA,KAAA;;QAqBE,IAAI,CAAC,UAAU,KAAK,MAAM,OAAO,IAAI,GAAG,gCAAU;QAClD,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,GAAG,GAAG;QAEX,CAAA,GAAA,mCAAQ,EAAE,IAAI;IAChB;AAgDF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IA0BX,iCAAiC,GACjC,OAAa;QACX,OAAO,IAAI,yCAAK,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IACvE;IAEA,8DAA8D,GAC9D,IAAI,QAAsB,EAAE;QAC1B,OAAO,CAAA,GAAA,iCAAM,EAAE,IAAI,EAAE;IACvB;IAEA,qEAAqE,GACrE,SAAS,QAAsB,EAAE;QAC/B,OAAO,CAAA,GAAA,sCAAW,EAAE,IAAI,EAAE;IAC5B;IAEA,yHAAyH,GACzH,IAAI,MAAkB,EAAE;QACtB,OAAO,CAAA,GAAA,iCAAM,EAAE,IAAI,EAAE;IACvB;IAEA;;;GAGC,GACD,MAAM,KAAgB,EAAE,MAAc,EAAE,OAA0B,EAAE;QAClE,OAAO,CAAA,GAAA,mCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;IACxC;IAEA,uDAAuD,GACvD,WAAW;QACT,OAAO,CAAA,GAAA,sCAAW,EAAE,IAAI;IAC1B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAU,EAAE;QAClB,OAAO,CAAA,GAAA,qCAAU,EAAE,IAAI,EAAE;IAC3B;IAjDA,YACE,OAAe,CAAC,EAChB,SAAiB,CAAC,EAClB,SAAiB,CAAC,EAClB,cAAsB,CAAC,CACvB;QAfF,8DAAA;;mBAAA,KAAA;;QAgBE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,MAAM,GAAG;QACd,IAAI,CAAC,MAAM,GAAG;QACd,IAAI,CAAC,WAAW,GAAG;QACnB,CAAA,GAAA,uCAAY,EAAE,IAAI;IACpB;AAuCF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IA8CX,iCAAiC,GACjC,OAAyB;QACvB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAiB,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;aAE3I,OAAO,IAAI,0CAAiB,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IAErI;IAEA,0EAA0E,GAC1E,IAAI,QAA0B,EAAoB;QAChD,OAAO,CAAA,GAAA,6BAAE,EAAE,IAAI,EAAE;IACnB;IAEA,iFAAiF,GACjF,SAAS,QAA0B,EAAoB;QACrD,OAAO,CAAA,GAAA,kCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,qIAAqI,GACrI,IAAI,MAA+B,EAAoB;QACrD,OAAO,CAAA,GAAA,6BAAE,EAAE,CAAA,GAAA,iCAAM,EAAE,IAAI,EAAE,SAAS;IACpC;IAEA;;;GAGC,GACD,MAAM,KAA4B,EAAE,MAAc,EAAE,OAA0B,EAAoB;QAChG,OAAQ;YACN,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;gBACH,OAAO,CAAA,GAAA,mCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;YACxC;gBACE,OAAO,CAAA,GAAA,mCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;QAC1C;IACF;IAEA,iFAAiF,GACjF,OAAO,QAAgB,EAAE,cAA+B,EAAQ;QAC9D,OAAO,CAAA,GAAA,gCAAK,EAAE,IAAI,EAAE,UAAU;IAChC;IAEA,uDAAuD,GACvD,WAAmB;QACjB,OAAO,CAAA,GAAA,0CAAe,EAAE,IAAI;IAC9B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAkD,EAAU;QAClE,IAAI,MAAM,CAAA,GAAA,qCAAU,EAAE,IAAI,EAAE;QAC5B,IAAI,QAAQ,GACV,OAAO,CAAA,GAAA,qCAAU,EAAE,IAAI,EAAE,CAAA,GAAA,4CAAiB,EAAE;QAG9C,OAAO;IACT;IAzEA,YAAY,GAAG,IAAW,CAAE;QA5B5B,8DAAA;;mBAAA,KAAA;;QA6BE,IAAI,CAAC,UAAU,KAAK,MAAM,OAAO,IAAI,GAAG,gCAAU;QAClD,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG,KAAK,KAAK,MAAM;QAC5B,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,MAAM;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,MAAM;QAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,KAAK,MAAM;QAEnC,CAAA,GAAA,mCAAQ,EAAE,IAAI;IAChB;AA6DF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IAsDX,iCAAiC,GACjC,OAAsB;QACpB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAc,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;aAEpK,OAAO,IAAI,0CAAc,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IAE9J;IAEA,uEAAuE,GACvE,IAAI,QAA0B,EAAE;QAC9B,OAAO,CAAA,GAAA,kCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,8EAA8E,GAC9E,SAAS,QAA0B,EAAE;QACnC,OAAO,CAAA,GAAA,uCAAY,EAAE,IAAI,EAAELine truncated
@@ -0,0 +1,205 @@
/**
* negotiator
* Copyright(c) 2012 Isaac Z. Schlueter
* Copyright(c) 2014 Federico Romero
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict';
/**
* Module exports.
* @public
*/
module.exports = preferredEncodings;
module.exports.preferredEncodings = preferredEncodings;
/**
* Module variables.
* @private
*/
var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
/**
* Parse the Accept-Encoding header.
* @private
*/
function parseAcceptEncoding(accept) {
var accepts = accept.split(',');
var hasIdentity = false;
var minQuality = 1;
for (var i = 0, j = 0; i < accepts.length; i++) {
var encoding = parseEncoding(accepts[i].trim(), i);
if (encoding) {
accepts[j++] = encoding;
hasIdentity = hasIdentity || specify('identity', encoding);
minQuality = Math.min(minQuality, encoding.q || 1);
}
}
if (!hasIdentity) {
/*
* If identity doesn't explicitly appear in the accept-encoding header,
* it's added to the list of acceptable encoding with the lowest q
*/
accepts[j++] = {
encoding: 'identity',
q: minQuality,
i: i
};
}
// trim accepts
accepts.length = j;
return accepts;
}
/**
* Parse an encoding from the Accept-Encoding header.
* @private
*/
function parseEncoding(str, i) {
var match = simpleEncodingRegExp.exec(str);
if (!match) return null;
var encoding = match[1];
var q = 1;
if (match[2]) {
var params = match[2].split(';');
for (var j = 0; j < params.length; j++) {
var p = params[j].trim().split('=');
if (p[0] === 'q') {
q = parseFloat(p[1]);
break;
}
}
}
return {
encoding: encoding,
q: q,
i: i
};
}
/**
* Get the priority of an encoding.
* @private
*/
function getEncodingPriority(encoding, accepted, index) {
var priority = {encoding: encoding, o: -1, q: 0, s: 0};
for (var i = 0; i < accepted.length; i++) {
var spec = specify(encoding, accepted[i], index);
if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
priority = spec;
}
}
return priority;
}
/**
* Get the specificity of the encoding.
* @private
*/
function specify(encoding, spec, index) {
var s = 0;
if(spec.encoding.toLowerCase() === encoding.toLowerCase()){
s |= 1;
} else if (spec.encoding !== '*' ) {
return null
}
return {
encoding: encoding,
i: index,
o: spec.i,
q: spec.q,
s: s
}
};
/**
* Get the preferred encodings from an Accept-Encoding header.
* @public
*/
function preferredEncodings(accept, provided, preferred) {
var accepts = parseAcceptEncoding(accept || '');
var comparator = preferred ? function comparator (a, b) {
if (a.q !== b.q) {
return b.q - a.q // higher quality first
}
var aPreferred = preferred.indexOf(a.encoding)
var bPreferred = preferred.indexOf(b.encoding)
if (aPreferred === -1 && bPreferred === -1) {
// consider the original specifity/order
return (b.s - a.s) || (a.o - b.o) || (a.i - b.i)
}
if (aPreferred !== -1 && bPreferred !== -1) {
return aPreferred - bPreferred // consider the preferred order
}
return aPreferred === -1 ? 1 : -1 // preferred first
} : compareSpecs;
if (!provided) {
// sorted list of all encodings
return accepts
.filter(isQuality)
.sort(comparator)
.map(getFullEncoding);
}
var priorities = provided.map(function getPriority(type, index) {
return getEncodingPriority(type, accepts, index);
});
// sorted list of accepted encodings
return priorities.filter(isQuality).sort(comparator).map(function getEncoding(priority) {
return provided[priorities.indexOf(priority)];
});
}
/**
* Compare two specs.
* @private
*/
function compareSpecs(a, b) {
return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i);
}
/**
* Get full encoding string.
* @private
*/
function getFullEncoding(spec) {
return spec.encoding;
}
/**
* Check if a spec has any quality.
* @private
*/
function isQuality(spec) {
return spec.q > 0;
}
@@ -0,0 +1,8 @@
# `@peculiar/asn1-rsa`
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/asn1-schema/master/packages/rsa/LICENSE.md)
[![npm version](https://badge.fury.io/js/%40peculiar%2Fasn1-rsa.svg)](https://badge.fury.io/js/%40peculiar%2Fasn1-rsa)
[![NPM](https://nodei.co/npm/@peculiar/asn1-rsa.png)](https://nodei.co/npm/@peculiar/asn1-rsa/)
[RFC 8017](https://tools.ietf.org/html/rfc8017) RSA Cryptography Specifications Version 2.2
@@ -0,0 +1,10 @@
"use client";
// src/base/accordion-item-base.tsx
import { BaseItem } from "@heroui/aria-utils";
var AccordionItemBase = BaseItem;
var accordion_item_base_default = AccordionItemBase;
export {
accordion_item_base_default
};
@@ -0,0 +1,13 @@
/**
* Determines the type of the given collection, or returns false.
*
* @param {unknown} value The potential collection
* @returns {'Map' | 'Set' | 'WeakMap' | 'WeakSet' | false} 'Map' | 'Set' | 'WeakMap' | 'WeakSet' | false
*/
declare function whichCollection<K, V>(value: Map<K, V>): 'Map';
declare function whichCollection<T>(value: Set<T>): 'Set';
declare function whichCollection<K extends WeakKey, V>(value: WeakMap<K, V>): 'WeakMap';
declare function whichCollection<T extends WeakKey>(value: WeakSet<T>): 'WeakSet';
declare function whichCollection(value: null | undefined | boolean | number | bigint | symbol | unknown): false;
export = whichCollection;
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 0C 1C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB","132":"nB oB pB qB rB sB tB"},E:{"1":"F A B C L M G 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E 2C ZC 3C 4C 5C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FD GD HD ID NC uC JD OC","132":"FB bB cB dB eB fB gB"},G:{"1":"PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD","2":"J"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:6,C:"ES6 classes",D:true};
@@ -0,0 +1,55 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/bold/send.tsx
var send_exports = {};
__export(send_exports, {
SendFilledIcon: () => SendFilledIcon
});
module.exports = __toCommonJS(send_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var SendFilledIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
"svg",
{
"aria-hidden": "true",
fill: "none",
focusable: "false",
height: "1em",
role: "presentation",
viewBox: "0 0 24 24",
width: "1em",
...props,
children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { clipPath: "url(#clip0_2703_16)", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
clipRule: "evenodd",
d: "M15.9518 16.8594L11.0969 19.2869C7.67397 20.9984 5.96247 21.8541 4.97025 21.5914C4.02634 21.3415 3.28914 20.6043 3.03925 19.6604C2.77657 18.6682 3.63232 16.9567 5.34381 13.5337C5.61861 12.9841 5.75602 12.7093 5.81297 12.4217C5.86816 12.143 5.86816 11.8561 5.81297 11.5774C5.75602 11.2898 5.61862 11.015 5.34381 10.4654C3.63232 7.0424 2.77657 5.3309 3.03925 4.33869C3.28914 3.39478 4.02635 2.65757 4.97025 2.40768C5.96247 2.145 7.67396 3.00075 11.097 4.71225L15.9518 7.13967C20.1929 9.26023 22.3135 10.3205 22.3135 11.9996C22.3135 13.6786 20.1929 14.7389 15.9518 16.8594ZM10.5157 11.9627C10.518 11.5485 10.8556 11.2146 11.2698 11.2169L17.1916 11.2497C17.6058 11.252 17.9397 11.5896 17.9374 12.0038C17.9351 12.418 17.5975 12.7519 17.1833 12.7497L11.2615 12.7168C10.8473 12.7145 10.5134 12.3769 10.5157 11.9627Z",
fill: "currentColor",
fillRule: "evenodd"
}
) }),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: "clip0_2703_16", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { fill: "white", height: "24", width: "24" }) }) })
]
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
SendFilledIcon
});
@@ -0,0 +1,13 @@
declare const _default: {
settings: {
'import-x/extensions': (".js" | ".mjs" | ".cjs" | ".jsx")[];
};
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true;
};
};
};
};
export default _default;
@@ -0,0 +1,149 @@
{
"id": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Core schema meta-schema",
"definitions": {
"schemaArray": {
"type": "array",
"minItems": 1,
"items": { "$ref": "#" }
},
"positiveInteger": {
"type": "integer",
"minimum": 0
},
"positiveIntegerDefault0": {
"allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
},
"simpleTypes": {
"enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
},
"stringArray": {
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"uniqueItems": true
}
},
"type": "object",
"properties": {
"id": {
"type": "string"
},
"$schema": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"default": {},
"multipleOf": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": true
},
"maximum": {
"type": "number"
},
"exclusiveMaximum": {
"type": "boolean",
"default": false
},
"minimum": {
"type": "number"
},
"exclusiveMinimum": {
"type": "boolean",
"default": false
},
"maxLength": { "$ref": "#/definitions/positiveInteger" },
"minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
"pattern": {
"type": "string",
"format": "regex"
},
"additionalItems": {
"anyOf": [
{ "type": "boolean" },
{ "$ref": "#" }
],
"default": {}
},
"items": {
"anyOf": [
{ "$ref": "#" },
{ "$ref": "#/definitions/schemaArray" }
],
"default": {}
},
"maxItems": { "$ref": "#/definitions/positiveInteger" },
"minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
"uniqueItems": {
"type": "boolean",
"default": false
},
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
"required": { "$ref": "#/definitions/stringArray" },
"additionalProperties": {
"anyOf": [
{ "type": "boolean" },
{ "$ref": "#" }
],
"default": {}
},
"definitions": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"properties": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"patternProperties": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"dependencies": {
"type": "object",
"additionalProperties": {
"anyOf": [
{ "$ref": "#" },
{ "$ref": "#/definitions/stringArray" }
]
}
},
"enum": {
"type": "array",
"minItems": 1,
"uniqueItems": true
},
"type": {
"anyOf": [
{ "$ref": "#/definitions/simpleTypes" },
{
"type": "array",
"items": { "$ref": "#/definitions/simpleTypes" },
"minItems": 1,
"uniqueItems": true
}
]
},
"format": { "type": "string" },
"allOf": { "$ref": "#/definitions/schemaArray" },
"anyOf": { "$ref": "#/definitions/schemaArray" },
"oneOf": { "$ref": "#/definitions/schemaArray" },
"not": { "$ref": "#" }
},
"dependencies": {
"exclusiveMaximum": [ "maximum" ],
"exclusiveMinimum": [ "minimum" ]
},
"default": {}
}
@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _table = _interopRequireDefault(require("./table"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @file fpgm 表
* @author mengke01(kekee000@gmail.com)
*
* reference: https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6fpgm.html
*/
var _default = exports.default = _table.default.create('fpgm', [], {
read: function read(reader, ttf) {
var length = ttf.tables.fpgm.length;
return reader.readBytes(this.offset, length);
},
write: function write(writer, ttf) {
if (ttf.fpgm) {
writer.writeBytes(ttf.fpgm, ttf.fpgm.length);
}
},
size: function size(ttf) {
return ttf.fpgm ? ttf.fpgm.length : 0;
}
});
@@ -0,0 +1,24 @@
'use strict';
var $isFinite = require('math-intrinsics/isFinite');
var timeConstants = require('../helpers/timeConstants');
var msPerSecond = timeConstants.msPerSecond;
var msPerMinute = timeConstants.msPerMinute;
var msPerHour = timeConstants.msPerHour;
var ToInteger = require('./ToInteger');
// https://262.ecma-international.org/5.1/#sec-15.9.1.11
module.exports = function MakeTime(hour, min, sec, ms) {
if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) {
return NaN;
}
var h = ToInteger(hour);
var m = ToInteger(min);
var s = ToInteger(sec);
var milli = ToInteger(ms);
var t = (h * msPerHour) + (m * msPerMinute) + (s * msPerSecond) + milli;
return t;
};
@@ -0,0 +1,58 @@
# jsx-a11y/mouse-events-have-key-events
💼 This rule is enabled in the following configs: ☑️ `recommended`, 🔒 `strict`.
<!-- end auto-generated rule header -->
Enforce onmouseover/onmouseout are accompanied by onfocus/onblur. Coding for the keyboard is important for users with physical disabilities who cannot use a mouse, AT compatibility, and screen reader users.
## Rule options
By default, this rule checks that `onmouseover` is paired with `onfocus` and that `onmouseout` is paired with `onblur`. This rule takes an optional argument to specify other handlers to check for "hover in" and/or "hover out" events:
```json
{
"rules": {
"jsx-a11y/mouse-events-have-key-events": [
"error",
{
"hoverInHandlers": [
"onMouseOver",
"onMouseEnter",
"onPointerOver",
"onPointerEnter"
],
"hoverOutHandlers": [
"onMouseOut",
"onMouseLeave",
"onPointerOut",
"onPointerLeave"
]
}
]
}
}
```
Note that while `onmouseover` and `onmouseout` are checked by default if no arguments are passed in, those are *not* included by default if you *do* provide an argument, so remember to explicitly include them if you want to check them.
### Succeed
```jsx
<div onMouseOver={ () => void 0 } onFocus={ () => void 0 } />
<div onMouseOut={ () => void 0 } onBlur={ () => void 0 } />
<div onMouseOver={ () => void 0 } onFocus={ () => void 0 } {...otherProps} />
<div onMouseOut={ () => void 0 } onBlur={ () => void 0 } {...otherProps} />
```
### Fail
In example 3 and 4 below, even if otherProps contains onBlur and/or onFocus, this rule will still fail. Props should be passed down explicitly for rule to pass.
```jsx
<div onMouseOver={ () => void 0 } />
<div onMouseOut={ () => void 0 } />
<div onMouseOver={ () => void 0 } {...otherProps} />
<div onMouseOut={ () => void 0 } {...otherProps} />
```
## Accessibility guidelines
- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard)
@@ -0,0 +1,21 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $RegExp = GetIntrinsic('%RegExp%');
// var RegExpAlloc = require('./RegExpAlloc');
// var RegExpInitialize = require('./RegExpInitialize');
var ToString = require('./ToString');
// https://262.ecma-international.org/6.0/#sec-regexpcreate
module.exports = function RegExpCreate(P, F) {
// var obj = RegExpAlloc($RegExp);
// return RegExpInitialize(obj, P, F);
// covers spec mechanics; bypass regex brand checking
var pattern = typeof P === 'undefined' ? '' : ToString(P);
var flags = typeof F === 'undefined' ? '' : ToString(F);
return new $RegExp(pattern, flags);
};
@@ -0,0 +1,76 @@
/**
* Type of jitter to apply to the delay.
* - `"none"`: no jitter is applied
* - `"full"`: full jitter is applied (random value between `0` and `delay`)
*/
export type JitterType = "none" | "full";
export type BackoffOptions = Partial<IBackOffOptions>;
export interface IBackOffOptions {
/**
* Decides whether the `startingDelay` should be applied before the first call.
* If `false`, the first call will occur without a delay.
* @defaultValue `false`
*/
delayFirstAttempt: boolean;
/**
* Decides whether a [jitter](https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/)
* should be applied to the delay. Possible values are `"full"` and `"none"`.
* @defaultValue `"none"`
*/
jitter: JitterType;
/**
* The maximum delay, in milliseconds, between two consecutive attempts.
* @defaultValue `Infinity`
*/
maxDelay: number;
/**
* The maximum number of times to attempt the function.
* Must be at least `1`.
* @defaultValue `10`
*/
numOfAttempts: number;
/**
* The `retry` function can be used to run logic after every failed attempt (e.g. logging a message,
* assessing the last error, etc.).
* It is called with the last error and the upcoming attempt number.
* Returning `true` will retry the function as long as the `numOfAttempts` has not been exceeded.
* Returning `false` will end the execution.
* @defaultValue a function that always returns `true`.
* @param e The last error thrown by the function.
* @param attemptNumber The upcoming attempt number.
* @returns `true` to retry the function, `false` to end the execution
*/
retry: (e: any, attemptNumber: number) => boolean | Promise<boolean>;
/**
* The delay, in milliseconds, before executing the function for the first time.
* @defaultValue `100`
*/
startingDelay: number;
/**
* The `startingDelay` is multiplied by the `timeMultiple` to increase the delay between reattempts.
* @defaultValue `2`
*/
timeMultiple: number;
}
const defaultOptions: IBackOffOptions = {
delayFirstAttempt: false,
jitter: "none",
maxDelay: Infinity,
numOfAttempts: 10,
retry: () => true,
startingDelay: 100,
timeMultiple: 2
};
export function getSanitizedOptions(options: BackoffOptions) {
const sanitized: IBackOffOptions = { ...defaultOptions, ...options };
if (sanitized.numOfAttempts < 1) {
sanitized.numOfAttempts = 1;
}
return sanitized;
}
@@ -0,0 +1,3 @@
export declare abstract class AsnArray<T> extends Array<T> {
constructor(items?: T[]);
}
@@ -0,0 +1 @@
module.exports={C:{_:"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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"135":1.85,"138":0.615,"140":3.085,"141":14.815,_:"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 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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 137 139 142 143 144 145"},F:{_:"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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":3.085,"131":0.615,"139":0.615,"140":3.705,"141":14.815,_:"12 14 15 16 17 18 79 80 81 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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 134 135 136 137 138 142"},E:{_:"0 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 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00025,"5.0-5.1":0,"6.0-6.1":0.001,"7.0-7.1":0.00075,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00225,"10.0-10.2":0.00025,"10.3":0.00425,"11.0-11.2":0.063,"11.3-11.4":0.0015,"12.0-12.1":0.0005,"12.2-12.5":0.01225,"13.0-13.1":0,"13.2":0.00125,"13.3":0.0005,"13.4-13.7":0.002,"14.0-14.4":0.00425,"14.5-14.8":0.0045,"15.0-15.1":0.00425,"15.2-15.3":0.00325,"15.4":0.00375,"15.5":0.00425,"15.6-15.8":0.0555,"16.0":0.0075,"16.1":0.014,"16.2":0.00725,"16.3":0.013,"16.4":0.00325,"16.5":0.00575,"16.6-16.7":0.07425,"17.0":0.00525,"17.1":0.008,"17.2":0.00575,"17.3":0.0085,"17.4":0.015,"17.5":0.02575,"17.6-17.7":0.065,"18.0":0.01475,"18.1":0.0305,"18.2":0.0165,"18.3":0.053,"18.4":0.02725,"18.5-18.6":1.3895,"26.0":0.17175,"26.1":0.00625},P:{"28":1.875,_:"4 20 21 22 23 24 25 26 27 29 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,"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},K:{"0":2.5,_:"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"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":49.915}};
@@ -0,0 +1,24 @@
/*! *****************************************************************************
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,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;AAmBD,0GAA0G;AAC1G,4HAA4H;AAC5H,IAAI,8BAAe;AACnB,IAAI,wCAAkB;AACtB,IAAI,2CAAqB,IAAI;AAEtB,SAAS,0CAAqB,MAAgB;IACnD,IAAI,CAAA,GAAA,2BAAI,KAAK;QACX,IAAI,gCAAU,WAAW;YAEvB,MAAM,iBAAiB,CAAA,GAAA,sCAAe,EAAE;YACxC,wCAAkB,eAAe,eAAe,CAAC,KAAK,CAAC,gBAAgB;YACvE,eAAe,eAAe,CAAC,KAAK,CAAC,gBAAgB,GAAG;QAC1D;QAEA,8BAAQ;IACV,OAAO,IAAI,kBAAkB,eAAe,kBAAkB,YAAY;QACxE,sFAAsF;QACtF,kDAAkD;QAClD,IAAI,WAAW,gBAAgB,OAAO,KAAK,GAAG,eAAe;QAC7D,yCAAmB,GAAG,CAAC,QAAQ,OAAO,KAAK,CAAC,SAAS;QACrD,OAAO,KAAK,CAAC,SAAS,GAAG;IAC3B;AACF;AAEO,SAAS,0CAAqB,MAAgB;IACnD,IAAI,CAAA,GAAA,2BAAI,KAAK;QACX,0DAA0D;QAC1D,sEAAsE;QACtE,IAAI,gCAAU,YACZ;QAGF,8BAAQ;QAER,uEAAuE;QACvE,+DAA+D;QAC/D,WAAW;YACT,uEAAuE;YACvE,oEAAoE;YACpE,CAAA,GAAA,wCAAiB,EAAE;gBACjB,wBAAwB;gBACxB,IAAI,gCAAU,aAAa;oBAEzB,MAAM,iBAAiB,CAAA,GAAA,sCAAe,EAAE;oBACxC,IAAI,eAAe,eAAe,CAAC,KAAK,CAAC,gBAAgB,KAAK,QAC5D,eAAe,eAAe,CAAC,KAAK,CAAC,gBAAgB,GAAG,yCAAmB;oBAG7E,wCAAkB;oBAClB,8BAAQ;gBACV;YACF;QACF,GAAG;IACL,OAAO,IAAI,kBAAkB,eAAe,kBAAkB,YAC5D,+DAA+D;IAC/D,kDAAkD;IAClD;QAAA,IAAI,UAAU,yCAAmB,GAAG,CAAC,SAAS;YAC5C,IAAI,sBAAsB,yCAAmB,GAAG,CAAC;YACjD,IAAI,WAAW,gBAAgB,OAAO,KAAK,GAAG,eAAe;YAE7D,IAAI,OAAO,KAAK,CAAC,SAAS,KAAK,QAC7B,OAAO,KAAK,CAAC,SAAS,GAAG;YAG3B,IAAI,OAAO,YAAY,CAAC,aAAa,IACnC,OAAO,eAAe,CAAC;YAEzB,yCAAmB,MAAM,CAAC;QAC5B;IAAA;AAEJ","sources":["packages/@react-aria/interactions/src/textSelection.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {getOwnerDocument, isIOS, runAfterTransition} from '@react-aria/utils';\n\n// Safari on iOS starts selecting text on long press. The only way to avoid this, it seems,\n// is to add user-select: none to the entire page. Adding it to the pressable element prevents\n// that element from being selected, but nearby elements may still receive selection. We add\n// user-select: none on touch start, and remove it again on touch end to prevent this.\n// This must be implemented using global state to avoid race conditions between multiple elements.\n\n// There are three possible states due to the delay before removing user-select: none after\n// pointer up. The 'default' state always transitions to the 'disabled' state, which transitions\n// to 'restoring'. The 'restoring' state can either transition back to 'disabled' or 'default'.\n\n// For non-iOS devices, we apply user-select: none to the pressed element instead to avoid possible\n// performance issues that arise from applying and removing user-select: none to the entire page\n// (see https://github.com/adobe/react-spectrum/issues/1609).\ntype State = 'default' | 'disabled' | 'restoring';\n\n// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element\n// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually\nlet state: State = 'default';\nlet savedUserSelect = '';\nlet modifiedElementMap = new WeakMap<Element, string>();\n\nexport function disableTextSelection(target?: Element): void {\n if (isIOS()) {\n if (state === 'default') {\n\n const documentObject = getOwnerDocument(target);\n savedUserSelect = documentObject.documentElement.style.webkitUserSelect;\n documentObject.documentElement.style.webkitUserSelect = 'none';\n }\n\n state = 'disabled';\n } else if (target instanceof HTMLElement || target instanceof SVGElement) {\n // If not iOS, store the target's original user-select and change to user-select: none\n // Ignore state since it doesn't apply for non iOS\n let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';\n modifiedElementMap.set(target, target.style[property]);\n target.style[property] = 'none';\n }\n}\n\nexport function restoreTextSelection(target?: Element): void {\n if (isIOS()) {\n // If the state is already default, there's nothing to do.\n // If it is restoring, then there's no need to queue a second restore.\n if (state !== 'disabled') {\n return;\n }\n\n state = 'restoring';\n\n // There appears to be a delay on iOS where selection still might occur\n // after pointer up, so wait a bit before removing user-select.\n setTimeout(() => {\n // Wait for any CSS transitions to complete so we don't recompute style\n // for the whole page in the middle of the animation and cause jank.\n runAfterTransition(() => {\n Line truncated
@@ -0,0 +1 @@
{"name":"@lezer/highlight","version":"1.2.3","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532103747,"integrity":"sha512-gvt9sHbEYJ9eND2/ECfBm5PbMpRZRxl8cNXkbvjuuAZAMxSM7d3D/lkcco8BBIs1SvmGpWAsNIFW2sxifiq1yw==","mode":420,"size":1113},"dist/index.cjs":{"checkedAt":1794532103747,"integrity":"sha512-3FQDEjDjjdX7RWavslU5BLP2KxNcni267yA0xoclito8OczAPZ4jGGKTBK0y1+dBrQN8nKYbJLO88xaHo+VqPw==","mode":420,"size":30102},"dist/index.d.cts":{"checkedAt":1794532103748,"integrity":"sha512-A09p9Lf05+yy3siQwwOfSwwHKu/aUH9eSzE/YTFat6ZRre97T0Clezd6oS1UG/bSV5P7l0bqPGS5O7QAdg90YA==","mode":420,"size":18685},"dist/index.js":{"checkedAt":1794532103748,"integrity":"sha512-h67x07PPjVLdNodWovFjY35ghaFY3qt0rHn/r39WAgL8Mh4+nTCFHBGaqE6rsqORMMx5hgFbLBfNC7fzxwA3iw==","mode":420,"size":29915},"package.json":{"checkedAt":1794532103748,"integrity":"sha512-sp5gpz97bcYff09qzZvFuUmvSbCPt2RuxHqtK6E5t8fCDUzUf54RHobR7BU/S2Reyka6xXsRAZKAd3gxtemKKg==","mode":420,"size":746},"README.md":{"checkedAt":1794532103748,"integrity":"sha512-qSHw07qUHhVylta8MYpGcIrfJi5gRSMxb7U8HQM87TmvyLHWqtSqi3+jmye9yExXo2YQVD6dLUwpa1zrYb5YGQ==","mode":420,"size":625},"dist/index.d.ts":{"checkedAt":1794532103748,"integrity":"sha512-A09p9Lf05+yy3siQwwOfSwwHKu/aUH9eSzE/YTFat6ZRre97T0Clezd6oS1UG/bSV5P7l0bqPGS5O7QAdg90YA==","mode":420,"size":18685}}}
@@ -0,0 +1,219 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
exports.default = (0, util_1.createRule)({
name: 'class-methods-use-this',
meta: {
type: 'suggestion',
docs: {
description: 'Enforce that class methods utilize `this`',
extendsBaseRule: true,
requiresTypeChecking: false,
},
messages: {
missingThis: "Expected 'this' to be used by class {{name}}.",
},
schema: [
{
type: 'object',
additionalProperties: false,
properties: {
enforceForClassFields: {
type: 'boolean',
description: 'Enforces that functions used as instance field initializers utilize `this`.',
},
exceptMethods: {
type: 'array',
description: 'Allows specified method names to be ignored with this rule.',
items: {
type: 'string',
},
},
ignoreClassesThatImplementAnInterface: {
description: 'Whether to ignore class members that are defined within a class that `implements` a type.',
oneOf: [
{
type: 'boolean',
description: 'Ignore all classes that implement an interface',
},
{
type: 'string',
description: 'Ignore only the public fields of classes that implement an interface',
enum: ['public-fields'],
},
],
},
ignoreOverrideMethods: {
type: 'boolean',
description: 'Whether to ignore members marked with the `override` modifier.',
},
},
},
],
},
defaultOptions: [
{
enforceForClassFields: true,
exceptMethods: [],
ignoreClassesThatImplementAnInterface: false,
ignoreOverrideMethods: false,
},
],
create(context, [{ enforceForClassFields, exceptMethods: exceptMethodsRaw, ignoreClassesThatImplementAnInterface, ignoreOverrideMethods, },]) {
const exceptMethods = new Set(exceptMethodsRaw);
let stack;
function pushContext(member) {
if (member?.parent.type === utils_1.AST_NODE_TYPES.ClassBody) {
stack = {
class: member.parent.parent,
member,
parent: stack,
usesThis: false,
};
}
else {
stack = {
class: null,
member: null,
parent: stack,
usesThis: false,
};
}
}
function enterFunction(node) {
if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition ||
node.parent.type === utils_1.AST_NODE_TYPES.PropertyDefinition ||
node.parent.type === utils_1.AST_NODE_TYPES.AccessorProperty) {
pushContext(node.parent);
}
else {
pushContext();
}
}
/**
* Pop `this` used flag from the stack.
*/
function popContext() {
const oldStack = stack;
stack = stack?.parent;
return oldStack;
}
function isPublicField(accessibility) {
if (!accessibility || accessibility === 'public') {
return true;
}
return false;
}
/**
* Check if the node is an instance method not excluded by config
*/
function isIncludedInstanceMethod(node) {
if (node.static ||
(node.type === utils_1.AST_NODE_TYPES.MethodDefinition &&
node.kind === 'constructor') ||
((node.type === utils_1.AST_NODE_TYPES.PropertyDefinition ||
node.type === utils_1.AST_NODE_TYPES.AccessorProperty) &&
!enforceForClassFields)) {
return false;
}
if (node.computed || exceptMethods.size === 0) {
return true;
}
const hashIfNeeded = node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier ? '#' : '';
const name = (0, util_1.getStaticMemberAccessValue)(node, context);
return (typeof name !== 'string' || !exceptMethods.has(hashIfNeeded + name));
}
/**
* Checks if we are leaving a function that is a method, and reports if 'this' has not been used.
* Static methods and the constructor are exempt.
* Then pops the context off the stack.
*/
function exitFunction(node) {
const stackContext = popContext();
if (stackContext?.member == null ||
stackContext.usesThis ||
(ignoreOverrideMethods && stackContext.member.override) ||
(ignoreClassesThatImplementAnInterface === true &&
stackContext.class.implements.length > 0) ||
(ignoreClassesThatImplementAnInterface === 'public-fields' &&
stackContext.class.implements.length > 0 &&
isPublicField(stackContext.member.accessibility))) {
return;
}
if (isIncludedInstanceMethod(stackContext.member)) {
context.report({
loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode),
node,
messageId: 'missingThis',
data: {
name: (0, util_1.getFunctionNameWithKind)(node),
},
});
}
}
return {
// function declarations have their own `this` context
FunctionDeclaration() {
pushContext();
},
'FunctionDeclaration:exit'() {
popContext();
},
FunctionExpression(node) {
enterFunction(node);
},
'FunctionExpression:exit'(node) {
exitFunction(node);
},
...(enforceForClassFields
? {
'AccessorProperty > ArrowFunctionExpression.value'(node) {
enterFunction(node);
},
'AccessorProperty > ArrowFunctionExpression.value:exit'(node) {
exitFunction(node);
},
'PropertyDefinition > ArrowFunctionExpression.value'(node) {
enterFunction(node);
},
'PropertyDefinition > ArrowFunctionExpression.value:exit'(node) {
exitFunction(node);
},
}
: {}),
/*
* Class field value are implicit functions.
*/
'AccessorProperty:exit'() {
popContext();
},
'AccessorProperty > *.key:exit'() {
pushContext();
},
'PropertyDefinition:exit'() {
popContext();
},
'PropertyDefinition > *.key:exit'() {
pushContext();
},
/*
* Class static blocks are implicit functions. They aren't required to use `this`,
* but we have to push context so that it captures any use of `this` in the static block
* separately from enclosing contexts, because static blocks have their own `this` and it
* shouldn't count as used `this` in enclosing contexts.
*/
StaticBlock() {
pushContext();
},
'StaticBlock:exit'() {
popContext();
},
'ThisExpression, Super'() {
if (stack) {
stack.usesThis = true;
}
},
};
},
});
@@ -0,0 +1,22 @@
import addSetEntry from './_addSetEntry.js';
import arrayReduce from './_arrayReduce.js';
import setToArray from './_setToArray.js';
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1;
/**
* Creates a clone of `set`.
*
* @private
* @param {Object} set The set to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);
return arrayReduce(array, addSetEntry, new set.constructor);
}
export default cloneSet;
@@ -0,0 +1,17 @@
# socks examples
## TypeScript Examples
[Connect command](typescript/connectExample.md)
[Bind command](typescript/bindExample.md)
[Associate command](typescript/associateExample.md)
## JavaScript Examples
[Connect command](javascript/connectExample.md)
[Bind command](javascript/bindExample.md)
[Associate command](javascript/associateExample.md)
@@ -0,0 +1,6 @@
import { type TSchema, type SchemaOptions } from '../schema/index';
import { type TFunction } from '../function/index';
import { type TNever } from '../never/index';
export type TReturnType<Type extends TSchema, Result extends TSchema = Type extends TFunction<infer _Parameters extends TSchema[], infer ReturnType extends TSchema> ? ReturnType : TNever> = Result;
/** `[JavaScript]` Extracts the ReturnType from the given Function type */
export declare function ReturnType<Type extends TSchema>(schema: Type, options?: SchemaOptions): TReturnType<Type>;
@@ -0,0 +1 @@
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAIM,MAAM;IAwDX,CAAC,CAAC,OAAO,QAAQ,CAAC,GAA8B;QAC9C,OAAO,IAAI,CAAC,QAAQ;IACtB;IAEA,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,KAAK;IACnB;IAEA,UAAiC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;IACzB;IAEA,aAAa,GAAQ,EAAc;QACjC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACb;QAAd,OAAO,OAAO,CAAA,gBAAA,KAAK,OAAO,cAAZ,2BAAA,gBAAgB,OAAO;IACvC;IAEA,YAAY,GAAQ,EAAc;QAChC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACb;QAAd,OAAO,OAAO,CAAA,gBAAA,KAAK,OAAO,cAAZ,2BAAA,gBAAgB,OAAO;IACvC;IAEA,cAA0B;QACxB,OAAO,IAAI,CAAC,QAAQ;IACtB;IAEA,aAAyB;QACvB,OAAO,IAAI,CAAC,OAAO;IACrB;IAEA,QAAQ,GAAQ,EAAkB;YACzB;QAAP,OAAO,CAAA,mBAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAhB,8BAAA,mBAAwB;IACjC;IAEA,GAAG,GAAW,EAAkB;QAC9B,MAAM,OAAO;eAAI,IAAI,CAAC,OAAO;SAAG;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;IAC/B;IAEA,YAAY,GAAQ,EAAqB;QACvC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,OAAO,CAAA,iBAAA,2BAAA,KAAM,UAAU,KAAI,EAAE;IAC/B;IA3FA,YAAY,KAAwB,CAAE;aAN9B,SAA4B,IAAI;aAEhC,WAAuB;aACvB,UAAsB;QAI5B,IAAI,CAAC,QAAQ,GAAG;QAEhB,IAAI,QAAQ,CAAC;YACX,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE;YAE1B,IAAI,KAAK,UAAU,IAAI,KAAK,IAAI,KAAK,WACnC,KAAK,IAAI,SAAS,KAAK,UAAU,CAC/B,MAAM;QAGZ;QAEA,KAAK,IAAI,QAAQ,MACf,MAAM;QAGR,IAAI,OAAuB;QAC3B,IAAI,QAAQ;QACZ,IAAI,OAAO;QACX,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAE;YACnC,IAAI,MAAM;gBACR,KAAK,OAAO,GAAG;gBACf,KAAK,OAAO,GAAG,KAAK,GAAG;YACzB,OAAO;gBACL,IAAI,CAAC,QAAQ,GAAG;gBAChB,KAAK,OAAO,GAAG;YACjB;YAEA,IAAI,KAAK,IAAI,KAAK,QAChB,KAAK,KAAK,GAAG;YAGf,8DAA8D;YAC9D,gFAAgF;YAChF,IAAI,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI,KAAK,QAC3C;YAGF,OAAO;YAEP,6DAA6D;YAC7D,iFAAiF;YACjF,KAAK,OAAO,GAAG;QACjB;QACA,IAAI,CAAC,KAAK,GAAG;YACE;QAAf,IAAI,CAAC,OAAO,GAAG,CAAA,YAAA,iBAAA,2BAAA,KAAM,GAAG,cAAT,uBAAA,YAAa;IAC9B;AA6CF","sources":["packages/@react-stately/list/src/ListCollection.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Collection, Key, Node} from '@react-types/shared';\n\nexport class ListCollection<T> implements Collection<Node<T>> {\n private keyMap: Map<Key, Node<T>> = new Map();\n private iterable: Iterable<Node<T>>;\n private firstKey: Key | null = null;\n private lastKey: Key | null = null;\n private _size: number;\n\n constructor(nodes: Iterable<Node<T>>) {\n this.iterable = nodes;\n\n let visit = (node: Node<T>) => {\n this.keyMap.set(node.key, node);\n\n if (node.childNodes && node.type === 'section') {\n for (let child of node.childNodes) {\n visit(child);\n }\n }\n };\n\n for (let node of nodes) {\n visit(node);\n }\n\n let last: Node<T> | null = null;\n let index = 0;\n let size = 0;\n for (let [key, node] of this.keyMap) {\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n\n if (node.type === 'item') {\n node.index = index++;\n }\n\n // Only count sections and items when determining size so that\n // loaders and separators in RAC/S2 don't influence the emptyState determination\n if (node.type === 'section' || node.type === 'item') {\n size++;\n }\n\n last = node;\n\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this._size = size;\n this.lastKey = last?.key ?? null;\n }\n\n *[Symbol.iterator](): IterableIterator<Node<T>> {\n yield* this.iterable;\n }\n\n get size(): number {\n return this._size;\n }\n\n getKeys(): IterableIterator<Key> {\n return this.keyMap.keys();\n }\n\n getKeyBefore(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.prevKey ?? null : null;\n }\n\n getKeyAfter(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.nextKey ?? null : null;\n }\n\n getFirstKey(): Key | null {\n return this.firstKey;\n }\n\n getLastKey(): Key | null {\n return this.lastKey;\n }\n\n getItem(key: Key): Node<T> | null {\n return this.keyMap.get(key) ?? null;\n }\n\n at(idx: number): Node<T> | null {\n const keys = [...this.getKeys()];\n return this.getItem(keys[idx]);\n }\n\n getChildren(key: Key): Iterable<Node<T>> {\n let node = this.keyMap.get(key);\n return node?.childNodes || [];\n }\nLine truncated
@@ -0,0 +1,7 @@
"use client";
import {
CheckboxIcon
} from "./chunk-FFVF7OUL.mjs";
export {
CheckboxIcon
};
@@ -0,0 +1 @@
{"name":"@heroui/use-intersection-observer","version":"2.2.14","requiresBuild":false,"files":{"dist/index.js":{"checkedAt":1794532108792,"integrity":"sha512-dTXNEjRNGAa4T0/yuTU40xK9qupJn8Rwp0zXceQown76yuEsd4E6kSI4Nc4kGXuqDoPnsB6ZuRMyqvalgl01SQ==","mode":420,"size":3378},"package.json":{"checkedAt":1794532108792,"integrity":"sha512-wVQiPb2qEuKEovXVODfvm5sxY7NFb48g3djcY7+IxlfBiZ5440esZJy25iSpDzNP3w9uXwcbaYDZiwJTAsCsJg==","mode":420,"size":1353},"README.md":{"checkedAt":1794532108792,"integrity":"sha512-FgTInT7k2f9fhQsaT2i4ZfnKGcYoUl2rpJzWk+t7LRJiYSv2/vdS8sBsE2Z4H63t+O/KecP/433+OLI8iLsBwQ==","mode":420,"size":530},"dist/index.mjs":{"checkedAt":1794532108792,"integrity":"sha512-FBzalrxFyzohDrjrq+GI+wdGRIBWNAuIFVgBwnONCfVsAQtQjYLQnJn6Zboh7hQg7ELHgZMHWGHmVGW/YgHX5g==","mode":420,"size":2250},"dist/index.d.mts":{"checkedAt":1794532108792,"integrity":"sha512-cUW/odNGlzOpfgShYc0aMnE+S1nFE7ZdcDXWCDgSUKsBf6WO4yCs2t2H3IJjy4sm374tC5SZ3ujcwEFvMDwk2w==","mode":420,"size":788},"dist/index.d.ts":{"checkedAt":1794532108792,"integrity":"sha512-cUW/odNGlzOpfgShYc0aMnE+S1nFE7ZdcDXWCDgSUKsBf6WO4yCs2t2H3IJjy4sm374tC5SZ3ujcwEFvMDwk2w==","mode":420,"size":788},"LICENSE":{"checkedAt":1794532104066,"integrity":"sha512-fUY+MMF2uFI8CfCphWLCp6ty4uU9bKvcaTZFGiBK7qgOOULkpyNSGb2IIjBYgGT5iqdeUaZRGLbTggbAUEyPyQ==","mode":420,"size":1069}}}
@@ -0,0 +1,52 @@
import type { VideoInfo } from './video';
import { LogWrapper } from '../../helper/log';
export declare let FFMPEG_CMD: string;
export declare let FFPROBE_CMD: string;
export declare class FFmpegService {
private static adapter;
private static initialized;
/**
* 初始化 FFmpeg 服务
* @param binaryPath 二进制文件路径(来自 pathWrapper.binaryPath)
* @param logger 日志记录器
*/
static init(binaryPath: string, logger: LogWrapper): Promise<void>;
static getAdapterName(): string;
/**
* 获取 FFmpeg 适配器
*/
private static getAdapter;
static convertToNTSilkTct(inputFile: string, outputFile: string): Promise<void>;
/**
* 设置 FFmpeg 路径并更新适配器
* @deprecated 建议使用 init() 方法初始化
*/
static setFfmpegPath(ffmpegPath: string, logger: LogWrapper): Promise<void>;
/**
* 提取视频缩略图
*/
static extractThumbnail(videoPath: string, thumbnailPath: string): Promise<void>;
/**
* 转换音频文件
*/
static convertAudioFmt(inputFile: string, outputFile: string, format: string): Promise<void>;
/**
* 获取音频时长
*/
static getDuration(filePath: string): Promise<number>;
/**
* 判断是否为 Silk 格式
*/
static isSilk(filePath: string): Promise<boolean>;
/**
* 转换为 PCM 格式
*/
static convert(filePath: string, pcmPath: string): Promise<{
result: boolean;
sampleRate: number;
}>;
/**
* 获取视频信息
*/
static getVideoInfo(videoPath: string, thumbnailPath: string): Promise<VideoInfo>;
}
@@ -0,0 +1,35 @@
<svg viewbox="0 0 18 18">
<defs>
<style>
.cls-1{opacity:0.4;}
.cls-2{fill:#444;}
.cls-3{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2px;}
</style>
</defs>
<g class="ql-fill ql-transparent">
<rect height="2" width="2" x="2" y="2"></rect>
<rect height="2" width="2" x="5" y="2"></rect>
<rect height="2" width="2" x="8" y="2"></rect>
<rect height="2" width="2" x="14" y="2"></rect>
<rect height="2" width="2" x="11" y="2"></rect>
<rect height="2" width="2" x="2" y="14"></rect>
<rect height="2" width="2" x="5" y="14"></rect>
<rect height="2" width="2" x="8" y="14"></rect>
</g>
<rect class="ql-stroke-miter" height="12" width="12" x="3" y="3"></rect>
<g class="ql-fill ql-transparent">
<rect height="2" width="2" x="14" y="14"></rect>
<rect height="2" width="2" x="11" y="14"></rect>
<rect height="2" transform="translate(-9 15) rotate(-90)" width="2" x="2" y="11"></rect>
<rect height="2" transform="translate(-6 12) rotate(-90)" width="2" x="2" y="8"></rect>
<rect height="2" transform="translate(-3 9) rotate(-90)" width="2" x="2" y="5"></rect>
<rect height="2" transform="translate(3 27) rotate(-90)" width="2" x="14" y="11"></rect>
<rect height="2" transform="translate(6 24) rotate(-90)" width="2" x="14" y="8"></rect>
<rect height="2" transform="translate(3 21) rotate(-90)" width="2" x="11" y="8"></rect>
<rect height="2" transform="translate(0 18) rotate(-90)" width="2" x="8" y="8"></rect>
<rect height="2" transform="translate(-3 15) rotate(-90)" width="2" x="5" y="8"></rect>
<rect height="2" width="2" x="8" y="11"></rect>
<rect height="2" width="2" x="8" y="5"></rect>
<rect height="2" transform="translate(9 21) rotate(-90)" width="2" x="14" y="5"></rect>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,60 @@
import type React from 'react';
import type { Control, FieldError, FieldPath, FieldPathValue, FieldValues, Noop, RefCallBack, UseFormStateReturn } from './';
import type { RegisterOptions } from './validator';
export type ControllerFieldState = {
invalid: boolean;
isTouched: boolean;
isDirty: boolean;
isValidating: boolean;
error?: FieldError;
};
export type ControllerRenderProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
onChange: (...event: any[]) => void;
onBlur: Noop;
value: FieldPathValue<TFieldValues, TName>;
disabled?: boolean;
name: TName;
ref: RefCallBack;
};
export type UseControllerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = {
name: TName;
rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
shouldUnregister?: boolean;
defaultValue?: FieldPathValue<TFieldValues, TName>;
control?: Control<TFieldValues, any, TTransformedValues>;
disabled?: boolean;
};
export type UseControllerReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
field: ControllerRenderProps<TFieldValues, TName>;
formState: UseFormStateReturn<TFieldValues>;
fieldState: ControllerFieldState;
};
/**
* Render function to provide the control for the field.
*
* @returns all the event handlers, and relevant field and form state.
*
* @example
* ```tsx
* const { field, fieldState, formState } = useController();
*
* <Controller
* render={({ field, formState, fieldState }) => ({
* <input
* onChange={field.onChange}
* onBlur={field.onBlur}
* name={field.name}
* ref={field.ref} // optional for focus management
* />
* })}
* />
* ```
*/
export type ControllerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = {
render: ({ field, fieldState, formState, }: {
field: ControllerRenderProps<TFieldValues, TName>;
fieldState: ControllerFieldState;
formState: UseFormStateReturn<TFieldValues>;
}) => React.ReactElement;
} & UseControllerProps<TFieldValues, TName, TTransformedValues>;
//# sourceMappingURL=controller.d.ts.map
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var PreRole = {
relatedConcepts: [{
module: 'HTML',
concept: {
name: 'pre'
}
}],
type: 'structure'
};
var _default = PreRole;
exports.default = _default;
@@ -0,0 +1,253 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/use-accordion-item.ts
var use_accordion_item_exports = {};
__export(use_accordion_item_exports, {
useAccordionItem: () => useAccordionItem
});
module.exports = __toCommonJS(use_accordion_item_exports);
var import_system = require("@heroui/system");
var import_focus = require("@react-aria/focus");
var import_theme = require("@heroui/theme");
var import_shared_utils = require("@heroui/shared-utils");
var import_react_utils = require("@heroui/react-utils");
var import_use_aria_accordion = require("@heroui/use-aria-accordion");
var import_react = require("react");
var import_interactions = require("@react-aria/interactions");
function useAccordionItem(props) {
var _a, _b;
const globalContext = (0, import_system.useProviderContext)();
const { ref, as, item, onFocusChange } = props;
const {
state,
className,
indicator,
children,
title,
subtitle,
startContent,
motionProps,
focusedKey,
variant,
isCompact = false,
classNames: classNamesProp = {},
isDisabled: isDisabledProp = false,
hideIndicator = false,
disableAnimation = (_a = globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _a : false,
keepContentMounted = false,
disableIndicatorAnimation = false,
HeadingComponent = as || "h2",
onPress,
onPressStart,
onPressEnd,
onPressChange,
onPressUp,
onClick,
...otherProps
} = props;
const Component = as || "div";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils.useDOMRef)(ref);
const isDisabled = state.disabledKeys.has(item.key) || isDisabledProp;
const isOpen = state.selectionManager.isSelected(item.key);
const { buttonProps: buttonCompleteProps, regionProps } = (0, import_use_aria_accordion.useReactAriaAccordionItem)(
{ item, isDisabled },
{ ...state, focusedKey },
domRef
);
const { onFocus: onFocusButton, onBlur: onBlurButton, ...buttonProps } = buttonCompleteProps;
const { isFocused, isFocusVisible, focusProps } = (0, import_focus.useFocusRing)({
autoFocus: (_b = item.props) == null ? void 0 : _b.autoFocus
});
const { isHovered, hoverProps } = (0, import_interactions.useHover)({ isDisabled });
const { pressProps, isPressed } = (0, import_interactions.usePress)({
ref: domRef,
isDisabled,
onPress,
onPressStart,
onPressEnd,
onPressChange,
onPressUp
});
const handleFocus = (0, import_react.useCallback)(() => {
onFocusChange == null ? void 0 : onFocusChange(true, item.key);
}, []);
const handleBlur = (0, import_react.useCallback)(() => {
onFocusChange == null ? void 0 : onFocusChange(false, item.key);
}, []);
const classNames = (0, import_react.useMemo)(
() => ({
...classNamesProp
}),
[(0, import_shared_utils.objectToDeps)(classNamesProp)]
);
const slots = (0, import_react.useMemo)(
() => (0, import_theme.accordionItem)({
isCompact,
isDisabled,
hideIndicator,
disableAnimation,
disableIndicatorAnimation,
variant
}),
[isCompact, isDisabled, hideIndicator, disableAnimation, disableIndicatorAnimation, variant]
);
const baseStyles = (0, import_shared_utils.clsx)(classNames == null ? void 0 : classNames.base, className);
const getBaseProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "base",
className: slots.base({ class: baseStyles }),
...(0, import_shared_utils.mergeProps)(
(0, import_react_utils.filterDOMProps)(otherProps, {
enabled: shouldFilterDOMProps
}),
props2
)
};
},
[baseStyles, shouldFilterDOMProps, otherProps, slots, item.props, isOpen, isDisabled]
);
const getButtonProps = (props2 = {}) => {
var _a2, _b2;
return {
ref: domRef,
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-focus": (0, import_shared_utils.dataAttr)(isFocused),
"data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-hover": (0, import_shared_utils.dataAttr)(isHovered),
"data-pressed": (0, import_shared_utils.dataAttr)(isPressed),
"data-slot": "trigger",
className: slots.trigger({ class: classNames == null ? void 0 : classNames.trigger }),
onFocus: (0, import_shared_utils.callAllHandlers)(
handleFocus,
onFocusButton,
focusProps.onFocus,
otherProps.onFocus,
(_a2 = item.props) == null ? void 0 : _a2.onFocus
),
onBlur: (0, import_shared_utils.callAllHandlers)(
handleBlur,
onBlurButton,
focusProps.onBlur,
otherProps.onBlur,
(_b2 = item.props) == null ? void 0 : _b2.onBlur
),
...(0, import_shared_utils.mergeProps)(buttonProps, hoverProps, pressProps, props2, {
onClick: (0, import_shared_utils.chain)(pressProps.onClick, onClick)
})
};
};
const getContentProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "content",
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
...(0, import_shared_utils.mergeProps)(regionProps, props2)
};
},
[slots, classNames, regionProps, isOpen, isDisabled, classNames == null ? void 0 : classNames.content]
);
const getIndicatorProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"aria-hidden": (0, import_shared_utils.dataAttr)(true),
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "indicator",
className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
...props2
};
},
[slots, classNames == null ? void 0 : classNames.indicator, isOpen, isDisabled, classNames == null ? void 0 : classNames.indicator]
);
const getHeadingProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "heading",
className: slots.heading({ class: classNames == null ? void 0 : classNames.heading }),
...props2
};
},
[slots, classNames == null ? void 0 : classNames.heading, isOpen, isDisabled, classNames == null ? void 0 : classNames.heading]
);
const getTitleProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "title",
className: slots.title({ class: classNames == null ? void 0 : classNames.title }),
...props2
};
},
[slots, classNames == null ? void 0 : classNames.title, isOpen, isDisabled, classNames == null ? void 0 : classNames.title]
);
const getSubtitleProps = (0, import_react.useCallback)(
(props2 = {}) => {
return {
"data-open": (0, import_shared_utils.dataAttr)(isOpen),
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-slot": "subtitle",
className: slots.subtitle({ class: classNames == null ? void 0 : classNames.subtitle }),
...props2
};
},
[slots, classNames, isOpen, isDisabled, classNames == null ? void 0 : classNames.subtitle]
);
return {
Component,
HeadingComponent,
item,
slots,
classNames,
domRef,
indicator,
children,
title,
subtitle,
startContent,
isOpen,
isDisabled,
hideIndicator,
keepContentMounted,
disableAnimation,
motionProps,
getBaseProps,
getHeadingProps,
getButtonProps,
getContentProps,
getIndicatorProps,
getTitleProps,
getSubtitleProps
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
useAccordionItem
});
@@ -0,0 +1,903 @@
flf2a$ 4 3 10 0 6
Wavy by Brian Krog 10/05
Includes ISO Latin-1
figlet release 2.2.2 -- 05 Jul 2005
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
$$@
$$@
$$@
$$@@
$ @
|$@
o$@
$ @@
$ @
||$@
$ @
$ @@
$ @
_/_/_$@
-/-/-$ @
$ @@
$ @
(I`$@
.I)$@
$ @@
$@
o/$@
/o$@
$ @@
_$ @
\)$@
(X$@
$@@
$ @
|$@
$ @
$ @@
/$@
($ @
\$@
$@@
\$ @
)$@
/$ @
$ @@
$ @
_\/_$@
/\$ @
$ @@
$ @
$_|_$@
$|$ @
$ @@
$ @
$ @
o$@
/$@@
$ @
$__$@
$ @
$ @@
$ @
$ @
o$@
$ @@
$@
/$@
/$ @
$ @@
_$ @
(.\$ @
\_)$@
$ @@
$ @
/($ @
_)_$@
$@@
_$ @
)$@
/_$@
$@@
_$ @
_)$@
_)$@
$ @@
$ @
/_(_$@
)$@
$ @@
__$ @
)_$ @
_)$@
$ @@
_$ @
(__$ @
\_)$@
$ @@
__$ @
)$@
($ @
$ @@
_$ @
(_)$@
(_)$@
$ @@
_$ @
(_\$ @
_)$@
$ @@
$ @
o$@
o$@
$ @@
$ @
o$@
o$@
/$@@
$ @
/$@
\$@
$ @@
$ @
__$@
--$@
$ @@
$ @
\$@
/$@
$ @@
_$ @
)$@
o$ @
$ @@
___$ @
/ _ )$@
( (_($ @
\___/$@@
_$ @
/_)$@
/ /$ @
$ @@
__$ @
)_)$@
/__)$@
$ @@
_$ @
/ `$@
(_.$ @
$ @@
__$ @
) )$@
/_/$ @
$ @@
___$@
)_$ @
(__$ @
$ @@
___$@
)_$ @
($ @
$ @@
_$ @
/ _$@
(__/$@
$ @@
$ @
)_)$@
( ($ @
$ @@
___$@
)$ @
_(_$ @
$ @@
___$ @
($ @
\__)$@
$ @@
$@
)_/$@
/ )$@
$ @@
$ @
)$ @
(__$@
$ @@
$ @
)\/)$@
( ($ @
$ @@
$ @
)\ )$@
( ($ @
$ @@
_$ @
/ )$@
(_/$ @
$ @@
__$ @
)_)$@
/$ @
$ @@
_$ @
/ )$@
(_X$ @
@@
__$ @
)_)$@
/ \$ @
$ @@
__$ @
(_ `$@
.__)$ @
$ @@
___$@
)$ @
($ @
$ @@
@
/ /$@
(_/$ @
$ @@
$@
\ /$@
\/$ @
$ @@
$@
\ X /$@
\/ \/$ @
$ @@
$ @
(/$@
/)$@
$ @@
@
\_)$@
/$ @
$ @@
__$@
/$@
/_$@
$ @@
_$@
|$ @
|_$@
$ @@
$ @
\$ @
\$@
$@@
_$ @
|$@
_|$@
$ @@
$ @
/\$@
$ @
$ @@
$ @
$ @
$ @
__$@@
$ @
\$@
$ @
$ @@
$ @
_$ @
(_($@
$ @@
$ @
( _$ @
)_)$@
$ @@
$ @
_$@
(_$@
$ @@
$ @
_ )$@
(_($ @
$ @@
$ @
_$ @
)_)$@
(_$ @@
$ @
_(_$@
)$@
$ @@
$ @
_$ @
(_($ @
_)$@@
$ @
( _$ @
) )$@
$ @@
$ @
o$@
($@
$ @@
$ @
o$ @
($ @
_)$@@
$ @
( _$@
)\$@
$ @@
$ @
)$@
($ @
$ @@
$ @
_ _$ @
) ) )$@
$ @@
$ @
_$ @
) )$@
$ @@
$ @
_$ @
(_)$@
$ @@
$ @
_$ @
)_)$@
( $ @@
$ @
_$ @
(_($ @
)$@@
$ @
_$@
)$ @
$ @@
$ @
_$@
($ @
_)$@@
$ @
_)_$@
(_$ @
$ @@
$ @
$ @
(_($@
$ @@
$ @
$ @
\)$@
$ @@
$ @
$ @
)_)_)$@
$ @@
$ @
$ @
\)$@
(\$@@
$ @
$ @
(_($ @
_)$@@
$ @
__$ @
)$ @
(__$@@
_$@
_|$ @
|_$@
$ @@
$ @
|$@
|$@
|$@@
_$ @
|_$@
_|$ @
$ @@
$ @
/\/$@
$ @
$ @@
o_o$@
/_)$@
/ /$ @
$ @@
o_o$@
/ )$@
(_/$ @
$ @@
o o$@
/ /$ @
(_/$ @
$ @@
o o$@
_ $@
(_($@
$@@
o o$@
_$ @
(_)$@
$ @@
o o$@
$@
(_($@
$@@
__$ @
) )$@
/ )$@
$ @@
160 NO-BREAK SPACE
$$@
$$@
$$@
$$@@
161 INVERTED EXCLAMATION MARK
$ @
o$@
|$@
$ @@
162 CENT SIGN
$ @
|$ @
(_`$@
|$ @@
163 POUND SIGN
_$ @
_(_`$@
o)_$@
$ @@
164 CURRENCY SIGN
$ @
`o'$@
' `$@
$ @@
165 YEN SIGN
$ @
_\_)_$@
--/--$@
$ @@
166 BROKEN BAR
$ @
|$@
'$@
|$@@
167 SECTION SIGN
_$@
($ @
()$@
_)$@@
168 DIAERESIS
o o$@
$ @
$ @
$ @@
169 COPYRIGHT SIGN
_$ @
(C)$@
$ @
$ @@
170 FEMININE ORDINAL INDICATOR
_ $@
(_($@
---$@
$ @@
171 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
$@
//$@
\\$@
$@@
172 NOT SIGN
$ @
__$ @
|$@
$ @@
173 SOFT HYPHEN
$ @
_$@
$ @
$ @@
174 REGISTERED SIGN
_$ @
(R)$@
$ @
$ @@
175 MACRON
__$@
$ @
$ @
$ @@
176 DEGREE SIGN
O$@
$ @
$ @
$ @@
177 PLUS-MINUS SIGN
$ @
_|_$@
_|_$@
$ @@
178 SUPERSCRIPT TWO
2$@
@
@
@@
179 SUPERSCRIPT THREE
3$@
$ @
$ @
$ @@
180 ACUTE ACCENT
/$@
$ @
$ @
$ @@
181 MICRO SIGN
$ @
$ @
)_)$@
/$ @@
182 PILCROW SIGN
__$@
(||$@
||$@
$ @@
183 MIDDLE DOT
$ @
o$@
$ @
$ @@
184 CEDILLA
$ @
$ @
$ @
S$@@
185 SUPERSCRIPT ONE
1$@
$ @
$ @
$ @@
186 MASCULINE ORDINAL INDICATOR
_$ @
(_)$@
---$@
$ @@
187 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
$ @
\\$@
//$@
$ @@
188 VULGAR FRACTION ONE QUARTER
$@
1/$@
/4$@
$ @@
189 VULGAR FRACTION ONE HALF
$@
1/$@
/2$@
$ @@
190 VULGAR FRACTION THREE QUARTERS
$@
3/$@
/4$@
$ @@
191 INVERTED QUESTION MARK
$ @
o$@
(_$@
$ @@
192 LATIN CAPITAL LETTER A WITH GRAVE
\$ @
/_)$@
/ /$ @
$ @@
193 LATIN CAPITAL LETTER A WITH ACUTE
_/$@
/_)$@
/ /$ @
$ @@
194 LATIN CAPITAL LETTER A WITH CIRCUMFLEX
/\$@
/_)$@
/ /$ @
$ @@
195 LATIN CAPITAL LETTER A WITH TILDE
/\/$@
/_)$@
/ /$ @
$ @@
196 LATIN CAPITAL LETTER A WITH DIAERESIS
o_o$@
/_)$@
/ /$ @
$ @@
197 LATIN CAPITAL LETTER A WITH RING ABOVE
O$ @
/_)$@
/ /$ @
$ @@
198 LATIN CAPITAL LETTER AE
____$@
/_)_$ @
/ /__$ @
$ @@
199 LATIN CAPITAL LETTER C WITH CEDILLA
_$ @
/ `$@
(_.$ @
S$ @@
200 LATIN CAPITAL LETTER E WITH GRAVE
_\_$@
)_$ @
(__$ @
$ @@
201 LATIN CAPITAL LETTER E WITH ACUTE
_/_$@
)_$ @
(__$ @
$ @@
202 LATIN CAPITAL LETTER E WITH CIRCUMFLEX
_/\$@
)_$ @
(__$ @
$ @@
203 LATIN CAPITAL LETTER E WITH DIAERESIS
o_o$@
)_$ @
(__$ @
$ @@
204 LATIN CAPITAL LETTER I WITH GRAVE
_\_$@
)$ @
_(_$ @
$ @@
205 LATIN CAPITAL LETTER I WITH ACUTE
_/_$@
)$ @
_(_$ @
$ @@
206 LATIN CAPITAL LETTER I WITH CIRCUMFLEX
_/\$@
)$ @
_(_$ @
$ @@
207 LATIN CAPITAL LETTER I WITH DIAERESIS
o_o$@
)$ @
_(_$ @
@@
208 LATIN CAPITAL LETTER ETH
__$ @
_)_)$@
/_/$ @
$ @@
209 LATIN CAPITAL LETTER N WITH TILDE
/\/$@
)\ )$@
( ($ @
$ @@
210 LATIN CAPITAL LETTER O WITH GRAVE
\$ @
/ )$@
(_/$ @
$ @@
211 LATIN CAPITAL LETTER O WITH ACUTE
_/$@
/ )$@
(_/$ @
$ @@
212 LATIN CAPITAL LETTER O WITH CIRCUMFLEX
/\$@
/ )$@
(_/$ @
$ @@
213 LATIN CAPITAL LETTER O WITH TILDE
/\/$@
/ )$@
(_/$ @
$ @@
214 LATIN CAPITAL LETTER O WITH DIAERESIS
o_o$@
/ )$@
(_/$ @
$ @@
215 MULTIPLICATION SIGN
$ @
X$@
$ @
$ @@
216 LATIN CAPITAL LETTER O WITH STROKE
_$ @
//)$@
(//$ @
$ @@
217 LATIN CAPITAL LETTER U WITH GRAVE
\$ @
/ /$@
(_/$ @
$ @@
218 LATIN CAPITAL LETTER U WITH ACUTE
/$@
/ /$@
(_/$ @
$ @@
219 LATIN CAPITAL LETTER U WITH CIRCUMFLEX
/\$@
/ /$@
(_/$ @
$ @@
220 LATIN CAPITAL LETTER U WITH DIAERESIS
o o$@
/ /$ @
(_/$ @
$ @@
221 LATIN CAPITAL LETTER Y WITH ACUTE
/$ @
\_)$@
/$ @
$ @@
222 LATIN CAPITAL LETTER THORN
( _$ @
)_)$@
($ @
$ @@
223 LATIN SMALL LETTER SHARP S
__$ @
) )$@
/ )$@
$ @@
224 LATIN SMALL LETTER A WITH GRAVE
\$ @
_ $@
(_($@
$@@
225 LATIN SMALL LETTER A WITH ACUTE
/$ @
_ $@
(_($@
$@@
226 LATIN SMALL LETTER A WITH CIRCUMFLEX
/\$@
_ $@
(_($@
$@@
227 LATIN SMALL LETTER A WITH TILDE
/\/$@
_ $@
(_($@
$@@
228 LATIN SMALL LETTER A WITH DIAERESIS
o o$@
_ $@
(_($@
$@@
229 LATIN SMALL LETTER A WITH RING ABOVE
O$ @
_ $@
(_($@
$@@
230 LATIN SMALL LETTER AE
$ @
_ _$ @
_ )_)$@
(_(_$ @@
231 LATIN SMALL LETTER C WITH CEDILLA
$ @
_$@
(_$@
S$@@
232 LATIN SMALL LETTER E WITH GRAVE
\$ @
_$ @
)_)$@
(_$ @@
233 LATIN SMALL LETTER E WITH ACUTE
/$ @
_$ @
)_)$@
(_$ @@
234 LATIN SMALL LETTER E WITH CIRCUMFLEX
/\$ @
_ $@
)_)$@
(_$ @@
235 LATIN SMALL LETTER E WITH DIAERESIS
o o$@
_ $@
)_)$@
(_$ @@
236 LATIN SMALL LETTER I WITH GRAVE
$ @
\$@
($@
$@@
237 LATIN SMALL LETTER I WITH ACUTE
$ @
/$@
($@
$@@
238 LATIN SMALL LETTER I WITH CIRCUMFLEX
$ @
/\$@
($ @
$ @@
239 LATIN SMALL LETTER I WITH DIAERESIS
$ @
oo$@
($ @
$ @@
240 LATIN SMALL LETTER ETH
X$ @
_ )$@
(_($ @
$ @@
241 LATIN SMALL LETTER N WITH TILDE
/\/$@
_$ @
) )$@
$ @@
242 LATIN SMALL LETTER O WITH GRAVE
\$ @
_$ @
(_)$@
$ @@
243 LATIN SMALL LETTER O WITH ACUTE
/$ @
_$ @
(_)$@
$ @@
244 LATIN SMALL LETTER O WITH CIRCUMFLEX
/\$@
_$ @
(_)$@
@@
245 LATIN SMALL LETTER O WITH TILDE
/\/$@
_$ @
(_)$@
$ @@
246 LATIN SMALL LETTER O WITH DIAERESIS
o o$@
_$ @
(_)$@
$ @@
247 DIVISION SIGN
o$ @
---$@
o$ @
$ @@
248 LATIN SMALL LETTER O WITH STROKE
$ @
_$ @
(/)$@
$ @@
249 LATIN SMALL LETTER U WITH GRAVE
\$ @
$@
(_($@
$@@
250 LATIN SMALL LETTER U WITH ACUTE
/$@
$@
(_($@
$@@
251 LATIN SMALL LETTER U WITH CIRCUMFLEX
/\$@
$@
(_($@
$@@
252 LATIN SMALL LETTER U WITH DIAERESIS
o o$@
$@
(_($@
$@@
253 LATIN SMALL LETTER Y WITH ACUTE
/$ @
$ @
(_($ @
_)$@@
254 LATIN SMALL LETTER THORN
$ @
(_$ @
)_)$@
($ @@
255 LATIN SMALL LETTER Y WITH DIAERESIS
o o$ @
$ @
(_($ @
_)$@@
@@ -0,0 +1,27 @@
"use client";
import {
DropdownProvider
} from "./chunk-BV7BCS3N.mjs";
import {
useDropdown
} from "./chunk-IURKDIR4.mjs";
// src/dropdown.tsx
import React from "react";
import { Popover } from "@heroui/popover";
import { jsx, jsxs } from "react/jsx-runtime";
var Dropdown = (props) => {
const { children, ...otherProps } = props;
const context = useDropdown(otherProps);
const [menuTrigger, menu] = React.Children.toArray(children);
return /* @__PURE__ */ jsx(DropdownProvider, { value: context, children: /* @__PURE__ */ jsxs(Popover, { ...context.getPopoverProps(), children: [
menuTrigger,
menu
] }) });
};
Dropdown.displayName = "HeroUI.Dropdown";
var dropdown_default = Dropdown;
export {
dropdown_default
};
@@ -0,0 +1,51 @@
var arraySome = require('./_arraySome'),
baseIteratee = require('./_baseIteratee'),
baseSome = require('./_baseSome'),
isArray = require('./isArray'),
isIterateeCall = require('./_isIterateeCall');
/**
* Checks if `predicate` returns truthy for **any** element of `collection`.
* Iteration is stopped once `predicate` returns truthy. The predicate is
* invoked with three arguments: (value, index|key, collection).
*
* @static
* @memberOf _
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
* @example
*
* _.some([null, 0, 'yes', false], Boolean);
* // => true
*
* var users = [
* { 'user': 'barney', 'active': true },
* { 'user': 'fred', 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
* _.some(users, { 'user': 'barney', 'active': false });
* // => false
*
* // The `_.matchesProperty` iteratee shorthand.
* _.some(users, ['active', false]);
* // => true
*
* // The `_.property` iteratee shorthand.
* _.some(users, 'active');
* // => true
*/
function some(collection, predicate, guard) {
var func = isArray(collection) ? arraySome : baseSome;
if (guard && isIterateeCall(collection, predicate, guard)) {
predicate = undefined;
}
return func(collection, baseIteratee(predicate, 3));
}
module.exports = some;
@@ -0,0 +1,10 @@
export default function useHistoryTravel<T>(initialValue?: T, maxLength?: number): {
value: T | undefined;
backLength: number;
forwardLength: number;
setValue: (this: unknown, val: T) => void;
go: (this: unknown, step: number) => void;
back: (this: unknown) => void;
forward: (this: unknown) => void;
reset: (this: unknown, ...args: any[]) => void;
};
@@ -0,0 +1,8 @@
var $5204a30f0d17ffec$exports = {};
$5204a30f0d17ffec$exports = {
"breadcrumbs": `\u{41D}\u{430}\u{432}\u{456}\u{433}\u{430}\u{446}\u{456}\u{439}\u{43D}\u{430} \u{441}\u{442}\u{435}\u{436}\u{43A}\u{430}`
};
export {$5204a30f0d17ffec$exports as default};
//# sourceMappingURL=uk-UA.module.js.map
@@ -0,0 +1,52 @@
var $fmWqE$reactstatelyutils = require("@react-stately/utils");
var $fmWqE$react = require("react");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useToggleGroupState", () => $40e5a2b1abaa0aa5$export$8deac67f4addf270);
/*
* Copyright 2024 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $40e5a2b1abaa0aa5$export$8deac67f4addf270(props) {
let { selectionMode: selectionMode = 'single', disallowEmptySelection: disallowEmptySelection, isDisabled: isDisabled = false } = props;
let [selectedKeys, setSelectedKeys] = (0, $fmWqE$reactstatelyutils.useControlledState)((0, $fmWqE$react.useMemo)(()=>props.selectedKeys ? new Set(props.selectedKeys) : undefined, [
props.selectedKeys
]), (0, $fmWqE$react.useMemo)(()=>props.defaultSelectedKeys ? new Set(props.defaultSelectedKeys) : new Set(), [
props.defaultSelectedKeys
]), props.onSelectionChange);
return {
selectionMode: selectionMode,
isDisabled: isDisabled,
selectedKeys: selectedKeys,
setSelectedKeys: setSelectedKeys,
toggleKey (key) {
let keys;
if (selectionMode === 'multiple') {
keys = new Set(selectedKeys);
if (keys.has(key) && (!disallowEmptySelection || keys.size > 1)) keys.delete(key);
else keys.add(key);
} else keys = new Set(selectedKeys.has(key) && !disallowEmptySelection ? [] : [
key
]);
setSelectedKeys(keys);
},
setSelected (key, isSelected) {
if (isSelected !== selectedKeys.has(key)) this.toggleKey(key);
}
};
}
//# sourceMappingURL=useToggleGroupState.main.js.map
@@ -0,0 +1,16 @@
{
"name": "monaco-loader",
"private": true,
"version": "0.0.1",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^6.0.0"
},
"dependencies": {
"monaco-editor": "^0.54.0"
}
}
@@ -0,0 +1,19 @@
import postcss from 'postcss'
import postcssNested from 'postcss-nested'
import postcssJs from 'postcss-js'
export default function parseObjectStyles(styles) {
if (!Array.isArray(styles)) {
return parseObjectStyles([styles])
}
return styles.flatMap((style) => {
return postcss([
postcssNested({
bubble: ['screen'],
}),
]).process(style, {
parser: postcssJs,
}).root.nodes
})
}
@@ -0,0 +1,46 @@
import { AnyNode } from "domhandler";
import { DomSerializerOptions } from "dom-serializer";
/**
* @category Stringify
* @deprecated Use the `dom-serializer` module directly.
* @param node Node to get the outer HTML of.
* @param options Options for serialization.
* @returns `node`'s outer HTML.
*/
export declare function getOuterHTML(node: AnyNode | ArrayLike<AnyNode>, options?: DomSerializerOptions): string;
/**
* @category Stringify
* @deprecated Use the `dom-serializer` module directly.
* @param node Node to get the inner HTML of.
* @param options Options for serialization.
* @returns `node`'s inner HTML.
*/
export declare function getInnerHTML(node: AnyNode, options?: DomSerializerOptions): string;
/**
* Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. Ignores comments.
*
* @category Stringify
* @deprecated Use `textContent` instead.
* @param node Node to get the inner text of.
* @returns `node`'s inner text.
*/
export declare function getText(node: AnyNode | AnyNode[]): string;
/**
* Get a node's text content. Ignores comments.
*
* @category Stringify
* @param node Node to get the text content of.
* @returns `node`'s text content.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}
*/
export declare function textContent(node: AnyNode | AnyNode[]): string;
/**
* Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments.
*
* @category Stringify
* @param node Node to get the inner text of.
* @returns `node`'s inner text.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}
*/
export declare function innerText(node: AnyNode | AnyNode[]): string;
//# sourceMappingURL=stringify.d.ts.map
@@ -0,0 +1,35 @@
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
if (refs.length === 1 && refs[0]) return refs[0];
return (value)=>{
let hasCleanup = false;
const cleanups = refs.map((ref)=>{
const cleanup = $5dc95899b306f630$var$setRef(ref, value);
hasCleanup || (hasCleanup = typeof cleanup == 'function');
return cleanup;
});
if (hasCleanup) return ()=>{
cleanups.forEach((cleanup, i)=>{
if (typeof cleanup === 'function') cleanup();
else $5dc95899b306f630$var$setRef(refs[i], null);
});
};
};
}
function $5dc95899b306f630$var$setRef(ref, value) {
if (typeof ref === 'function') return ref(value);
else if (ref != null) ref.current = value;
}
export {$5dc95899b306f630$export$c9058316764c140e as mergeRefs};
//# sourceMappingURL=mergeRefs.module.js.map
@@ -0,0 +1,404 @@
'use strict'
var Progress = require('are-we-there-yet')
var Gauge = require('gauge')
var EE = require('events').EventEmitter
var log = exports = module.exports = new EE()
var util = require('util')
var setBlocking = require('set-blocking')
var consoleControl = require('console-control-strings')
setBlocking(true)
var stream = process.stderr
Object.defineProperty(log, 'stream', {
set: function (newStream) {
stream = newStream
if (this.gauge) {
this.gauge.setWriteTo(stream, stream)
}
},
get: function () {
return stream
},
})
// by default, decide based on tty-ness.
var colorEnabled
log.useColor = function () {
return colorEnabled != null ? colorEnabled : stream.isTTY
}
log.enableColor = function () {
colorEnabled = true
this.gauge.setTheme({ hasColor: colorEnabled, hasUnicode: unicodeEnabled })
}
log.disableColor = function () {
colorEnabled = false
this.gauge.setTheme({ hasColor: colorEnabled, hasUnicode: unicodeEnabled })
}
// default level
log.level = 'info'
log.gauge = new Gauge(stream, {
enabled: false, // no progress bars unless asked
theme: { hasColor: log.useColor() },
template: [
{ type: 'progressbar', length: 20 },
{ type: 'activityIndicator', kerning: 1, length: 1 },
{ type: 'section', default: '' },
':',
{ type: 'logline', kerning: 1, default: '' },
],
})
log.tracker = new Progress.TrackerGroup()
// we track this separately as we may need to temporarily disable the
// display of the status bar for our own loggy purposes.
log.progressEnabled = log.gauge.isEnabled()
var unicodeEnabled
log.enableUnicode = function () {
unicodeEnabled = true
this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: unicodeEnabled })
}
log.disableUnicode = function () {
unicodeEnabled = false
this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: unicodeEnabled })
}
log.setGaugeThemeset = function (themes) {
this.gauge.setThemeset(themes)
}
log.setGaugeTemplate = function (template) {
this.gauge.setTemplate(template)
}
log.enableProgress = function () {
if (this.progressEnabled) {
return
}
this.progressEnabled = true
this.tracker.on('change', this.showProgress)
if (this._paused) {
return
}
this.gauge.enable()
}
log.disableProgress = function () {
if (!this.progressEnabled) {
return
}
this.progressEnabled = false
this.tracker.removeListener('change', this.showProgress)
this.gauge.disable()
}
var trackerConstructors = ['newGroup', 'newItem', 'newStream']
var mixinLog = function (tracker) {
// mixin the public methods from log into the tracker
// (except: conflicts and one's we handle specially)
Object.keys(log).forEach(function (P) {
if (P[0] === '_') {
return
}
if (trackerConstructors.filter(function (C) {
return C === P
}).length) {
return
}
if (tracker[P]) {
return
}
if (typeof log[P] !== 'function') {
return
}
var func = log[P]
tracker[P] = function () {
return func.apply(log, arguments)
}
})
// if the new tracker is a group, make sure any subtrackers get
// mixed in too
if (tracker instanceof Progress.TrackerGroup) {
trackerConstructors.forEach(function (C) {
var func = tracker[C]
tracker[C] = function () {
return mixinLog(func.apply(tracker, arguments))
}
})
}
return tracker
}
// Add tracker constructors to the top level log object
trackerConstructors.forEach(function (C) {
log[C] = function () {
return mixinLog(this.tracker[C].apply(this.tracker, arguments))
}
})
log.clearProgress = function (cb) {
if (!this.progressEnabled) {
return cb && process.nextTick(cb)
}
this.gauge.hide(cb)
}
log.showProgress = function (name, completed) {
if (!this.progressEnabled) {
return
}
var values = {}
if (name) {
values.section = name
}
var last = log.record[log.record.length - 1]
if (last) {
values.subsection = last.prefix
var disp = log.disp[last.level] || last.level
var logline = this._format(disp, log.style[last.level])
if (last.prefix) {
logline += ' ' + this._format(last.prefix, this.prefixStyle)
}
logline += ' ' + last.message.split(/\r?\n/)[0]
values.logline = logline
}
values.completed = completed || this.tracker.completed()
this.gauge.show(values)
}.bind(log) // bind for use in tracker's on-change listener
// temporarily stop emitting, but don't drop
log.pause = function () {
this._paused = true
if (this.progressEnabled) {
this.gauge.disable()
}
}
log.resume = function () {
if (!this._paused) {
return
}
this._paused = false
var b = this._buffer
this._buffer = []
b.forEach(function (m) {
this.emitLog(m)
}, this)
if (this.progressEnabled) {
this.gauge.enable()
}
}
log._buffer = []
var id = 0
log.record = []
log.maxRecordSize = 10000
log.log = function (lvl, prefix, message) {
var l = this.levels[lvl]
if (l === undefined) {
return this.emit('error', new Error(util.format(
'Undefined log level: %j', lvl)))
}
var a = new Array(arguments.length - 2)
var stack = null
for (var i = 2; i < arguments.length; i++) {
var arg = a[i - 2] = arguments[i]
// resolve stack traces to a plain string.
if (typeof arg === 'object' && arg instanceof Error && arg.stack) {
Object.defineProperty(arg, 'stack', {
value: stack = arg.stack + '',
enumerable: true,
writable: true,
})
}
}
if (stack) {
a.unshift(stack + '\n')
}
message = util.format.apply(util, a)
var m = {
id: id++,
level: lvl,
prefix: String(prefix || ''),
message: message,
messageRaw: a,
}
this.emit('log', m)
this.emit('log.' + lvl, m)
if (m.prefix) {
this.emit(m.prefix, m)
}
this.record.push(m)
var mrs = this.maxRecordSize
var n = this.record.length - mrs
if (n > mrs / 10) {
var newSize = Math.floor(mrs * 0.9)
this.record = this.record.slice(-1 * newSize)
}
this.emitLog(m)
}.bind(log)
log.emitLog = function (m) {
if (this._paused) {
this._buffer.push(m)
return
}
if (this.progressEnabled) {
this.gauge.pulse(m.prefix)
}
var l = this.levels[m.level]
if (l === undefined) {
return
}
if (l < this.levels[this.level]) {
return
}
if (l > 0 && !isFinite(l)) {
return
}
// If 'disp' is null or undefined, use the lvl as a default
// Allows: '', 0 as valid disp
var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
this.clearProgress()
m.message.split(/\r?\n/).forEach(function (line) {
var heading = this.heading
if (heading) {
this.write(heading, this.headingStyle)
this.write(' ')
}
this.write(disp, log.style[m.level])
var p = m.prefix || ''
if (p) {
this.write(' ')
}
this.write(p, this.prefixStyle)
this.write(' ' + line + '\n')
}, this)
this.showProgress()
}
log._format = function (msg, style) {
if (!stream) {
return
}
var output = ''
if (this.useColor()) {
style = style || {}
var settings = []
if (style.fg) {
settings.push(style.fg)
}
if (style.bg) {
settings.push('bg' + style.bg[0].toUpperCase() + style.bg.slice(1))
}
if (style.bold) {
settings.push('bold')
}
if (style.underline) {
settings.push('underline')
}
if (style.inverse) {
settings.push('inverse')
}
if (settings.length) {
output += consoleControl.color(settings)
}
if (style.beep) {
output += consoleControl.beep()
}
}
output += msg
if (this.useColor()) {
output += consoleControl.color('reset')
}
return output
}
log.write = function (msg, style) {
if (!stream) {
return
}
stream.write(this._format(msg, style))
}
log.addLevel = function (lvl, n, style, disp) {
// If 'disp' is null or undefined, use the lvl as a default
if (disp == null) {
disp = lvl
}
this.levels[lvl] = n
this.style[lvl] = style
if (!this[lvl]) {
this[lvl] = function () {
var a = new Array(arguments.length + 1)
a[0] = lvl
for (var i = 0; i < arguments.length; i++) {
a[i + 1] = arguments[i]
}
return this.log.apply(this, a)
}.bind(this)
}
this.disp[lvl] = disp
}
log.prefixStyle = { fg: 'magenta' }
log.headingStyle = { fg: 'white', bg: 'black' }
log.style = {}
log.levels = {}
log.disp = {}
log.addLevel('silly', -Infinity, { inverse: true }, 'sill')
log.addLevel('verbose', 1000, { fg: 'cyan', bg: 'black' }, 'verb')
log.addLevel('info', 2000, { fg: 'green' })
log.addLevel('timing', 2500, { fg: 'green', bg: 'black' })
log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
log.addLevel('notice', 3500, { fg: 'cyan', bg: 'black' })
log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
log.addLevel('silent', Infinity)
// allow 'error' prefix
log.on('error', function () {})
@@ -0,0 +1,17 @@
{
"name": "lodash",
"version": "4.17.21",
"description": "Lodash modular utilities.",
"keywords": "modules, stdlib, util",
"homepage": "https://lodash.com/",
"repository": "lodash/lodash",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
"main": "lodash.js",
"author": "John-David Dalton <john.david.dalton@gmail.com>",
"contributors": [
"John-David Dalton <john.david.dalton@gmail.com>",
"Mathias Bynens <mathias@qiwi.be>"
],
"scripts": { "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" }
}
@@ -0,0 +1,66 @@
'use strict';
var ruleModules = require('../dotjs')
, toHash = require('./util').toHash;
module.exports = function rules() {
var RULES = [
{ type: 'number',
rules: [ { 'maximum': ['exclusiveMaximum'] },
{ 'minimum': ['exclusiveMinimum'] }, 'multipleOf', 'format'] },
{ type: 'string',
rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
{ type: 'array',
rules: [ 'maxItems', 'minItems', 'items', 'contains', 'uniqueItems' ] },
{ type: 'object',
rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'propertyNames',
{ 'properties': ['additionalProperties', 'patternProperties'] } ] },
{ rules: [ '$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if' ] }
];
var ALL = [ 'type', '$comment' ];
var KEYWORDS = [
'$schema', '$id', 'id', '$data', '$async', 'title',
'description', 'default', 'definitions',
'examples', 'readOnly', 'writeOnly',
'contentMediaType', 'contentEncoding',
'additionalItems', 'then', 'else'
];
var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
RULES.all = toHash(ALL);
RULES.types = toHash(TYPES);
RULES.forEach(function (group) {
group.rules = group.rules.map(function (keyword) {
var implKeywords;
if (typeof keyword == 'object') {
var key = Object.keys(keyword)[0];
implKeywords = keyword[key];
keyword = key;
implKeywords.forEach(function (k) {
ALL.push(k);
RULES.all[k] = true;
});
}
ALL.push(keyword);
var rule = RULES.all[keyword] = {
keyword: keyword,
code: ruleModules[keyword],
implements: implKeywords
};
return rule;
});
RULES.all.$comment = {
keyword: '$comment',
code: ruleModules.$comment
};
if (group.type) RULES.types[group.type] = group;
});
RULES.keywords = toHash(ALL.concat(KEYWORDS));
RULES.custom = {};
return RULES;
};
@@ -0,0 +1,622 @@
flf2a$ 6 5 20 0 9 0
ticks.flf (C) 1994 by Victor Parada (vparada@inf.utfsm.cl) 94/09/23.
figlet 2.1 font based on slide.flf.
Try option "-m 1" to smush one "_" between fonts.
Latin fonts a' e' i' o' u' n~ and N~ replaces A" O" U" a" o" u" and B.
____@
____@
____@
____@
____@
____@@
_/\/\_@
_/\/\_@
_/\/\_@
______@
_/\/\_@
______@@
_/\/\/\/\_@
_/\/\/\/\_@
_/\__/\___@
__________@
__________@
__________@@
___/\/\__/\/\___@
_/\/\/\/\/\/\/\_@
___/\/\__/\/\___@
_/\/\/\/\/\/\/\_@
___/\/\__/\/\___@
________________@@
_____/\/\_____@
___/\/\/\/\/\_@
_/\/\/\/\_____@
_____/\/\/\/\_@
_/\/\/\/\/\___@
_____/\/\_____@@
_/\/\____/\/\_@
_/\/\__/\/\___@
_____/\/\_____@
___/\/\__/\/\_@
_/\/\____/\/\_@
______________@@
_____/\/\_______@
_____/\/\_______@
___/\/\/\__/\/\_@
_/\/\____/\/\___@
___/\/\/\__/\/\_@
________________@@
_/\/\_@
_/\/\_@
_/\___@
______@
______@
______@@
___/\/\/\_@
_/\/\/\___@
_/\/\_____@
_/\/\/\___@
___/\/\/\_@
__________@@
_/\/\/\___@
___/\/\/\_@
_____/\/\_@
___/\/\/\_@
_/\/\/\___@
__________@@
___/\/\__/\/\___@
_____/\/\/\_____@
_/\/\/\/\/\/\/\_@
_____/\/\/\_____@
___/\/\__/\/\___@
________________@@
______________@
_____/\/\_____@
_/\/\/\/\/\/\_@
_____/\/\_____@
______________@
______________@@
______@
______@
______@
_/\/\_@
_/\/\_@
_/\___@@
__________@
__________@
_/\/\/\/\_@
__________@
__________@
__________@@
______@
______@
______@
_/\/\_@
_/\/\_@
______@@
_________/\/\_@
_______/\/\___@
_____/\/\_____@
___/\/\_______@
_/\/\_________@
______________@@
___/\/\/\/\___@
_/\/\____/\/\_@
_/\/\__/\/\/\_@
_/\/\/\__/\/\_@
___/\/\/\/\___@
______________@@
___/\/\_@
_/\/\/\_@
___/\/\_@
___/\/\_@
___/\/\_@
________@@
_/\/\/\/\/\___@
_________/\/\_@
___/\/\/\/\___@
_/\/\_________@
_/\/\/\/\/\/\_@
______________@@
_/\/\/\/\/\___@
_________/\/\_@
___/\/\/\/\___@
_________/\/\_@
_/\/\/\/\/\___@
______________@@
_____/\/\/\___@
___/\/\/\/\___@
_/\/\__/\/\___@
_/\/\/\/\/\/\_@
_______/\/\___@
______________@@
_/\/\/\/\/\/\_@
_/\/\_________@
_/\/\/\/\/\___@
_________/\/\_@
_/\/\/\/\/\___@
______________@@
___/\/\/\/\___@
_/\/\_________@
_/\/\/\/\/\___@
_/\/\____/\/\_@
___/\/\/\/\___@
______________@@
_/\/\/\/\/\/\_@
_______/\/\___@
_____/\/\_____@
___/\/\_______@
_/\/\_________@
______________@@
___/\/\/\/\___@
_/\/\____/\/\_@
___/\/\/\/\___@
_/\/\____/\/\_@
___/\/\/\/\___@
______________@@
___/\/\/\/\___@
_/\/\____/\/\_@
___/\/\/\/\/\_@
_________/\/\_@
___/\/\/\/\___@
______________@@
_/\/\_@
_/\/\_@
______@
_/\/\_@
_/\/\_@
______@@
_/\/\_@
_/\/\_@
______@
_/\/\_@
_/\/\_@
_/\___@@
_____/\/\_@
___/\/\___@
_/\/\_____@
___/\/\___@
_____/\/\_@
__________@@
__________@
_/\/\/\/\_@
__________@
_/\/\/\/\_@
__________@
__________@@
_/\/\_____@
___/\/\___@
_____/\/\_@
___/\/\___@
_/\/\_____@
__________@@
_/\/\/\/\/\___@
_________/\/\_@
_____/\/\/\___@
______________@
_____/\/\_____@
______________@@
___/\/\/\/\___@
_/\/\__/\/\/\_@
_/\/\__/\/\/\_@
_/\/\_________@
___/\/\/\/\___@
______________@@
_____/\/\_____@
___/\/\/\/\___@
_/\/\____/\/\_@
_/\/\/\/\/\/\_@
_/\/\____/\/\_@
______________@@
_/\/\/\/\/\___@
_/\/\____/\/\_@
_/\/\/\/\/\___@
_/\/\____/\/\_@
_/\/\/\/\/\___@
______________@@
___/\/\/\/\/\_@
_/\/\_________@
_/\/\_________@
_/\/\_________@
___/\/\/\/\/\_@
______________@@
_/\/\/\/\/\___@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\/\/\/\___@
______________@@
_/\/\/\/\/\/\_@
_/\___________@
_/\/\/\/\/\___@
_/\/\_________@
_/\/\/\/\/\/\_@
______________@@
_/\/\/\/\/\/\_@
_/\/\_________@
_/\/\/\/\/\___@
_/\/\_________@
_/\/\_________@
______________@@
___/\/\/\/\/\_@
_/\/\_________@
_/\/\__/\/\/\_@
_/\/\____/\/\_@
___/\/\/\/\/\_@
______________@@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\/\/\/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
______________@@
_/\/\/\/\_@
___/\/\___@
___/\/\___@
___/\/\___@
_/\/\/\/\_@
__________@@
_________/\/\_@
_________/\/\_@
_________/\/\_@
_/\/\____/\/\_@
___/\/\/\/\___@
______________@@
_/\/\____/\/\_@
_/\/\__/\/\___@
_/\/\/\/\_____@
_/\/\__/\/\___@
_/\/\____/\/\_@
______________@@
_/\/\_______@
_/\/\_______@
_/\/\_______@
_/\/\_______@
_/\/\/\/\/\_@
____________@@
_/\/\______/\/\_@
_/\/\/\__/\/\/\_@
_/\/\/\/\/\/\/\_@
_/\/\__/\__/\/\_@
_/\/\______/\/\_@
________________@@
_/\/\____/\/\_@
_/\/\/\__/\/\_@
_/\/\/\/\/\/\_@
_/\/\__/\/\/\_@
_/\/\____/\/\_@
______________@@
___/\/\/\/\___@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
___/\/\/\/\___@
______________@@
_/\/\/\/\/\___@
_/\/\____/\/\_@
_/\/\/\/\/\___@
_/\/\_________@
_/\/\_________@
______________@@
___/\/\/\/\___@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\__/\/\___@
___/\/\/\/\/\_@
______________@@
_/\/\/\/\/\___@
_/\/\____/\/\_@
_/\/\/\/\/\___@
_/\/\__/\/\___@
_/\/\____/\/\_@
______________@@
___/\/\/\/\/\_@
_/\/\_________@
___/\/\/\/\___@
_________/\/\_@
_/\/\/\/\/\___@
______________@@
_/\/\/\/\/\/\_@
_____/\/\_____@
_____/\/\_____@
_____/\/\_____@
_____/\/\_____@
______________@@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
___/\/\/\/\___@
______________@@
_/\/\____/\/\_@
_/\/\____/\/\_@
_/\/\____/\/\_@
___/\/\/\/\___@
_____/\/\_____@
______________@@
_/\/\______/\/\_@
_/\/\__/\__/\/\_@
_/\/\/\/\/\/\/\_@
_/\/\/\__/\/\/\_@
_/\/\______/\/\_@
________________@@
_/\/\____/\/\_@
___/\/\/\/\___@
_____/\/\_____@
___/\/\/\/\___@
_/\/\____/\/\_@
______________@@
_/\/\____/\/\_@
_/\/\____/\/\_@
___/\/\/\/\___@
_____/\/\_____@
_____/\/\_____@
______________@@
_/\/\/\/\/\/\_@
_______/\/\___@
_____/\/\_____@
___/\/\_______@
_/\/\/\/\/\/\_@
______________@@
_/\/\/\/\_@
_/\/\_____@
_/\/\_____@
_/\/\_____@
_/\/\/\/\_@
__________@@
_/\/\_________@
___/\/\_______@
_____/\/\_____@
_______/\/\___@
_________/\/\_@
______________@@
_/\/\/\/\_@
_____/\/\_@
_____/\/\_@
_____/\/\_@
_/\/\/\/\_@
__________@@
___/\/\___@
_/\/\/\/\_@
_/\____/\_@
__________@
__________@
__________@@
______________@
______________@
______________@
______________@
______________@
_/\/\/\/\/\/\_@@
_/\/\_@
_/\/\_@
___/\_@
______@
______@
______@@
____________@
_/\/\/\_____@
_____/\/\___@
_/\/\/\/\___@
_/\/\/\/\/\_@
____________@@
_/\/\_______@
_/\/\_______@
_/\/\/\/\___@
_/\/\__/\/\_@
_/\/\/\/\___@
____________@@
____________@
___/\/\/\/\_@
_/\/\_______@
_/\/\_______@
___/\/\/\/\_@
____________@@
_______/\/\_@
_______/\/\_@
___/\/\/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
____________@@
____________@
___/\/\/\___@
_/\/\/\/\/\_@
_/\/\_______@
___/\/\/\/\_@
____________@@
___/\/\/\_@
_/\/\_____@
_/\/\/\___@
_/\/\_____@
_/\/\_____@
__________@@
____________@
___/\/\/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
_______/\/\_@
_/\/\/\/\___@@
_/\/\_______@
_/\/\_______@
_/\/\/\/\___@
_/\/\__/\/\_@
_/\/\__/\/\_@
____________@@
_/\/\___@
________@
_/\/\___@
_/\/\___@
_/\/\/\_@
________@@
_____/\/\_@
__________@
_____/\/\_@
_____/\/\_@
_____/\/\_@
_/\/\/\___@@
_/\/\_______@
_/\/\__/\/\_@
_/\/\/\/\___@
_/\/\/\/\___@
_/\/\__/\/\_@
____________@@
_/\/\___@
_/\/\___@
_/\/\___@
_/\/\___@
_/\/\/\_@
________@@
________________@
_/\/\/\__/\/\___@
_/\/\/\/\/\/\/\_@
_/\/\__/\__/\/\_@
_/\/\______/\/\_@
________________@@
____________@
_/\/\/\/\___@
_/\/\__/\/\_@
_/\/\__/\/\_@
_/\/\__/\/\_@
____________@@
____________@
___/\/\/\___@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\___@
____________@@
____________@
_/\/\/\/\___@
_/\/\__/\/\_@
_/\/\/\/\___@
_/\/\_______@
_/\/\_______@@
____________@
___/\/\/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
_______/\/\_@
_______/\/\_@@
____________@
_/\/\__/\/\_@
_/\/\/\/\___@
_/\/\_______@
_/\/\_______@
____________@@
____________@
___/\/\/\/\_@
_/\/\/\/\___@
_______/\/\_@
_/\/\/\/\___@
____________@@
___/\/\_____@
_/\/\/\/\/\_@
___/\/\_____@
___/\/\_____@
___/\/\/\___@
____________@@
____________@
_/\/\__/\/\_@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
____________@@
____________@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\___@
_____/\_____@
____________@@
________________@
_/\/\______/\/\_@
_/\/\__/\__/\/\_@
_/\/\/\/\/\/\/\_@
___/\/\__/\/\___@
________________@@
____________@
_/\/\__/\/\_@
___/\/\/\___@
___/\/\/\___@
_/\/\__/\/\_@
____________@@
____________@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
_______/\/\_@
_/\/\/\/\___@@
____________@
_/\/\/\/\/\_@
_____/\/\___@
___/\/\_____@
_/\/\/\/\/\_@
____________@@
___/\/\/\/\_@
___/\/\_____@
_/\/\_______@
___/\/\_____@
___/\/\/\/\_@
____________@@
_/\/\_@
_/\/\_@
_/\/\_@
_/\/\_@
_/\/\_@
_/\/\_@@
_/\/\/\/\___@
_____/\/\___@
_______/\/\_@
_____/\/\___@
_/\/\/\/\___@
____________@@
___/\/\__/\/\_@
_/\/\/\/\/\/\_@
_/\/\__/\/\___@
______________@
______________@
______________@@
_______/\/\_@
_/\/\/\_____@
_____/\/\___@
_/\/\/\/\___@
_/\/\/\/\/\_@
____________@@
_______/\/\_@
___/\/\/\___@
_/\/\/\/\/\_@
_/\/\_______@
___/\/\/\/\_@
____________@@
___/\/\_@
________@
_/\/\___@
_/\/\___@
_/\/\/\_@
________@@
_______/\/\_@
___/\/\/\___@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\___@
____________@@
_______/\/\_@
_/\/\__/\/\_@
_/\/\__/\/\_@
_/\/\__/\/\_@
___/\/\/\/\_@
____________@@
_/\/\/\/\/\_@
____________@
_/\/\/\/\___@
_/\/\__/\/\_@
_/\/\__/\/\_@
____________@@
_/\/\/\/\/\/\_@
______________@
_/\/\/\__/\/\_@
_/\/\__/\/\/\_@
_/\/\____/\/\_@
______________@@
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more