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,45 @@
var path = require('path');
var parse = path.parse || require('path-parse'); // eslint-disable-line global-require
var driveLetterRegex = /^([A-Za-z]:)/;
var uncPathRegex = /^\\\\/;
var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
var prefix = '/';
if (driveLetterRegex.test(absoluteStart)) {
prefix = '';
} else if (uncPathRegex.test(absoluteStart)) {
prefix = '\\\\';
}
var paths = [absoluteStart];
var parsed = parse(absoluteStart);
while (parsed.dir !== paths[paths.length - 1]) {
paths.push(parsed.dir);
parsed = parse(parsed.dir);
}
return paths.reduce(function (dirs, aPath) {
return dirs.concat(modules.map(function (moduleDir) {
return path.resolve(prefix, aPath, moduleDir);
}));
}, []);
};
module.exports = function nodeModulesPaths(start, opts, request) {
var modules = opts && opts.moduleDirectory
? [].concat(opts.moduleDirectory)
: ['node_modules'];
if (opts && typeof opts.paths === 'function') {
return opts.paths(
request,
start,
function () { return getNodeModulesDirs(start, modules); },
opts
);
}
var dirs = getNodeModulesDirs(start, modules);
return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
};
@@ -0,0 +1,12 @@
# Node.js releases data
All data is located in `data` directory.
`data/processed` contains `envs.json` with node.js releases data preprocessed to be used by [Browserslist](https://github.com/ai/browserslist) and other projects. Each version in this file contains only necessary info: version, release date, LTS flag/name, and security flag.
`data/release-schedule` contains `release-schedule.json` with node.js releases date and end of life date.
## Installation
```bash
npm install node-releases
```
@@ -0,0 +1,169 @@
/**
* @fileoverview Globals for ecmaVersion/sourceType
* @author Nicholas C. Zakas
*/
"use strict";
//-----------------------------------------------------------------------------
// Globals
//-----------------------------------------------------------------------------
const commonjs = {
exports: true,
global: false,
module: false,
require: false,
};
const es3 = {
Array: false,
Boolean: false,
constructor: false,
Date: false,
decodeURI: false,
decodeURIComponent: false,
encodeURI: false,
encodeURIComponent: false,
Error: false,
escape: false,
eval: false,
EvalError: false,
Function: false,
hasOwnProperty: false,
Infinity: false,
isFinite: false,
isNaN: false,
isPrototypeOf: false,
Math: false,
NaN: false,
Number: false,
Object: false,
parseFloat: false,
parseInt: false,
propertyIsEnumerable: false,
RangeError: false,
ReferenceError: false,
RegExp: false,
String: false,
SyntaxError: false,
toLocaleString: false,
toString: false,
TypeError: false,
undefined: false,
unescape: false,
URIError: false,
valueOf: false,
};
const es5 = {
...es3,
JSON: false,
};
const es2015 = {
...es5,
ArrayBuffer: false,
DataView: false,
Float32Array: false,
Float64Array: false,
Int16Array: false,
Int32Array: false,
Int8Array: false,
Intl: false,
Map: false,
Promise: false,
Proxy: false,
Reflect: false,
Set: false,
Symbol: false,
Uint16Array: false,
Uint32Array: false,
Uint8Array: false,
Uint8ClampedArray: false,
WeakMap: false,
WeakSet: false,
};
// no new globals in ES2016
const es2016 = {
...es2015,
};
const es2017 = {
...es2016,
Atomics: false,
SharedArrayBuffer: false,
};
// no new globals in ES2018
const es2018 = {
...es2017,
};
// no new globals in ES2019
const es2019 = {
...es2018,
};
const es2020 = {
...es2019,
BigInt: false,
BigInt64Array: false,
BigUint64Array: false,
globalThis: false,
};
const es2021 = {
...es2020,
AggregateError: false,
FinalizationRegistry: false,
WeakRef: false,
};
const es2022 = {
...es2021,
};
const es2023 = {
...es2022,
};
const es2024 = {
...es2023,
};
const es2025 = {
...es2024,
Float16Array: false,
Iterator: false,
};
const es2026 = {
...es2025,
AsyncDisposableStack: false,
DisposableStack: false,
SuppressedError: false,
};
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
module.exports = {
commonjs,
es3,
es5,
es2015,
es2016,
es2017,
es2018,
es2019,
es2020,
es2021,
es2022,
es2023,
es2024,
es2025,
es2026,
};
@@ -0,0 +1 @@
{"version":3,"file":"InversifyCoreErrorKind.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyCoreErrorKind.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,0BAA0B,IAAA;IAC1B,yBAAyB,IAAA;IACzB,QAAQ,IAAA;IACR,UAAU,IAAA;IACV,OAAO,IAAA;CACR"}
@@ -0,0 +1,44 @@
var $8c61827343eed941$exports = require("./useId.main.js");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useLabels", () => $6ec78bde395c477d$export$d6875122194c7b44);
/*
* 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 $6ec78bde395c477d$export$d6875122194c7b44(props, defaultLabel) {
let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;
// If there is both an aria-label and aria-labelledby,
// combine them by pointing to the element itself.
id = (0, $8c61827343eed941$exports.useId)(id);
if (labelledBy && label) {
let ids = new Set([
id,
...labelledBy.trim().split(/\s+/)
]);
labelledBy = [
...ids
].join(' ');
} else if (labelledBy) labelledBy = labelledBy.trim().split(/\s+/).join(' ');
// If no labels are provided, use the default
if (!label && !labelledBy && defaultLabel) label = defaultLabel;
return {
id: id,
'aria-label': label,
'aria-labelledby': labelledBy
};
}
//# sourceMappingURL=useLabels.main.js.map
@@ -0,0 +1,89 @@
import {constants} from 'micromark-util-symbol'
/**
* Like `Array#splice`, but smarter for giant arrays.
*
* `Array#splice` takes all items to be inserted as individual argument which
* causes a stack overflow in V8 when trying to insert 100k items for instance.
*
* Otherwise, this does not return the removed items, and takes `items` as an
* array instead of rest parameters.
*
* @template {unknown} T
* Item type.
* @param {Array<T>} list
* List to operate on.
* @param {number} start
* Index to remove/insert at (can be negative).
* @param {number} remove
* Number of items to remove.
* @param {Array<T>} items
* Items to inject into `list`.
* @returns {undefined}
* Nothing.
*/
export function splice(list, start, remove, items) {
const end = list.length
let chunkStart = 0
/** @type {Array<unknown>} */
let parameters
// Make start between zero and `end` (included).
if (start < 0) {
start = -start > end ? 0 : end + start
} else {
start = start > end ? end : start
}
remove = remove > 0 ? remove : 0
// No need to chunk the items if there’s only a couple (10k) items.
if (items.length < constants.v8MaxSafeChunkSize) {
parameters = Array.from(items)
parameters.unshift(start, remove)
// @ts-expect-error Hush, it’s fine.
list.splice(...parameters)
} else {
// Delete `remove` items starting from `start`
if (remove) list.splice(start, remove)
// Insert the items in chunks to not cause stack overflows.
while (chunkStart < items.length) {
parameters = items.slice(
chunkStart,
chunkStart + constants.v8MaxSafeChunkSize
)
parameters.unshift(start, 0)
// @ts-expect-error Hush, it’s fine.
list.splice(...parameters)
chunkStart += constants.v8MaxSafeChunkSize
start += constants.v8MaxSafeChunkSize
}
}
}
/**
* Append `items` (an array) at the end of `list` (another array).
* When `list` was empty, returns `items` instead.
*
* This prevents a potentially expensive operation when `list` is empty,
* and adds items in batches to prevent V8 from hanging.
*
* @template {unknown} T
* Item type.
* @param {Array<T>} list
* List to operate on.
* @param {Array<T>} items
* Items to add to `list`.
* @returns {Array<T>}
* Either `list` or `items`.
*/
export function push(list, items) {
if (list.length > 0) {
splice(list, list.length, 0, items)
return list
}
return items
}
@@ -0,0 +1,32 @@
"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/common/dimensions.ts
var dimensions_exports = {};
__export(dimensions_exports, {
getMargin: () => getMargin
});
module.exports = __toCommonJS(dimensions_exports);
var getMargin = (num) => {
return `calc(${num * 15.25}pt + 1px * ${num - 1})`;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
getMargin
});
@@ -0,0 +1 @@
{"name":"tsconfig-paths","version":"3.15.0","requiresBuild":false,"files":{"CHANGELOG.md":{"checkedAt":1794532098020,"integrity":"sha512-l0hTgEuKtlv0IkiMCXed9aWyxFb88dn1SDxhQZz/ZvEUNO2yIcsVVhUH3GPCyRmwzi8wuwQ76vt9wyZSmXbNTQ==","mode":420,"size":11749},"LICENSE":{"checkedAt":1794532098020,"integrity":"sha512-oV+ZgzBoDknqGrVwtdcpalLFgMt+4s3f8U5+iFsp5voGQ4xN55PDnP6GOSllhKr8WYRTLhULPYYIp6pt0W9UcQ==","mode":420,"size":1078},"README.md":{"checkedAt":1794532098020,"integrity":"sha512-mwMYN+4CwQLHZy5ieKdJr3yJxZyFczN8WgqxHMnS6YcYpYVMB5b0HocD5sNec/FuUxjTz/BRMI6EsdD9xRQq7A==","mode":420,"size":9724},"package.json":{"checkedAt":1794532098020,"integrity":"sha512-rTbcUWOfuvdF187FQ6l2G/KrC58Azd6FNh+WeEz7KPAFYCIxyMKkOKiCtFcIeJaI94NVRw9IQQ9GPHyJepLLYg==","mode":420,"size":2007},"register.js":{"checkedAt":1794532098020,"integrity":"sha512-RBYKsy+EbDNpy07mcXNgdxLJCzns5NFr83uuyApBlseinkbj2Gu7uunfPmMdA7MrPSN1PURq144i3faW3eXDiw==","mode":420,"size":26},"lib/config-loader.d.ts":{"checkedAt":1794532098020,"integrity":"sha512-8CrjwTDU/AA8GT4R/eqApoDPWerQU5TadmLE5M4JgIExWUTkYIlkAHA6KLcr7rqTI1IwjyS8FOnQ8dy0oIGN0A==","mode":420,"size":1135},"lib/config-loader.js":{"checkedAt":1794532098021,"integrity":"sha512-wMishYFTR7W+lMk5YNRtV2xT7KFhb3n2cH3GrPnVkSzdzRzsWvgJNuUB1lE8iaO2uGCVZDwa/L7Xa7XjfSj1Qw==","mode":420,"size":2109},"lib/config-loader.js.map":{"checkedAt":1794532098021,"integrity":"sha512-mssYNG8aOalNBfEDZtW4LEO+VeBtOmg0RTf5aGOMocvYSSQcm1Sil9U7Wxh/DG7wTQqo9LKVKkTEouGKWg1M2g==","mode":420,"size":1507},"lib/filesystem.d.ts":{"checkedAt":1794532098021,"integrity":"sha512-IXnP4073lVf4GkwKuSY/OcdEwmO1uUjwNr2YqfDEc4r68G4gx2DLKCjvnxy0ZNtjpkre4jEgTRWMkQhwYE+qQw==","mode":420,"size":1124},"lib/filesystem.js":{"checkedAt":1794532098021,"integrity":"sha512-SMXX4zdvBJGAi8G1ZmtbVbt3QK86Xry/AQnvzL0hf8mCckWZpHpjcIc8hufUXHHkoo3SiRJorwbZVzwIEtdTtw==","mode":420,"size":1742},"lib/filesystem.js.map":{"checkedAt":1794532098021,"integrity":"sha512-9hByeUE3iiAtrUfQ3TCkrYMbzR39gmPgZDtoeNGofKvMVFJuUbsAz5HWmYPlPQ22Axdy+tyvGTXCuJBbiAy6wQ==","mode":420,"size":1328},"lib/index.d.ts":{"checkedAt":1794532098021,"integrity":"sha512-+1SFgfeFTV9ZUzhlRvQQHSntIZ4bD+SYomegSda57Xr1OPtWu4nN8k6JMbryeZvVsnOk8v2tAUMOb6Sy97TivQ==","mode":420,"size":445},"lib/index.js":{"checkedAt":1794532098021,"integrity":"sha512-ZJyCsywy1nhIzl0Lz3QCcjJl3JgKtwlAe1wdmyGoFQXuWjeLURGtDg9fGy+I7HFxP0P+/Oa+Ri9zHh+jaKe1kw==","mode":420,"size":1374},"lib/index.js.map":{"checkedAt":1794532098021,"integrity":"sha512-9Mocipra67mV2OZeaP3FRhg4QY43Jcl0Yjy3MU412KUBlvnrzqvplEUyVcPEI+Dk8rljjoNhNKyGawgQqrh0mQ==","mode":420,"size":305},"lib/mapping-entry.d.ts":{"checkedAt":1794532098022,"integrity":"sha512-0S+kcq5iBmus6Re4MjI8wIHvUj02CT8u3JUXmpHwQQfxDD4hrBZG3upuvXlZBkQyCdFYm3ud3V/6P4GTmmkVcg==","mode":420,"size":648},"lib/mapping-entry.js":{"checkedAt":1794532098022,"integrity":"sha512-ody9gD/Gv9eppa6iai2XNYCoDaFhmgvmwBeva34JA8oCWkjvLwmNzh4b9btyejhaAKJsiL0NK16OqA30fbrZzw==","mode":420,"size":2096},"lib/mapping-entry.js.map":{"checkedAt":1794532098022,"integrity":"sha512-wyUS4Nwcdlj2H3tLI03sfjuKL3208vN4OONW4dw5miam3WGriXRiaNnmudm3HgPlm9kR7uWPnbgIUxXhXAZ33g==","mode":420,"size":1233},"lib/match-path-async.d.ts":{"checkedAt":1794532098022,"integrity":"sha512-qA2wVYTkwzao4KMq+JFY7iQRKYFGncebtsbVWn/vxWzD4wtgoIIHmljiXZjvg7MMFW70yyTc5+lc4xkEvdZnVA==","mode":420,"size":1090},"lib/match-path-async.js":{"checkedAt":1794532098022,"integrity":"sha512-9aiqFyDYf7aHqteBW8MBiAZT5srb13VNXfaKFc2NpsXNNAHQaQ530GYWW8SViG+vhOXdy1Nth9rtE18LcIOeFg==","mode":420,"size":5246},"lib/match-path-async.js.map":{"checkedAt":1794532098022,"integrity":"sha512-4MOz7XZAlA84kenkOiWlp+fd1BHFGhb5c54EbhmjBRQb1G9lj9RMPK3wyx8BCRn+FGPmTKN3h4WRumBVyjbTNw==","mode":420,"size":3528},"lib/match-path-sync.d.ts":{"checkedAt":1794532098022,"integrity":"sha512-qcM2R/rfuAmlVgnL1ZU0GUjMPtk6+uvO1RB5Xhq85kiyz+Ns7R5qDI/owpXRJzl1rZUErIROnIcm4LZea3JgOg==","mode":420,"size":1846},"lib/match-path-sync.js":{"checkedAt":1794532098023,"integrity":"sha512-uDyEm0BaJZTJzlAB5wkJvtIhIiKKfC2T8b+HqjIsyueeBjya3XrPV0dcI2LU/PB0Lw3GnTBqdGGK3w8xbS6SSA==","mode":420,"size":4299},"lib/match-path-sync.js.map":{"checkedAt":1794532098023,"integrity":"sha512-7hPBy1Z0X4QFDfnbew3aMLG2J8x2vuogRMkaEnxb7GDjOxbGWCEqEXq90s17M5o0Cxm1J4JZ3tVUC25l+H4a1A==","mode":420,"size":2366},"lib/options.d.ts":{"checkedAt":1794532098023,"integrity":"sha512-YLTe9NY4VrU8NyxmYOhhNUt8FLFzRjR5Um6WbgNnw5GFVwlUfSXKqpO0aClp2vd7mUhI8aPAxB6+CfmRLUFFHg==","mode":420,"size":85},"lib/options.js":{"checkedAt":1794532098023,"integrity":"sha512-oFcUmL7dR1qWgSIAca1ldIkB4lLWt9IcfK+FKQSrIt8pSMHPpZxfU/F+1nctLMwson7k5QuAr21cjcL7otqOkg==","mode":420,"size":386},"lib/options.js.map":{"checkedAt":1794532098023,"integrity":"sha512-aYogoikxsmh+FMLCYEPPPQHgw2uSENfbEwFNPW6DpfVaZEecAgXjqQjjdQmaOiD7t6KC3Ay/t7fE8KxHt86gZA==","mode":420,"size":421},"lib/register.d.ts":{"checkedAt":1794532098023,"integrity":"sha512-dpj2HwWu27f4XuGljfaeWkKP2d6NKzyy4KEQ0DeFU2yIeeOceqDTzLD876M96jCRKrnQRMBRLB97Teu5w/Us7g==","mode":420,"size":266},"lib/registLine truncated
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAmCM,SAAS,0CAA+B,KAAmB;IAChE,IAAI,UAAC,MAAM,kBAAE,cAAc,EAAC,GAAG;IAE/B,IAAI,iBAAiB,CAAA,GAAA,sDAAwB,EAAE;IAC/C,IAAI,eAAe,CAAA,GAAA,oBAAM,EAAE,IACzB,MAAM,YAAY,GAAG,IAAI,IAAI,MAAM,YAAY,IAAI,IAAI,OACvD;QAAC,MAAM,YAAY;KAAC;IAEtB,IAAI,UAAU,CAAA,GAAA,wBAAU,EAAE,CAAA,QAAS,SAAS,IAAI,CAAA,GAAA,wCAAa,EAAE,OAAO,UAAU,IAAI,CAAA,GAAA,wCAAa,EAAE,QAA6B;QAAC;KAAO;IACxI,IAAI,UAAU,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,0BAA0B,MAAM,wBAAwB;QAAA,CAAA,GAAI;QAAC,MAAM,wBAAwB;KAAC;IAE1H,IAAI,aAAa,CAAA,GAAA,4CAAY,EAAE,OAAO,SAAS;IAE/C,IAAI,mBAAmB,CAAA,GAAA,oBAAM,EAAE,IAC7B,IAAI,CAAA,GAAA,6CAAe,EAAE,YAAY,gBAAgB;4BAAC;QAAc,IAC9D;QAAC;QAAY;QAAgB;KAAe;IAGhD,yCAAmB,YAAY;IAE/B,OAAO;oBACL;sBACA;0BACA;IACF;AACF;AAKO,SAAS,0CAAgD,KAAmB,EAAE,QAA4E;IAC/J,IAAI,aAAa,CAAA,GAAA,oBAAM,EAAE,IAAM,WAAW,MAAM,UAAU,CAAC,MAAM,CAAE,YAAY,MAAM,UAAU,EAAE;QAAC,MAAM,UAAU;QAAE;KAAS;IAC7H,IAAI,mBAAmB,MAAM,gBAAgB,CAAC,cAAc,CAAC;IAC7D,yCAAmB,YAAY;IAC/B,OAAO;oBACL;0BACA;QACA,cAAc,MAAM,YAAY;IAClC;AACF;AAEA,SAAS,yCAAsB,UAA+B,EAAE,gBAAkC;IAChG,iEAAiE;IACjE,MAAM,mBAAmB,CAAA,GAAA,mBAAK,EAA8B;IAC5D,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,iBAAiB,UAAU,IAAI,QAAQ,CAAC,WAAW,OAAO,CAAC,iBAAiB,UAAU,KAAK,iBAAiB,OAAO,EAAE;YACvH,MAAM,YAAY,iBAAiB,OAAO,CAAC,OAAO,CAAC,iBAAiB,UAAU;YAC9E,MAAM,kBAAkB;mBAAI,iBAAiB,OAAO,CAAC,OAAO;aAAG,CAAC,GAAG,CACjE,CAAA;gBACE,MAAM,WAAW,iBAAiB,OAAO,CAAE,OAAO,CAAC;gBACnD,OAAO,CAAA,qBAAA,+BAAA,SAAU,IAAI,MAAK,SAAS,WAAW;YAChD,GACA,MAAM,CAAC,CAAA,OAAQ,SAAS;YAC1B,MAAM,YAAY;mBAAI,WAAW,OAAO;aAAG,CAAC,GAAG,CAC7C,CAAA;gBACE,MAAM,WAAW,WAAW,OAAO,CAAC;gBACpC,OAAO,CAAA,qBAAA,+BAAA,SAAU,IAAI,MAAK,SAAS,WAAW;YAChD,GACA,MAAM,CAAC,CAAA,OAAQ,SAAS;gBACJ,yBAAiC;YAAvD,MAAM,OAAe,AAAC,CAAA,CAAA,0BAAA,4BAAA,sCAAA,gBAAiB,MAAM,cAAvB,qCAAA,0BAA2B,CAAA,IAAM,CAAA,CAAA,oBAAA,sBAAA,gCAAA,UAAW,MAAM,cAAjB,+BAAA,oBAAqB,CAAA;gBAI9D,kBACV,mBAED;YANH,IAAI,QAAQ,KAAK,GAAG,CAEhB,OAAO,IACP,KAAK,GAAG,CAAC,AAAC,CAAA,CAAA,mBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,8BAAA,mBAAoB,CAAA,IAAK,OAAO,GAAG,KAC7C,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB,GAEtB,AAAC,CAAA,CAAA,qBAAA,sBAAA,gCAAA,UAAW,MAAM,cAAjB,gCAAA,qBAAqB,CAAA,IAAK;YAC7B,IAAI,UAA0B;YAC9B,IAAI,qBAAqB;YACzB,MAAO,SAAS,EAAG;gBACjB,IAAI,CAAC,iBAAiB,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG;oBACtD,UAAU,SAAS,CAAC,MAAM;oBAC1B;gBACF;gBACA,gCAAgC;gBAChC,IAAI,QAAQ,UAAU,MAAM,GAAG,KAAK,CAAC,oBACnC;qBAEK;oBACL,qBAAqB;wBACR,mBACF;oBADX,IAAI,QAAS,CAAA,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB,CAAA,GAC/B,QAAS,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB;oBAE/B;gBACF;YACF;YACA,iBAAiB,aAAa,CAAC,UAAU,QAAQ,GAAG,GAAG;QACzD;QACA,iBAAiB,OAAO,GAAG;IAC7B,GAAG;QAAC;QAAY;KAAiB;AACnC","sources":["packages/@react-stately/list/src/useListState.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, CollectionStateBase, Key, LayoutDelegate, Node} from '@react-types/shared';\nimport {ListCollection} from './ListCollection';\nimport {MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection';\nimport {useCallback, useEffect, useMemo, useRef} from 'react';\nimport {useCollection} from '@react-stately/collections';\n\nexport interface ListProps<T> extends CollectionStateBase<T>, MultipleSelectionStateProps {\n /** Filter function to generate a filtered list of nodes. */\n filter?: (nodes: Iterable<Node<T>>) => Iterable<Node<T>>,\n /** @private */\n suppressTextValueWarning?: boolean,\n /**\n * A delegate object that provides layout information for items in the collection.\n * This can be used to override the behavior of shift selection.\n */\n layoutDelegate?: LayoutDelegate\n}\n\nexport interface ListState<T> {\n /** A collection of items in the list. */\n collection: Collection<Node<T>>,\n\n /** A set of items that are disabled. */\n disabledKeys: Set<Key>,\n\n /** A selection manager to read and update multiple selection state. */\n selectionManager: SelectionManager\n}\n\n/**\n * Provides state management for list-like components. Handles building a collection\n * of items from props, and manages multiple selection state.\n */\nexport function useListState<T extends object>(props: ListProps<T>): ListState<T> {\n let {filter, layoutDelegate} = props;\n\n let selectionState = useMultipleSelectionState(props);\n let disabledKeys = useMemo(() =>\n props.disabledKeys ? new Set(props.disabledKeys) : new Set<Key>()\n , [props.disabledKeys]);\n\n let Line truncated
@@ -0,0 +1,395 @@
3.1.0 / 2017-09-26
==================
* Add `DEBUG_HIDE_DATE` env var (#486)
* Remove ReDoS regexp in %o formatter (#504)
* Remove "component" from package.json
* Remove `component.json`
* Ignore package-lock.json
* Examples: fix colors printout
* Fix: browser detection
* Fix: spelling mistake (#496, @EdwardBetts)
3.0.1 / 2017-08-24
==================
* Fix: Disable colors in Edge and Internet Explorer (#489)
3.0.0 / 2017-08-08
==================
* Breaking: Remove DEBUG_FD (#406)
* Breaking: Use `Date#toISOString()` instead to `Date#toUTCString()` when output is not a TTY (#418)
* Breaking: Make millisecond timer namespace specific and allow 'always enabled' output (#408)
* Addition: document `enabled` flag (#465)
* Addition: add 256 colors mode (#481)
* Addition: `enabled()` updates existing debug instances, add `destroy()` function (#440)
* Update: component: update "ms" to v2.0.0
* Update: separate the Node and Browser tests in Travis-CI
* Update: refactor Readme, fixed documentation, added "Namespace Colors" section, redid screenshots
* Update: separate Node.js and web browser examples for organization
* Update: update "browserify" to v14.4.0
* Fix: fix Readme typo (#473)
2.6.9 / 2017-09-22
==================
* remove ReDoS regexp in %o formatter (#504)
2.6.8 / 2017-05-18
==================
* Fix: Check for undefined on browser globals (#462, @marbemac)
2.6.7 / 2017-05-16
==================
* Fix: Update ms to 2.0.0 to fix regular expression denial of service vulnerability (#458, @hubdotcom)
* Fix: Inline extend function in node implementation (#452, @dougwilson)
* Docs: Fix typo (#455, @msasad)
2.6.5 / 2017-04-27
==================
* Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek)
* Misc: clean up browser reference checks (#447, @thebigredgeek)
* Misc: add npm-debug.log to .gitignore (@thebigredgeek)
2.6.4 / 2017-04-20
==================
* Fix: bug that would occur if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
* Chore: ignore bower.json in npm installations. (#437, @joaovieira)
* Misc: update "ms" to v0.7.3 (@tootallnate)
2.6.3 / 2017-03-13
==================
* Fix: Electron reference to `process.env.DEBUG` (#431, @paulcbetts)
* Docs: Changelog fix (@thebigredgeek)
2.6.2 / 2017-03-10
==================
* Fix: DEBUG_MAX_ARRAY_LENGTH (#420, @slavaGanzin)
* Docs: Add backers and sponsors from Open Collective (#422, @piamancini)
* Docs: Add Slackin invite badge (@tootallnate)
2.6.1 / 2017-02-10
==================
* Fix: Module's `export default` syntax fix for IE8 `Expected identifier` error
* Fix: Whitelist DEBUG_FD for values 1 and 2 only (#415, @pi0)
* Fix: IE8 "Expected identifier" error (#414, @vgoma)
* Fix: Namespaces would not disable once enabled (#409, @musikov)
2.6.0 / 2016-12-28
==================
* Fix: added better null pointer checks for browser useColors (@thebigredgeek)
* Improvement: removed explicit `window.debug` export (#404, @tootallnate)
* Improvement: deprecated `DEBUG_FD` environment variable (#405, @tootallnate)
2.5.2 / 2016-12-25
==================
* Fix: reference error on window within webworkers (#393, @KlausTrainer)
* Docs: fixed README typo (#391, @lurch)
* Docs: added notice about v3 api discussion (@thebigredgeek)
2.5.1 / 2016-12-20
==================
* Fix: babel-core compatibility
2.5.0 / 2016-12-20
==================
* Fix: wrong reference in bower file (@thebigredgeek)
* Fix: webworker compatibility (@thebigredgeek)
* Fix: output formatting issue (#388, @kribblo)
* Fix: babel-loader compatibility (#383, @escwald)
* Misc: removed built asset from repo and publications (@thebigredgeek)
* Misc: moved source files to /src (#378, @yamikuronue)
* Test: added karma integration and replaced babel with browserify for browser tests (#378, @yamikuronue)
* Test: coveralls integration (#378, @yamikuronue)
* Docs: simplified language in the opening paragraph (#373, @yamikuronue)
2.4.5 / 2016-12-17
==================
* Fix: `navigator` undefined in Rhino (#376, @jochenberger)
* Fix: custom log function (#379, @hsiliev)
* Improvement: bit of cleanup + linting fixes (@thebigredgeek)
* Improvement: rm non-maintainted `dist/` dir (#375, @freewil)
* Docs: simplified language in the opening paragraph. (#373, @yamikuronue)
2.4.4 / 2016-12-14
==================
* Fix: work around debug being loaded in preload scripts for electron (#368, @paulcbetts)
2.4.3 / 2016-12-14
==================
* Fix: navigation.userAgent error for react native (#364, @escwald)
2.4.2 / 2016-12-14
==================
* Fix: browser colors (#367, @tootallnate)
* Misc: travis ci integration (@thebigredgeek)
* Misc: added linting and testing boilerplate with sanity check (@thebigredgeek)
2.4.1 / 2016-12-13
==================
* Fix: typo that broke the package (#356)
2.4.0 / 2016-12-13
==================
* Fix: bower.json references unbuilt src entry point (#342, @justmatt)
* Fix: revert "handle regex special characters" (@tootallnate)
* Feature: configurable util.inspect()`options for NodeJS (#327, @tootallnate)
* Feature: %O`(big O) pretty-prints objects (#322, @tootallnate)
* Improvement: allow colors in workers (#335, @botverse)
* Improvement: use same color for same namespace. (#338, @lchenay)
2.3.3 / 2016-11-09
==================
* Fix: Catch `JSON.stringify()` errors (#195, Jovan Alleyne)
* Fix: Returning `localStorage` saved values (#331, Levi Thomason)
* Improvement: Don't create an empty object when no `process` (Nathan Rajlich)
2.3.2 / 2016-11-09
==================
* Fix: be super-safe in index.js as well (@TooTallNate)
* Fix: should check whether process exists (Tom Newby)
2.3.1 / 2016-11-09
==================
* Fix: Added electron compatibility (#324, @paulcbetts)
* Improvement: Added performance optimizations (@tootallnate)
* Readme: Corrected PowerShell environment variable example (#252, @gimre)
* Misc: Removed yarn lock file from source control (#321, @fengmk2)
2.3.0 / 2016-11-07
==================
* Fix: Consistent placement of ms diff at end of output (#215, @gorangajic)
* Fix: Escaping of regex special characters in namespace strings (#250, @zacronos)
* Fix: Fixed bug causing crash on react-native (#282, @vkarpov15)
* Feature: Enabled ES6+ compatible import via default export (#212 @bucaran)
* Feature: Added %O formatter to reflect Chrome's console.log capability (#279, @oncletom)
* Package: Update "ms" to 0.7.2 (#315, @DevSide)
* Package: removed superfluous version property from bower.json (#207 @kkirsche)
* Readme: fix USE_COLORS to DEBUG_COLORS
* Readme: Doc fixes for format string sugar (#269, @mlucool)
* Readme: Updated docs for DEBUG_FD and DEBUG_COLORS environment variables (#232, @mattlyons0)
* Readme: doc fixes for PowerShell (#271 #243, @exoticknight @unreadable)
* Readme: better docs for browser support (#224, @matthewmueller)
* Tooling: Added yarn integration for development (#317, @thebigredgeek)
* Misc: Renamed History.md to CHANGELOG.md (@thebigredgeek)
* Misc: Added license file (#226 #274, @CantemoInternal @sdaitzman)
* Misc: Updated contributors (@thebigredgeek)
2.2.0 / 2015-05-09
==================
* package: update "ms" to v0.7.1 (#202, @dougwilson)
* README: add logging to file example (#193, @DanielOchoa)
* README: fixed a typo (#191, @amir-s)
* browser: expose `storage` (#190, @stephenmathieson)
* Makefile: add a `distclean` target (#189, @stephenmathieson)
2.1.3 / 2015-03-13
==================
* Updated stdout/stderr example (#186)
* Updated example/stdout.js to match debug current behaviour
* Renamed example/stderr.js to stdout.js
* Update Readme.md (#184)
* replace high intensity foreground color for bold (#182, #183)
2.1.2 / 2015-03-01
==================
* dist: recompile
* update "ms" to v0.7.0
* package: update "browserify" to v9.0.3
* component: fix "ms.js" repo location
* changed bower package name
* updated documentation about using debug in a browser
* fix: security error on safari (#167, #168, @yields)
2.1.1 / 2014-12-29
==================
* browser: use `typeof` to check for `console` existence
* browser: check for `console.log` truthiness (fix IE 8/9)
* browser: add support for Chrome apps
* Readme: added Windows usage remarks
* Add `bower.json` to properly support bower install
2.1.0 / 2014-10-15
==================
* node: implement `DEBUG_FD` env variable support
* package: update "browserify" to v6.1.0
* package: add "license" field to package.json (#135, @panuhorsmalahti)
2.0.0 / 2014-09-01
==================
* package: update "browserify" to v5.11.0
* node: use stderr rather than stdout for logging (#29, @stephenmathieson)
1.0.4 / 2014-07-15
==================
* dist: recompile
* example: remove `console.info()` log usage
* example: add "Content-Type" UTF-8 header to browser example
* browser: place %c marker after the space character
* browser: reset the "content" color via `color: inherit`
* browser: add colors support for Firefox >= v31
* debug: prefer an instance `log()` function over the global one (#119)
* Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
1.0.3 / 2014-07-09
==================
* Add support for multiple wildcards in namespaces (#122, @seegno)
* browser: fix lint
1.0.2 / 2014-06-10
==================
* browser: update color palette (#113, @gscottolson)
* common: make console logging function configurable (#108, @timoxley)
* node: fix %o colors on old node <= 0.8.x
* Makefile: find node path using shell/which (#109, @timoxley)
1.0.1 / 2014-06-06
==================
* browser: use `removeItem()` to clear localStorage
* browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
* package: add "contributors" section
* node: fix comment typo
* README: list authors
1.0.0 / 2014-06-04
==================
* make ms diff be global, not be scope
* debug: ignore empty strings in enable()
* node: make DEBUG_COLORS able to disable coloring
* *: export the `colors` array
* npmignore: don't publish the `dist` dir
* Makefile: refactor to use browserify
* package: add "browserify" as a dev dependency
* Readme: add Web Inspector Colors section
* node: reset terminal color for the debug content
* node: map "%o" to `util.inspect()`
* browser: map "%j" to `JSON.stringify()`
* debug: add custom "formatters"
* debug: use "ms" module for humanizing the diff
* Readme: add "bash" syntax highlighting
* browser: add Firebug color support
* browser: add colors for WebKit browsers
* node: apply log to `console`
* rewrite: abstract common logic for Node & browsers
* add .jshintrc file
0.8.1 / 2014-04-14
==================
* package: re-add the "component" section
0.8.0 / 2014-03-30
==================
* add `enable()` method for nodejs. Closes #27
* change from stderr to stdout
* remove unnecessary index.js file
0.7.4 / 2013-11-13
==================
* remove "browserify" key from package.json (fixes something in browserify)
0.7.3 / 2013-10-30
==================
* fix: catch localStorage security error when cookies are blocked (Chrome)
* add debug(err) support. Closes #46
* add .browser prop to package.json. Closes #42
0.7.2 / 2013-02-06
==================
* fix package.json
* fix: Mobile Safari (private mode) is broken with debug
* fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
0.7.1 / 2013-02-05
==================
* add repository URL to package.json
* add DEBUG_COLORED to force colored output
* add browserify support
* fix component. Closes #24
0.7.0 / 2012-05-04
==================
* Added .component to package.json
* Added debug.component.js build
0.6.0 / 2012-03-16
==================
* Added support for "-" prefix in DEBUG [Vinay Pulim]
* Added `.enabled` flag to the node version [TooTallNate]
0.5.0 / 2012-02-02
==================
* Added: humanize diffs. Closes #8
* Added `debug.disable()` to the CS variant
* Removed padding. Closes #10
* Fixed: persist client-side variant again. Closes #9
0.4.0 / 2012-02-01
==================
* Added browser variant support for older browsers [TooTallNate]
* Added `debug.enable('project:*')` to browser variant [TooTallNate]
* Added padding to diff (moved it to the right)
0.3.0 / 2012-01-26
==================
* Added millisecond diff when isatty, otherwise UTC string
0.2.0 / 2012-01-22
==================
* Added wildcard support
0.1.0 / 2011-12-02
==================
* Added: remove colors unless stderr isatty [TooTallNate]
0.0.1 / 2010-01-03
==================
* Initial release
@@ -0,0 +1,7 @@
'use strict'
module.exports = {
SemVer: require('./semver.js'),
Range: require('./range.js'),
Comparator: require('./comparator.js'),
}
@@ -0,0 +1,4 @@
import { g } from "./set-C8keYf_N.mjs";
export {
g as default
};
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _isNativeReflectConstruct;
function _isNativeReflectConstruct() {
try {
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
} catch (_) {}
return (exports.default = _isNativeReflectConstruct = function () {
return !!result;
})();
}
//# sourceMappingURL=isNativeReflectConstruct.js.map
@@ -0,0 +1,20 @@
interface UseDisclosureProps {
isOpen?: boolean;
defaultOpen?: boolean;
onClose?(): void;
onOpen?(): void;
onChange?(isOpen: boolean | undefined): void;
id?: string;
}
declare function useDisclosure(props?: UseDisclosureProps): {
isOpen: boolean;
onOpen: () => void;
onClose: () => void;
onOpenChange: () => void;
isControlled: boolean;
getButtonProps: (props?: any) => any;
getDisclosureProps: (props?: any) => any;
};
type UseDisclosureReturn = ReturnType<typeof useDisclosure>;
export { UseDisclosureProps, UseDisclosureReturn, useDisclosure };
@@ -0,0 +1,229 @@
var $59kHH$reactariautils = require("@react-aria/utils");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "usePreventScroll", () => $5c2f5cd01815d369$export$ee0f7cc6afcd1c18);
/*
* 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.
*/
const $5c2f5cd01815d369$var$visualViewport = typeof document !== 'undefined' && window.visualViewport;
// HTML input types that do not cause the software keyboard to appear.
const $5c2f5cd01815d369$var$nonTextInputTypes = new Set([
'checkbox',
'radio',
'range',
'color',
'file',
'image',
'button',
'submit',
'reset'
]);
// The number of active usePreventScroll calls. Used to determine whether to revert back to the original page style/scroll position
let $5c2f5cd01815d369$var$preventScrollCount = 0;
let $5c2f5cd01815d369$var$restore;
function $5c2f5cd01815d369$export$ee0f7cc6afcd1c18(options = {}) {
let { isDisabled: isDisabled } = options;
(0, $59kHH$reactariautils.useLayoutEffect)(()=>{
if (isDisabled) return;
$5c2f5cd01815d369$var$preventScrollCount++;
if ($5c2f5cd01815d369$var$preventScrollCount === 1) {
if ((0, $59kHH$reactariautils.isIOS)()) $5c2f5cd01815d369$var$restore = $5c2f5cd01815d369$var$preventScrollMobileSafari();
else $5c2f5cd01815d369$var$restore = $5c2f5cd01815d369$var$preventScrollStandard();
}
return ()=>{
$5c2f5cd01815d369$var$preventScrollCount--;
if ($5c2f5cd01815d369$var$preventScrollCount === 0) $5c2f5cd01815d369$var$restore();
};
}, [
isDisabled
]);
}
// For most browsers, all we need to do is set `overflow: hidden` on the root element, and
// add some padding to prevent the page from shifting when the scrollbar is hidden.
function $5c2f5cd01815d369$var$preventScrollStandard() {
return (0, $59kHH$reactariautils.chain)($5c2f5cd01815d369$var$setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`), $5c2f5cd01815d369$var$setStyle(document.documentElement, 'overflow', 'hidden'));
}
// Mobile Safari is a whole different beast. Even with overflow: hidden,
// it still scrolls the page in many situations:
//
// 1. When the bottom toolbar and address bar are collapsed, page scrolling is always allowed.
// 2. When the keyboard is visible, the viewport does not resize. Instead, the keyboard covers part of
// it, so it becomes scrollable.
// 3. When tapping on an input, the page always scrolls so that the input is centered in the visual viewport.
// This may cause even fixed position elements to scroll off the screen.
// 4. When using the next/previous buttons in the keyboard to navigate between inputs, the whole page always
// scrolls, even if the input is inside a nested scrollable element that could be scrolled instead.
//
// In order to work around these cases, and prevent scrolling without jankiness, we do a few things:
//
// 1. Prevent default on `touchmove` events that are not in a scrollable element. This prevents touch scrolling
// on the window.
// 2. Set `overscroll-behavior: contain` on nested scrollable regions so they do not scroll the page when at
// the top or bottom. Work around a bug where this does not work when the element does not actually overflow
// by preventing default in a `touchmove` event.
// 3. Prevent default on `touchend` events on input elements and handle focusing the element ourselves.
// 4. When focusing an input, apply a transform to trick Safari into thinking the input is at the top
// of the page, which prevents it from scrolling the page. After the input is focused, scroll the element
// into view ourselves, without scrolling the whole page.
// 5. Offset the body by the scroll position using a negative margin and scroll to the top. This should appear the
// same visually, but makes the actual scroll position always zero. This is required to make all of the
// above work or Safari will still try to scroll the page when focusing an input.
// 6. As a last resort, handle window scroll events, and scroll back to the top. This can happen when attempting
// to navigate to an input with the next/previous buttons that's outside a modal.
function $5c2f5cd01815d369$var$preventScrollMobileSafari() {
let scrollable;
let restoreScrollableStyles;
let onTouchStart = (e)=>{
// Store the nearest scrollable parent element from the element that the user touched.
scrollable = (0, $59kHH$reactariautils.getScrollParent)(e.target, true);
if (scrollable === document.documentElement && scrollable === document.body) return;
// Prevent scrolling up when at the top and scrolling down when at the bottom
// of a nested scrollable area, otherwise mobile Safari will start scrolling
// the window instead.
if (scrollable instanceof HTMLElement && window.getComputedStyle(scrollable).overscrollBehavior === 'auto') restoreScrollableStyles = $5c2f5cd01815d369$var$setStyle(scrollable, 'overscrollBehavior', 'contain');
};
let onTouchMove = (e)=>{
// Prevent scrolling the window.
if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
e.preventDefault();
return;
}
// overscroll-behavior should prevent scroll chaining, but currently does not
// if the element doesn't actually overflow. https://bugs.webkit.org/show_bug.cgi?id=243452
// This checks that both the width and height do not overflow, otherwise we might
// block horizontal scrolling too. In that case, adding `touch-action: pan-x` to
// the element will prevent vertical page scrolling. We can't add that automatically
// because it must be set before the touchstart event.
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
};
let onTouchEnd = (e)=>{
let target = e.target;
// Apply this change if we're not already focused on the target element
if ($5c2f5cd01815d369$var$willOpenKeyboard(target) && target !== document.activeElement) {
e.preventDefault();
setupStyles();
// Apply a transform to trick Safari into thinking the input is at the top of the page
// so it doesn't try to scroll it into view. When tapping on an input, this needs to
// be done before the "focus" event, so we have to focus the element ourselves.
target.style.transform = 'translateY(-2000px)';
target.focus();
requestAnimationFrame(()=>{
target.style.transform = '';
});
}
if (restoreScrollableStyles) restoreScrollableStyles();
};
let onFocus = (e)=>{
let target = e.target;
if ($5c2f5cd01815d369$var$willOpenKeyboard(target)) {
setupStyles();
// Transform also needs to be applied in the focus event in cases where focus moves
// other than tapping on an input directly, e.g. the next/previous buttons in the
// software keyboard. In these cases, it seems applying the transform in the focus event
// is good enough, whereas when tapping an input, it must be done before the focus event. 🤷‍♂️
target.style.transform = 'translateY(-2000px)';
requestAnimationFrame(()=>{
target.style.transform = '';
// This will have prevented the browser from scrolling the focused element into view,
// so we need to do this ourselves in a way that doesn't cause the whole page to scroll.
if ($5c2f5cd01815d369$var$visualViewport) {
if ($5c2f5cd01815d369$var$visualViewport.height < window.innerHeight) // If the keyboard is already visible, do this after one additional frame
// to wait for the transform to be removed.
requestAnimationFrame(()=>{
$5c2f5cd01815d369$var$scrollIntoView(target);
});
else // Otherwise, wait for the visual viewport to resize before scrolling so we can
// measure the correct position to scroll to.
$5c2f5cd01815d369$var$visualViewport.addEventListener('resize', ()=>$5c2f5cd01815d369$var$scrollIntoView(target), {
once: true
});
}
});
}
};
let restoreStyles = null;
let setupStyles = ()=>{
if (restoreStyles) return;
let onWindowScroll = ()=>{
// Last resort. If the window scrolled, scroll it back to the top.
// It should always be at the top because the body will have a negative margin (see below).
window.scrollTo(0, 0);
};
// Record the original scroll position so we can restore it.
// Then apply a negative margin to the body to offset it by the scroll position. This will
// enable us to scroll the window to the top, which is required for the rest of this to work.
let scrollX = window.pageXOffset;
let scrollY = window.pageYOffset;
restoreStyles = (0, $59kHH$reactariautils.chain)($5c2f5cd01815d369$var$addEvent(window, 'scroll', onWindowScroll), $5c2f5cd01815d369$var$setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`), $5c2f5cd01815d369$var$setStyle(document.documentElement, 'overflow', 'hidden'), $5c2f5cd01815d369$var$setStyle(document.body, 'marginTop', `-${scrollY}px`), ()=>{
window.scrollTo(scrollX, scrollY);
});
// Scroll to the top. The negative margin on the body will make this appear the same.
window.scrollTo(0, 0);
};
let removeEvents = (0, $59kHH$reactariautils.chain)($5c2f5cd01815d369$var$addEvent(document, 'touchstart', onTouchStart, {
passive: false,
capture: true
}), $5c2f5cd01815d369$var$addEvent(document, 'touchmove', onTouchMove, {
passive: false,
capture: true
}), $5c2f5cd01815d369$var$addEvent(document, 'touchend', onTouchEnd, {
passive: false,
capture: true
}), $5c2f5cd01815d369$var$addEvent(document, 'focus', onFocus, true));
return ()=>{
// Restore styles and scroll the page back to where it was.
restoreScrollableStyles === null || restoreScrollableStyles === void 0 ? void 0 : restoreScrollableStyles();
restoreStyles === null || restoreStyles === void 0 ? void 0 : restoreStyles();
removeEvents();
};
}
// Sets a CSS property on an element, and returns a function to revert it to the previous value.
function $5c2f5cd01815d369$var$setStyle(element, style, value) {
let cur = element.style[style];
element.style[style] = value;
return ()=>{
element.style[style] = cur;
};
}
// Adds an event listener to an element, and returns a function to remove it.
function $5c2f5cd01815d369$var$addEvent(target, event, handler, options) {
// internal function, so it's ok to ignore the difficult to fix type error
// @ts-ignore
target.addEventListener(event, handler, options);
return ()=>{
// @ts-ignore
target.removeEventListener(event, handler, options);
};
}
function $5c2f5cd01815d369$var$scrollIntoView(target) {
let root = document.scrollingElement || document.documentElement;
let nextTarget = target;
while(nextTarget && nextTarget !== root){
// Find the parent scrollable element and adjust the scroll position if the target is not already in view.
let scrollable = (0, $59kHH$reactariautils.getScrollParent)(nextTarget);
if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) {
let scrollableTop = scrollable.getBoundingClientRect().top;
let targetTop = nextTarget.getBoundingClientRect().top;
if (targetTop > scrollableTop + nextTarget.clientHeight) scrollable.scrollTop += targetTop - scrollableTop;
}
nextTarget = scrollable.parentElement;
}
}
function $5c2f5cd01815d369$var$willOpenKeyboard(target) {
return target instanceof HTMLInputElement && !$5c2f5cd01815d369$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
}
//# sourceMappingURL=usePreventScroll.main.js.map
@@ -0,0 +1,9 @@
1.0.0 / 2015-09-29
==================
* chore: use eslint and es6
* test: add test with co
* travis: test on node(1,2,3,4)
* feat: support promise
* fork from supershabam/ready
@@ -0,0 +1 @@
{"version":3,"file":"cacheNonRootPlanServiceNode.d.ts","sourceRoot":"","sources":["../../../../src/planning/actions/cacheNonRootPlanServiceNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,UAAU,EAAE,oBAAoB,EAChC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,2BAA2B,GACnC,IAAI,CAiBN"}
@@ -0,0 +1 @@
{"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,gEAAgE;AAChE,uCAAuC;;;AAEvC,iDAAmD;AAEnD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAA;AAED;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,MAAM,GAAG,GAAG,IAAA,qBAAK,EACf,OAAO,CAAC,QAAQ,EAChB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACvC;QACE,KAAK,EAAE,QAAQ;KAChB,CACF,CAAA;IACD,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,IAAI,CAAC,SAAS;YAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAdY,QAAA,QAAQ,YAcpB","sourcesContent":["// this spawns a child process that listens for SIGHUP when the\n// parent process exits, and after 200ms, sends a SIGKILL to the\n// child, in case it did not terminate.\n\nimport { ChildProcess, spawn } from 'child_process'\n\nconst watchdogCode = String.raw`\nconst pid = parseInt(process.argv[1], 10)\nprocess.title = 'node (foreground-child watchdog pid=' + pid + ')'\nif (!isNaN(pid)) {\n let barked = false\n // keepalive\n const interval = setInterval(() => {}, 60000)\n const bark = () => {\n clearInterval(interval)\n if (barked) return\n barked = true\n process.removeListener('SIGHUP', bark)\n setTimeout(() => {\n try {\n process.kill(pid, 'SIGKILL')\n setTimeout(() => process.exit(), 200)\n } catch (_) {}\n }, 500)\n })\n process.on('SIGHUP', bark)\n}\n`\n\n/**\n * Pass in a ChildProcess, and this will spawn a watchdog process that\n * will make sure it exits if the parent does, thus preventing any\n * dangling detached zombie processes.\n *\n * If the child ends before the parent, then the watchdog will terminate.\n */\nexport const watchdog = (child: ChildProcess) => {\n let dogExited = false\n const dog = spawn(\n process.execPath,\n ['-e', watchdogCode, String(child.pid)],\n {\n stdio: 'ignore',\n },\n )\n dog.on('exit', () => (dogExited = true))\n child.on('exit', () => {\n if (!dogExited) dog.kill('SIGKILL')\n })\n return dog\n}\n"]}
@@ -0,0 +1,73 @@
# string.prototype.matchall <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
ES2020 spec-compliant shim for String.prototype.matchAll. Invoke its "shim" method to shim `String.prototype.matchAll` if it is unavailable or noncompliant.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment, and complies with the [spec](https://tc39.es/ecma262/#sec-string.prototype.matchall).
Most common usage:
```js
const assert = require('assert');
const matchAll = require('string.prototype.matchall');
const str = 'aabc';
const nonRegexStr = 'ab';
const globalRegex = /[ac]/g;
const nonGlobalRegex = /[bc]/i;
// non-regex arguments are coerced into a global regex
assert.deepEqual(
[...matchAll(str, nonRegexStr)],
[...matchAll(str, new RegExp(nonRegexStr, 'g'))]
);
assert.deepEqual([...matchAll(str, globalRegex)], [
Object.assign(['a'], { index: 0, input: str, groups: undefined }),
Object.assign(['a'], { index: 1, input: str, groups: undefined }),
Object.assign(['c'], { index: 3, input: str, groups: undefined }),
]);
assert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw
matchAll.shim(); // will be a no-op if not needed
// non-regex arguments are coerced into a global regex
assert.deepEqual(
[...str.matchAll(nonRegexStr)],
[...str.matchAll(new RegExp(nonRegexStr, 'g'))]
);
assert.deepEqual([...str.matchAll(globalRegex)], [
Object.assign(['a'], { index: 0, input: str, groups: undefined }),
Object.assign(['a'], { index: 1, input: str, groups: undefined }),
Object.assign(['c'], { index: 3, input: str, groups: undefined }),
]);
assert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.com/package/string.prototype.matchall
[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.matchAll.svg
[deps-svg]: https://david-dm.org/es-shims/String.prototype.matchAll.svg
[deps-url]: https://david-dm.org/es-shims/String.prototype.matchAll
[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.matchAll/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.matchAll#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/string.prototype.matchall.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/string.prototype.matchall.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/string.prototype.matchall.svg
[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.matchall
[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.matchAll/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.matchAll/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.matchAll
[actions-url]: https://github.com/es-shims/String.prototype.matchAll/actions
@@ -0,0 +1,14 @@
/**
* The base implementation of `_.property` without support for deep paths.
*
* @private
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function baseProperty(key) {
return function(object) {
return object == null ? undefined : object[key];
};
}
export default baseProperty;
@@ -0,0 +1,147 @@
import { expect, expectTypeOf, test } from "vitest";
import * as z from "zod/v4";
const nested = z.object({
name: z.string(),
age: z.number(),
outer: z.object({
inner: z.string(),
}),
array: z.array(z.object({ asdf: z.string() })),
});
test("shallow inference", () => {
const shallow = nested.partial();
type shallow = z.infer<typeof shallow>;
expectTypeOf<shallow>().toEqualTypeOf<{
name?: string | undefined;
age?: number | undefined;
outer?: { inner: string } | undefined;
array?: { asdf: string }[] | undefined;
}>();
});
test("shallow partial parse", () => {
const shallow = nested.partial();
shallow.parse({});
shallow.parse({
name: "asdf",
age: 23143,
});
});
test("required", () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
nullableField: z.number().nullable(),
nullishField: z.string().nullish(),
});
const requiredObject = object.required();
expect(requiredObject.shape.name).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.name.unwrap()).toBeInstanceOf(z.ZodString);
expect(requiredObject.shape.age).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.age.unwrap()).toBeInstanceOf(z.ZodOptional);
expect(requiredObject.shape.field).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.field.unwrap()).toBeInstanceOf(z.ZodDefault);
expect(requiredObject.shape.nullableField).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.nullableField.unwrap()).toBeInstanceOf(z.ZodNullable);
expect(requiredObject.shape.nullishField).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.nullishField.unwrap()).toBeInstanceOf(z.ZodOptional);
expect(requiredObject.shape.nullishField.unwrap().unwrap()).toBeInstanceOf(z.ZodNullable);
});
test("required inference", () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
nullableField: z.number().nullable(),
nullishField: z.string().nullish(),
});
const requiredObject = object.required();
type required = z.infer<typeof requiredObject>;
type expected = {
name: string;
age: number;
field: string;
nullableField: number | null;
nullishField: string | null;
};
expectTypeOf<expected>().toEqualTypeOf<required>();
});
test("required with mask", () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
country: z.string().optional(),
});
const requiredObject = object.required({ age: true });
expect(requiredObject.shape.name).toBeInstanceOf(z.ZodString);
expect(requiredObject.shape.age).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.field).toBeInstanceOf(z.ZodDefault);
expect(requiredObject.shape.country).toBeInstanceOf(z.ZodOptional);
});
test("required with mask -- ignore falsy values", () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
country: z.string().optional(),
});
// @ts-expect-error
const requiredObject = object.required({ age: true, country: false });
expect(requiredObject.shape.name).toBeInstanceOf(z.ZodString);
expect(requiredObject.shape.age).toBeInstanceOf(z.ZodNonOptional);
expect(requiredObject.shape.field).toBeInstanceOf(z.ZodDefault);
expect(requiredObject.shape.country).toBeInstanceOf(z.ZodOptional);
});
test("partial with mask", async () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
country: z.string(),
});
const masked = object.partial({ age: true, field: true, name: true }).strict();
expect(masked.shape.name).toBeInstanceOf(z.ZodOptional);
expect(masked.shape.age).toBeInstanceOf(z.ZodOptional);
expect(masked.shape.field).toBeInstanceOf(z.ZodOptional);
expect(masked.shape.country).toBeInstanceOf(z.ZodString);
masked.parse({ country: "US" });
await masked.parseAsync({ country: "US" });
});
test("partial with mask -- ignore falsy values", async () => {
const object = z.object({
name: z.string(),
age: z.number().optional(),
field: z.string().optional().default("asdf"),
country: z.string(),
});
// @ts-expect-error
const masked = object.partial({ name: true, country: false }).strict();
expect(masked.shape.name).toBeInstanceOf(z.ZodOptional);
expect(masked.shape.age).toBeInstanceOf(z.ZodOptional);
expect(masked.shape.field).toBeInstanceOf(z.ZodDefault);
expect(masked.shape.country).toBeInstanceOf(z.ZodString);
masked.parse({ country: "US" });
await masked.parseAsync({ country: "US" });
});
@@ -0,0 +1,71 @@
import { Plugin } from 'vite';
import { PngOptions, JpegOptions, TiffOptions, GifOptions, WebpOptions, AvifOptions } from 'sharp';
import { Config as SVGOConfig } from 'svgo';
interface Options {
/**
* test to match files against
*/
test?: RegExp;
/**
* files to include
*/
include?: RegExp | string | string[];
/**
* files to exclude
*/
exclude?: RegExp | string | string[];
/**
* include assets in public dir or not
*/
includePublic?: boolean;
/**
* display logs using colors or not
*/
ansiColors?: boolean;
/**
* log stats to the terminal or not
*/
logStats?: boolean;
/**
* svgo opts
*/
svg?: SVGOConfig;
/**
* sharp opts for png
*/
png?: PngOptions;
/**
* sharp opts for jpeg
*/
jpeg?: JpegOptions;
/**
* sharp opts for jpg
*/
jpg?: JpegOptions;
/**
* sharp opts for tiff
*/
tiff?: TiffOptions;
/**
* sharp opts for gif
*/
gif?: GifOptions;
/**
* sharp opts for webp
*/
webp?: WebpOptions;
/**
* sharp opts for avif
*/
avif?: AvifOptions;
/**
* cache optimized images or not
*/
cache?: boolean;
/**
* path to the cache directory
*/
cacheLocation?: string;
}
declare function ViteImageOptimizer(optionsParam?: Options): Plugin;
export { ViteImageOptimizer };
@@ -0,0 +1,5 @@
{
"name": "goober",
"main": "goober.d.ts",
"version": false
}
@@ -0,0 +1,39 @@
'use strict';
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var IsDetachedBuffer = require('./IsDetachedBuffer');
var isArrayBuffer = require('is-array-buffer');
var isSharedArrayBuffer = require('is-shared-array-buffer');
var MessageChannel;
try {
// eslint-disable-next-line global-require
MessageChannel = require('worker_threads').MessageChannel; // node 11.7+
} catch (e) { /**/ }
// https://262.ecma-international.org/8.0/#sec-detacharraybuffer
/* globals postMessage */
module.exports = function DetachArrayBuffer(arrayBuffer) {
if (!isArrayBuffer(arrayBuffer) || isSharedArrayBuffer(arrayBuffer)) {
throw new $TypeError('Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot, and not a Shared Array Buffer');
}
if (!IsDetachedBuffer(arrayBuffer)) { // node v21.0.0+ throws when you structuredClone a detached buffer
if (typeof structuredClone === 'function') {
structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
} else if (typeof postMessage === 'function') {
postMessage('', '/', [arrayBuffer]); // TODO: see if this might trigger listeners
} else if (MessageChannel) {
(new MessageChannel()).port1.postMessage(null, [arrayBuffer]);
} else {
throw new $SyntaxError('DetachArrayBuffer is not supported in this environment');
}
}
return null;
};
@@ -0,0 +1,52 @@
{
"name": "emoji-regex",
"version": "9.2.2",
"description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.",
"homepage": "https://mths.be/emoji-regex",
"main": "index.js",
"types": "index.d.ts",
"keywords": [
"unicode",
"regex",
"regexp",
"regular expressions",
"code points",
"symbols",
"characters",
"emoji"
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "https://mathiasbynens.be/"
},
"repository": {
"type": "git",
"url": "https://github.com/mathiasbynens/emoji-regex.git"
},
"bugs": "https://github.com/mathiasbynens/emoji-regex/issues",
"files": [
"LICENSE-MIT.txt",
"index.js",
"index.d.ts",
"RGI_Emoji.js",
"RGI_Emoji.d.ts",
"text.js",
"text.d.ts",
"es2015"
],
"scripts": {
"build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src es2015_types -D -d ./es2015; node script/inject-sequences.js",
"test": "mocha",
"test:watch": "npm run test -- --watch"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@unicode/unicode-13.0.0": "^1.0.3",
"mocha": "^6.1.4",
"regexgen": "^1.3.0"
}
}
@@ -0,0 +1,9 @@
declare const env: {
__proto__: null,
boundFnsHaveConfigurableLengths: boolean;
boundFnsHaveWritableLengths: boolean;
functionsHaveConfigurableLengths: boolean;
functionsHaveWritableLengths: boolean;
};
export = env;
@@ -0,0 +1,46 @@
/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ } = require("@eslint-community/eslint-utils")
const checkForPreferGlobal = require("../../util/check-prefer-global")
const traceMap = {
globals: {
console: { [READ]: true },
},
modules: {
console: { [READ]: true },
"node:console": { [READ]: true },
},
}
/** @type {import('../rule-module').RuleModule} */
module.exports = {
meta: {
docs: {
description: 'enforce either `console` or `require("console")`',
recommended: false,
url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md",
},
type: "suggestion",
fixable: null,
schema: [{ enum: ["always", "never"] }],
messages: {
preferGlobal:
"Unexpected use of 'require(\"console\")'. Use the global variable 'console' instead.",
preferModule:
"Unexpected use of the global variable 'console'. Use 'require(\"console\")' instead.",
},
},
create(context) {
return {
"Program:exit"() {
checkForPreferGlobal(context, traceMap)
},
}
},
}
@@ -0,0 +1 @@
{"name":"baseline-browser-mapping","version":"2.8.27","requiresBuild":false,"files":{"dist/index.cjs":{"checkedAt":1794532117493,"integrity":"sha512-y/UVaWh/zZq6YN9z9jO5F7NxMefnHQDvopSf1Lps0pxVj63+8YpSPMaNdVr6IICdAvJURWxBvpun5S+yVRuVWQ==","mode":420,"size":114438},"dist/cli.js":{"checkedAt":1794532117493,"integrity":"sha512-59X+6kpaLN2BWHaiO/OymjHcaJlR9EuPBdAmc/hJf9xH7UarFT+uehcnbKUx6IOsnWrmyAnDDlMVaDgyxwr8Nw==","mode":420,"size":2032},"dist/index.js":{"checkedAt":1794532117494,"integrity":"sha512-ASH6U+DobxNqlBU8QZzPmocVe/e+zoX0F1cYYCqsEDSt/37yUJJbg6VtDMfHsvkQ5EZW9+e2YjAmOg1IJo5nUg==","mode":420,"size":114426},"package.json":{"checkedAt":1794532117494,"integrity":"sha512-UmrbIq5dd3nhzBa684ZCXw2Nen+xLxHrSmcw0CxXr+cvtltRxFreaIBPCgOXvESZU4v20RpIgJ12T8KOEQ9FOg==","mode":420,"size":3147},"README.md":{"checkedAt":1794532117494,"integrity":"sha512-fa92naCwz9EcJEqcCItVwx6KEiyg9i511xQ/K4+3ilcNZfl+Q8xsS2Sw8+U3CfavGh2kGJ4QLyavBU81M+U9+Q==","mode":420,"size":18828},"dist/index.d.ts":{"checkedAt":1794532117495,"integrity":"sha512-CWMm41kuRHkh2z5XeFqw6ylds99Q/bCbjP/T95e+Q/CiKkAfP8Kr2NQxT5ahiZNXZwP9HBd3VKQpy6522iiqaw==","mode":420,"size":3974},"LICENSE.txt":{"checkedAt":1794532092659,"integrity":"sha512-3Gto0TuM+VlkS5NfEZKwLHGqelz2U71DtEgPqJ7sjU0/FqInjsjDtAqx/bIzsxc6eP2DWQ1vc54Mno/1bCglVw==","mode":420,"size":11357}}}
@@ -0,0 +1,38 @@
'use strict';
var $TypeError = require('es-errors/type');
var gOPD = require('gopd');
var isObject = require('../helpers/isObject');
var isPropertyKey = require('../helpers/isPropertyKey');
var CreateDataPropertyOrThrow = require('./CreateDataPropertyOrThrow');
var SameValue = require('./SameValue');
var Set = require('./Set');
// https://262.ecma-international.org/16.0/#sec-SetterThatIgnoresPrototypeProperties
module.exports = function SetterThatIgnoresPrototypeProperties(thisValue, home, p, v) {
if (!isObject(home)) {
throw new $TypeError('Assertion failed: `home` must be an object');
}
if (!isPropertyKey(p)) {
throw new $TypeError('Assertion failed: `p` must be a Property Key');
}
if (!isObject(thisValue)) { // step 1
throw new $TypeError('Assertion failed: `thisValue` must be an Object'); // step 1.a
}
if (SameValue(thisValue, home)) { // step 2
throw new $TypeError('Throwing here emulates assignment to a non-writable data property on the `home` object in strict mode code'); // step 2.b
}
var desc = gOPD(thisValue, p); // step 3
if (typeof desc === 'undefined') { // step 4
CreateDataPropertyOrThrow(thisValue, p, v); // step 4.a
} else { // step 5
Set(thisValue, p, v, true); // step 5.a
}
};
@@ -0,0 +1,76 @@
# clean-stack [![Build Status](https://travis-ci.org/sindresorhus/clean-stack.svg?branch=master)](https://travis-ci.org/sindresorhus/clean-stack)
> Clean up error stack traces
Removes the mostly unhelpful internal Node.js entries.
Also works in Electron.
## Install
```
$ npm install clean-stack
```
## Usage
```js
const cleanStack = require('clean-stack');
const error = new Error('Missing unicorn');
console.log(error.stack);
/*
Error: Missing unicorn
at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
*/
console.log(cleanStack(error.stack));
/*
Error: Missing unicorn
at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
*/
```
## API
### cleanStack(stack, [options])
#### stack
Type: `string`
The `stack` property of an `Error`.
#### options
Type: `Object`
##### pretty
Type: `boolean`<br>
Default: `false`
Prettify the file paths in the stack:
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
## Related
- [extrack-stack](https://github.com/sindresorhus/extract-stack) - Extract the actual stack of an error
- [stack-utils](https://github.com/tapjs/stack-utils) - Captures and cleans stack traces
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,418 @@
/**
* @fileoverview Rule to require braces in arrow function body.
* @author Alberto Rodríguez
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "suggestion",
defaultOptions: ["as-needed"],
docs: {
description: "Require braces around arrow function bodies",
recommended: false,
frozen: true,
url: "https://eslint.org/docs/latest/rules/arrow-body-style",
},
schema: {
anyOf: [
{
type: "array",
items: [
{
enum: ["always", "never"],
},
],
minItems: 0,
maxItems: 1,
},
{
type: "array",
items: [
{
enum: ["as-needed"],
},
{
type: "object",
properties: {
requireReturnForObjectLiteral: {
type: "boolean",
},
},
additionalProperties: false,
},
],
minItems: 0,
maxItems: 2,
},
],
},
fixable: "code",
messages: {
unexpectedOtherBlock:
"Unexpected block statement surrounding arrow body.",
unexpectedEmptyBlock:
"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",
unexpectedObjectBlock:
"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",
unexpectedSingleBlock:
"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",
expectedBlock: "Expected block statement surrounding arrow body.",
},
},
create(context) {
const options = context.options;
const always = options[0] === "always";
const asNeeded = options[0] === "as-needed";
const never = options[0] === "never";
const requireReturnForObjectLiteral =
options[1] && options[1].requireReturnForObjectLiteral;
const sourceCode = context.sourceCode;
let funcInfo = null;
/**
* Checks whether the given node has ASI problem or not.
* @param {Token} token The token to check.
* @returns {boolean} `true` if it changes semantics if `;` or `}` followed by the token are removed.
*/
function hasASIProblem(token) {
return (
token &&
token.type === "Punctuator" &&
/^[([/`+-]/u.test(token.value)
);
}
/**
* Gets the closing parenthesis by the given node.
* @param {ASTNode} node first node after an opening parenthesis.
* @returns {Token} The found closing parenthesis token.
*/
function findClosingParen(node) {
let nodeToCheck = node;
while (!astUtils.isParenthesised(sourceCode, nodeToCheck)) {
nodeToCheck = nodeToCheck.parent;
}
return sourceCode.getTokenAfter(nodeToCheck);
}
/**
* Check whether the node is inside of a for loop's init
* @param {ASTNode} node node is inside for loop
* @returns {boolean} `true` if the node is inside of a for loop, else `false`
*/
function isInsideForLoopInitializer(node) {
if (node && node.parent) {
if (
node.parent.type === "ForStatement" &&
node.parent.init === node
) {
return true;
}
return isInsideForLoopInitializer(node.parent);
}
return false;
}
/**
* Determines whether a arrow function body needs braces
* @param {ASTNode} node The arrow function node.
* @returns {void}
*/
function validate(node) {
const arrowBody = node.body;
if (arrowBody.type === "BlockStatement") {
const blockBody = arrowBody.body;
if (blockBody.length !== 1 && !never) {
return;
}
if (
asNeeded &&
requireReturnForObjectLiteral &&
blockBody[0].type === "ReturnStatement" &&
blockBody[0].argument &&
blockBody[0].argument.type === "ObjectExpression"
) {
return;
}
if (
never ||
(asNeeded && blockBody[0].type === "ReturnStatement")
) {
let messageId;
if (blockBody.length === 0) {
messageId = "unexpectedEmptyBlock";
} else if (
blockBody.length > 1 ||
blockBody[0].type !== "ReturnStatement"
) {
messageId = "unexpectedOtherBlock";
} else if (blockBody[0].argument === null) {
messageId = "unexpectedSingleBlock";
} else if (
astUtils.isOpeningBraceToken(
sourceCode.getFirstToken(blockBody[0], { skip: 1 }),
)
) {
messageId = "unexpectedObjectBlock";
} else {
messageId = "unexpectedSingleBlock";
}
context.report({
node,
loc: arrowBody.loc,
messageId,
fix(fixer) {
const fixes = [];
if (
blockBody.length !== 1 ||
blockBody[0].type !== "ReturnStatement" ||
!blockBody[0].argument ||
hasASIProblem(
sourceCode.getTokenAfter(arrowBody),
)
) {
return fixes;
}
const openingBrace =
sourceCode.getFirstToken(arrowBody);
const closingBrace =
sourceCode.getLastToken(arrowBody);
const firstValueToken = sourceCode.getFirstToken(
blockBody[0],
1,
);
const lastValueToken = sourceCode.getLastToken(
blockBody[0],
);
const commentsExist =
sourceCode.commentsExistBetween(
openingBrace,
firstValueToken,
) ||
sourceCode.commentsExistBetween(
lastValueToken,
closingBrace,
);
/*
* Remove tokens around the return value.
* If comments don't exist, remove extra spaces as well.
*/
if (commentsExist) {
fixes.push(
fixer.remove(openingBrace),
fixer.remove(closingBrace),
fixer.remove(
sourceCode.getTokenAfter(openingBrace),
), // return keyword
);
} else {
fixes.push(
fixer.removeRange([
openingBrace.range[0],
firstValueToken.range[0],
]),
fixer.removeRange([
lastValueToken.range[1],
closingBrace.range[1],
]),
);
}
/*
* If the first token of the return value is `{` or the return value is a sequence expression,
* enclose the return value by parentheses to avoid syntax error.
*/
if (
astUtils.isOpeningBraceToken(firstValueToken) ||
blockBody[0].argument.type ===
"SequenceExpression" ||
(funcInfo.hasInOperator &&
isInsideForLoopInitializer(node))
) {
if (
!astUtils.isParenthesised(
sourceCode,
blockBody[0].argument,
)
) {
fixes.push(
fixer.insertTextBefore(
firstValueToken,
"(",
),
fixer.insertTextAfter(
lastValueToken,
")",
),
);
}
}
/*
* If the last token of the return statement is semicolon, remove it.
* Non-block arrow body is an expression, not a statement.
*/
if (astUtils.isSemicolonToken(lastValueToken)) {
fixes.push(fixer.remove(lastValueToken));
}
return fixes;
},
});
}
} else {
if (
always ||
(asNeeded &&
requireReturnForObjectLiteral &&
arrowBody.type === "ObjectExpression")
) {
context.report({
node,
loc: arrowBody.loc,
messageId: "expectedBlock",
fix(fixer) {
const fixes = [];
const arrowToken = sourceCode.getTokenBefore(
arrowBody,
astUtils.isArrowToken,
);
const [
firstTokenAfterArrow,
secondTokenAfterArrow,
] = sourceCode.getTokensAfter(arrowToken, {
count: 2,
});
const lastToken = sourceCode.getLastToken(node);
let parenthesisedObjectLiteral = null;
if (
astUtils.isOpeningParenToken(
firstTokenAfterArrow,
) &&
astUtils.isOpeningBraceToken(
secondTokenAfterArrow,
)
) {
const braceNode =
sourceCode.getNodeByRangeIndex(
secondTokenAfterArrow.range[0],
);
if (braceNode.type === "ObjectExpression") {
parenthesisedObjectLiteral = braceNode;
}
}
// If the value is object literal, remove parentheses which were forced by syntax.
if (parenthesisedObjectLiteral) {
const openingParenToken = firstTokenAfterArrow;
const openingBraceToken = secondTokenAfterArrow;
if (
astUtils.isTokenOnSameLine(
openingParenToken,
openingBraceToken,
)
) {
fixes.push(
fixer.replaceText(
openingParenToken,
"{return ",
),
);
} else {
// Avoid ASI
fixes.push(
fixer.replaceText(
openingParenToken,
"{",
),
fixer.insertTextBefore(
openingBraceToken,
"return ",
),
);
}
// Closing paren for the object doesn't have to be lastToken, e.g.: () => ({}).foo()
fixes.push(
fixer.remove(
findClosingParen(
parenthesisedObjectLiteral,
),
),
);
fixes.push(
fixer.insertTextAfter(lastToken, "}"),
);
} else {
fixes.push(
fixer.insertTextBefore(
firstTokenAfterArrow,
"{return ",
),
);
fixes.push(
fixer.insertTextAfter(lastToken, "}"),
);
}
return fixes;
},
});
}
}
}
return {
"BinaryExpression[operator='in']"() {
let info = funcInfo;
while (info) {
info.hasInOperator = true;
info = info.upper;
}
},
ArrowFunctionExpression() {
funcInfo = {
upper: funcInfo,
hasInOperator: false,
};
},
"ArrowFunctionExpression:exit"(node) {
validate(node);
funcInfo = funcInfo.upper;
},
};
},
};
@@ -0,0 +1,16 @@
import copyObject from './_copyObject.js';
import getSymbolsIn from './_getSymbolsIn.js';
/**
* Copies own and inherited symbols of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbolsIn(source, object) {
return copyObject(source, getSymbolsIn(source), object);
}
export default copySymbolsIn;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResolveLocale = exports.LookupSupportedLocales = void 0;
exports.match = match;
var CanonicalizeLocaleList_1 = require("./abstract/CanonicalizeLocaleList");
var ResolveLocale_1 = require("./abstract/ResolveLocale");
function match(requestedLocales, availableLocales, defaultLocale, opts) {
return (0, ResolveLocale_1.ResolveLocale)(availableLocales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || 'best fit',
}, [], {}, function () { return defaultLocale; }).locale;
}
var LookupSupportedLocales_1 = require("./abstract/LookupSupportedLocales");
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function () { return LookupSupportedLocales_1.LookupSupportedLocales; } });
var ResolveLocale_2 = require("./abstract/ResolveLocale");
Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function () { return ResolveLocale_2.ResolveLocale; } });
@@ -0,0 +1,14 @@
// Fast method for counting an object's keys
// without resorting to `Object.keys(obj).length
// Will this make a big difference in perf? Probably not
// But we can save a few allocations.
export function countObjectKeys(obj: Record<any, any>) {
let count = 0
for (const _key in obj) {
count++
}
return count
}
@@ -0,0 +1,61 @@
var $ablJS$react = require("react");
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "TableBody", () => $6ec527db6a3a5692$export$76ccd210b9029917);
/*
* 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 $6ec527db6a3a5692$var$TableBody(props) {
return null;
}
$6ec527db6a3a5692$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
let { children: children, items: items } = props;
yield {
type: 'body',
hasChildNodes: true,
props: props,
*childNodes () {
if (typeof children === 'function') {
if (!items) throw new Error('props.children was a function but props.items is missing');
for (let item of items)yield {
type: 'item',
value: item,
renderer: children
};
} else {
let items = [];
(0, ($parcel$interopDefault($ablJS$react))).Children.forEach(children, (item)=>{
items.push({
type: 'item',
element: item
});
});
yield* items;
}
}
};
};
/**
* A TableBody is a container for the Row elements of a Table. Rows can be statically defined
* as children, or generated dynamically using a function based on the data passed to the `items` prop.
*/ // We don't want getCollectionNode to show up in the type definition
let $6ec527db6a3a5692$export$76ccd210b9029917 = $6ec527db6a3a5692$var$TableBody;
//# sourceMappingURL=TableBody.main.js.map
@@ -0,0 +1,413 @@
export default `flf2a$ 4 3 8 0 3
Bracket Letters By Joan Stark
Website: http://www.geocities.com/SoHo/7373/
Figlet conversion by patorjk, April 17, 2008
$ $@
$ $@
$ $@
$ $@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
.--. @
/ {} \\ @
/ /\\ \\@
\`-' \`-'@@
.----. @
| {} }@
| {} }@
\`----' @@
.---. @
/ ___}@
\\ }@
\`---' @@
.----. @
| {} \\@
| /@
\`----' @@
.----.@
| {_ @
| {__ @
\`----'@@
.----.@
| {_ @
| | @
\`-' @@
.---. @
/ __}@
\\ {_ }@
\`---' @@
.-. .-.@
| {_} |@
| { } |@
\`-' \`-'@@
.-.@
| |@
| |@
\`-'@@
.-.@
.-.| |@
| {} |@
\`----'@@
.-. .-.@
| |/ / @
| |\\ \\ @
\`-' \`-'@@
.-. @
| | @
| \`--.@
\`----'@@
.-. .-.@
| \`.' |@
| |\\ /| |@
\`-' \` \`-'@@
.-. .-.@
| \`| |@
| |\\ |@
\`-' \`-'@@
.----. @
/ {} \\@
\\ /@
\`----' @@
.----. @
| {} }@
| .--' @
\`-' @@
.----. @
/ {} \\@
\\ /@
\`-----\`@@
.----. @
| {} }@
| .-. \\@
\`-' \`-'@@
.----.@
{ {__ @
.-._} }@
\`----' @@
.---. @
{_ _}@
| | @
\`-' @@
.-. .-.@
| { } |@
| {_} |@
\`-----'@@
.-. .-.@
| | | |@
\\ \\_/ /@
\`---' @@
.-. . .-.@
| |/ \\| |@
| .'. |@
\`-' \`-'@@
.-. .-.@
\\ \\/ / @
/ /\\ \\ @
\`-' \`-'@@
.-. .-.@
\\ \\/ / @
} { @
\`--' @@
.---. @
{_ / @
/ }@
\`---' @@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
.--. @
/ {} \\ @
/ /\\ \\@
\`-' \`-'@@
.----. @
| {} }@
| {} }@
\`----' @@
.---. @
/ ___}@
\\ }@
\`---' @@
.----. @
| {} \\@
| /@
\`----' @@
.----.@
| {_ @
| {__ @
\`----'@@
.----.@
| {_ @
| | @
\`-' @@
.---. @
/ __}@
\\ {_ }@
\`---' @@
.-. .-.@
| {_} |@
| { } |@
\`-' \`-'@@
.-.@
| |@
| |@
\`-'@@
.-.@
.-.| |@
| {} |@
\`----'@@
.-. .-.@
| |/ / @
| |\\ \\ @
\`-' \`-'@@
.-. @
| | @
| \`--.@
\`----'@@
.-. .-.@
| \`.' |@
| |\\ /| |@
\`-' \` \`-'@@
.-. .-.@
| \`| |@
| |\\ |@
\`-' \`-'@@
.----. @
/ {} \\@
\\ /@
\`----' @@
.----. @
| {} }@
| .--' @
\`-' @@
.----. @
/ {} \\@
\\ /@
\`-----\`@@
.----. @
| {} }@
| .-. \\@
\`-' \`-'@@
.----.@
{ {__ @
.-._} }@
\`----' @@
.---. @
{_ _}@
| | @
\`-' @@
.-. .-.@
| { } |@
| {_} |@
\`-----'@@
.-. .-.@
| | | |@
\\ \\_/ /@
\`---' @@
.-. . .-.@
| |/ \\| |@
| .'. |@
\`-' \`-'@@
.-. .-.@
\\ \\/ / @
/ /\\ \\ @
\`-' \`-'@@
.-. .-.@
\\ \\/ / @
} { @
\`--' @@
.---. @
{_ / @
/ }@
\`---' @@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
`
@@ -0,0 +1,26 @@
/*
* 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.
*/
export * from './dom';
export * from './inputs';
export * from './selection';
export * from './dnd';
export * from './collections';
export * from './removable';
export * from './events';
export * from './dna';
export * from './style';
export * from './refs';
export * from './labelable';
export * from './orientation';
export * from './locale';
export * from './key';
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromJSXText;
/**
* Extractor function for a JSXText type value node.
*
* Returns self-closing element with correct name.
*/
function extractValueFromJSXText(value) {
return value.raw;
}
@@ -0,0 +1,19 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromMemberExpression;
/**
* Extractor function for a MemberExpression type value node.
* A member expression is accessing a property on an object `obj.property`.
*
* @param - value - AST Value object with type `MemberExpression`
* @returns - The extracted value converted to correct type
* and maintaing `obj.property` convention.
*/
function extractValueFromMemberExpression(value) {
// eslint-disable-next-line global-require
var getValue = require('.').default;
return '' + getValue(value.object) + (value.optional ? '?.' : '.') + getValue(value.property);
}
@@ -0,0 +1,325 @@
import {isCtrlKeyPressed as $feb5ffebff200149$export$16792effe837dba3, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from "./utils.module.js";
import {useTypeSelect as $fb3050f43d946246$export$e32c88dfddc6e1d8} from "./useTypeSelect.module.js";
import {flushSync as $3H3GQ$flushSync} from "react-dom";
import {useRef as $3H3GQ$useRef, useEffect as $3H3GQ$useEffect} from "react";
import {getFocusableTreeWalker as $3H3GQ$getFocusableTreeWalker, focusSafely as $3H3GQ$focusSafely} from "@react-aria/focus";
import {useRouter as $3H3GQ$useRouter, focusWithoutScrolling as $3H3GQ$focusWithoutScrolling, useEvent as $3H3GQ$useEvent, scrollIntoViewport as $3H3GQ$scrollIntoViewport, scrollIntoView as $3H3GQ$scrollIntoView, mergeProps as $3H3GQ$mergeProps} from "@react-aria/utils";
import {getInteractionModality as $3H3GQ$getInteractionModality} from "@react-aria/interactions";
import {useLocale as $3H3GQ$useLocale} from "@react-aria/i18n";
/*
* 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 $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
let { selectionManager: manager, keyboardDelegate: delegate, ref: ref, autoFocus: autoFocus = false, shouldFocusWrap: shouldFocusWrap = false, disallowEmptySelection: disallowEmptySelection = false, disallowSelectAll: disallowSelectAll = false, selectOnFocus: selectOnFocus = manager.selectionBehavior === 'replace', disallowTypeAhead: disallowTypeAhead = false, shouldUseVirtualFocus: shouldUseVirtualFocus, allowsTabNavigation: allowsTabNavigation = false, isVirtualized: isVirtualized, scrollRef: // If no scrollRef is provided, assume the collection ref is the scrollable region
scrollRef = ref, linkBehavior: linkBehavior = 'action' } = options;
let { direction: direction } = (0, $3H3GQ$useLocale)();
let router = (0, $3H3GQ$useRouter)();
let onKeyDown = (e)=>{
var _ref_current;
// Prevent option + tab from doing anything since it doesn't move focus to the cells, only buttons/checkboxes
if (e.altKey && e.key === 'Tab') e.preventDefault();
// Keyboard events bubble through portals. Don't handle keyboard events
// for elements outside the collection (e.g. menus).
if (!((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(e.target))) return;
const navigateToKey = (key, childFocus)=>{
if (key != null) {
if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {
var _scrollRef_current;
// Set focused key and re-render synchronously to bring item into view if needed.
(0, $3H3GQ$flushSync)(()=>{
manager.setFocusedKey(key, childFocus);
});
let item = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`);
let itemProps = manager.getItemProps(key);
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
return;
}
manager.setFocusedKey(key, childFocus);
if (manager.isLink(key) && linkBehavior === 'override') return;
if (e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(key);
else if (selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.replaceSelection(key);
}
};
switch(e.key){
case 'ArrowDown':
if (delegate.getKeyBelow) {
var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey);
}
}
break;
case 'ArrowUp':
if (delegate.getKeyAbove) {
var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey);
}
}
break;
case 'ArrowLeft':
if (delegate.getKeyLeftOf) {
var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');
}
}
break;
case 'ArrowRight':
if (delegate.getKeyRightOf) {
var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');
}
}
break;
case 'Home':
if (delegate.getFirstKey) {
e.preventDefault();
let firstKey = delegate.getFirstKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));
manager.setFocusedKey(firstKey);
if (firstKey != null) {
if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(firstKey);
else if (selectOnFocus) manager.replaceSelection(firstKey);
}
}
break;
case 'End':
if (delegate.getLastKey) {
e.preventDefault();
let lastKey = delegate.getLastKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));
manager.setFocusedKey(lastKey);
if (lastKey != null) {
if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(lastKey);
else if (selectOnFocus) manager.replaceSelection(lastKey);
}
}
break;
case 'PageDown':
if (delegate.getKeyPageBelow && manager.focusedKey != null) {
let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey);
}
}
break;
case 'PageUp':
if (delegate.getKeyPageAbove && manager.focusedKey != null) {
let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
if (nextKey != null) {
e.preventDefault();
navigateToKey(nextKey);
}
}
break;
case 'a':
if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && manager.selectionMode === 'multiple' && disallowSelectAll !== true) {
e.preventDefault();
manager.selectAll();
}
break;
case 'Escape':
if (!disallowEmptySelection && manager.selectedKeys.size !== 0) {
e.stopPropagation();
e.preventDefault();
manager.clearSelection();
}
break;
case 'Tab':
if (!allowsTabNavigation) {
// There may be elements that are "tabbable" inside a collection (e.g. in a grid cell).
// However, collections should be treated as a single tab stop, with arrow key navigation internally.
// We don't control the rendering of these, so we can't override the tabIndex to prevent tabbing.
// Instead, we handle the Tab key, and move focus manually to the first/last tabbable element
// in the collection, so that the browser default behavior will apply starting from that element
// rather than the currently focused one.
if (e.shiftKey) ref.current.focus();
else {
let walker = (0, $3H3GQ$getFocusableTreeWalker)(ref.current, {
tabbable: true
});
let next = undefined;
let last;
do {
last = walker.lastChild();
if (last) next = last;
}while (last);
if (next && !next.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(next);
}
break;
}
}
};
// Store the scroll position so we can restore it later.
/// TODO: should this happen all the time??
let scrollPos = (0, $3H3GQ$useRef)({
top: 0,
left: 0
});
(0, $3H3GQ$useEvent)(scrollRef, 'scroll', isVirtualized ? undefined : ()=>{
var _scrollRef_current, _scrollRef_current1;
var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
scrollPos.current = {
top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
};
});
let onFocus = (e)=>{
if (manager.isFocused) {
// If a focus event bubbled through a portal, reset focus state.
if (!e.currentTarget.contains(e.target)) manager.setFocused(false);
return;
}
// Focus events can bubble through portals. Ignore these events.
if (!e.currentTarget.contains(e.target)) return;
manager.setFocused(true);
if (manager.focusedKey == null) {
var _delegate_getLastKey, _delegate_getFirstKey;
let navigateToFirstKey = (key)=>{
if (key != null) {
manager.setFocusedKey(key);
if (selectOnFocus) manager.replaceSelection(key);
}
};
// If the user hasn't yet interacted with the collection, there will be no focusedKey set.
// Attempt to detect whether the user is tabbing forward or backward into the collection
// and either focus the first or last item accordingly.
let relatedTarget = e.relatedTarget;
var _manager_lastSelectedKey, _manager_firstSelectedKey;
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
} else if (!isVirtualized && scrollRef.current) {
// Restore the scroll position to what it was before.
scrollRef.current.scrollTop = scrollPos.current.top;
scrollRef.current.scrollLeft = scrollPos.current.left;
}
if (manager.focusedKey != null && scrollRef.current) {
// Refocus and scroll the focused item into view if it exists within the scrollable region.
let element = scrollRef.current.querySelector(`[data-key="${CSS.escape(manager.focusedKey.toString())}"]`);
if (element) {
// This prevents a flash of focus on the first/last element in the collection, or the collection itself.
if (!element.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(element);
let modality = (0, $3H3GQ$getInteractionModality)();
if (modality === 'keyboard') (0, $3H3GQ$scrollIntoViewport)(element, {
containingElement: ref.current
});
}
}
};
let onBlur = (e)=>{
// Don't set blurred and then focused again if moving focus within the collection.
if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);
};
const autoFocusRef = (0, $3H3GQ$useRef)(autoFocus);
(0, $3H3GQ$useEffect)(()=>{
if (autoFocusRef.current) {
var _delegate_getFirstKey, _delegate_getLastKey;
let focusedKey = null;
var _delegate_getFirstKey1;
// Check focus strategy to determine which item to focus
if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
var _delegate_getLastKey1;
if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;
// If there are any selected keys, make the first one the new focus target
let selectedKeys = manager.selectedKeys;
if (selectedKeys.size) {
for (let key of selectedKeys)if (manager.canSelectItem(key)) {
focusedKey = key;
break;
}
}
manager.setFocused(true);
manager.setFocusedKey(focusedKey);
// If no default focus key is selected, focus the collection itself.
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) (0, $3H3GQ$focusSafely)(ref.current);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Scroll the focused element into view when the focusedKey changes.
let lastFocusedKey = (0, $3H3GQ$useRef)(manager.focusedKey);
(0, $3H3GQ$useEffect)(()=>{
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || autoFocusRef.current) && scrollRef.current && ref.current) {
let modality = (0, $3H3GQ$getInteractionModality)();
let element = ref.current.querySelector(`[data-key="${CSS.escape(manager.focusedKey.toString())}"]`);
if (!element) // If item element wasn't found, return early (don't update autoFocusRef and lastFocusedKey).
// The collection may initially be empty (e.g. virtualizer), so wait until the element exists.
return;
if (modality === 'keyboard' || autoFocusRef.current) {
(0, $3H3GQ$scrollIntoView)(scrollRef.current, element);
// Avoid scroll in iOS VO, since it may cause overlay to close (i.e. RAC submenu)
if (modality !== 'virtual') (0, $3H3GQ$scrollIntoViewport)(element, {
containingElement: ref.current
});
}
}
// If the focused key becomes null (e.g. the last item is deleted), focus the whole collection.
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) (0, $3H3GQ$focusSafely)(ref.current);
lastFocusedKey.current = manager.focusedKey;
autoFocusRef.current = false;
});
// Intercept FocusScope restoration since virtualized collections can reuse DOM nodes.
(0, $3H3GQ$useEvent)(ref, 'react-aria-focus-scope-restore', (e)=>{
e.preventDefault();
manager.setFocused(true);
});
let handlers = {
onKeyDown: onKeyDown,
onFocus: onFocus,
onBlur: onBlur,
onMouseDown (e) {
// Ignore events that bubbled through portals.
if (scrollRef.current === e.target) // Prevent focus going to the collection when clicking on the scrollbar.
e.preventDefault();
}
};
let { typeSelectProps: typeSelectProps } = (0, $fb3050f43d946246$export$e32c88dfddc6e1d8)({
keyboardDelegate: delegate,
selectionManager: manager
});
if (!disallowTypeAhead) handlers = (0, $3H3GQ$mergeProps)(typeSelectProps, handlers);
// If nothing is focused within the collection, make the collection itself tabbable.
// This will be marshalled to either the first or last item depending on where focus came from.
// If using virtual focus, don't set a tabIndex at all so that VoiceOver on iOS 14 doesn't try
// to move real DOM focus to the element anyway.
let tabIndex = undefined;
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
return {
collectionProps: {
...handlers,
tabIndex: tabIndex
}
};
}
export {$ae20dd8cbca75726$export$d6daf82dcd84e87c as useSelectableCollection};
//# sourceMappingURL=useSelectableCollection.module.js.map
@@ -0,0 +1,115 @@
/**
* A collection of shims that provide minimal functionality of the ES6 collections.
*
* These implementations are not meant to be used outside of the ResizeObserver
* modules as they cover only a limited range of use cases.
*/
/* eslint-disable require-jsdoc, valid-jsdoc */
const MapShim = (() => {
if (typeof Map !== 'undefined') {
return Map;
}
/**
* Returns index in provided array that matches the specified key.
*
* @param {Array<Array>} arr
* @param {*} key
* @returns {number}
*/
function getIndex(arr, key) {
let result = -1;
arr.some((entry, index) => {
if (entry[0] === key) {
result = index;
return true;
}
return false;
});
return result;
}
return class {
constructor() {
this.__entries__ = [];
}
/**
* @returns {boolean}
*/
get size() {
return this.__entries__.length;
}
/**
* @param {*} key
* @returns {*}
*/
get(key) {
const index = getIndex(this.__entries__, key);
const entry = this.__entries__[index];
return entry && entry[1];
}
/**
* @param {*} key
* @param {*} value
* @returns {void}
*/
set(key, value) {
const index = getIndex(this.__entries__, key);
if (~index) {
this.__entries__[index][1] = value;
} else {
this.__entries__.push([key, value]);
}
}
/**
* @param {*} key
* @returns {void}
*/
delete(key) {
const entries = this.__entries__;
const index = getIndex(entries, key);
if (~index) {
entries.splice(index, 1);
}
}
/**
* @param {*} key
* @returns {void}
*/
has(key) {
return !!~getIndex(this.__entries__, key);
}
/**
* @returns {void}
*/
clear() {
this.__entries__.splice(0);
}
/**
* @param {Function} callback
* @param {*} [ctx=null]
* @returns {void}
*/
forEach(callback, ctx = null) {
for (const entry of this.__entries__) {
callback.call(ctx, entry[1], entry[0]);
}
}
};
})();
export {MapShim as Map};
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from './types.js';
import 'react';
declare const MailIcon: (props: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { MailIcon };
@@ -0,0 +1,44 @@
/**
* @fileoverview Enforce `aria-hidden="true"` is not used on focusable elements.
* @author Kate Higa
*/
// -----------------------------------------------------------------------------
// Requirements
// -----------------------------------------------------------------------------
import { RuleTester } from 'eslint';
import parserOptionsMapper from '../../__util__/parserOptionsMapper';
import parsers from '../../__util__/helpers/parsers';
import rule from '../../../src/rules/no-aria-hidden-on-focusable';
// -----------------------------------------------------------------------------
// Tests
// -----------------------------------------------------------------------------
const ruleTester = new RuleTester();
const expectedError = {
message: 'aria-hidden="true" must not be set on focusable elements.',
type: 'JSXOpeningElement',
};
ruleTester.run('no-aria-hidden-on-focusable', rule, {
valid: parsers.all([].concat(
{ code: '<div aria-hidden="true" />;' },
{ code: '<div onClick={() => void 0} aria-hidden="true" />;' },
{ code: '<img aria-hidden="true" />' },
{ code: '<a aria-hidden="false" href="#" />' },
{ code: '<button aria-hidden="true" tabIndex="-1" />' },
{ code: '<button />' },
{ code: '<a href="/" />' },
)).map(parserOptionsMapper),
invalid: parsers.all([].concat(
{ code: '<div aria-hidden="true" tabIndex="0" />;', errors: [expectedError] },
{ code: '<input aria-hidden="true" />;', errors: [expectedError] },
{ code: '<a href="/" aria-hidden="true" />', errors: [expectedError] },
{ code: '<button aria-hidden="true" />', errors: [expectedError] },
{ code: '<textarea aria-hidden="true" />', errors: [expectedError] },
{ code: '<p tabindex="0" aria-hidden="true">text</p>;', errors: [expectedError] },
)).map(parserOptionsMapper),
});
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const esnext_float16: LibDefinition;
@@ -0,0 +1 @@
{"name":"cloneable-readable","version":"1.1.3","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532124030,"integrity":"sha512-ZYTPAqACoc9qE4T4ujDcyKQMfkNxtJTOGvhcXSiFO1wXKvm0VgD8IoMl0Wt9WdSQI8ei0ygLlpwOacdCwqkZ4Q==","mode":420,"size":960},".travis.yml":{"checkedAt":1794532124030,"integrity":"sha512-+wxeK3PVlJoDtPhEn/JLSk5rjgXhxFI2WmJ37Zs1CttcwVWvDWnBZ495gLdVcYsGI8jTOAMJDczk5p1KGMW64Q==","mode":420,"size":127},"example.js":{"checkedAt":1794532124030,"integrity":"sha512-N5ABZ0waqZZ2c91KvPM+EYkdbyNmWKq+hu2rr7szZjP/ROv35oKbIPKYojdJ/alYkK9IS4tiJQoRf22Y+Y4Ohw==","mode":420,"size":321},"index.js":{"checkedAt":1794532124030,"integrity":"sha512-PVJqp0IkXNLcBFKvB9+5VfXXFhFA40vhgwLjZ8SHMblUYY+IqRPm/1+xhynFW4vzPOgWBD7NQZ0als5XKUhSbA==","mode":420,"size":3229},"LICENSE":{"checkedAt":1794532124030,"integrity":"sha512-ZVwf/C135pN5PHL//elpkKsQR1TOz2YnLyL8Hi5Cwq0x1E4lHfz4PGrpBIN4EWlG08dukLbIyIAHQhax0/ia0w==","mode":420,"size":1081},"README.md":{"checkedAt":1794532124030,"integrity":"sha512-xcHpAov0CCo87BNsqOV6eCJyYmmTHWsDd142K1EhO1XltgvOlTf6QPsokrLMeAsJKiWXeToZv8N9bBaBs53r0g==","mode":420,"size":1417},"test.js":{"checkedAt":1794532124030,"integrity":"sha512-QQgiGqnrQcsCdZRDIExHr/7+Z5ETOJp2oG8NNIeHLoM1fivROI7LgGSK9M+UKkCO6RKvGTVvudvAPad7OWLijQ==","mode":420,"size":14672}}}
@@ -0,0 +1,412 @@
export default `flf2a$ 4 4 18 16 2
4max.flf by Philip Menke (philippe@dds.nl)
April 1995
$ $#
$ $#
$ $#
$ $##
d8b$#
Y8P$#
\`"'$#
(8)$##
o8o o8o$#
\`"' \`"'$#
$#
$##
__88_88__$#
""88"88""$#
__88_88__$#
""88"88""$##
.dPIIY8$#
\`YbII "$#
o.\`II8b$#
8boIIP'$##
.o. dP $#
\`"'dP $#
dP.o.$#
dP \`"'$##
d888 $#
dP_______$#
Yb"""88""$#
\`Ybo 88 $##
.o.$#
,dP'$#
$#
$##
dP$#
dP $#
Yb $#
Yb$##
Yb $#
Yb$#
dP$#
dP $##
o $#
\`8.8.8'$#
.8.8.8.$#
" $##
oo $#
___88___$#
"""88"""$#
"" $##
$#
$#
.o.$#
,dP'$##
$#
________$#
""""""""$#
$##
$#
$#
.o.$#
\`"'$##
dP$#
dP $#
dP $#
dP $##
dP"Yb $#
dP Yb$#
Yb dP$#
YbodP $##
.d$#
.d88$#
88$#
88$##
oP"Yb.$#
"' dP'$#
dP' $#
.d8888$##
88888$#
.dP$#
o \`Yb$#
YbodP$##
dP88 $#
dP 88 $#
d888888$#
88 $##
888888$#
88oo."$#
\`8b$#
8888P'$##
dP' $#
.d8' $#
8P"""Yb$#
\`YboodP$##
888888P$#
dP $#
dP $#
dP $##
.dP"o.$#
\`8b.d'$#
d'\`Y8b$#
\`bodP'$##
dP""Yb$#
Ybood8$#
.8P'$#
.dP' $##
.o.$#
\`"'$#
.o.$#
\`"'$##
.o.$#
\`"'$#
.o.$#
,dP'$##
.dP'$#
.dP' $#
\`Yb. $#
\`Yb.$##
$#
oooooo$#
______$#
""""""$##
\`Yb. $#
\`Yb.$#
.dP'$#
.dP' $##
oP"Yb.$#
"'.dP'$#
8P $#
(8) $##
dP""Yb $#
dP PY Yb$#
Yb boodP$#
Ybooo $##
db $#
dPYb $#
dP__Yb $#
dP""""Yb$##
88""Yb$#
88__dP$#
88""Yb$#
88oodP$##
dP""b8$#
dP \`"$#
Yb $#
YboodP$##
8888b. $#
8I Yb$#
8I dY$#
8888Y" $##
888888$#
88__ $#
88"" $#
888888$##
888888$#
88__ $#
88"" $#
88 $##
dP""b8$#
dP \`"$#
Yb "88$#
YboodP$##
88 88$#
88 88$#
888888$#
88 88$##
88$#
88$#
88$#
88$##
88888$#
88$#
o. 88$#
"bodP'$##
88 dP$#
88odP $#
88"Yb $#
88 Yb$##
88 $#
88 $#
88 .o$#
88ood8$##
8b d8$#
88b d88$#
88YbdP88$#
88 YY 88$##
88b 88$#
88Yb88$#
88 Y88$#
88 Y8$##
dP"Yb $#
dP Yb$#
Yb dP$#
YbodP $##
88""Yb$#
88__dP$#
88""" $#
88 $##
dP"Yb $#
dP Yb$#
Yb b dP$#
\`"YoYo$##
88""Yb$#
88__dP$#
88"Yb $#
88 Yb$##
.dP"Y8$#
\`Ybo."$#
o.\`Y8b$#
8bodP'$##
888888$#
88 $#
88 $#
88 $##
88 88$#
88 88$#
Y8 8P$#
\`YbodP'$##
Yb dP$#
Yb dP $#
YbdP $#
YP $##
Yb dP$#
Yb db dP $#
YbdPYbdP $#
YP YP $##
Yb dP$#
YbdP $#
dPYb $#
dP Yb$##
Yb dP$#
YbdP $#
8P $#
dP $##
8888P$#
dP $#
dP $#
d8888$##
88888$#
88 $#
88 $#
88888$##
Yb $#
Yb $#
Yb $#
Yb$##
88888$#
88$#
88$#
88888$##
.db. $#
.dP'\`Yb.$#
$#
$##
$#
$#
$#
oooooooooo$##
.o. $#
\`Yb.$#
$#
$##
db $#
dPYb $#
dP__Yb $#
dP""""Yb$##
88""Yb$#
88__dP$#
88""Yb$#
88oodP$##
dP""b8$#
dP \`"$#
Yb $#
YboodP$##
8888b. $#
8I Yb$#
8I dY$#
8888Y" $##
888888$#
88__ $#
88"" $#
888888$##
888888$#
88__ $#
88"" $#
88 $##
dP""b8$#
dP \`"$#
Yb "88$#
YboodP$##
88 88$#
88 88$#
888888$#
88 88$##
88$#
88$#
88$#
88$##
88888$#
88$#
o. 88$#
"bodP'$##
88 dP$#
88odP $#
88"Yb $#
88 Yb$##
88 $#
88 $#
88 .o$#
88ood8$##
8b d8$#
88b d88$#
88YbdP88$#
88 YY 88$##
88b 88$#
88Yb88$#
88 Y88$#
88 Y8$##
dP"Yb $#
dP Yb$#
Yb dP$#
YbodP $##
88""Yb$#
88__dP$#
88""" $#
88 $##
dP"Yb $#
dP Yb$#
Yb b dP$#
\`"YoYo$##
88""Yb$#
88__dP$#
88"Yb $#
88 Yb$##
.dP"Y8$#
\`Ybo."$#
o.\`Y8b$#
8bodP'$##
888888$#
88 $#
88 $#
88 $##
88 88$#
88 88$#
Y8 8P$#
\`YbodP'$##
Yb dP$#
Yb dP $#
YbdP $#
YP $##
Yb dP$#
Yb db dP $#
YbdPYbdP $#
YP YP $##
Yb dP$#
YbdP $#
dPYb $#
dP Yb$##
Yb dP$#
YbdP $#
8P $#
dP $##
8888P$#
dP $#
dP $#
d8888$##
d888$#
.dP $#
\`Yb $#
Y888$##
II$#
II$#
II$#
II$##
888b $#
Yb.$#
dP'$#
888P $##
dP"Yb dP$#
dP \`YbdP $#
$#
$##
db db db$#
""dPYb""$#
dP__Yb $#
dP""""Yb$##
db db $#
".oo." $#
dP Yb $#
YboodP $##
db db$#
"" ""$#
Yb dP$#
YbodP $##
db db db$#
""dPYb""$#
dP__Yb $#
dP""""Yb$##
db db $#
".oo." $#
dP Yb $#
YboodP $##
db db$#
"" ""$#
Y8 8P$#
YbodP $##
dP"o.$#
88.d'$#
88\`8b$#
d8P P'$##
`
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,6BAAW,CAAC;IAC5C,iBAAiB,CAAC,OAAS,CAAC,kCAAsB,EAAE,KAAK,UAAU,CAAC,8CAA4B,CAAC;IACjG,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,cAAc,CAAC;IACrD,cAAc,CAAC,cAAQ,CAAC;IACxB,kBAAkB,CAAC,OAAS,CAAC,kCAAsB,EAAE,KAAK,UAAU,CAAC,+BAAyB,CAAC;IAC/F,sBAAsB,CAAC,4DAAsD,CAAC;IAC9E,UAAU,CAAC,QAAQ,CAAC;IACpB,aAAa,CAAC,YAAY,CAAC;IAC3B,YAAY,CAAC,oBAAoB,CAAC;AACpC","sources":["packages/@react-aria/table/intl/sl-SI.json"],"sourcesContent":["{\n \"ascending\": \"naraščajoče\",\n \"ascendingSort\": \"razvrščeno po stolpcu {columnName} v naraščajočem vrstnem redu\",\n \"columnSize\": \"{value} slikovnih pik\",\n \"descending\": \"padajoče\",\n \"descendingSort\": \"razvrščeno po stolpcu {columnName} v padajočem vrstnem redu\",\n \"resizerDescription\": \"Pritisnite tipko Enter da začnete spreminjati velikost\",\n \"select\": \"Izberite\",\n \"selectAll\": \"Izberite vse\",\n \"sortable\": \"razvrstljivi stolpec\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
@@ -0,0 +1,17 @@
module.exports = {
'add': require('./add'),
'ceil': require('./ceil'),
'divide': require('./divide'),
'floor': require('./floor'),
'max': require('./max'),
'maxBy': require('./maxBy'),
'mean': require('./mean'),
'meanBy': require('./meanBy'),
'min': require('./min'),
'minBy': require('./minBy'),
'multiply': require('./multiply'),
'round': require('./round'),
'subtract': require('./subtract'),
'sum': require('./sum'),
'sumBy': require('./sumBy')
};
@@ -0,0 +1,49 @@
import { TemplateLiteralParseExact } from './parse.mjs';
import { TypeBoxError } from '../error/index.mjs';
// ------------------------------------------------------------------
// TemplateLiteralFiniteError
// ------------------------------------------------------------------
export class TemplateLiteralFiniteError extends TypeBoxError {
}
// ------------------------------------------------------------------
// IsTemplateLiteralFiniteCheck
// ------------------------------------------------------------------
// prettier-ignore
function IsNumberExpression(expression) {
return (expression.type === 'or' &&
expression.expr.length === 2 &&
expression.expr[0].type === 'const' &&
expression.expr[0].const === '0' &&
expression.expr[1].type === 'const' &&
expression.expr[1].const === '[1-9][0-9]*');
}
// prettier-ignore
function IsBooleanExpression(expression) {
return (expression.type === 'or' &&
expression.expr.length === 2 &&
expression.expr[0].type === 'const' &&
expression.expr[0].const === 'true' &&
expression.expr[1].type === 'const' &&
expression.expr[1].const === 'false');
}
// prettier-ignore
function IsStringExpression(expression) {
return expression.type === 'const' && expression.const === '.*';
}
// ------------------------------------------------------------------
// IsTemplateLiteralExpressionFinite
// ------------------------------------------------------------------
// prettier-ignore
export function IsTemplateLiteralExpressionFinite(expression) {
return (IsNumberExpression(expression) || IsStringExpression(expression) ? false :
IsBooleanExpression(expression) ? true :
(expression.type === 'and') ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite(expr)) :
(expression.type === 'or') ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite(expr)) :
(expression.type === 'const') ? true :
(() => { throw new TemplateLiteralFiniteError(`Unknown expression type`); })());
}
/** Returns true if this TemplateLiteral resolves to a finite set of values */
export function IsTemplateLiteralFinite(schema) {
const expression = TemplateLiteralParseExact(schema.pattern);
return IsTemplateLiteralExpressionFinite(expression);
}
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAmBM,SAAS,0CAA4B,KAAuC;IACjF,IAAI,OAAO,aAAa,aAAa;QACnC,QAAQ,GAAG,CAAC;QACZ,OAAO;IACT;IAEA,IAAI,SAAC,KAAK,UAAE,MAAM,WAAE,OAAO,EAAC,GAAG;IAC/B,4DAA4D;IAC5D,2DAA2D;IAC3D,qBAAO,0DAAC;QAAO,OAAO,OAAO,WAAW,cAAc,QAAQ;QAAI,0BAAA;QAAyB,yBAAyB;YAAC,QAAQ,0CAA6B,QAAQ;QAAQ;;AAC5K;AAKO,SAAS,0CAA6B,MAAc,EAAE,OAAgC;IAC3F,OAAO,CAAC,6CAA6C,EAAE,KAAK,SAAS,CAAC,QAAQ,EAAE,EAAE,gCAAU,SAAS,CAAC,CAAC;AACzG;AAEA,MAAM,8BAAQ,IAAI;AAElB,SAAS,gCAAU,OAAgC;IACjD,IAAI,SAAS,4BAAM,GAAG,CAAC;IACvB,IAAI,QACF,OAAO;IAGT,sEAAsE;IACtE,IAAI,OAAO,IAAI;IACf,IAAI,SAAS,IAAI;IACjB,IAAK,IAAI,OAAO,QACd,IAAK,IAAI,OAAO,OAAO,CAAC,IAAI,CAAE;QAC5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI;QACzB,IAAI,IAAI,OAAO,MAAM,WAAW,KAAK,SAAS,CAAC,KAAK,EAAE,QAAQ;QAC9D,IAAI,KAAK,GAAG,CAAC,MAAM,CAAC,OAAO,GAAG,CAAC,IAAI;YACjC,IAAI,OAAO,OAAO,YAAY,CAAC,OAAO,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG;YACnF,OAAO,GAAG,CAAC,GAAG;QAChB;QACA,KAAK,GAAG,CAAC;IACX;IAGF,IAAI,MAAM;IACV,IAAI,OAAO,IAAI,GAAG,GAChB,OAAO;IAET,KAAK,IAAI,CAAC,QAAQ,KAAK,IAAI,OACzB,OAAO,GAAG,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IAE7B,IAAI,OAAO,IAAI,GAAG,GAChB,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM;IAG3B,OAAO;IACP,IAAK,IAAI,OAAO,QAAS;QACvB,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC;QACnB,IAAK,IAAI,OAAO,OAAO,CAAC,IAAI,CAAE;YAC5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI;YACzB,IAAI,IAAI,OAAO,MAAM,WAAW,KAAK,SAAS,CAAC,KAAK,EAAE,QAAQ;YAC9D,IAAI,OAAO,GAAG,CAAC,IACb,IAAI,OAAO,GAAG,CAAC;YAEjB,OAAO,GAAG,QAAQ,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE;QACA,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM;IAC3B;IACA,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM;IACzB,4BAAM,GAAG,CAAC,SAAS;IACnB,OAAO;AACT","sources":["packages/@react-aria/i18n/src/server.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 type {LocalizedString} from '@internationalized/string';\nimport React, {JSX} from 'react';\n\ntype PackageLocalizedStrings = {\n [packageName: string]: Record<string, LocalizedString>\n};\n\ninterface PackageLocalizationProviderProps {\n locale: string,\n strings: PackageLocalizedStrings,\n nonce?: string\n}\n\n/**\n * A PackageLocalizationProvider can be rendered on the server to inject the localized strings\n * needed by the client into the initial HTML.\n */\nexport function PackageLocalizationProvider(props: PackageLocalizationProviderProps): JSX.Element | null {\n if (typeof document !== 'undefined') {\n console.log('PackageLocalizationProvider should only be rendered on the server.');\n return null;\n }\n\n let {nonce, locale, strings} = props;\n // suppressHydrationWarning is necessary because the browser\n // remove the nonce parameter from the DOM before hydration\n return <script nonce={typeof window === 'undefined' ? nonce : ''} suppressHydrationWarning dangerouslySetInnerHTML={{__html: getPackageLocalizationScript(locale, strings)}} />;\n}\n\n/**\n * Returns the content for an inline `<script>` tag to inject localized strings into initial HTML.\n */\nexport function getPackageLocalizationScript(locale: string, strings: PackageLocalizedStrings): string {\n return `window[Symbol.for('react-aria.i18n.locale')]=${JSON.stringify(locale)};{${serialize(strings)}}`;\n}\n\nconst cache = new WeakMap<PackageLocalizedStrings, string>();\n\nfunction serialize(strings: PackageLocalizedStrings): string {\n let cached = cache.get(strings);\n if (cached) {\n return cached;\n }\n\n // Find common strings between packages and hoist them into variables.\n let seen = new Set();\n let common = new Map();\n for (let pkg in strings) {\n for (let key in strings[pkg]) {\n let v = strings[pkg][key];\n let s = typeof v === 'string' ? JSON.stringify(v) : v.toString();\n if (seen.has(s) && !common.has(s)) {\n let name = String.fromCharCode(common.size > 25 ? common.size + 97 : common.size + 65);\n common.set(s, name);\n }\n seen.add(s);\n }\n }\n\n let res = '';\n if (common.size > 0) {\n res += 'let ';\n }\n for (let [string, name] of common) {\n res += `${name}=${string},`;\n }\n if (common.size > 0) {\n res = res.slice(0, -1) + ';';\n }\n\n res += \"window[Symbol.for('react-aria.i18n.strings')]={\";\n for (let pkg in strings) {\n res += `'${pkg}':{`;\n for (let key in strings[pkg]) {\n let v = strings[pkg][key];\n let s = typeof v === 'string' ? JSON.stringify(v) : v.toString();\n if (common.has(s)) {\n s = comLine truncated
@@ -0,0 +1,58 @@
"use client";
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/context.ts
var context_exports = {};
__export(context_exports, {
createContext: () => createContext2
});
module.exports = __toCommonJS(context_exports);
var React = __toESM(require("react"));
function createContext2(options = {}) {
const {
strict = true,
errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
name
} = options;
const Context = React.createContext(void 0);
Context.displayName = name;
function useContext2() {
var _a;
const context = React.useContext(Context);
if (!context && strict) {
const error = new Error(errorMessage);
error.name = "ContextError";
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext2);
throw error;
}
return context;
}
return [Context.Provider, useContext2, Context];
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createContext
});
@@ -0,0 +1,47 @@
"use strict"
const { READ } = require("@eslint-community/eslint-utils")
/**
* @satisfies {import('../types.js').SupportVersionTraceMap}
*/
const net = {
connect: { [READ]: { supported: ["0.0.1"] } },
createConnection: { [READ]: { supported: ["0.0.1"] } },
createServer: { [READ]: { supported: ["0.5.0"] } },
getDefaultAutoSelectFamily: { [READ]: { supported: ["19.4.0"] } },
setDefaultAutoSelectFamily: { [READ]: { supported: ["19.4.0"] } },
getDefaultAutoSelectFamilyAttemptTimeout: {
[READ]: { supported: ["19.8.0", "18.18.0"] },
},
setDefaultAutoSelectFamilyAttemptTimeout: {
[READ]: { supported: ["19.8.0", "18.18.0"] },
},
isIP: { [READ]: { supported: ["0.3.0"] } },
isIPv4: { [READ]: { supported: ["0.3.0"] } },
isIPv6: { [READ]: { supported: ["0.3.0"] } },
BlockList: {
[READ]: { supported: ["15.0.0", "14.18.0"] },
isBlockList: { [READ]: { supported: ["22.13.0", "23.4.0"] } },
},
SocketAddress: {
[READ]: { supported: ["15.14.0", "14.18.0"] },
parse: { [READ]: { supported: ["22.13.0", "23.4.0"] } },
},
Server: { [READ]: { supported: ["0.1.90"] } },
Socket: { [READ]: { supported: ["0.3.4"] } },
}
/**
* @satisfies {import('../types.js').SupportVersionTraceMap}
*/
module.exports = {
net: {
[READ]: { supported: ["0.0.1"] },
...net,
},
"node:net": {
[READ]: { supported: ["14.13.1", "12.20.0"] },
...net,
},
}
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`
};
//# sourceMappingURL=ro-RO.main.js.map
@@ -0,0 +1,124 @@
import _typeof from "./typeof.js";
import checkInRHS from "./checkInRHS.js";
import setFunctionName from "./setFunctionName.js";
import toPropertyKey from "./toPropertyKey.js";
function applyDecs2311(e, t, n, r, o, i) {
var a,
c,
u,
s,
f,
l,
p,
d = Symbol.metadata || Symbol["for"]("Symbol.metadata"),
m = Object.defineProperty,
h = Object.create,
y = [h(null), h(null)],
v = t.length;
function g(t, n, r) {
return function (o, i) {
n && (i = o, o = e);
for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);
return r ? i : o;
};
}
function b(e, t, n, r) {
if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
return e;
}
function applyDec(e, t, n, r, o, i, u, s, f, l, p) {
function d(e) {
if (!p(e)) throw new TypeError("Attempted to access private element on non-instance");
}
var h = [].concat(t[0]),
v = t[3],
w = !u,
D = 1 === o,
S = 3 === o,
j = 4 === o,
E = 2 === o;
function I(t, n, r) {
return function (o, i) {
return n && (i = o, o = e), r && r(o), P[t].call(o, i);
};
}
if (!w) {
var P = {},
k = [],
F = S ? "get" : j || D ? "set" : "value";
if (f ? (l || D ? P = {
get: setFunctionName(function () {
return v(this);
}, r, "get"),
set: function set(e) {
t[4](this, e);
}
} : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {
if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet");
y[+s][r] = o < 3 ? 1 : o;
}
}
for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {
var T = b(h[O], "A decorator", "be", !0),
z = n ? h[O - 1] : void 0,
A = {},
H = {
kind: ["field", "accessor", "method", "getter", "setter", "class"][o],
name: r,
metadata: a,
addInitializer: function (e, t) {
if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished");
b(t, "An initializer", "be", !0), i.push(t);
}.bind(null, A)
};
if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = {
has: f ? p.bind() : function (e) {
return r in e;
}
}, j || (c.get = f ? E ? function (e) {
return d(e), P.value;
} : I("get", 0, d) : function (e) {
return e[r];
}), E || S || (c.set = f ? I("set", 0, d) : function (e, t) {
e[r] = t;
}), N = T.call(z, D ? {
get: P.get,
set: P.set
} : P[F], H), A.v = 1, D) {
if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
} else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N);
}
return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;
}
function w(e) {
return m(e, d, {
configurable: !0,
enumerable: !0,
value: a
});
}
return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {
e && f.push(g(e));
}, p = function p(t, r) {
for (var i = 0; i < n.length; i++) {
var a = n[i],
c = a[1],
l = 7 & c;
if ((8 & c) == t && !l == r) {
var p = a[2],
d = !!a[3],
m = 16 & c;
applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {
return checkInRHS(t) === e;
} : o);
}
}
}, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {
e: c,
get c() {
var n = [];
return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];
}
};
}
export { applyDecs2311 as default };
@@ -0,0 +1,102 @@
import { OneBotAction } from '../../action/OneBotAction';
import { QuickAction, QuickActionEvent } from '../../types';
import { Static } from '@sinclair/typebox';
export declare const GoCQHTTPHandleQuickActionPayloadSchema: import("@sinclair/typebox").TObject<{
context: import("@sinclair/typebox").TObject<{
time: import("@sinclair/typebox").TNumber;
self_id: import("@sinclair/typebox").TNumber;
post_type: import("@sinclair/typebox").TString;
message_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TString;
group_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
message_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
message_seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
real_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
sender: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
nickname: import("@sinclair/typebox").TString;
sex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
age: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
card: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
role: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>>;
message: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
message_format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
raw_message: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
font: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
notice_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
meta_event_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
operation: import("@sinclair/typebox").TObject<{
reply: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
auto_escape: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
at_sender: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
delete: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
kick: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
ban: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
ban_duration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
approve: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
remark: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>;
export type GoCQHTTPHandleQuickActionPayload = {
context: QuickActionEvent;
operation: QuickAction;
} & Static<typeof GoCQHTTPHandleQuickActionPayloadSchema>;
export declare class GoCQHTTPHandleQuickAction extends OneBotAction<GoCQHTTPHandleQuickActionPayload, void> {
actionName: ".handle_quick_operation";
payloadSchema: import("@sinclair/typebox").TObject<{
context: import("@sinclair/typebox").TObject<{
time: import("@sinclair/typebox").TNumber;
self_id: import("@sinclair/typebox").TNumber;
post_type: import("@sinclair/typebox").TString;
message_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TString;
group_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
message_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
message_seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
real_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
sender: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
nickname: import("@sinclair/typebox").TString;
sex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
age: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
card: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
role: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>>;
message: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
message_format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
raw_message: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
font: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
notice_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
meta_event_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
operation: import("@sinclair/typebox").TObject<{
reply: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
auto_escape: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
at_sender: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
delete: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
kick: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
ban: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
ban_duration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
approve: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
remark: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>;
returnSchema: import("@sinclair/typebox").TNull;
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {
context: {};
operation: {};
};
returnExample: {};
_handle(payload: GoCQHTTPHandleQuickActionPayload): Promise<void>;
}
@@ -0,0 +1,25 @@
import { OneBotAction } from '../../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
export declare const SendOnlineFolderPayloadSchema: import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
folder_path: import("@sinclair/typebox").TString;
folder_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
export type SendOnlineFolderPayload = Static<typeof SendOnlineFolderPayloadSchema>;
export declare class SendOnlineFolder extends OneBotAction<SendOnlineFolderPayload, any> {
actionName: "send_online_folder";
payloadSchema: import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
folder_path: import("@sinclair/typebox").TString;
folder_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
returnSchema: import("@sinclair/typebox").TAny;
actionSummary: string;
actionTags: string[];
payloadExample: {
user_id: string;
folder_path: string;
};
returnExample: null;
_handle(payload: SendOnlineFolderPayload): Promise<any>;
}
@@ -0,0 +1,412 @@
flf2a$ 4 1 6 -1 3 0 8192 0
Font Name: tmplr
Font Author: Eugene Ghanizadeh Khoub
FIGFont created with: http://patorjk.com/figfont-editor
@
@
@
@@
╻@
┃@
•@
@@
╹╹@
@
@
@@
╋╋@
┃┃@
╋╋@
@@
┏┻┓@
┗━┓@
┗┳┛@
@@
•┏ @
┃ @
┛•@
@@
┏┓@
┣╋@
┗┻@
@@
╹@
@
@
@@
┏@
┃@
┗@
@@
┓@
┃@
┛@
@@
┓┏@
┛┗@
@
@@
╻ @
━╋━@
╹ @
@@
@
@
╻@
@@
@
━━@
@
@@
@
@
•@
@@
┏@
┃@
┛@
@@
┏┓@
┃┫@
┗┛@
@@
┓@
┃@
┻@
@@
┏┓@
┏┛@
┗━@
@@
┏┓@
┫@
┗┛@
@@
┏┓@
┃┃@
┗╋@
@@
┏━@
┗┓@
┗┛@
@@
┏┓@
┣┓@
┗┛@
@@
━┓@
┃@
╹@
@@
┏┓@
┣┫@
┗┛@
@@
┏┓@
┗┫@
┗┛@
@@
@
•@
•@
@@
@
•@
╻@
@@
┏@
━┫@
┗@
@@
━━@
━━@
━━@
@@
┓ @
┣━@
┛ @
@@
┏┓@
┏┛@
• @
@@
┏━┓@
┃┗┛@
┗━┛@
@@
┏┓@
┣┫@
┛┗@
@@
┳┓@
┣┫@
┻┛@
@@
┏┓@
┃ @
┗┛@
@@
┳┓@
┃┃@
┻┛@
@@
┏┓@
┣ @
┗┛@
@@
┏┓@
┣ @
┻ @
@@
┏┓@
┃┓@
┗┛@
@@
┓┏@
┣┫@
┛┗@
@@
┳@
┃@
┻@
@@
┏┳@
┃@
┗┛@
@@
┓┏┓@
┃┫ @
┛┗┛@
@@
┓ @
┃ @
┗┛@
@@
┳┳┓@
┃┃┃@
┛ ┗@
@@
┳┓@
┃┃@
┛┗@
@@
┏┓@
┃┃@
┗┛@
@@
┏┓@
┃┃@
┣┛@
@@
┏┓@
┃┃@
┗┻@
@@
┳┓@
┣┫@
┛┗@
@@
┏┓@
┗┓@
┗┛@
@@
┏┳┓@
┃ @
┻ @
@@
┳┳@
┃┃@
┗┛@
@@
┓┏@
┃┃@
┗┛@
@@
┓ ┏@
┃┃┃@
┗┻┛@
@@
┏┓┏┓@
┃┃ @
┗┛┗┛@
@@
┓┏@
┗┫@
┗┛@
@@
┏┓@
┏┛@
┗┛@
@@
┏━@
┃ @
┗━@
@@
╻ @
┗┓@
╹@
@@
━┓@
┃@
━┛@
@@
┏┓@
@
@
@@
@
@
━@
@@
┓@
@
@
@@
@
┏┓@
┗┻@
@@
┓ @
┣┓@
┗┛@
@@
@
┏@
┗@
@@
┓@
┏┫@
┗┻@
@@
@
┏┓@
┗ @
@@
┏@
╋@
┛@
@@
@
┏┓@
┗┫@
┛@@
┓ @
┣┓@
┛┗@
@@
•@
┓@
┗@
@@
•@
┓@
┃@
┛@@
┓ @
┃┏@
┛┗@
@@
┓@
┃@
┗@
@@
@
┏┳┓@
┛┗┗@
@@
@
┏┓@
┛┗@
@@
@
┏┓@
┗┛@
@@
@
┏┓@
┣┛@
┛ @@
@
┏┓@
┗┫@
┗@@
@
┏┓@
┛ @
@@
@
┏@
┛@
@@
@
╋@
┗@
@@
@
┓┏@
┗┻@
@@
@
┓┏@
┗┛@
@@
@
┓┏┏@
┗┻┛@
@@
@
┓┏@
┛┗@
@@
@
┓┏@
┗┫@
┛@@
@
┓@
┗@
@@
┏@
┫@
┗@
@@
╻@
┃@
╹@
@@
┓@
┣@
┛@
@@
@
┏━┛@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
••@
┏┓@
┗┻@
@@
••@
┏┓@
┗┛@
@@
••@
┓┏@
┗┻@
@@
┏┓@
┣┫@
┻┛@
@@
@@ -0,0 +1,515 @@
// info about each config option.
var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
? function () {
console.error.apply(console, arguments)
}
: function () {}
var url = require('url')
var path = require('path')
var Stream = require('stream').Stream
var abbrev = require('abbrev')
var os = require('os')
module.exports = exports = nopt
exports.clean = clean
exports.typeDefs =
{ String: { type: String, validate: validateString },
Boolean: { type: Boolean, validate: validateBoolean },
url: { type: url, validate: validateUrl },
Number: { type: Number, validate: validateNumber },
path: { type: path, validate: validatePath },
Stream: { type: Stream, validate: validateStream },
Date: { type: Date, validate: validateDate },
}
function nopt (types, shorthands, args, slice) {
args = args || process.argv
types = types || {}
shorthands = shorthands || {}
if (typeof slice !== 'number') {
slice = 2
}
debug(types, shorthands, args, slice)
args = args.slice(slice)
var data = {}
var argv = {
remain: [],
cooked: args,
original: args.slice(0),
}
parse(args, data, argv.remain, types, shorthands)
// now data is full
clean(data, types, exports.typeDefs)
data.argv = argv
Object.defineProperty(data.argv, 'toString', { value: function () {
return this.original.map(JSON.stringify).join(' ')
},
enumerable: false })
return data
}
function clean (data, types, typeDefs) {
typeDefs = typeDefs || exports.typeDefs
var remove = {}
var typeDefault = [false, true, null, String, Array]
Object.keys(data).forEach(function (k) {
if (k === 'argv') {
return
}
var val = data[k]
var isArray = Array.isArray(val)
var type = types[k]
if (!isArray) {
val = [val]
}
if (!type) {
type = typeDefault
}
if (type === Array) {
type = typeDefault.concat(Array)
}
if (!Array.isArray(type)) {
type = [type]
}
debug('val=%j', val)
debug('types=', type)
val = val.map(function (v) {
// if it's an unknown value, then parse false/true/null/numbers/dates
if (typeof v === 'string') {
debug('string %j', v)
v = v.trim()
if ((v === 'null' && ~type.indexOf(null))
|| (v === 'true' &&
(~type.indexOf(true) || ~type.indexOf(Boolean)))
|| (v === 'false' &&
(~type.indexOf(false) || ~type.indexOf(Boolean)))) {
v = JSON.parse(v)
debug('jsonable %j', v)
} else if (~type.indexOf(Number) && !isNaN(v)) {
debug('convert to number', v)
v = +v
} else if (~type.indexOf(Date) && !isNaN(Date.parse(v))) {
debug('convert to date', v)
v = new Date(v)
}
}
if (!Object.prototype.hasOwnProperty.call(types, k)) {
return v
}
// allow `--no-blah` to set 'blah' to null if null is allowed
if (v === false && ~type.indexOf(null) &&
!(~type.indexOf(false) || ~type.indexOf(Boolean))) {
v = null
}
var d = {}
d[k] = v
debug('prevalidated val', d, v, types[k])
if (!validate(d, k, v, types[k], typeDefs)) {
if (exports.invalidHandler) {
exports.invalidHandler(k, v, types[k], data)
} else if (exports.invalidHandler !== false) {
debug('invalid: ' + k + '=' + v, types[k])
}
return remove
}
debug('validated v', d, v, types[k])
return d[k]
}).filter(function (v) {
return v !== remove
})
// if we allow Array specifically, then an empty array is how we
// express 'no value here', not null. Allow it.
if (!val.length && type.indexOf(Array) === -1) {
debug('VAL HAS NO LENGTH, DELETE IT', val, k, type.indexOf(Array))
delete data[k]
} else if (isArray) {
debug(isArray, data[k], val)
data[k] = val
} else {
data[k] = val[0]
}
debug('k=%s val=%j', k, val, data[k])
})
}
function validateString (data, k, val) {
data[k] = String(val)
}
function validatePath (data, k, val) {
if (val === true) {
return false
}
if (val === null) {
return true
}
val = String(val)
var isWin = process.platform === 'win32'
var homePattern = isWin ? /^~(\/|\\)/ : /^~\//
var home = os.homedir()
if (home && val.match(homePattern)) {
data[k] = path.resolve(home, val.slice(2))
} else {
data[k] = path.resolve(val)
}
return true
}
function validateNumber (data, k, val) {
debug('validate Number %j %j %j', k, val, isNaN(val))
if (isNaN(val)) {
return false
}
data[k] = +val
}
function validateDate (data, k, val) {
var s = Date.parse(val)
debug('validate Date %j %j %j', k, val, s)
if (isNaN(s)) {
return false
}
data[k] = new Date(val)
}
function validateBoolean (data, k, val) {
if (val instanceof Boolean) {
val = val.valueOf()
} else if (typeof val === 'string') {
if (!isNaN(val)) {
val = !!(+val)
} else if (val === 'null' || val === 'false') {
val = false
} else {
val = true
}
} else {
val = !!val
}
data[k] = val
}
function validateUrl (data, k, val) {
// Changing this would be a breaking change in the npm cli
/* eslint-disable-next-line node/no-deprecated-api */
val = url.parse(String(val))
if (!val.host) {
return false
}
data[k] = val.href
}
function validateStream (data, k, val) {
if (!(val instanceof Stream)) {
return false
}
data[k] = val
}
function validate (data, k, val, type, typeDefs) {
// arrays are lists of types.
if (Array.isArray(type)) {
for (let i = 0, l = type.length; i < l; i++) {
if (type[i] === Array) {
continue
}
if (validate(data, k, val, type[i], typeDefs)) {
return true
}
}
delete data[k]
return false
}
// an array of anything?
if (type === Array) {
return true
}
// Original comment:
// NaN is poisonous. Means that something is not allowed.
// New comment: Changing this to an isNaN check breaks a lot of tests.
// Something is being assumed here that is not actually what happens in
// practice. Fixing it is outside the scope of getting linting to pass in
// this repo. Leaving as-is for now.
/* eslint-disable-next-line no-self-compare */
if (type !== type) {
debug('Poison NaN', k, val, type)
delete data[k]
return false
}
// explicit list of values
if (val === type) {
debug('Explicitly allowed %j', val)
// if (isArray) (data[k] = data[k] || []).push(val)
// else data[k] = val
data[k] = val
return true
}
// now go through the list of typeDefs, validate against each one.
var ok = false
var types = Object.keys(typeDefs)
for (let i = 0, l = types.length; i < l; i++) {
debug('test type %j %j %j', k, val, types[i])
var t = typeDefs[types[i]]
if (t && (
(type && type.name && t.type && t.type.name) ?
(type.name === t.type.name) :
(type === t.type)
)) {
var d = {}
ok = t.validate(d, k, val) !== false
val = d[k]
if (ok) {
// if (isArray) (data[k] = data[k] || []).push(val)
// else data[k] = val
data[k] = val
break
}
}
}
debug('OK? %j (%j %j %j)', ok, k, val, types[types.length - 1])
if (!ok) {
delete data[k]
}
return ok
}
function parse (args, data, remain, types, shorthands) {
debug('parse', args, data, remain)
var abbrevs = abbrev(Object.keys(types))
var shortAbbr = abbrev(Object.keys(shorthands))
for (var i = 0; i < args.length; i++) {
var arg = args[i]
debug('arg', arg)
if (arg.match(/^-{2,}$/)) {
// done with keys.
// the rest are args.
remain.push.apply(remain, args.slice(i + 1))
args[i] = '--'
break
}
var hadEq = false
if (arg.charAt(0) === '-' && arg.length > 1) {
var at = arg.indexOf('=')
if (at > -1) {
hadEq = true
var v = arg.slice(at + 1)
arg = arg.slice(0, at)
args.splice(i, 1, arg, v)
}
// see if it's a shorthand
// if so, splice and back up to re-parse it.
var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs)
debug('arg=%j shRes=%j', arg, shRes)
if (shRes) {
debug(arg, shRes)
args.splice.apply(args, [i, 1].concat(shRes))
if (arg !== shRes[0]) {
i--
continue
}
}
arg = arg.replace(/^-+/, '')
var no = null
while (arg.toLowerCase().indexOf('no-') === 0) {
no = !no
arg = arg.slice(3)
}
if (abbrevs[arg]) {
arg = abbrevs[arg]
}
var argType = types[arg]
var isTypeArray = Array.isArray(argType)
if (isTypeArray && argType.length === 1) {
isTypeArray = false
argType = argType[0]
}
var isArray = argType === Array ||
isTypeArray && argType.indexOf(Array) !== -1
// allow unknown things to be arrays if specified multiple times.
if (
!Object.prototype.hasOwnProperty.call(types, arg) &&
Object.prototype.hasOwnProperty.call(data, arg)
) {
if (!Array.isArray(data[arg])) {
data[arg] = [data[arg]]
}
isArray = true
}
var val
var la = args[i + 1]
var isBool = typeof no === 'boolean' ||
argType === Boolean ||
isTypeArray && argType.indexOf(Boolean) !== -1 ||
(typeof argType === 'undefined' && !hadEq) ||
(la === 'false' &&
(argType === null ||
isTypeArray && ~argType.indexOf(null)))
if (isBool) {
// just set and move along
val = !no
// however, also support --bool true or --bool false
if (la === 'true' || la === 'false') {
val = JSON.parse(la)
la = null
if (no) {
val = !val
}
i++
}
// also support "foo":[Boolean, "bar"] and "--foo bar"
if (isTypeArray && la) {
if (~argType.indexOf(la)) {
// an explicit type
val = la
i++
} else if (la === 'null' && ~argType.indexOf(null)) {
// null allowed
val = null
i++
} else if (!la.match(/^-{2,}[^-]/) &&
!isNaN(la) &&
~argType.indexOf(Number)) {
// number
val = +la
i++
} else if (!la.match(/^-[^-]/) && ~argType.indexOf(String)) {
// string
val = la
i++
}
}
if (isArray) {
(data[arg] = data[arg] || []).push(val)
} else {
data[arg] = val
}
continue
}
if (argType === String) {
if (la === undefined) {
la = ''
} else if (la.match(/^-{1,2}[^-]+/)) {
la = ''
i--
}
}
if (la && la.match(/^-{2,}$/)) {
la = undefined
i--
}
val = la === undefined ? true : la
if (isArray) {
(data[arg] = data[arg] || []).push(val)
} else {
data[arg] = val
}
i++
continue
}
remain.push(arg)
}
}
function resolveShort (arg, shorthands, shortAbbr, abbrevs) {
// handle single-char shorthands glommed together, like
// npm ls -glp, but only if there is one dash, and only if
// all of the chars are single-char shorthands, and it's
// not a match to some other abbrev.
arg = arg.replace(/^-+/, '')
// if it's an exact known option, then don't go any further
if (abbrevs[arg] === arg) {
return null
}
// if it's an exact known shortopt, same deal
if (shorthands[arg]) {
// make it an array, if it's a list of words
if (shorthands[arg] && !Array.isArray(shorthands[arg])) {
shorthands[arg] = shorthands[arg].split(/\s+/)
}
return shorthands[arg]
}
// first check to see if this arg is a set of single-char shorthands
var singles = shorthands.___singles
if (!singles) {
singles = Object.keys(shorthands).filter(function (s) {
return s.length === 1
}).reduce(function (l, r) {
l[r] = true
return l
}, {})
shorthands.___singles = singles
debug('shorthand singles', singles)
}
var chrs = arg.split('').filter(function (c) {
return singles[c]
})
if (chrs.join('') === arg) {
return chrs.map(function (c) {
return shorthands[c]
}).reduce(function (l, r) {
return l.concat(r)
}, [])
}
// if it's an arg abbrev, and not a literal shorthand, then prefer the arg
if (abbrevs[arg] && !shorthands[arg]) {
return null
}
// if it's an abbr for a shorthand, then use that
if (shortAbbr[arg]) {
arg = shortAbbr[arg]
}
// make it an array, if it's a list of words
if (shorthands[arg] && !Array.isArray(shorthands[arg])) {
shorthands[arg] = shorthands[arg].split(/\s+/)
}
return shorthands[arg]
}
@@ -0,0 +1,14 @@
import { twJoin } from './lib/tw-join';
export { createTailwindMerge } from './lib/create-tailwind-merge';
export { getDefaultConfig } from './lib/default-config';
export { extendTailwindMerge } from './lib/extend-tailwind-merge';
export { fromTheme } from './lib/from-theme';
export { mergeConfigs } from './lib/merge-configs';
export { twJoin, type ClassNameValue } from './lib/tw-join';
export { twMerge } from './lib/tw-merge';
export type { Config } from './lib/types';
export * as validators from './lib/validators';
/**
* @deprecated Will be removed in next major version. Use `twJoin` instead.
*/
export declare const join: typeof twJoin;
@@ -0,0 +1 @@
{"version":3,"file":"buildEmptySetMetadata.d.ts","sourceRoot":"","sources":["../../../../src/reflectMetadata/utils/buildEmptySetMetadata.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAEjD"}
@@ -0,0 +1,8 @@
function _taggedTemplateLiteral(e, t) {
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
raw: {
value: Object.freeze(t)
}
}));
}
module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,14 @@
'use strict';
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-leftShift
module.exports = function BigIntLeftShift(x, y) {
if (typeof x !== 'bigint' || typeof y !== 'bigint') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
}
// shortcut for the actual spec mechanics
return x << y;
};
@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultPendingClassMetadataCount = getDefaultPendingClassMetadataCount;
function getDefaultPendingClassMetadataCount() {
return 0;
}
//# sourceMappingURL=getDefaultPendingClassMetadataCount.js.map
@@ -0,0 +1,55 @@
/**
* @typedef {import('hast').ElementContent} ElementContent
*
* @typedef {import('mdast').Nodes} Nodes
* @typedef {import('mdast').Reference} Reference
*
* @typedef {import('./state.js').State} State
*/
// Make VS Code show references to the above types.
''
/**
* Return the content of a reference without definition as plain text.
*
* @param {State} state
* Info passed around.
* @param {Extract<Nodes, Reference>} node
* Reference node (image, link).
* @returns {Array<ElementContent>}
* hast content.
*/
export function revert(state, node) {
const subtype = node.referenceType
let suffix = ']'
if (subtype === 'collapsed') {
suffix += '[]'
} else if (subtype === 'full') {
suffix += '[' + (node.label || node.identifier) + ']'
}
if (node.type === 'imageReference') {
return [{type: 'text', value: '![' + node.alt + suffix}]
}
const contents = state.all(node)
const head = contents[0]
if (head && head.type === 'text') {
head.value = '[' + head.value
} else {
contents.unshift({type: 'text', value: '['})
}
const tail = contents[contents.length - 1]
if (tail && tail.type === 'text') {
tail.value += suffix
} else {
contents.push({type: 'text', value: suffix})
}
return contents
}
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,eAAe,CAAC,iFAAqB,CAAC;AAC1D","sources":["packages/@react-aria/breadcrumbs/intl/el-GR.json"],"sourcesContent":["{\n \"breadcrumbs\": \"Πλοηγήσεις breadcrumb\"\n}\n"],"names":[],"version":3,"file":"el-GR.main.js.map"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=ContainerModuleManager.spec.d.ts.map
@@ -0,0 +1,32 @@
{
"name": "assertion-error",
"version": "2.0.1",
"description": "Error constructor for test and validation frameworks that implements standardized AssertionError specification.",
"author": "Jake Luer <jake@qualiancy.com> (http://qualiancy.com)",
"license": "MIT",
"types": "./index.d.ts",
"keywords": [
"test",
"assertion",
"assertion-error"
],
"repository": {
"type": "git",
"url": "git@github.com:chaijs/assertion-error.git"
},
"engines": {
"node": ">=12"
},
"files": [
"index.d.ts"
],
"type": "module",
"module": "index.js",
"main": "index.js",
"scripts": {
"build": "deno bundle mod.ts > index.js",
"pretest": "rm -rf coverage/",
"test": "deno test --coverage=coverage",
"posttest": "deno coverage coverage --lcov > coverage/lcov.info && lcov --summary coverage/lcov.info"
}
}
@@ -0,0 +1 @@
{"name":"vp-runtime-helper","version":"1.0.10","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532099109,"integrity":"sha512-v9ES9Q4Lj8EvQQPnE5WDjoATwyH6RP7qz5z7pyfiQGOh24FJIBZD6JKybS0niZOVgyQ6XOrAe1JyyGwTCxD3vg==","mode":420,"size":1067},"dist/index.js":{"checkedAt":1794532099109,"integrity":"sha512-AolnqT0p8OZrJjrT5hdAQK+tYauZEpc1WLrOHIoRAnPRffn0iP92YmpSTFbTWl7+9ih9SsVGISk8PVaDbjeqcg==","mode":420,"size":9049},"package.json":{"checkedAt":1794532099110,"integrity":"sha512-QEG6D/2lBLGORkUWvG3cnTn8V/yu8pwK47Qc78tcPkZLWNkPTF3c7OaNg02JVxZp0SNIgsrUgKkJIuUDP0WvPQ==","mode":420,"size":1272},"README.md":{"checkedAt":1794532099110,"integrity":"sha512-sSKyp9p31IpsuUj76IE6bgGwcEI2qOjjQ9NaIGbgXYv4Epe4keshTe3XgWHPYe2XUESW8BOI74CcImaU9b4J0g==","mode":420,"size":533},"dist/index.mjs":{"checkedAt":1794532099110,"integrity":"sha512-T7K/jsj+hjGwC+5iHS4HzCBlRv8CNTT/ycn6CQ9SR8QhHw3F7qbaBY0pR6EMQ94rnRg214rl1ZAuJ/oQlo/Xuw==","mode":420,"size":8503},"dist/colorful.d.ts":{"checkedAt":1794532099110,"integrity":"sha512-jUY4InqdCyMy9O5SgxQ8mRC2OxJBIDQscaUERpsy0/U3O8j4sKvBZCE38FxZ2k9gcdL5usiMjV5aUhfVt6XYTg==","mode":420,"size":149},"dist/depsCache.d.ts":{"checkedAt":1794532099110,"integrity":"sha512-QVNS44LHr12XZprQujnNex+DJIMI95r3QrE4D6KM8K7nxLNI8uoswADDgsf7iBN7nxsMYElOzKcMtESwaSHTxw==","mode":420,"size":186},"dist/devServer.d.ts":{"checkedAt":1794532099110,"integrity":"sha512-zlo2erUtqPYPbMup1ESl0NBco34DQbh7FyFlHmGfn4AlriLX5aKwfYUGfoS/gUdChqQKnjCeISM+3KwVUeZOmQ==","mode":420,"size":314},"dist/getValue.d.ts":{"checkedAt":1794532099110,"integrity":"sha512-EQbcj2GzNVgQ6nSLyVmcv8ULZGwB1WHqLjE36KCwmBe9C19d1ZwiDfcOqkJqGcFXtp2mqqxMP7qjgMI07lUrDw==","mode":420,"size":185},"dist/hash.d.ts":{"checkedAt":1794532099110,"integrity":"sha512-q/DmeWgB/KTj7tA+xpFZbsBty1koe9/k5pUGj6d202eQaMgHz9TVAeYnBsbFGBsHAI+Rx8W6cAbCUlG2mLIGbg==","mode":420,"size":81},"dist/index.d.ts":{"checkedAt":1794532099111,"integrity":"sha512-ZO7KgQAYSu9Z414Q8JrsaaI1XwYyJDuLdsUmm/cyKb/oG26S6Cf8V+6NbyIKWkIPd5/P/0aLFI6IKnaCC5AcEQ==","mode":420,"size":519},"dist/logger.d.ts":{"checkedAt":1794532099111,"integrity":"sha512-KtOHDJmHCf3jIjkVG07DGlsqthyWACIfFyFQrJKwm37FPFjZnzuIaD7cWpEbxSmIrQW2MtBE0Tl6H6xgT0FmXw==","mode":420,"size":92},"dist/time.d.ts":{"checkedAt":1794532099111,"integrity":"sha512-npP0eEjIwHG/q/F3QcROD1htMrk8ea7cUcbN0k2n7wip4b+2v15GKvlsZX0KDdGNT9+LludQg5CrIBuYVQEe0Q==","mode":420,"size":59},"dist/version.d.ts":{"checkedAt":1794532099111,"integrity":"sha512-T60kczSEZBGIUmOS6nq5GMpIY98LjwQlXQTAl1hBWmbAtc8FHJyjOZhBuSEyHdKmdhcIuvWbFLWJe8kkBLQ5Dg==","mode":420,"size":53}}}
@@ -0,0 +1,270 @@
/**
* @import {Encoding, Value} from 'micromark-util-types'
*/
/**
* @typedef {import('micromark-util-types').Options} Options
*/
/**
* @callback Callback
* Function called when write was successful.
* @returns {undefined}
* Nothing.
*
* @typedef PipeOptions
* Configuration for piping.
* @property {boolean | null | undefined} [end]
* Whether to end the destination stream when the source stream ends.
*
* @typedef {Omit<NodeJS.ReadableStream & NodeJS.WritableStream, 'isPaused' | 'pause' | 'read' | 'resume' | 'setEncoding' | 'unpipe' | 'unshift' | 'wrap'>} MinimalDuplex
* Duplex stream.
*/
import {EventEmitter} from 'node:events'
import {compile} from './lib/compile.js'
import {parse} from './lib/parse.js'
import {postprocess} from './lib/postprocess.js'
import {preprocess} from './lib/preprocess.js'
/**
* Create a duplex (readable and writable) stream.
*
* Some of the work to parse markdown can be done streaming, but in the
* end buffering is required.
*
* micromark does not handle errors for you, so you must handle errors on whatever
* streams you pipe into it.
* As markdown does not know errors, `micromark` itself does not emit errors.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {MinimalDuplex}
* Duplex stream.
*/
export function stream(options) {
const prep = preprocess()
const tokenize = parse(options).document().write
const comp = compile(options)
/** @type {boolean} */
let ended
const emitter = /** @type {MinimalDuplex} */ (new EventEmitter())
// @ts-expect-error: fine.
emitter.end = end
emitter.pipe = pipe
emitter.readable = true
emitter.writable = true
// @ts-expect-error: fine.
emitter.write = write
return emitter
/**
* Write a chunk into memory.
*
* @overload
* @param {Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Encoding | null | undefined} [encoding]
* Character encoding to understand `chunk` as when it’s a `Uint8Array`
* (`string`, default: `'utf8'`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*
* @overload
* @param {Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*
* @param {Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Callback | Encoding | null | undefined} [encoding]
* Character encoding to understand `chunk` as when it’s a `Uint8Array`
* (`string`, default: `'utf8'`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*/
function write(chunk, encoding, callback) {
if (typeof encoding === 'function') {
callback = encoding
encoding = undefined
}
if (ended) {
throw new Error('Did not expect `write` after `end`')
}
tokenize(prep(chunk || '', encoding))
if (callback) {
callback()
}
// Signal successful write.
return true
}
/**
* End the writing.
*
* Passes all arguments as a final `write`.
*
* @overload
* @param {Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Encoding | null | undefined} [encoding]
* Character encoding to understand `chunk` as when it’s a `Uint8Array`
* (`string`, default: `'utf8'`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*
* @overload
* @param {Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*
* @overload
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*
* @param {Callback | Value | null | undefined} [chunk]
* Slice of markdown to parse (`string` or `Uint8Array`).
* @param {Callback | Encoding | null | undefined} [encoding]
* Character encoding to understand `chunk` as when it’s a `Uint8Array`
* (`string`, default: `'utf8'`).
* @param {Callback | null | undefined} [callback]
* Function called when write was successful.
* @returns {boolean}
* Whether write was successful.
*/
function end(chunk, encoding, callback) {
if (typeof chunk === 'function') {
encoding = chunk
chunk = undefined
}
if (typeof encoding === 'function') {
callback = encoding
encoding = undefined
}
write(chunk, encoding, callback)
emitter.emit('data', comp(postprocess(tokenize(prep('', encoding, true)))))
emitter.emit('end')
ended = true
return true
}
/**
* Pipe the processor into a writable stream.
*
* Basically `Stream#pipe`, but inlined and simplified to keep the bundled
* size down.
* See: <https://github.com/nodejs/node/blob/43a5170/lib/internal/streams/legacy.js#L13>.
*
* @template {NodeJS.WritableStream} Stream
* Writable stream.
* @param {Stream} destination
* Stream to pipe into.
* @param {PipeOptions | null | undefined} [options]
* Configuration.
* @returns {Stream}
* Destination stream.
*/
function pipe(destination, options) {
emitter.on('data', ondata)
emitter.on('error', onerror)
emitter.on('end', cleanup)
emitter.on('close', cleanup)
// If the `end` option is not supplied, `destination.end()` will be
// called when the `end` or `close` events are received.
// @ts-expect-error `_isStdio` is available on `std{err,out}`
if (!destination._isStdio && (!options || options.end !== false)) {
emitter.on('end', onend)
}
destination.on('error', onerror)
destination.on('close', cleanup)
destination.emit('pipe', emitter)
return destination
/**
* End destination stream.
*
* @returns {undefined}
* Nothing.
*/
function onend() {
if (destination.end) {
destination.end()
}
}
/**
* Handle data.
*
* @param {string} chunk
* Data.
* @returns {undefined}
* Nothing.
*/
function ondata(chunk) {
if (destination.writable) {
destination.write(chunk)
}
}
/**
* Clean listeners.
*
* @returns {undefined}
* Nothing.
*/
function cleanup() {
emitter.removeListener('data', ondata)
emitter.removeListener('end', onend)
emitter.removeListener('error', onerror)
emitter.removeListener('end', cleanup)
emitter.removeListener('close', cleanup)
destination.removeListener('error', onerror)
destination.removeListener('close', cleanup)
}
/**
* Close dangling pipes and handle unheard errors.
*
* @param {Error | null | undefined} [error]
* Error, if any.
* @returns {undefined}
* Nothing.
*/
function onerror(error) {
cleanup()
if (!emitter.listenerCount('error')) {
throw error // Unhandled stream error in pipe.
}
}
}
}
@@ -0,0 +1,19 @@
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
function _createForOfIteratorHelperLoose(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (t) return (t = t.call(r)).next.bind(t);
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var o = 0;
return function () {
return o >= r.length ? {
done: !0
} : {
done: !1,
value: r[o++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
export { _createForOfIteratorHelperLoose as default };
@@ -0,0 +1 @@
{"name":"@react-stately/flags","version":"3.1.2","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532106271,"integrity":"sha512-cil7stSp3ik41Hdv2Dj+GMcbvUfs1q+MZ2Yte0804py9i6oJJN/diCiIr/brcQOZ5ZqwAI6dgaHA7l8FZheQBw==","mode":420,"size":11335},"dist/main.js":{"checkedAt":1794532106271,"integrity":"sha512-NjKjPFWZ8ZE2+X/pPjR6D6jUEaGZFnpaYzYMlDjZSoCe1C5HPn4Jgu7/HcG/hkKQE6pN+AlWYjXEsDbkredc3g==","mode":420,"size":1702},"dist/module.js":{"checkedAt":1794532106271,"integrity":"sha512-20SRIcj0xfZbRCSpJJP9SXCRuj+WM0yM9MC8RflyQxzKQNdmQGupGyb6EOJi/6tFOK7SGJBMrRlPW1+8GxYQHg==","mode":420,"size":1432},"package.json":{"checkedAt":1794532106271,"integrity":"sha512-K5w7wmNxMIklBaSKm0aPLN5cxdsg4NJ9V1xWH4cLMXiofpSQ2pPSabZxWWJoVr8FCR40a9A1ZjS8iCXtwT5cEg==","mode":420,"size":762},"dist/main.js.map":{"checkedAt":1794532106271,"integrity":"sha512-n9xvLStmh3Dqt7IAqEmoSdNWfvYMyN10bhgiRrjYZj1hUubYXy1i3Gyot4iqqF4LqoRPcEVW27wrnAGZYotvxw==","mode":420,"size":1294},"dist/module.js.map":{"checkedAt":1794532106271,"integrity":"sha512-qH/NXebEAike2T6K+K+PX9i76sxPxFz01qfQqWtNE6wCxot4Y/GCjFTRozs8MLnmIQIRpfPlF4YEjJHKxY0tdg==","mode":420,"size":1287},"dist/types.d.ts.map":{"checkedAt":1794532106272,"integrity":"sha512-2/gp3M/Jhm8k269JmxbH67ErVpuQOTv7O7l29q7a7Lf2ds8Dd/bZ2S78bW++aZgP1gC9da98FlO37KQJD2/sjQ==","mode":420,"size":1307},"README.md":{"checkedAt":1794532106272,"integrity":"sha512-VfUf4YivJxsSQqUWCqXptgQGkor6hInalL0atgOLaX5VQ2dfhauT0LOY9FVAHaA/YerJU2iBxLr7iSlxiMWyRg==","mode":420,"size":138},"dist/import.mjs":{"checkedAt":1794532106271,"integrity":"sha512-20SRIcj0xfZbRCSpJJP9SXCRuj+WM0yM9MC8RflyQxzKQNdmQGupGyb6EOJi/6tFOK7SGJBMrRlPW1+8GxYQHg==","mode":420,"size":1432},"src/index.ts":{"checkedAt":1794532106272,"integrity":"sha512-XR9ZS+QDElLJzft/gDhDH+jzTvvUnmGcdMs6OsEcGGvarOKXpMDomFbUshvoO4ZnF2GkBMNkgiXkQEdvX62bBg==","mode":420,"size":957},"dist/types.d.ts":{"checkedAt":1794532106272,"integrity":"sha512-tIMUYVQqi01FSYQ6oEGWBznVQTGvl554a0YXWsK7MnKXpF3vQvXRB1gmmDPEbMQKvvZDR2tAyVnW18IzEPxDcQ==","mode":420,"size":207}}}
@@ -0,0 +1,75 @@
import { NodeIKernelLoginListener } from '../listeners/NodeIKernelLoginListener';
import { GeneralCallResult } from './common';
export interface LoginInitConfig {
machineId: '';
appid: string;
platVer: string;
commonPath: string;
clientVer: string;
hostName: string;
}
export interface PasswordLoginRetType {
result: string;
loginErrorInfo: {
step: number;
errMsg: string;
proofWaterUrl: string;
newDevicePullQrCodeSig: string;
jumpUrl: string;
jumpWord: string;
tipsTitle: string;
tipsContent: string;
};
}
export interface PasswordLoginArgType {
uin: string;
passwordMd5: string;
step: number;
newDeviceLoginSig: string;
proofWaterSig: string;
proofWaterRand: string;
proofWaterSid: string;
}
export interface LoginListItem {
uin: string;
uid: string;
nickName: string;
faceUrl: string;
facePath: string;
loginType: 1;
isQuickLogin: boolean;
isAutoLogin: boolean;
}
export interface QuickLoginResult {
result: string;
loginErrorInfo: {
step: number;
errMsg: string;
proofWaterUrl: string;
newDevicePullQrCodeSig: string;
jumpUrl: string;
jumpWord: string;
tipsTitle: string;
tipsContent: string;
};
}
export interface NodeIKernelLoginService {
getMsfStatus: () => number;
setLoginMiscData(arg0: string, value: string): unknown;
getMachineGuid(): string;
get(): NodeIKernelLoginService;
connect(): boolean;
addKernelLoginListener(listener: NodeIKernelLoginListener): number;
removeKernelLoginListener(listener: number): void;
initConfig(config: LoginInitConfig): void;
getLoginMiscData(data: string): Promise<GeneralCallResult & {
value: string;
}>;
getLoginList(): Promise<{
result: number;
LocalLoginInfoList: LoginListItem[];
}>;
quickLoginWithUin(uin: string): Promise<QuickLoginResult>;
passwordLogin(param: PasswordLoginArgType): Promise<unknown>;
getQRCodePicture(): boolean;
}
@@ -0,0 +1,25 @@
import { MappedResult } from '../mapped/index.mjs';
import { Literal } from '../literal/index.mjs';
import { Extends } from './extends.mjs';
import { Clone } from '../clone/value.mjs';
// prettier-ignore
function FromPropertyKey(K, U, L, R, options) {
return {
[K]: Extends(Literal(K), U, L, R, Clone(options))
};
}
// prettier-ignore
function FromPropertyKeys(K, U, L, R, options) {
return K.reduce((Acc, LK) => {
return { ...Acc, ...FromPropertyKey(LK, U, L, R, options) };
}, {});
}
// prettier-ignore
function FromMappedKey(K, U, L, R, options) {
return FromPropertyKeys(K.keys, U, L, R, options);
}
// prettier-ignore
export function ExtendsFromMappedKey(T, U, L, R, options) {
const P = FromMappedKey(T, U, L, R, options);
return MappedResult(P);
}
@@ -0,0 +1,66 @@
{
"name": "@heroui/input",
"version": "2.4.10",
"description": "The input component is designed for capturing user input within a text field.",
"keywords": [
"input"
],
"author": "Junior Garcia <jrgarciadev@gmail.com>",
"homepage": "https://heroui.com",
"license": "MIT",
"main": "dist/index.js",
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/heroui-inc/heroui.git",
"directory": "packages/components/input"
},
"bugs": {
"url": "https://github.com/heroui-inc/heroui/issues"
},
"peerDependencies": {
"react": ">=18 || >=19.0.0-rc.0",
"react-dom": ">=18 || >=19.0.0-rc.0",
"@heroui/theme": ">=2.4.0",
"@heroui/system": ">=2.4.0"
},
"dependencies": {
"@react-aria/focus": "3.19.0",
"@react-aria/interactions": "3.22.5",
"@react-aria/textfield": "3.15.0",
"@react-aria/utils": "3.26.0",
"@react-stately/utils": "3.10.5",
"@react-types/shared": "3.26.0",
"@react-types/textfield": "3.10.0",
"react-textarea-autosize": "^8.5.3",
"@heroui/form": "2.1.9",
"@heroui/react-utils": "2.1.4",
"@heroui/shared-icons": "2.1.2",
"@heroui/shared-utils": "2.1.3",
"@heroui/use-safe-layout-effect": "2.1.2"
},
"clean-package": "../../../clean-package.config.json",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src --dts",
"build:fast": "tsup src",
"dev": "pnpm build:fast --watch",
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit"
}
}
@@ -0,0 +1,11 @@
"use strict";
var _array_with_holes = require("./_array_with_holes.cjs");
var _iterable_to_array_limit_loose = require("./_iterable_to_array_limit_loose.cjs");
var _non_iterable_rest = require("./_non_iterable_rest.cjs");
var _unsupported_iterable_to_array = require("./_unsupported_iterable_to_array.cjs");
function _sliced_to_array_loose(arr, i) {
return _array_with_holes._(arr) || _iterable_to_array_limit_loose._(arr, i) || _unsupported_iterable_to_array._(arr, i) || _non_iterable_rest._();
}
exports._ = _sliced_to_array_loose;
@@ -0,0 +1,31 @@
name: Run npm Tests
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 23]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
@@ -0,0 +1,40 @@
'use strict';
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');
var ToIndex = require('./ToIndex');
var TypedArrayElementSize = require('./TypedArrayElementSize');
var isTypedArray = require('is-typed-array');
var typedArrayByteOffset = require('typed-array-byte-offset');
var typedArrayLength = require('typed-array-length');
// https://262.ecma-international.org/13.0/#sec-validateatomicaccess
module.exports = function ValidateAtomicAccess(typedArray, requestIndex) {
if (!isTypedArray(typedArray)) {
throw new $TypeError('Assertion failed: `typedArray` must be a TypedArray');
}
var length = typedArrayLength(typedArray); // step 1
var accessIndex = ToIndex(requestIndex); // step 2
/*
// this assertion can never be reached
if (!(accessIndex >= 0)) {
throw new $TypeError('Assertion failed: accessIndex >= 0'); // step 4
}
*/
if (accessIndex >= length) {
throw new $RangeError('index out of range'); // step 4
}
var elementSize = TypedArrayElementSize(typedArray); // step 5
var offset = typedArrayByteOffset(typedArray); // step 6
return (accessIndex * elementSize) + offset; // step 7
};
@@ -0,0 +1,24 @@
/**
* A specialized version of `_.reduceRight` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
* @param {boolean} [initAccum] Specify using the last element of `array` as
* the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
var length = array == null ? 0 : array.length;
if (initAccum && length) {
accumulator = array[--length];
}
while (length--) {
accumulator = iteratee(accumulator, array[length], length, array);
}
return accumulator;
}
export default arrayReduceRight;
@@ -0,0 +1,52 @@
import * as proto from '../../../packet/transformer/proto';
import { OidbPacket, PacketTransformer } from '../../../packet/transformer/base';
declare class DownloadGroupFile extends PacketTransformer<typeof proto.OidbSvcTrpcTcp0x6D6Response> {
build(groupUin: number, fileUUID: string): OidbPacket;
parse(data: Buffer): import("napcat-protobuf").any {
retCode: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
retMsg: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
clientWording: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
uploadIp: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
serverDns: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
busId: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
checkKey: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
fileKey: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
boolFileExist: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BOOL, false, false>;
uploadIpLanV4: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, true>;
uploadIpLanV6: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, true>;
uploadPort: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
}, false, false>;
download: import("napcat-protobuf").MessageProtoFieldType<() => {
retCode: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
retMsg: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
clientWording: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
downloadIp: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
downloadDns: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
downloadUrl: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
fileSha1: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
fileSha3: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
fileMd5: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
cookieVal: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.BYTES, false, false>;
saveFileName: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
previewPort: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.UINT32, false, false>;
}, false, false>;
delete: import("napcat-protobuf").MessageProtoFieldType<() => {
retCode: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
retMsg: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
clientWording: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
}, false, false>;
rename: import("napcat-protobuf").MessageProtoFieldType<() => {
retCode: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
retMsg: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
clientWording: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
}, false, false>;
move: import("napcat-protobuf").MessageProtoFieldType<() => {
retCode: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.INT32, false, false>;
retMsg: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
clientWording: import("napcat-protobuf").ScalarProtoFieldType<import("napcat-protobuf").ScalarType.STRING, false, false>;
}, false, false>;
}>;
}
declare const _default: DownloadGroupFile;
export default _default;
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Monaco Loader: Playground</title>
</head>
<body style="height: 100vh">
<div id="app"></div>
<script type="module" src="/main.js"></script>
</body>
</html>
@@ -0,0 +1 @@
{"version":3,"file":"InversifyContainerError.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyContainerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,QAAA,MAAM,gBAAgB,EAAE,OAAO,MAE9B,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,KAAK;IACzC,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAEzB,IAAI,EAAE,2BAA2B,CAAC;gBAGvC,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY;WAQV,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,uBAAuB;WAQpD,aAAa,CACzB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,2BAA2B,GAChC,KAAK,IAAI,uBAAuB;CAIpC"}
@@ -0,0 +1,17 @@
'use strict'
// parse out just the options we care about
const looseOption = Object.freeze({ loose: true })
const emptyOpts = Object.freeze({ })
const parseOptions = options => {
if (!options) {
return emptyOpts
}
if (typeof options !== 'object') {
return looseOption
}
return options
}
module.exports = parseOptions
@@ -0,0 +1,50 @@
import $kh5JA$intlStringsmodulejs from "./intlStrings.module.js";
import {useDescription as $kh5JA$useDescription} from "@react-aria/utils";
import {useInteractionModality as $kh5JA$useInteractionModality} from "@react-aria/interactions";
import {useLocalizedStringFormatter as $kh5JA$useLocalizedStringFormatter} from "@react-aria/i18n";
import {useMemo as $kh5JA$useMemo} from "react";
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
/*
* Copyright 2021 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 $5b9b5b5723db6ae1$export$be42ebdab07ae4c2(props) {
let stringFormatter = (0, $kh5JA$useLocalizedStringFormatter)((0, ($parcel$interopDefault($kh5JA$intlStringsmodulejs))), '@react-aria/grid');
let modality = (0, $kh5JA$useInteractionModality)();
// null is the default if the user hasn't interacted with the table at all yet or the rest of the page
let shouldLongPress = (modality === 'pointer' || modality === 'virtual' || modality == null) && typeof window !== 'undefined' && 'ontouchstart' in window;
let interactionDescription = (0, $kh5JA$useMemo)(()=>{
let selectionMode = props.selectionManager.selectionMode;
let selectionBehavior = props.selectionManager.selectionBehavior;
let message;
if (shouldLongPress) message = stringFormatter.format('longPressToSelect');
return selectionBehavior === 'replace' && selectionMode !== 'none' && props.hasItemActions ? message : undefined;
}, [
props.selectionManager.selectionMode,
props.selectionManager.selectionBehavior,
props.hasItemActions,
stringFormatter,
shouldLongPress
]);
let descriptionProps = (0, $kh5JA$useDescription)(interactionDescription);
return descriptionProps;
}
export {$5b9b5b5723db6ae1$export$be42ebdab07ae4c2 as useHighlightSelectionDescription};
//# sourceMappingURL=useHighlightSelectionDescription.module.js.map
@@ -0,0 +1,928 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
* react-router v7.9.5
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
"use client";
var _chunkFQEOJFGWjs = require('./chunk-FQEOJFGW.js');
var _chunkVNR6V74Njs = require('./chunk-VNR6V74N.js');
// lib/dom-export/dom-router-provider.tsx
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
var _reactdom = require('react-dom'); var ReactDOM = _interopRequireWildcard(_reactdom); var ReactDOM2 = _interopRequireWildcard(_reactdom);
var _reactrouter = require('react-router');
function RouterProvider(props) {
return /* @__PURE__ */ React.createElement(_reactrouter.RouterProvider, { flushSync: ReactDOM.flushSync, ...props });
}
// lib/dom-export/hydrated-router.tsx
var ssrInfo = null;
var router = null;
function initSsrInfo() {
if (!ssrInfo && window.__reactRouterContext && window.__reactRouterManifest && window.__reactRouterRouteModules) {
if (window.__reactRouterManifest.sri === true) {
const importMap = document.querySelector("script[rr-importmap]");
if (_optionalChain([importMap, 'optionalAccess', _2 => _2.textContent])) {
try {
window.__reactRouterManifest.sri = JSON.parse(
importMap.textContent
).integrity;
} catch (err) {
console.error("Failed to parse import map", err);
}
}
}
ssrInfo = {
context: window.__reactRouterContext,
manifest: window.__reactRouterManifest,
routeModules: window.__reactRouterRouteModules,
stateDecodingPromise: void 0,
router: void 0,
routerInitialized: false
};
}
}
function createHydratedRouter({
getContext,
unstable_instrumentations
}) {
initSsrInfo();
if (!ssrInfo) {
throw new Error(
"You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`"
);
}
let localSsrInfo = ssrInfo;
if (!ssrInfo.stateDecodingPromise) {
let stream = ssrInfo.context.stream;
_reactrouter.UNSAFE_invariant.call(void 0, stream, "No stream found for single fetch decoding");
ssrInfo.context.stream = void 0;
ssrInfo.stateDecodingPromise = _reactrouter.UNSAFE_decodeViaTurboStream.call(void 0, stream, window).then((value) => {
ssrInfo.context.state = value.value;
localSsrInfo.stateDecodingPromise.value = true;
}).catch((e) => {
localSsrInfo.stateDecodingPromise.error = e;
});
}
if (ssrInfo.stateDecodingPromise.error) {
throw ssrInfo.stateDecodingPromise.error;
}
if (!ssrInfo.stateDecodingPromise.value) {
throw ssrInfo.stateDecodingPromise;
}
let routes = _reactrouter.UNSAFE_createClientRoutes.call(void 0,
ssrInfo.manifest.routes,
ssrInfo.routeModules,
ssrInfo.context.state,
ssrInfo.context.ssr,
ssrInfo.context.isSpaMode
);
let hydrationData = void 0;
if (ssrInfo.context.isSpaMode) {
let { loaderData } = ssrInfo.context.state;
if (_optionalChain([ssrInfo, 'access', _3 => _3.manifest, 'access', _4 => _4.routes, 'access', _5 => _5.root, 'optionalAccess', _6 => _6.hasLoader]) && loaderData && "root" in loaderData) {
hydrationData = {
loaderData: {
root: loaderData.root
}
};
}
} else {
hydrationData = _reactrouter.UNSAFE_getHydrationData.call(void 0, {
state: ssrInfo.context.state,
routes,
getRouteInfo: (routeId) => ({
clientLoader: _optionalChain([ssrInfo, 'access', _7 => _7.routeModules, 'access', _8 => _8[routeId], 'optionalAccess', _9 => _9.clientLoader]),
hasLoader: _optionalChain([ssrInfo, 'access', _10 => _10.manifest, 'access', _11 => _11.routes, 'access', _12 => _12[routeId], 'optionalAccess', _13 => _13.hasLoader]) === true,
hasHydrateFallback: _optionalChain([ssrInfo, 'access', _14 => _14.routeModules, 'access', _15 => _15[routeId], 'optionalAccess', _16 => _16.HydrateFallback]) != null
}),
location: window.location,
basename: _optionalChain([window, 'access', _17 => _17.__reactRouterContext, 'optionalAccess', _18 => _18.basename]),
isSpaMode: ssrInfo.context.isSpaMode
});
if (hydrationData && hydrationData.errors) {
hydrationData.errors = _reactrouter.UNSAFE_deserializeErrors.call(void 0, hydrationData.errors);
}
}
let router2 = _reactrouter.UNSAFE_createRouter.call(void 0, {
routes,
history: _reactrouter.UNSAFE_createBrowserHistory.call(void 0, ),
basename: ssrInfo.context.basename,
getContext,
hydrationData,
hydrationRouteProperties: _reactrouter.UNSAFE_hydrationRouteProperties,
unstable_instrumentations,
mapRouteProperties: _reactrouter.UNSAFE_mapRouteProperties,
future: {
middleware: ssrInfo.context.future.v8_middleware
},
dataStrategy: _reactrouter.UNSAFE_getTurboStreamSingleFetchDataStrategy.call(void 0,
() => router2,
ssrInfo.manifest,
ssrInfo.routeModules,
ssrInfo.context.ssr,
ssrInfo.context.basename
),
patchRoutesOnNavigation: _reactrouter.UNSAFE_getPatchRoutesOnNavigationFunction.call(void 0,
ssrInfo.manifest,
ssrInfo.routeModules,
ssrInfo.context.ssr,
ssrInfo.context.routeDiscovery,
ssrInfo.context.isSpaMode,
ssrInfo.context.basename
)
});
ssrInfo.router = router2;
if (router2.state.initialized) {
ssrInfo.routerInitialized = true;
router2.initialize();
}
router2.createRoutesForHMR = /* spacer so ts-ignore does not affect the right hand of the assignment */
_reactrouter.UNSAFE_createClientRoutesWithHMRRevalidationOptOut;
window.__reactRouterDataRouter = router2;
return router2;
}
function HydratedRouter(props) {
if (!router) {
router = createHydratedRouter({
getContext: props.getContext,
unstable_instrumentations: props.unstable_instrumentations
});
}
let [criticalCss, setCriticalCss] = React2.useState(
process.env.NODE_ENV === "development" ? _optionalChain([ssrInfo, 'optionalAccess', _19 => _19.context, 'access', _20 => _20.criticalCss]) : void 0
);
React2.useEffect(() => {
if (process.env.NODE_ENV === "development") {
setCriticalCss(void 0);
}
}, []);
React2.useEffect(() => {
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
document.querySelectorAll(`[${_chunkVNR6V74Njs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
}
}, [criticalCss]);
let [location2, setLocation] = React2.useState(router.state.location);
React2.useLayoutEffect(() => {
if (ssrInfo && ssrInfo.router && !ssrInfo.routerInitialized) {
ssrInfo.routerInitialized = true;
ssrInfo.router.initialize();
}
}, []);
React2.useLayoutEffect(() => {
if (ssrInfo && ssrInfo.router) {
return ssrInfo.router.subscribe((newState) => {
if (newState.location !== location2) {
setLocation(newState.location);
}
});
}
}, [location2]);
_reactrouter.UNSAFE_invariant.call(void 0, ssrInfo, "ssrInfo unavailable for HydratedRouter");
_reactrouter.UNSAFE_useFogOFWarDiscovery.call(void 0,
router,
ssrInfo.manifest,
ssrInfo.routeModules,
ssrInfo.context.ssr,
ssrInfo.context.routeDiscovery,
ssrInfo.context.isSpaMode
);
return (
// This fragment is important to ensure we match the <ServerRouter> JSX
// structure so that useId values hydrate correctly
/* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
_reactrouter.UNSAFE_FrameworkContext.Provider,
{
value: {
manifest: ssrInfo.manifest,
routeModules: ssrInfo.routeModules,
future: ssrInfo.context.future,
criticalCss,
ssr: ssrInfo.context.ssr,
isSpaMode: ssrInfo.context.isSpaMode,
routeDiscovery: ssrInfo.context.routeDiscovery
}
},
/* @__PURE__ */ React2.createElement(_reactrouter.UNSAFE_RemixErrorBoundary, { location: location2 }, /* @__PURE__ */ React2.createElement(
RouterProvider,
{
router,
unstable_onError: props.unstable_onError
}
))
), /* @__PURE__ */ React2.createElement(React2.Fragment, null))
);
}
// lib/rsc/browser.tsx
function createCallServer({
createFromReadableStream,
createTemporaryReferenceSet,
encodeReply,
fetch: fetchImplementation = fetch
}) {
const globalVar = window;
let landedActionId = 0;
return async (id, args) => {
let actionId = globalVar.__routerActionID = (_nullishCoalesce(globalVar.__routerActionID, () => ( (globalVar.__routerActionID = 0)))) + 1;
const temporaryReferences = createTemporaryReferenceSet();
const payloadPromise = fetchImplementation(
new Request(location.href, {
body: await encodeReply(args, { temporaryReferences }),
method: "POST",
headers: {
Accept: "text/x-component",
"rsc-action-id": id
}
})
).then((response) => {
if (!response.body) {
throw new Error("No response body");
}
return createFromReadableStream(response.body, {
temporaryReferences
});
});
globalVar.__reactRouterDataRouter.__setPendingRerender(
Promise.resolve(payloadPromise).then(async (payload) => {
if (payload.type === "redirect") {
if (payload.reload || isExternalLocation(payload.location)) {
window.location.href = payload.location;
return () => {
};
}
return () => {
globalVar.__reactRouterDataRouter.navigate(payload.location, {
replace: payload.replace
});
};
}
if (payload.type !== "action") {
throw new Error("Unexpected payload type");
}
const rerender = await payload.rerender;
if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {
if (rerender.type === "redirect") {
if (rerender.reload || isExternalLocation(rerender.location)) {
window.location.href = rerender.location;
return;
}
return () => {
globalVar.__reactRouterDataRouter.navigate(rerender.location, {
replace: rerender.replace
});
};
}
return () => {
let lastMatch;
for (const match of rerender.matches) {
globalVar.__reactRouterDataRouter.patchRoutes(
_nullishCoalesce(_optionalChain([lastMatch, 'optionalAccess', _21 => _21.id]), () => ( null)),
[createRouteFromServerManifest(match)],
true
);
lastMatch = match;
}
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
{
loaderData: Object.assign(
{},
globalVar.__reactRouterDataRouter.state.loaderData,
rerender.loaderData
),
errors: rerender.errors ? Object.assign(
{},
globalVar.__reactRouterDataRouter.state.errors,
rerender.errors
) : null
}
);
};
}
return () => {
};
}).catch(() => {
})
);
return payloadPromise.then((payload) => {
if (payload.type !== "action" && payload.type !== "redirect") {
throw new Error("Unexpected payload type");
}
return payload.actionResult;
});
};
}
function createRouterFromPayload({
fetchImplementation,
createFromReadableStream,
getContext,
payload
}) {
const globalVar = window;
if (globalVar.__reactRouterDataRouter && globalVar.__reactRouterRouteModules)
return {
router: globalVar.__reactRouterDataRouter,
routeModules: globalVar.__reactRouterRouteModules
};
if (payload.type !== "render") throw new Error("Invalid payload type");
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
_chunkFQEOJFGWjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
let patches = /* @__PURE__ */ new Map();
_optionalChain([payload, 'access', _22 => _22.patches, 'optionalAccess', _23 => _23.forEach, 'call', _24 => _24((patch) => {
_chunkVNR6V74Njs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
if (!patches.has(patch.parentId)) {
patches.set(patch.parentId, []);
}
_optionalChain([patches, 'access', _25 => _25.get, 'call', _26 => _26(patch.parentId), 'optionalAccess', _27 => _27.push, 'call', _28 => _28(patch)]);
})]);
let routes = payload.matches.reduceRight((previous, match) => {
const route = createRouteFromServerManifest(
match,
payload
);
if (previous.length > 0) {
route.children = previous;
let childrenToPatch = patches.get(match.id);
if (childrenToPatch) {
route.children.push(
...childrenToPatch.map((r) => createRouteFromServerManifest(r))
);
}
}
return [route];
}, []);
globalVar.__reactRouterDataRouter = _chunkVNR6V74Njs.createRouter.call(void 0, {
routes,
getContext,
basename: payload.basename,
history: _chunkVNR6V74Njs.createBrowserHistory.call(void 0, ),
hydrationData: _chunkFQEOJFGWjs.getHydrationData.call(void 0, {
state: {
loaderData: payload.loaderData,
actionData: payload.actionData,
errors: payload.errors
},
routes,
getRouteInfo: (routeId) => {
let match = payload.matches.find((m) => m.id === routeId);
_chunkVNR6V74Njs.invariant.call(void 0, match, "Route not found in payload");
return {
clientLoader: match.clientLoader,
hasLoader: match.hasLoader,
hasHydrateFallback: match.hydrateFallbackElement != null
};
},
location: payload.location,
basename: payload.basename,
isSpaMode: false
}),
async patchRoutesOnNavigation({ path, signal }) {
if (discoveredPaths.has(path)) {
return;
}
await fetchAndApplyManifestPatches(
[path],
createFromReadableStream,
fetchImplementation,
signal
);
},
// FIXME: Pass `build.ssr` into this function
dataStrategy: getRSCSingleFetchDataStrategy(
() => globalVar.__reactRouterDataRouter,
true,
payload.basename,
createFromReadableStream,
fetchImplementation
)
});
if (globalVar.__reactRouterDataRouter.state.initialized) {
globalVar.__routerInitialized = true;
globalVar.__reactRouterDataRouter.initialize();
} else {
globalVar.__routerInitialized = false;
}
let lastLoaderData = void 0;
globalVar.__reactRouterDataRouter.subscribe(({ loaderData, actionData }) => {
if (lastLoaderData !== loaderData) {
globalVar.__routerActionID = (_nullishCoalesce(globalVar.__routerActionID, () => ( (globalVar.__routerActionID = 0)))) + 1;
}
});
globalVar.__reactRouterDataRouter._updateRoutesForHMR = (routeUpdateByRouteId) => {
const oldRoutes = window.__reactRouterDataRouter.routes;
const newRoutes = [];
function walkRoutes(routes2, parentId) {
return routes2.map((route) => {
const routeUpdate = routeUpdateByRouteId.get(route.id);
if (routeUpdate) {
const {
routeModule,
hasAction,
hasComponent,
hasErrorBoundary,
hasLoader
} = routeUpdate;
const newRoute = createRouteFromServerManifest({
clientAction: routeModule.clientAction,
clientLoader: routeModule.clientLoader,
element: route.element,
errorElement: route.errorElement,
handle: route.handle,
hasAction,
hasComponent,
hasErrorBoundary,
hasLoader,
hydrateFallbackElement: route.hydrateFallbackElement,
id: route.id,
index: route.index,
links: routeModule.links,
meta: routeModule.meta,
parentId,
path: route.path,
shouldRevalidate: routeModule.shouldRevalidate
});
if (route.children) {
newRoute.children = walkRoutes(route.children, route.id);
}
return newRoute;
}
const updatedRoute = { ...route };
if (route.children) {
updatedRoute.children = walkRoutes(route.children, route.id);
}
return updatedRoute;
});
}
newRoutes.push(
...walkRoutes(oldRoutes, void 0)
);
window.__reactRouterDataRouter._internalSetRoutes(newRoutes);
};
return {
router: globalVar.__reactRouterDataRouter,
routeModules: globalVar.__reactRouterRouteModules
};
}
var renderedRoutesContext = _chunkVNR6V74Njs.createContext.call(void 0, );
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
let dataStrategy = _chunkVNR6V74Njs.getSingleFetchDataStrategyImpl.call(void 0,
getRouter,
(match) => {
let M = match;
return {
hasLoader: M.route.hasLoader,
hasClientLoader: M.route.hasClientLoader,
hasComponent: M.route.hasComponent,
hasAction: M.route.hasAction,
hasClientAction: M.route.hasClientAction,
hasShouldRevalidate: M.route.hasShouldRevalidate
};
},
// pass map into fetchAndDecode so it can add payloads
getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation),
ssr,
basename,
// If the route has a component but we don't have an element, we need to hit
// the server loader flow regardless of whether the client loader calls
// `serverLoader` or not, otherwise we'll have nothing to render.
(match) => {
let M = match;
return M.route.hasComponent && !M.route.element;
}
);
return async (args) => args.runClientMiddleware(async () => {
let context = args.context;
context.set(renderedRoutesContext, []);
let results = await dataStrategy(args);
const renderedRoutesById = /* @__PURE__ */ new Map();
for (const route of context.get(renderedRoutesContext)) {
if (!renderedRoutesById.has(route.id)) {
renderedRoutesById.set(route.id, []);
}
renderedRoutesById.get(route.id).push(route);
}
for (const match of args.matches) {
const renderedRoutes = renderedRoutesById.get(match.route.id);
if (renderedRoutes) {
for (const rendered of renderedRoutes) {
window.__reactRouterDataRouter.patchRoutes(
_nullishCoalesce(rendered.parentId, () => ( null)),
[createRouteFromServerManifest(rendered)],
true
);
}
}
}
return results;
});
}
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
return async (args, basename, targetRoutes) => {
let { request, context } = args;
let url = _chunkVNR6V74Njs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
if (request.method === "GET") {
url = _chunkVNR6V74Njs.stripIndexParam.call(void 0, url);
if (targetRoutes) {
url.searchParams.set("_routes", targetRoutes.join(","));
}
}
let res = await fetchImplementation(
new Request(url, await _chunkVNR6V74Njs.createRequestInit.call(void 0, request))
);
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
throw new (0, _chunkVNR6V74Njs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
}
_chunkVNR6V74Njs.invariant.call(void 0, res.body, "No response body to decode");
try {
const payload = await createFromReadableStream(res.body, {
temporaryReferences: void 0
});
if (payload.type === "redirect") {
return {
status: res.status,
data: {
redirect: {
redirect: payload.location,
reload: payload.reload,
replace: payload.replace,
revalidate: false,
status: payload.status
}
}
};
}
if (payload.type !== "render") {
throw new Error("Unexpected payload type");
}
context.get(renderedRoutesContext).push(...payload.matches);
let results = { routes: {} };
const dataKey = _chunkVNR6V74Njs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
results.routes[routeId] = { data };
}
if (payload.errors) {
for (let [routeId, error] of Object.entries(payload.errors)) {
results.routes[routeId] = { error };
}
}
return { status: res.status, data: results };
} catch (e) {
throw new Error("Unable to decode RSC response");
}
};
}
function RSCHydratedRouter({
createFromReadableStream,
fetch: fetchImplementation = fetch,
payload,
routeDiscovery = "eager",
getContext
}) {
if (payload.type !== "render") throw new Error("Invalid payload type");
let { router: router2, routeModules } = React3.useMemo(
() => createRouterFromPayload({
payload,
fetchImplementation,
getContext,
createFromReadableStream
}),
[createFromReadableStream, payload, fetchImplementation, getContext]
);
React3.useEffect(() => {
_chunkVNR6V74Njs.setIsHydrated.call(void 0, );
}, []);
React3.useLayoutEffect(() => {
const globalVar = window;
if (!globalVar.__routerInitialized) {
globalVar.__routerInitialized = true;
globalVar.__reactRouterDataRouter.initialize();
}
}, []);
let [location2, setLocation] = React3.useState(router2.state.location);
React3.useLayoutEffect(
() => router2.subscribe((newState) => {
if (newState.location !== location2) {
setLocation(newState.location);
}
}),
[router2, location2]
);
React3.useEffect(() => {
if (routeDiscovery === "lazy" || // @ts-expect-error - TS doesn't know about this yet
_optionalChain([window, 'access', _29 => _29.navigator, 'optionalAccess', _30 => _30.connection, 'optionalAccess', _31 => _31.saveData]) === true) {
return;
}
function registerElement(el) {
let path = el.tagName === "FORM" ? el.getAttribute("action") : el.getAttribute("href");
if (!path) {
return;
}
let pathname = el.tagName === "A" ? el.pathname : new URL(path, window.location.origin).pathname;
if (!discoveredPaths.has(pathname)) {
nextPaths.add(pathname);
}
}
async function fetchPatches() {
document.querySelectorAll("a[data-discover], form[data-discover]").forEach(registerElement);
let paths = Array.from(nextPaths.keys()).filter((path) => {
if (discoveredPaths.has(path)) {
nextPaths.delete(path);
return false;
}
return true;
});
if (paths.length === 0) {
return;
}
try {
await fetchAndApplyManifestPatches(
paths,
createFromReadableStream,
fetchImplementation
);
} catch (e) {
console.error("Failed to fetch manifest patches", e);
}
}
let debouncedFetchPatches = debounce(fetchPatches, 100);
fetchPatches();
let observer = new MutationObserver(() => debouncedFetchPatches());
observer.observe(document.documentElement, {
subtree: true,
childList: true,
attributes: true,
attributeFilter: ["data-discover", "href", "action"]
});
}, [routeDiscovery, createFromReadableStream, fetchImplementation]);
const frameworkContext = {
future: {
// These flags have no runtime impact so can always be false. If we add
// flags that drive runtime behavior they'll need to be proxied through.
v8_middleware: false,
unstable_subResourceIntegrity: false
},
isSpaMode: false,
ssr: true,
criticalCss: "",
manifest: {
routes: {},
version: "1",
url: "",
entry: {
module: "",
imports: []
}
},
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
routeModules
};
return /* @__PURE__ */ React3.createElement(_chunkVNR6V74Njs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkFQEOJFGWjs.RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React3.createElement(_chunkVNR6V74Njs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(_chunkVNR6V74Njs.UNSTABLE_TransitionEnabledRouterProvider, { router: router2, flushSync: ReactDOM2.flushSync }))));
}
function createRouteFromServerManifest(match, payload) {
let hasInitialData = payload && match.id in payload.loaderData;
let initialData = _optionalChain([payload, 'optionalAccess', _32 => _32.loaderData, 'access', _33 => _33[match.id]]);
let hasInitialError = _optionalChain([payload, 'optionalAccess', _34 => _34.errors]) && match.id in payload.errors;
let initialError = _optionalChain([payload, 'optionalAccess', _35 => _35.errors, 'optionalAccess', _36 => _36[match.id]]);
let isHydrationRequest = _optionalChain([match, 'access', _37 => _37.clientLoader, 'optionalAccess', _38 => _38.hydrate]) === true || !match.hasLoader || // If the route has a component but we don't have an element, we need to hit
// the server loader flow regardless of whether the client loader calls
// `serverLoader` or not, otherwise we'll have nothing to render.
match.hasComponent && !match.element;
_chunkVNR6V74Njs.invariant.call(void 0, window.__reactRouterRouteModules);
_chunkFQEOJFGWjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
let dataRoute = {
id: match.id,
element: match.element,
errorElement: match.errorElement,
handle: match.handle,
hasErrorBoundary: match.hasErrorBoundary,
hydrateFallbackElement: match.hydrateFallbackElement,
index: match.index,
loader: match.clientLoader ? async (args, singleFetch) => {
try {
let result = await match.clientLoader({
...args,
serverLoader: () => {
preventInvalidServerHandlerCall(
"loader",
match.id,
match.hasLoader
);
if (isHydrationRequest) {
if (hasInitialData) {
return initialData;
}
if (hasInitialError) {
throw initialError;
}
}
return callSingleFetch(singleFetch);
}
});
return result;
} finally {
isHydrationRequest = false;
}
} : (
// We always make the call in this RSC world since even if we don't
// have a `loader` we may need to get the `element` implementation
(_, singleFetch) => callSingleFetch(singleFetch)
),
action: match.clientAction ? (args, singleFetch) => match.clientAction({
...args,
serverAction: async () => {
preventInvalidServerHandlerCall(
"action",
match.id,
match.hasLoader
);
return await callSingleFetch(singleFetch);
}
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
throw _chunkVNR6V74Njs.noActionDefinedError.call(void 0, "action", match.id);
},
path: match.path,
shouldRevalidate: match.shouldRevalidate,
// We always have a "loader" in this RSC world since even if we don't
// have a `loader` we may need to get the `element` implementation
hasLoader: true,
hasClientLoader: match.clientLoader != null,
hasAction: match.hasAction,
hasClientAction: match.clientAction != null,
hasShouldRevalidate: match.shouldRevalidate != null
};
if (typeof dataRoute.loader === "function") {
dataRoute.loader.hydrate = _chunkVNR6V74Njs.shouldHydrateRouteLoader.call(void 0,
match.id,
match.clientLoader,
match.hasLoader,
false
);
}
return dataRoute;
}
function callSingleFetch(singleFetch) {
_chunkVNR6V74Njs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
return singleFetch();
}
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
if (!hasHandler) {
let fn = type === "action" ? "serverAction()" : "serverLoader()";
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
console.error(msg);
throw new (0, _chunkVNR6V74Njs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
}
}
var nextPaths = /* @__PURE__ */ new Set();
var discoveredPathsMaxSize = 1e3;
var discoveredPaths = /* @__PURE__ */ new Set();
var URL_LIMIT = 7680;
function getManifestUrl(paths) {
if (paths.length === 0) {
return null;
}
if (paths.length === 1) {
return new URL(`${paths[0]}.manifest`, window.location.origin);
}
const globalVar = window;
let basename = (_nullishCoalesce(globalVar.__reactRouterDataRouter.basename, () => ( ""))).replace(
/^\/|\/$/g,
""
);
let url = new URL(`${basename}/.manifest`, window.location.origin);
url.searchParams.set("paths", paths.sort().join(","));
return url;
}
async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {
let url = getManifestUrl(paths);
if (url == null) {
return;
}
if (url.toString().length > URL_LIMIT) {
nextPaths.clear();
return;
}
let response = await fetchImplementation(new Request(url, { signal }));
if (!response.body || response.status < 200 || response.status >= 300) {
throw new Error("Unable to fetch new route matches from the server");
}
let payload = await createFromReadableStream(response.body, {
temporaryReferences: void 0
});
if (payload.type !== "manifest") {
throw new Error("Failed to patch routes");
}
paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
payload.patches.forEach((p) => {
window.__reactRouterDataRouter.patchRoutes(
_nullishCoalesce(p.parentId, () => ( null)),
[createRouteFromServerManifest(p)]
);
});
}
function addToFifoQueue(path, queue) {
if (queue.size >= discoveredPathsMaxSize) {
let first = queue.values().next().value;
queue.delete(first);
}
queue.add(path);
}
function debounce(callback, wait) {
let timeoutId;
return (...args) => {
window.clearTimeout(timeoutId);
timeoutId = window.setTimeout(() => callback(...args), wait);
};
}
function isExternalLocation(location2) {
const newLocation = new URL(location2, window.location.href);
return newLocation.origin !== window.location.origin;
}
// lib/rsc/html-stream/browser.ts
function getRSCStream() {
let encoder = new TextEncoder();
let streamController = null;
let rscStream = new ReadableStream({
start(controller) {
if (typeof window === "undefined") {
return;
}
let handleChunk = (chunk) => {
if (typeof chunk === "string") {
controller.enqueue(encoder.encode(chunk));
} else {
controller.enqueue(chunk);
}
};
window.__FLIGHT_DATA || (window.__FLIGHT_DATA = []);
window.__FLIGHT_DATA.forEach(handleChunk);
window.__FLIGHT_DATA.push = (chunk) => {
handleChunk(chunk);
return 0;
};
streamController = controller;
}
});
if (typeof document !== "undefined" && document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", () => {
_optionalChain([streamController, 'optionalAccess', _39 => _39.close, 'call', _40 => _40()]);
});
} else {
_optionalChain([streamController, 'optionalAccess', _41 => _41.close, 'call', _42 => _42()]);
}
return rscStream;
}
exports.HydratedRouter = HydratedRouter; exports.RouterProvider = RouterProvider; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream;
@@ -0,0 +1 @@
{"version":3,"file":"resolveBindingServiceActivations.js","sourceRoot":"","sources":["../../../../src/resolution/actions/resolveBindingServiceActivations.ts"],"names":[],"mappings":";;AAMA,4EAyBC;AA/BD,gDAAmE;AAMnE,SAAgB,gCAAgC,CAC9C,MAAwB,EACxB,iBAAgD,EAChD,KAA2B;IAE3B,MAAM,WAAW,GACf,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAE3C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,IAAA,kBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,0CAA0C,CAC/C,MAAM,EACN,KAAK,EACL,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAC/B,CAAC;IACJ,CAAC;IAED,OAAO,qCAAqC,CAC1C,MAAM,EACN,KAAK,EACL,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAC/B,CAAC;AACJ,CAAC;AAED,SAAS,qCAAqC,CAC5C,MAAwB,EACxB,KAA+B,EAC/B,mBAA4D;IAE5D,IAAI,cAAc,GAA6B,KAAK,CAAC;IAErD,IAAI,wBAAwB,GAC1B,mBAAmB,CAAC,IAAI,EAAE,CAAC;IAE7B,OAAO,wBAAwB,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,MAAM,kBAAkB,GACtB,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAEjE,IAAI,IAAA,kBAAS,EAAC,kBAAkB,CAAC,EAAE,CAAC;YAClC,OAAO,0CAA0C,CAC/C,MAAM,EACN,kBAAkB,EAClB,mBAAmB,CACpB,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,cAAc,GAAG,kBAAkB,CAAC;QACtC,CAAC;QAED,wBAAwB,GAAG,mBAAmB,CAAC,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,0CAA0C,CACvD,MAAwB,EACxB,KAA0B,EAC1B,mBAA4D;IAE5D,IAAI,cAAc,GAA6B,MAAM,KAAK,CAAC;IAE3D,IAAI,wBAAwB,GAC1B,mBAAmB,CAAC,IAAI,EAAE,CAAC;IAE7B,OAAO,wBAAwB,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,cAAc,GAAG,MAAM,wBAAwB,CAAC,KAAK,CACnD,MAAM,CAAC,OAAO,EACd,cAAc,CACf,CAAC;QAEF,wBAAwB,GAAG,mBAAmB,CAAC,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
@@ -0,0 +1,41 @@
{
"name": "@react-aria/button",
"version": "3.11.0",
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"module": "dist/module.js",
"exports": {
"types": "./dist/types.d.ts",
"import": "./dist/import.mjs",
"require": "./dist/main.js"
},
"types": "dist/types.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"src"
],
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@react-aria/focus": "^3.19.0",
"@react-aria/interactions": "^3.22.5",
"@react-aria/toolbar": "3.0.0-beta.11",
"@react-aria/utils": "^3.26.0",
"@react-stately/toggle": "^3.8.0",
"@react-types/button": "^3.10.1",
"@react-types/shared": "^3.26.0",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
}
@@ -0,0 +1,17 @@
// src/colors/red.ts
var red = {
50: "#fee7ef",
100: "#fdd0df",
200: "#faa0bf",
300: "#f871a0",
400: "#f54180",
500: "#f31260",
600: "#c20e4d",
700: "#920b3a",
800: "#610726",
900: "#310413"
};
export {
red
};
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,kBAAkB,CAAC,OAAS,GAAG,KAAK,IAAI,CAAC,6CAAS,CAAC;IACrE,qBAAqB,CAAC,6KAA6B,CAAC;IACpD,UAAU,CAAC,qBAAG,CAAC;IACf,eAAe,CAAC,qGAAiB,CAAC;IAClC,iBAAiB,CAAC,MAAM,YAAc,GAAG,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE;YAAC,MAAM,CAAC,6FAAe,CAAC;YAAE,KAAK,IAAM,CAAC,6BAAK,EAAE,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE,6BAAK,CAAC;YAAE,OAAO,IAAM,GAAG,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE,+EAAa,CAAC;QAAA,GAAG,CAAC,CAAC;IACxN,gBAAgB,CAAC,OAAS,GAAG,KAAK,IAAI,CAAC,8BAAM,CAAC;AAChD","sources":["packages/@react-aria/grid/intl/he-IL.json"],"sourcesContent":["{\n \"deselectedItem\": \"{item} לא נבחר.\",\n \"longPressToSelect\": \"הקשה ארוכה לכניסה למצב בחירה.\",\n \"select\": \"בחר\",\n \"selectedAll\": \"כל הפריטים נבחרו.\",\n \"selectedCount\": \"{count, plural, =0 {לא נבחרו פריטים} one {פריט # נבחר} other {# פריטים נבחרו}}.\",\n \"selectedItem\": \"{item} נבחר.\"\n}\n"],"names":[],"version":3,"file":"he-IL.main.js.map"}
@@ -0,0 +1,4 @@
var isBrowser = !!(typeof window !== 'undefined' &&
window.document &&
window.document.createElement);
export default isBrowser;
@@ -0,0 +1,74 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = hasProp;
exports.hasAnyProp = hasAnyProp;
exports.hasEveryProp = hasEveryProp;
var _propName = require('./propName');
var _propName2 = _interopRequireDefault(_propName);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var DEFAULT_OPTIONS = {
spreadStrict: true,
ignoreCase: true
};
/**
* Returns boolean indicating whether an prop exists on the props
* property of a JSX element node.
*/
function hasProp() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_OPTIONS;
var propToCheck = options.ignoreCase ? prop.toUpperCase() : prop;
return props.some(function (attribute) {
// If the props contain a spread prop, then refer to strict param.
if (attribute.type === 'JSXSpreadAttribute') {
return !options.spreadStrict;
}
var currentProp = options.ignoreCase ? (0, _propName2.default)(attribute).toUpperCase() : (0, _propName2.default)(attribute);
return propToCheck === currentProp;
});
}
/**
* Given the props on a node and a list of props to check, this returns a boolean
* indicating if any of them exist on the node.
*/
function hasAnyProp() {
var nodeProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_OPTIONS;
var propsToCheck = typeof props === 'string' ? props.split(' ') : props;
return propsToCheck.some(function (prop) {
return hasProp(nodeProps, prop, options);
});
}
/**
* Given the props on a node and a list of props to check, this returns a boolean
* indicating if all of them exist on the node
*/
function hasEveryProp() {
var nodeProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_OPTIONS;
var propsToCheck = typeof props === 'string' ? props.split(' ') : props;
return propsToCheck.every(function (prop) {
return hasProp(nodeProps, prop, options);
});
}
@@ -0,0 +1,118 @@
/*
* 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.
*/
import {Key} from '@react-types/shared';
import {Rect} from './Rect';
/**
* Instances of this lightweight class are created by `Layout` subclasses
* to represent each item in the `Virtualizer`. LayoutInfo objects describe
* various properties of an item, such as its position and size, and style information.
* The virtualizer uses this information when creating actual DOM elements to display.
*/
export class LayoutInfo {
/**
* The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
*/
type: string;
/**
* A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
*/
key: Key;
/**
* The key for a parent LayoutInfo, if any.
*/
parentKey: Key | null;
/**
* Content for this item if it was generated by the layout rather than coming from the Collection.
*/
content: any | null;
/**
* The rectangle describing the size and position of this element.
*/
rect: Rect;
/**
* Whether the size is estimated. `false` by default.
* Items with estimated sizes will be measured the first time they are added to the DOM.
* The estimated size is used to calculate the size and position of the scrollbar.
* @default false
*/
estimatedSize: boolean;
/**
* Whether the layout info sticks to the viewport when scrolling.
* @default false
*/
isSticky: boolean;
/**
* The element's opacity.
* @default 1
*/
opacity: number;
/**
* A CSS transform string to apply to the element. `null` by default.
*/
transform: string | null;
/**
* The z-index of the element. 0 by default.
*/
zIndex: number;
/**
* Whether the element allows its contents to overflow its container.
* @default false
*/
allowOverflow: boolean;
/**
* @param type The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
* @param key A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
* @param rect The rectangle describing the size and position of this element.
*/
constructor(type: string, key: Key, rect: Rect) {
this.type = type;
this.key = key;
this.parentKey = null;
this.content = null;
this.rect = rect;
this.estimatedSize = false;
this.isSticky = false;
this.opacity = 1;
this.transform = null;
this.zIndex = 0;
this.allowOverflow = false;
}
/**
* Returns a copy of the LayoutInfo.
*/
copy(): LayoutInfo {
let res = new LayoutInfo(this.type, this.key, this.rect.copy());
res.estimatedSize = this.estimatedSize;
res.opacity = this.opacity;
res.transform = this.transform;
res.parentKey = this.parentKey;
res.content = this.content;
res.isSticky = this.isSticky;
res.zIndex = this.zIndex;
res.allowOverflow = this.allowOverflow;
return res;
}
}
@@ -0,0 +1,135 @@
/**
* @fileoverview Require or disallow newline at the end of files
* @author Nodeca Team <https://github.com/nodeca>
* @deprecated in ESLint v8.53.0
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
deprecated: {
message: "Formatting rules are being moved out of ESLint core.",
url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
deprecatedSince: "8.53.0",
availableUntil: "11.0.0",
replacedBy: [
{
message:
"ESLint Stylistic now maintains deprecated stylistic core rules.",
url: "https://eslint.style/guide/migration",
plugin: {
name: "@stylistic/eslint-plugin",
url: "https://eslint.style",
},
rule: {
name: "eol-last",
url: "https://eslint.style/rules/eol-last",
},
},
],
},
type: "layout",
docs: {
description: "Require or disallow newline at the end of files",
recommended: false,
url: "https://eslint.org/docs/latest/rules/eol-last",
},
fixable: "whitespace",
schema: [
{
enum: ["always", "never", "unix", "windows"],
},
],
messages: {
missing: "Newline required at end of file but not found.",
unexpected: "Newline not allowed at end of file.",
},
},
create(context) {
//--------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------
return {
Program: function checkBadEOF(node) {
const sourceCode = context.sourceCode,
src = sourceCode.getText(),
lastLine = sourceCode.lines.at(-1),
location = {
column: lastLine.length,
line: sourceCode.lines.length,
},
LF = "\n",
CRLF = `\r${LF}`,
endsWithNewline = src.endsWith(LF);
/*
* Empty source is always valid: No content in file so we don't
* need to lint for a newline on the last line of content.
*/
if (!src.length) {
return;
}
let mode = context.options[0] || "always",
appendCRLF = false;
if (mode === "unix") {
// `"unix"` should behave exactly as `"always"`
mode = "always";
}
if (mode === "windows") {
// `"windows"` should behave exactly as `"always"`, but append CRLF in the fixer for backwards compatibility
mode = "always";
appendCRLF = true;
}
if (mode === "always" && !endsWithNewline) {
// File is not newline-terminated, but should be
context.report({
node,
loc: location,
messageId: "missing",
fix(fixer) {
return fixer.insertTextAfterRange(
[0, src.length],
appendCRLF ? CRLF : LF,
);
},
});
} else if (mode === "never" && endsWithNewline) {
const secondLastLine = sourceCode.lines.at(-2);
// File is newline-terminated, but shouldn't be
context.report({
node,
loc: {
start: {
line: sourceCode.lines.length - 1,
column: secondLastLine.length,
},
end: { line: sourceCode.lines.length, column: 0 },
},
messageId: "unexpected",
fix(fixer) {
const finalEOLs = /(?:\r?\n)+$/u,
match = finalEOLs.exec(sourceCode.text),
start = match.index,
end = sourceCode.text.length;
return fixer.replaceTextRange([start, end], "");
},
});
}
},
};
},
};
@@ -0,0 +1 @@
{"version":3,"names":["_assert","require","_t","callExpression","cloneNode","expressionStatement","identifier","importDeclaration","importDefaultSpecifier","importNamespaceSpecifier","importSpecifier","memberExpression","stringLiteral","variableDeclaration","variableDeclarator","ImportBuilder","constructor","importedSource","scope","hub","_statements","_resultName","_importedSource","_scope","_hub","done","statements","resultName","import","push","namespace","name","local","generateUidIdentifier","statement","length","assert","type","specifiers","default","id","named","importName","var","expression","defaultInterop","_interop","addHelper","wildcardInterop","callee","declarations","init","fail","prop","read","exports"],"sources":["../src/import-builder.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport {\n callExpression,\n cloneNode,\n expressionStatement,\n identifier,\n importDeclaration,\n importDefaultSpecifier,\n importNamespaceSpecifier,\n importSpecifier,\n memberExpression,\n stringLiteral,\n variableDeclaration,\n variableDeclarator,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { Scope, HubInterface } from \"@babel/traverse\";\n\n/**\n * A class to track and accumulate mutations to the AST that will eventually\n * output a new require/import statement list.\n */\nexport default class ImportBuilder {\n private _statements: t.Statement[] = [];\n private _resultName: t.Identifier | t.MemberExpression = null;\n\n declare _scope: Scope;\n declare _hub: HubInterface;\n private _importedSource: string;\n\n constructor(importedSource: string, scope: Scope, hub: HubInterface) {\n this._scope = scope;\n this._hub = hub;\n this._importedSource = importedSource;\n }\n\n done() {\n return {\n statements: this._statements,\n resultName: this._resultName,\n };\n }\n\n import() {\n this._statements.push(\n importDeclaration([], stringLiteral(this._importedSource)),\n );\n return this;\n }\n\n require() {\n this._statements.push(\n expressionStatement(\n callExpression(identifier(\"require\"), [\n stringLiteral(this._importedSource),\n ]),\n ),\n );\n return this;\n }\n\n namespace(name = \"namespace\") {\n const local = this._scope.generateUidIdentifier(name);\n\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importNamespaceSpecifier(local)];\n this._resultName = cloneNode(local);\n return this;\n }\n default(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importDefaultSpecifier(id)];\n this._resultName = cloneNode(id);\n return this;\n }\n named(name: string, importName: string) {\n if (importName === \"default\") return this.default(name);\n\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importSpecifier(id, identifier(importName))];\n this._resultName = cloneNode(id);\n return this;\n }\n\n var(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n let statement = this._statements[this._statements.length - 1];\n if (statement.type !== \"ExpressionStatement\") {\n assert(this._resultName);\n statement = expressionStatement(this._resultName);\n this._statements.push(statement);\n }\n this._statements[this._statements.length - 1] = variableDeclaration(\"var\", [\n variableDeclarator(id, statement.expression),\n ]);\n this._resultName = cloneNode(id);\n return this;\n }\n\n defaultInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireDefault\"));\n }\n wildcardInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireWildcard\"));\n }\n\n _interop(callee: t.Expression) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = callExpression(callee, [statement.expression]);\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = callExpression(callee, [\n statement.declarations[0].init,\n ]);\n } else {\n assert.fail(\"Unexpected type.\");\n }\n return this;\n }\n\n prop(name: string) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statementLine truncated
@@ -0,0 +1 @@
{"mappings":";;;ACmBA;IACE,iCAAiC;IACjC,QAAQ,EAAE,aAAa,CAAC;IACxB,6CAA6C;IAC7C,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;GAGG;AACH,uBAAuB,CAAC,EACtB,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,aAAa,CAAC,CAAC,EACtB,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GACtC,OAAO,CAsCT;ACzDD;IACE,uCAAuC;IACvC,aAAa,EAAE,aAAa,CAAA;CAC7B;AAGD;;;GAGG;AACH,4BAA4B,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,UAAU,OAAO,GAAG,IAAI,CAAC,GAAG,YAAY,CAiBpI;AExBD,oCAAoC,CAAC,CAAE,SAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC;CAAG;AAEvF;IACE,uCAAuC;IACvC,YAAY,EAAE,aAAa,CAAA;CAC5B;AAED;;;GAGG;AACH,2BAA2B,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,GAAG,WAAW,CAyCnI;AC5DD,YAAY,EAAC,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACzF,YAAY,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC","sources":["packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/utils.ts","packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/useTab.ts","packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/useTabPanel.ts","packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/TabsKeyboardDelegate.ts","packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/useTabList.ts","packages/@react-aria/tabs/src/packages/@react-aria/tabs/src/index.ts","packages/@react-aria/tabs/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,"/*\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 */\nexport {useTab} from './useTab';\nexport {useTabPanel} from './useTabPanel';\nexport {useTabList} from './useTabList';\nexport type {AriaTabListProps, AriaTabPanelProps, AriaTabProps} from '@react-types/tabs';\nexport type {Orientation} from '@react-types/shared';\nexport type {TabAria} from './useTab';\nexport type {TabPanelAria} from './useTabPanel';\nexport type {AriaTabListOptions, TabListAria} from './useTabList';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,98 @@
{
"name": "is-symbol",
"version": "1.1.1",
"description": "Determine if a value is an ES6 Symbol or not.",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && attw -P",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git://github.com/inspect-js/is-symbol.git"
},
"keywords": [
"symbol",
"es6",
"is",
"Symbol"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/is-symbol/issues"
},
"dependencies": {
"call-bound": "^1.0.2",
"has-symbols": "^1.1.0",
"safe-regex-test": "^1.1.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.2",
"@types/for-each": "^0.3.3",
"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.6.5",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"es-value-fixtures": "^1.5.0",
"eslint": "=8.8.0",
"for-each": "^0.3.3",
"has-tostringtag": "^1.0.2",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.13.3",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"testling": {
"files": "test/index.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows",
".nvmrc"
]
}
}
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more