docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s

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 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAeA,wDAmCC;AAlDD,0DAA4B;AAE5B,+CAA0C;AAE1C,iDAA0C;AAI7B,QAAA,UAAU,GAAG,UAAU,CAAA;AAIpC,MAAM,aAAa,GAAG,IAAI,GAAG,EAAmD,CAAA;AAGhF,SAAgB,sBAAsB,CAAC,OAAmC;;IACxE,MAAM,aAAa,GACjB,CAAA,MAAA,OAAO,CAAC,eAAe,0CAAE,aAAa,KAAI,OAAO,CAAC,aAAa,CAAA;IACjE,IAAI,eAAe,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,eAAe,CAAA;IACpD,MAAM,OAAO,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAA;IACtC,MAAM,QAAQ,GAAG,IAAA,0BAAU,EAAC,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAA;IACvD,IAAI,QAAiD,CAAA;IACrD,IAAI,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChC,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACxC,CAAC;SAAM,CAAC;QACN,eAAe;YACb,eAAe;gBAGf,OAAO,CAAC,GAAG,EAAE,CAAA;QACf,IAAI,cAAiD,CAAA;QACrD,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YAC7D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;gBAC/B,cAAc,GAAG,IAAA,0BAAW,EAC1B,OAAO,KAAK,IAAI;oBACd,CAAC,CAAC,OAAO,CAAC,gBAAgB;oBAC1B,CAAC,CAAC,mBAAI,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAC3C,CAAA;gBACD,IAAI,cAAc,EAAE,CAAC;oBACnB,MAAK;gBACP,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,cAAc,GAAG,IAAA,0BAAW,EAAC,eAAe,CAAC,CAAA;QAC/C,CAAC;QACD,QAAQ,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,CAAA;QACjC,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -0,0 +1,63 @@
# es-object-atoms <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]
ES Object-related atoms: Object, ToObject, RequireObjectCoercible.
## Example
```js
const assert = require('assert');
const $Object = require('es-object-atoms');
const isObject = require('es-object-atoms/isObject');
const ToObject = require('es-object-atoms/ToObject');
const RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
assert.equal($Object, Object);
assert.throws(() => ToObject(null), TypeError);
assert.throws(() => ToObject(undefined), TypeError);
assert.throws(() => RequireObjectCoercible(null), TypeError);
assert.throws(() => RequireObjectCoercible(undefined), TypeError);
assert.equal(isObject(undefined), false);
assert.equal(isObject(null), false);
assert.equal(isObject({}), true);
assert.equal(isObject([]), true);
assert.equal(isObject(function () {}), true);
assert.deepEqual(RequireObjectCoercible(true), true);
assert.deepEqual(ToObject(true), Object(true));
const obj = {};
assert.equal(RequireObjectCoercible(obj), obj);
assert.equal(ToObject(obj), obj);
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
## Security
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
[package-url]: https://npmjs.org/package/es-object-atoms
[npm-version-svg]: https://versionbadg.es/ljharb/es-object-atoms.svg
[deps-svg]: https://david-dm.org/ljharb/es-object-atoms.svg
[deps-url]: https://david-dm.org/ljharb/es-object-atoms
[dev-deps-svg]: https://david-dm.org/ljharb/es-object-atoms/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/es-object-atoms#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/es-object-atoms.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/es-object-atoms.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/es-object.svg
[downloads-url]: https://npm-stat.com/charts.html?package=es-object-atoms
[codecov-image]: https://codecov.io/gh/ljharb/es-object-atoms/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/es-object-atoms/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-object-atoms
[actions-url]: https://github.com/ljharb/es-object-atoms/actions
@@ -0,0 +1 @@
{"version":3,"file":"container.js","names":["ContainerBlot","Container"],"sources":["../../src/blots/container.ts"],"sourcesContent":["import { ContainerBlot } from 'parchment';\n\nclass Container extends ContainerBlot {}\n\nexport default Container;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,WAAW;AAEzC,MAAMC,SAAS,SAASD,aAAa,CAAC;AAEtC,eAAeC,SAAS","ignoreList":[]}
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 Javier Blanco
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const injectable_1 = require("./injectable");
const dependency_container_1 = require("../dependency-container");
function singleton() {
return function (target) {
injectable_1.default()(target);
dependency_container_1.instance.registerSingleton(target);
};
}
exports.default = singleton;
@@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
{"name":"@xmldom/xmldom","version":"0.8.11","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532119095,"integrity":"sha512-xmiZGBO81N7FylsADors12VuZO1pU5ObqCsKM9IGtgjWu39eRf65/l9PU+j/5cPYyDrsJzahUpXK8Zt9HwlYVg==","mode":420,"size":1298},"lib/conventions.js":{"checkedAt":1794532119096,"integrity":"sha512-31Y5O1Fh6QqrY+SLRkIJ/D01f4QIwkvd/+BxdPFs2AUmk0sPfzFkKrfXTeb5bkbd+aEfS1GJzt2hi1Glj9zC+A==","mode":420,"size":6325},"lib/dom-parser.js":{"checkedAt":1794532119096,"integrity":"sha512-MRnewWxDDWaBN89OkP8xrG3qB3rogZsIFasagbT69MC74qUSIP5qH/SS0ru2QeKsFsbMgJk/uz/zAfxWj3pnOA==","mode":420,"size":10312},"lib/dom.js":{"checkedAt":1794532119096,"integrity":"sha512-zV4++t46GBJuEDSnBr9wyOWIXNXRrEW0cCIuiDDdLisPRsWrkiuD1QWPujUBZYF1qd478SP4PvPhzDrpQetEBA==","mode":420,"size":58825},"lib/entities.js":{"checkedAt":1794532119096,"integrity":"sha512-2GJu8Vjnl6cyv+JwtVNsQ2kHy2X88JZe33LpofA/Qd72pItczvagCiqU3Clhj6fO546tceEhzfE4nRz5nLerIg==","mode":420,"size":44465},"lib/index.js":{"checkedAt":1794532119096,"integrity":"sha512-qwPK8SeYoeRE/wgSElus2yE5fRI0gc4q1j34/aF60j8JacQMtMh9gSy7iTYUj1uPhUPK5MeQ//IluG1EQ31Gzg==","mode":420,"size":173},"lib/sax.js":{"checkedAt":1794532119097,"integrity":"sha512-7AckLk9IACkfnCJ/uMtan99T90sr1Kr1ZsOBnT35+ITo8HzArDVr5j4FWuMHoAtNG3E6XWcPiiTYNrBD9doedA==","mode":420,"size":19597},"package.json":{"checkedAt":1794532119097,"integrity":"sha512-Iy+NC0qSaK7BZvOE/BfowlKUPYMnUk5/9cPsmRNLVRql5k+0ixBjIAZy5gu0MO9BDYRqRPMhfnrhyNRTX5uIUA==","mode":420,"size":1748},"CHANGELOG.md":{"checkedAt":1794532119097,"integrity":"sha512-vXAZdU25aML2U3kyn0HFlRxf2oHTR7Yyz0Zywg9PPYcbZzT9Qx/Z1LUyjUy07/cpyehIa02u5AI0OROclgvs6w==","mode":420,"size":22559},"readme.md":{"checkedAt":1794532119097,"integrity":"sha512-kkGDDcpaJyhHRxoeaUXm6HuCzTFc07pkfhnsTdoRtnxyHhbDe3a/69Uvde9fdaFsXEBqUheXpFZ5r2s/a7I+8w==","mode":420,"size":12680},"SECURITY.md":{"checkedAt":1794532119097,"integrity":"sha512-pFmrPS0Rh1Z0bLv0lLoSgzxdIkQOTRtthhie4AiJ+UQh0h+vNAcPAzVKSTkNVTH0RdeasA1ubzTT1xmMr2y3Zw==","mode":420,"size":3989},"index.d.ts":{"checkedAt":1794532119097,"integrity":"sha512-84WQ8by2J36GrFjoYT2IRzMje/lobVkPlE2ha1jlF70ch1RS42stPbjw1U77mlayci0HYaxwujIX3dmmWv8wsg==","mode":420,"size":1001},"lib/.eslintrc.yml":{"checkedAt":1794532119097,"integrity":"sha512-JbKKdX+Cxw6qDwO2+JfjhvR1c4Mv8arlQexnMhhg5D9Y/uNRhQpFRpEygHtFjB/UR9VZ7ahb/8/kNqDKJ6CM1g==","mode":420,"size":36}}}
@@ -0,0 +1,652 @@
/**
* @fileoverview enforce a particular style for multiline comments
* @author Teddy Katz
* @deprecated in ESLint v9.3.0
*/
"use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// 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: "9.3.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: "multiline-comment-style",
url: "https://eslint.style/rules/multiline-comment-style",
},
},
],
},
type: "suggestion",
docs: {
description: "Enforce a particular style for multiline comments",
recommended: false,
url: "https://eslint.org/docs/latest/rules/multiline-comment-style",
},
fixable: "whitespace",
schema: {
anyOf: [
{
type: "array",
items: [
{
enum: ["starred-block", "bare-block"],
},
],
additionalItems: false,
},
{
type: "array",
items: [
{
enum: ["separate-lines"],
},
{
type: "object",
properties: {
checkJSDoc: {
type: "boolean",
},
},
additionalProperties: false,
},
],
additionalItems: false,
},
],
},
messages: {
expectedBlock:
"Expected a block comment instead of consecutive line comments.",
expectedBareBlock:
"Expected a block comment without padding stars.",
startNewline: "Expected a linebreak after '/*'.",
endNewline: "Expected a linebreak before '*/'.",
missingStar: "Expected a '*' at the start of this line.",
alignment:
"Expected this line to be aligned with the start of the comment.",
expectedLines:
"Expected multiple line comments instead of a block comment.",
},
},
create(context) {
const sourceCode = context.sourceCode;
const option = context.options[0] || "starred-block";
const params = context.options[1] || {};
const checkJSDoc = !!params.checkJSDoc;
//----------------------------------------------------------------------
// Helpers
//----------------------------------------------------------------------
/**
* Checks if a comment line is starred.
* @param {string} line A string representing a comment line.
* @returns {boolean} Whether or not the comment line is starred.
*/
function isStarredCommentLine(line) {
return /^\s*\*/u.test(line);
}
/**
* Checks if a comment group is in starred-block form.
* @param {Token[]} commentGroup A group of comments, containing either multiple line comments or a single block comment.
* @returns {boolean} Whether or not the comment group is in starred block form.
*/
function isStarredBlockComment([firstComment]) {
if (firstComment.type !== "Block") {
return false;
}
const lines = firstComment.value.split(astUtils.LINEBREAK_MATCHER);
// The first and last lines can only contain whitespace.
return (
lines.length > 0 &&
lines.every((line, i) =>
(i === 0 || i === lines.length - 1
? /^\s*$/u
: /^\s*\*/u
).test(line),
)
);
}
/**
* Checks if a comment group is in JSDoc form.
* @param {Token[]} commentGroup A group of comments, containing either multiple line comments or a single block comment.
* @returns {boolean} Whether or not the comment group is in JSDoc form.
*/
function isJSDocComment([firstComment]) {
if (firstComment.type !== "Block") {
return false;
}
const lines = firstComment.value.split(astUtils.LINEBREAK_MATCHER);
return (
/^\*\s*$/u.test(lines[0]) &&
lines.slice(1, -1).every(line => /^\s* /u.test(line)) &&
/^\s*$/u.test(lines.at(-1))
);
}
/**
* Processes a comment group that is currently in separate-line form, calculating the offset for each line.
* @param {Token[]} commentGroup A group of comments containing multiple line comments.
* @returns {string[]} An array of the processed lines.
*/
function processSeparateLineComments(commentGroup) {
const allLinesHaveLeadingSpace = commentGroup
.map(({ value }) => value)
.filter(line => line.trim().length)
.every(line => line.startsWith(" "));
return commentGroup.map(({ value }) =>
allLinesHaveLeadingSpace ? value.replace(/^ /u, "") : value,
);
}
/**
* Processes a comment group that is currently in starred-block form, calculating the offset for each line.
* @param {Token} comment A single block comment token in starred-block form.
* @returns {string[]} An array of the processed lines.
*/
function processStarredBlockComment(comment) {
const lines = comment.value
.split(astUtils.LINEBREAK_MATCHER)
.filter(
(line, i, linesArr) =>
!(i === 0 || i === linesArr.length - 1),
)
.map(line => line.replace(/^\s*$/u, ""));
const allLinesHaveLeadingSpace = lines
.map(line => line.replace(/\s*\*/u, ""))
.filter(line => line.trim().length)
.every(line => line.startsWith(" "));
return lines.map(line =>
line.replace(
allLinesHaveLeadingSpace ? /\s*\* ?/u : /\s*\*/u,
"",
),
);
}
/**
* Processes a comment group that is currently in bare-block form, calculating the offset for each line.
* @param {Token} comment A single block comment token in bare-block form.
* @returns {string[]} An array of the processed lines.
*/
function processBareBlockComment(comment) {
const lines = comment.value
.split(astUtils.LINEBREAK_MATCHER)
.map(line => line.replace(/^\s*$/u, ""));
const leadingWhitespace = `${sourceCode.text.slice(comment.range[0] - comment.loc.start.column, comment.range[0])} `;
let offset = "";
/*
* Calculate the offset of the least indented line and use that as the basis for offsetting all the lines.
* The first line should not be checked because it is inline with the opening block comment delimiter.
*/
for (const [i, line] of lines.entries()) {
if (!line.trim().length || i === 0) {
continue;
}
const [, lineOffset] = line.match(/^(\s*\*?\s*)/u);
if (lineOffset.length < leadingWhitespace.length) {
const newOffset = leadingWhitespace.slice(
lineOffset.length - leadingWhitespace.length,
);
if (newOffset.length > offset.length) {
offset = newOffset;
}
}
}
return lines.map(line => {
const match = line.match(/^(\s*\*?\s*)(.*)/u);
const [, lineOffset, lineContents] = match;
if (lineOffset.length > leadingWhitespace.length) {
return `${lineOffset.slice(leadingWhitespace.length - (offset.length + lineOffset.length))}${lineContents}`;
}
if (lineOffset.length < leadingWhitespace.length) {
return `${lineOffset.slice(leadingWhitespace.length)}${lineContents}`;
}
return lineContents;
});
}
/**
* Gets a list of comment lines in a group, formatting leading whitespace as necessary.
* @param {Token[]} commentGroup A group of comments containing either multiple line comments or a single block comment.
* @returns {string[]} A list of comment lines.
*/
function getCommentLines(commentGroup) {
const [firstComment] = commentGroup;
if (firstComment.type === "Line") {
return processSeparateLineComments(commentGroup);
}
if (isStarredBlockComment(commentGroup)) {
return processStarredBlockComment(firstComment);
}
return processBareBlockComment(firstComment);
}
/**
* Gets the initial offset (whitespace) from the beginning of a line to a given comment token.
* @param {Token} comment The token to check.
* @returns {string} The offset from the beginning of a line to the token.
*/
function getInitialOffset(comment) {
return sourceCode.text.slice(
comment.range[0] - comment.loc.start.column,
comment.range[0],
);
}
/**
* Converts a comment into starred-block form
* @param {Token} firstComment The first comment of the group being converted
* @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment
* @returns {string} A representation of the comment value in starred-block form, excluding start and end markers
*/
function convertToStarredBlock(firstComment, commentLinesList) {
const initialOffset = getInitialOffset(firstComment);
return `/*\n${commentLinesList.map(line => `${initialOffset} * ${line}`).join("\n")}\n${initialOffset} */`;
}
/**
* Converts a comment into separate-line form
* @param {Token} firstComment The first comment of the group being converted
* @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment
* @returns {string} A representation of the comment value in separate-line form
*/
function convertToSeparateLines(firstComment, commentLinesList) {
return commentLinesList
.map(line => `// ${line}`)
.join(`\n${getInitialOffset(firstComment)}`);
}
/**
* Converts a comment into bare-block form
* @param {Token} firstComment The first comment of the group being converted
* @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment
* @returns {string} A representation of the comment value in bare-block form
*/
function convertToBlock(firstComment, commentLinesList) {
return `/* ${commentLinesList.join(`\n${getInitialOffset(firstComment)} `)} */`;
}
/**
* Each method checks a group of comments to see if it's valid according to the given option.
* @param {Token[]} commentGroup A list of comments that appear together. This will either contain a single
* block comment or multiple line comments.
* @returns {void}
*/
const commentGroupCheckers = {
"starred-block"(commentGroup) {
const [firstComment] = commentGroup;
const commentLines = getCommentLines(commentGroup);
if (commentLines.some(value => value.includes("*/"))) {
return;
}
if (commentGroup.length > 1) {
context.report({
loc: {
start: firstComment.loc.start,
end: commentGroup.at(-1).loc.end,
},
messageId: "expectedBlock",
fix(fixer) {
const range = [
firstComment.range[0],
commentGroup.at(-1).range[1],
];
return commentLines.some(value =>
value.startsWith("/"),
)
? null
: fixer.replaceTextRange(
range,
convertToStarredBlock(
firstComment,
commentLines,
),
);
},
});
} else {
const lines = firstComment.value.split(
astUtils.LINEBREAK_MATCHER,
);
const expectedLeadingWhitespace =
getInitialOffset(firstComment);
const expectedLinePrefix = `${expectedLeadingWhitespace} *`;
if (!/^\*?\s*$/u.test(lines[0])) {
const start = firstComment.value.startsWith("*")
? firstComment.range[0] + 1
: firstComment.range[0];
context.report({
loc: {
start: firstComment.loc.start,
end: {
line: firstComment.loc.start.line,
column: firstComment.loc.start.column + 2,
},
},
messageId: "startNewline",
fix: fixer =>
fixer.insertTextAfterRange(
[start, start + 2],
`\n${expectedLinePrefix}`,
),
});
}
if (!/^\s*$/u.test(lines.at(-1))) {
context.report({
loc: {
start: {
line: firstComment.loc.end.line,
column: firstComment.loc.end.column - 2,
},
end: firstComment.loc.end,
},
messageId: "endNewline",
fix: fixer =>
fixer.replaceTextRange(
[
firstComment.range[1] - 2,
firstComment.range[1],
],
`\n${expectedLinePrefix}/`,
),
});
}
for (
let lineNumber = firstComment.loc.start.line + 1;
lineNumber <= firstComment.loc.end.line;
lineNumber++
) {
const lineText = sourceCode.lines[lineNumber - 1];
const errorType = isStarredCommentLine(lineText)
? "alignment"
: "missingStar";
if (!lineText.startsWith(expectedLinePrefix)) {
context.report({
loc: {
start: { line: lineNumber, column: 0 },
end: {
line: lineNumber,
column: lineText.length,
},
},
messageId: errorType,
fix(fixer) {
const lineStartIndex =
sourceCode.getIndexFromLoc({
line: lineNumber,
column: 0,
});
if (errorType === "alignment") {
const [, commentTextPrefix = ""] =
lineText.match(/^(\s*\*)/u) || [];
const commentTextStartIndex =
lineStartIndex +
commentTextPrefix.length;
return fixer.replaceTextRange(
[
lineStartIndex,
commentTextStartIndex,
],
expectedLinePrefix,
);
}
const [, commentTextPrefix = ""] =
lineText.match(/^(\s*)/u) || [];
const commentTextStartIndex =
lineStartIndex +
commentTextPrefix.length;
let offset;
for (const [idx, line] of lines.entries()) {
if (!/\S+/u.test(line)) {
continue;
}
const lineTextToAlignWith =
sourceCode.lines[
firstComment.loc.start.line -
1 +
idx
];
const [
,
prefix = "",
initialOffset = "",
] =
lineTextToAlignWith.match(
/^(\s*(?:\/?\*)?(\s*))/u,
) || [];
offset = `${commentTextPrefix.slice(prefix.length)}${initialOffset}`;
if (
/^\s*\//u.test(lineText) &&
offset.length === 0
) {
offset += " ";
}
break;
}
return fixer.replaceTextRange(
[lineStartIndex, commentTextStartIndex],
`${expectedLinePrefix}${offset}`,
);
},
});
}
}
}
},
"separate-lines"(commentGroup) {
const [firstComment] = commentGroup;
const isJSDoc = isJSDocComment(commentGroup);
if (firstComment.type !== "Block" || (!checkJSDoc && isJSDoc)) {
return;
}
let commentLines = getCommentLines(commentGroup);
if (isJSDoc) {
commentLines = commentLines.slice(
1,
commentLines.length - 1,
);
}
const tokenAfter = sourceCode.getTokenAfter(firstComment, {
includeComments: true,
});
if (
tokenAfter &&
firstComment.loc.end.line === tokenAfter.loc.start.line
) {
return;
}
context.report({
loc: {
start: firstComment.loc.start,
end: {
line: firstComment.loc.start.line,
column: firstComment.loc.start.column + 2,
},
},
messageId: "expectedLines",
fix(fixer) {
return fixer.replaceText(
firstComment,
convertToSeparateLines(firstComment, commentLines),
);
},
});
},
"bare-block"(commentGroup) {
if (isJSDocComment(commentGroup)) {
return;
}
const [firstComment] = commentGroup;
const commentLines = getCommentLines(commentGroup);
// Disallows consecutive line comments in favor of using a block comment.
if (
firstComment.type === "Line" &&
commentLines.length > 1 &&
!commentLines.some(value => value.includes("*/"))
) {
context.report({
loc: {
start: firstComment.loc.start,
end: commentGroup.at(-1).loc.end,
},
messageId: "expectedBlock",
fix(fixer) {
return fixer.replaceTextRange(
[
firstComment.range[0],
commentGroup.at(-1).range[1],
],
convertToBlock(firstComment, commentLines),
);
},
});
}
// Prohibits block comments from having a * at the beginning of each line.
if (isStarredBlockComment(commentGroup)) {
context.report({
loc: {
start: firstComment.loc.start,
end: {
line: firstComment.loc.start.line,
column: firstComment.loc.start.column + 2,
},
},
messageId: "expectedBareBlock",
fix(fixer) {
return fixer.replaceText(
firstComment,
convertToBlock(firstComment, commentLines),
);
},
});
}
},
};
//----------------------------------------------------------------------
// Public
//----------------------------------------------------------------------
return {
Program() {
return sourceCode
.getAllComments()
.filter(comment => comment.type !== "Shebang")
.filter(
comment =>
!astUtils.COMMENTS_IGNORE_PATTERN.test(
comment.value,
),
)
.filter(comment => {
const tokenBefore = sourceCode.getTokenBefore(comment, {
includeComments: true,
});
return (
!tokenBefore ||
tokenBefore.loc.end.line < comment.loc.start.line
);
})
.reduce((commentGroups, comment, index, commentList) => {
const tokenBefore = sourceCode.getTokenBefore(comment, {
includeComments: true,
});
if (
comment.type === "Line" &&
index &&
commentList[index - 1].type === "Line" &&
tokenBefore &&
tokenBefore.loc.end.line ===
comment.loc.start.line - 1 &&
tokenBefore === commentList[index - 1]
) {
commentGroups.at(-1).push(comment);
} else {
commentGroups.push([comment]);
}
return commentGroups;
}, [])
.filter(
commentGroup =>
!(
commentGroup.length === 1 &&
commentGroup[0].loc.start.line ===
commentGroup[0].loc.end.line
),
)
.forEach(commentGroupCheckers[option]);
},
};
},
};
@@ -0,0 +1,39 @@
{
"name": "minipass-sized",
"version": "1.0.3",
"description": "A Minipass stream that raises an error if you get a different number of bytes than expected",
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
"license": "ISC",
"scripts": {
"test": "tap",
"snap": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --follow-tags"
},
"tap": {
"check-coverage": true
},
"devDependencies": {
"tap": "^14.6.4"
},
"dependencies": {
"minipass": "^3.0.0"
},
"main": "index.js",
"keywords": [
"minipass",
"size",
"length"
],
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/isaacs/minipass-sized.git"
},
"engines": {
"node": ">=8"
}
}
@@ -0,0 +1,11 @@
Copyright 2011 Gary Court. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Gary Court.
@@ -0,0 +1,2 @@
declare const useUpdate: () => () => void;
export default useUpdate;
@@ -0,0 +1 @@
{"name":"simple-concat","version":"1.0.1","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532102398,"integrity":"sha512-UOL/xGxwuTxsayJ0nO2SgwXC182o0nLZBOeagglDRd22rd1cJjlutgtlpdE8Sd463UDlKjR2VFYYD1GyHr7Xog==","mode":420,"size":1081},"test/basic.js":{"checkedAt":1794532102399,"integrity":"sha512-/RlKIqZ4l23HegbtGgri5gFf7x9EYG6I2tkDB0O7UFcTXoh4fVaPZ3p9r+UyWtLWCk72a8EYLnhiYKwALAuBGQ==","mode":420,"size":825},"index.js":{"checkedAt":1794532102399,"integrity":"sha512-uBKQR5BRVjNkRmt2WpBS4w3bi0b5jljd4JaPs4rdsv7u9koqBFv9Z5jFd8Jw7X1t9QuItsIE/InTE17mO+nOfw==","mode":420,"size":392},"package.json":{"checkedAt":1794532102399,"integrity":"sha512-71r3DVCgcVd2CgZrO0XGvNtmv8qASeizWf2T+b6gMdDBG32tCVgU7xX0hZEJpgO9vuFCM5rHev3yi8X0273eFA==","mode":420,"size":1032},"README.md":{"checkedAt":1794532102399,"integrity":"sha512-iVjNY3OTMtGWVA55O/i4B2sNM95TJ7HGLB3E6iPsYDJhT4JEF5NZ2yMBTjekNFgbik7Sg9UCfSqTOvb2jnn6ZQ==","mode":420,"size":1257},".travis.yml":{"checkedAt":1794532102399,"integrity":"sha512-GVdJMC17X2Yo/M084HM2B1BZz42YdPm5EhiAdHEtwLcN4W5Z4kH7NFZ0z2ArfaH/jXdxK6yBoZ8WGebhsP87AQ==","mode":420,"size":37}}}
@@ -0,0 +1,3 @@
declare const _default: <T>(data: T[], index?: number | number[]) => T[];
export default _default;
//# sourceMappingURL=remove.d.ts.map
@@ -0,0 +1,15 @@
Apache License, Version 2.0
Copyright (c) 2011 Dominic Tarr
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,17 @@
import {useOverlayTriggerState as $fc909762b330b746$export$61c6a8c84e605fb6} from "./useOverlayTriggerState.module.js";
/*
* 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 {$fc909762b330b746$export$61c6a8c84e605fb6 as useOverlayTriggerState};
//# sourceMappingURL=module.js.map
@@ -0,0 +1,38 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $Date = GetIntrinsic('%Date%');
var $TypeError = require('es-errors/type');
var isNaN = require('math-intrinsics/isNaN');
var callBound = require('call-bound');
var $indexOf = callBound('String.prototype.indexOf');
var $slice = callBound('String.prototype.slice');
var $toTimeString = callBound('Date.prototype.toTimeString');
// https://262.ecma-international.org/12.0/#sec-timezoneestring
module.exports = function TimeZoneString(tv) {
if (typeof tv !== 'number' || isNaN(tv)) {
throw new $TypeError('Assertion failed: `tv` must be a non-NaN Number'); // steps 1 - 2
}
// 3. Let offset be LocalTZA(tv, true).
// 4. If offset ≥ +0𝔽, then
// a. Let offsetSign be "+".
// b. Let absOffset be offset.
// 5. Else,
// a. Let offsetSign be "-".
// b. Let absOffset be -offset.
// 6. Let offsetMin be the String representation of MinFromTime(absOffset), formatted as a two-digit decimal number, padded to the left with the code unit 0x0030 (DIGIT ZERO) if necessary.
// 7. Let offsetHour be the String representation of HourFromTime(absOffset), formatted as a two-digit decimal number, padded to the left with the code unit 0x0030 (DIGIT ZERO) if necessary.
// 8. Let tzName be an implementation-defined string that is either the empty String or the string-concatenation of the code unit 0x0020 (SPACE), the code unit 0x0028 (LEFT PARENTHESIS), an implementation-defined timezone name, and the code unit 0x0029 (RIGHT PARENTHESIS).
// 9. Return the string-concatenation of offsetSign, offsetHour, offsetMin, and tzName.
// hack until LocalTZA, and "implementation-defined string" are available
var ts = $toTimeString(new $Date(tv));
return $slice(ts, $indexOf(ts, '(') + 1, $indexOf(ts, ')'));
};
@@ -0,0 +1,110 @@
var colors = require('./colors');
module['exports'] = function() {
//
// Extends prototype of native string object to allow for "foo".red syntax
//
var addProperty = function(color, func) {
String.prototype.__defineGetter__(color, func);
};
addProperty('strip', function() {
return colors.strip(this);
});
addProperty('stripColors', function() {
return colors.strip(this);
});
addProperty('trap', function() {
return colors.trap(this);
});
addProperty('zalgo', function() {
return colors.zalgo(this);
});
addProperty('zebra', function() {
return colors.zebra(this);
});
addProperty('rainbow', function() {
return colors.rainbow(this);
});
addProperty('random', function() {
return colors.random(this);
});
addProperty('america', function() {
return colors.america(this);
});
//
// Iterate through all default styles and colors
//
var x = Object.keys(colors.styles);
x.forEach(function(style) {
addProperty(style, function() {
return colors.stylize(this, style);
});
});
function applyTheme(theme) {
//
// Remark: This is a list of methods that exist
// on String that you should not overwrite.
//
var stringPrototypeBlacklist = [
'__defineGetter__', '__defineSetter__', '__lookupGetter__',
'__lookupSetter__', 'charAt', 'constructor', 'hasOwnProperty',
'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString',
'valueOf', 'charCodeAt', 'indexOf', 'lastIndexOf', 'length',
'localeCompare', 'match', 'repeat', 'replace', 'search', 'slice',
'split', 'substring', 'toLocaleLowerCase', 'toLocaleUpperCase',
'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight',
];
Object.keys(theme).forEach(function(prop) {
if (stringPrototypeBlacklist.indexOf(prop) !== -1) {
console.log('warn: '.red + ('String.prototype' + prop).magenta +
' is probably something you don\'t want to override. ' +
'Ignoring style name');
} else {
if (typeof(theme[prop]) === 'string') {
colors[prop] = colors[theme[prop]];
addProperty(prop, function() {
return colors[prop](this);
});
} else {
var themePropApplicator = function(str) {
var ret = str || this;
for (var t = 0; t < theme[prop].length; t++) {
ret = colors[theme[prop][t]](ret);
}
return ret;
};
addProperty(prop, themePropApplicator);
colors[prop] = function(str) {
return themePropApplicator(str);
};
}
}
});
}
colors.setTheme = function(theme) {
if (typeof theme === 'string') {
console.log('colors.setTheme now only accepts an object, not a string. ' +
'If you are trying to set a theme from a file, it is now your (the ' +
'caller\'s) responsibility to require the file. The old syntax ' +
'looked like colors.setTheme(__dirname + ' +
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
'colors.setTheme(require(__dirname + ' +
'\'/../themes/generic-logging.js\'));');
return;
} else {
applyTheme(theme);
}
};
};
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Literal = Literal;
const type_1 = require("../create/type");
const index_1 = require("../symbols/index");
/** `[Json]` Creates a Literal type */
function Literal(value, options) {
return (0, type_1.CreateType)({
[index_1.Kind]: 'Literal',
const: value,
type: typeof value,
}, options);
}
@@ -0,0 +1,27 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
export declare const SetFriendAddRequestPayloadSchema: import("@sinclair/typebox").TObject<{
flag: import("@sinclair/typebox").TString;
approve: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>;
remark: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
export type SetFriendAddRequestPayload = Static<typeof SetFriendAddRequestPayloadSchema>;
export default class SetFriendAddRequest extends OneBotAction<SetFriendAddRequestPayload, void> {
actionName: "set_friend_add_request";
payloadSchema: import("@sinclair/typebox").TObject<{
flag: import("@sinclair/typebox").TString;
approve: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>;
remark: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
returnSchema: import("@sinclair/typebox").TNull;
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {
flag: string;
approve: boolean;
remark: string;
};
returnExample: {};
_handle(payload: SetFriendAddRequestPayload): Promise<void>;
}
@@ -0,0 +1 @@
{"version":3,"file":"display-name.d.ts","sourceRoot":"","sources":["display-name.js"],"names":[],"mappings":"wBA6BW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU"}
@@ -0,0 +1,13 @@
type GeneratedColumn = number;
type SourcesIndex = number;
type SourceLine = number;
type SourceColumn = number;
type NamesIndex = number;
export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
export declare const COLUMN = 0;
export declare const SOURCES_INDEX = 1;
export declare const SOURCE_LINE = 2;
export declare const SOURCE_COLUMN = 3;
export declare const NAMES_INDEX = 4;
export {};
//# sourceMappingURL=sourcemap-segment.d.ts.map
@@ -0,0 +1,168 @@
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Functions to estimate the bit cost of Huffman trees.
#ifndef BROTLI_ENC_BIT_COST_H_
#define BROTLI_ENC_BIT_COST_H_
#include <stdint.h>
#include "./entropy_encode.h"
#include "./fast_log.h"
namespace brotli {
static inline double BitsEntropy(const int *population, int size) {
int sum = 0;
double retval = 0;
const int *population_end = population + size;
int p;
if (size & 1) {
goto odd_number_of_elements_left;
}
while (population < population_end) {
p = *population++;
sum += p;
retval -= p * FastLog2(p);
odd_number_of_elements_left:
p = *population++;
sum += p;
retval -= p * FastLog2(p);
}
if (sum) retval += sum * FastLog2(sum);
if (retval < sum) {
// At least one bit per literal is needed.
retval = sum;
}
return retval;
}
static const int kHuffmanExtraBits[kCodeLengthCodes] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,
};
static inline int HuffmanTreeBitCost(const int* counts, const uint8_t* depth) {
int nbits = 0;
for (int i = 0; i < kCodeLengthCodes; ++i) {
nbits += counts[i] * (depth[i] + kHuffmanExtraBits[i]);
}
return nbits;
}
static inline int HuffmanTreeBitCost(
const Histogram<kCodeLengthCodes>& histogram,
const EntropyCode<kCodeLengthCodes>& entropy) {
return HuffmanTreeBitCost(&histogram.data_[0], &entropy.depth_[0]);
}
static inline int HuffmanBitCost(const uint8_t* depth, int length) {
int max_depth = 1;
int histogram[kCodeLengthCodes] = { 0 };
int tail_start = 0;
int prev_value = 8;
// compute histogram of compacted huffman tree
for (int i = 0; i < length;) {
const int value = depth[i];
if (value > max_depth) {
max_depth = value;
}
int reps = 1;
for (int k = i + 1; k < length && depth[k] == value; ++k) {
++reps;
}
i += reps;
if (i == length && value == 0)
break;
if (value == 0) {
if (reps < 3) {
histogram[0] += reps;
} else {
reps -= 2;
while (reps > 0) {
++histogram[17];
reps >>= 3;
}
}
} else {
tail_start = i;
if (value != prev_value) {
++histogram[value];
--reps;
}
prev_value = value;
if (reps < 3) {
histogram[value] += reps;
} else {
reps -= 2;
while (reps > 0) {
++histogram[16];
reps >>= 2;
}
}
}
}
// create huffman tree of huffman tree
uint8_t cost[kCodeLengthCodes] = { 0 };
CreateHuffmanTree(histogram, kCodeLengthCodes, 7, cost);
// account for rle extra bits
cost[16] += 2;
cost[17] += 3;
int tree_size = 0;
int bits = 18 + 2 * max_depth; // huffman tree of huffman tree cost
for (int i = 0; i < kCodeLengthCodes; ++i) {
bits += histogram[i] * cost[i]; // huffman tree bit cost
tree_size += histogram[i];
}
return bits;
}
template<int kSize>
double PopulationCost(const Histogram<kSize>& histogram) {
if (histogram.total_count_ == 0) {
return 12;
}
int count = 0;
for (int i = 0; i < kSize && count < 5; ++i) {
if (histogram.data_[i] > 0) {
++count;
}
}
if (count == 1) {
return 12;
}
if (count == 2) {
return 20 + histogram.total_count_;
}
uint8_t depth[kSize] = { 0 };
CreateHuffmanTree(&histogram.data_[0], kSize, 15, depth);
int bits = 0;
for (int i = 0; i < kSize; ++i) {
bits += histogram.data_[i] * depth[i];
}
if (count == 3) {
bits += 28;
} else if (count == 4) {
bits += 37;
} else {
bits += HuffmanBitCost(depth, kSize);
}
return bits;
}
} // namespace brotli
#endif // BROTLI_ENC_BIT_COST_H_
@@ -0,0 +1 @@
{"version":3,"file":"classMetadataReflectKey.d.ts","sourceRoot":"","sources":["../../../../src/reflectMetadata/data/classMetadataReflectKey.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAE,MACO,CAAC"}
@@ -0,0 +1,43 @@
// Basque [eu]
import dayjs from '../index';
var locale = {
name: 'eu',
weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
weekStart: 1,
weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'YYYY[ko] MMMM[ren] D[a]',
LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
l: 'YYYY-M-D',
ll: 'YYYY[ko] MMM D[a]',
lll: 'YYYY[ko] MMM D[a] HH:mm',
llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
},
relativeTime: {
future: '%s barru',
past: 'duela %s',
s: 'segundo batzuk',
m: 'minutu bat',
mm: '%d minutu',
h: 'ordu bat',
hh: '%d ordu',
d: 'egun bat',
dd: '%d egun',
M: 'hilabete bat',
MM: '%d hilabete',
y: 'urte bat',
yy: '%d urte'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,40 @@
'use strict';
var hasOwn = require('hasown');
var $TypeError = require('es-errors/type');
var getSymbolDescription = require('get-symbol-description');
var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
var IsExtensible = require('./IsExtensible');
// https://262.ecma-international.org/6.0/#sec-setfunctionname
module.exports = function SetFunctionName(F, name) {
if (typeof F !== 'function') {
throw new $TypeError('Assertion failed: `F` must be a function');
}
if (!IsExtensible(F) || hasOwn(F, 'name')) {
throw new $TypeError('Assertion failed: `F` must be extensible, and must not have a `name` own property');
}
if (typeof name !== 'symbol' && typeof name !== 'string') {
throw new $TypeError('Assertion failed: `name` must be a Symbol or a String');
}
if (typeof name === 'symbol') {
var description = getSymbolDescription(name);
// eslint-disable-next-line no-param-reassign
name = typeof description === 'undefined' ? '' : '[' + description + ']';
}
if (arguments.length > 2) {
var prefix = arguments[2];
// eslint-disable-next-line no-param-reassign
name = prefix + ' ' + name;
}
return DefinePropertyOrThrow(F, 'name', {
'[[Value]]': name,
'[[Writable]]': false,
'[[Enumerable]]': false,
'[[Configurable]]': true
});
};
@@ -0,0 +1,167 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0;
const util_1 = require("./util");
const constants_1 = require("./constants");
const stream = require("stream");
const ip_address_1 = require("ip-address");
const net = require("net");
/**
* Validates the provided SocksClientOptions
* @param options { SocksClientOptions }
* @param acceptedCommands { string[] } A list of accepted SocksProxy commands.
*/
function validateSocksClientOptions(options, acceptedCommands = ['connect', 'bind', 'associate']) {
// Check SOCKs command option.
if (!constants_1.SocksCommand[options.command]) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommand, options);
}
// Check SocksCommand for acceptable command.
if (acceptedCommands.indexOf(options.command) === -1) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandForOperation, options);
}
// Check destination
if (!isValidSocksRemoteHost(options.destination)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options);
}
// Check SOCKS proxy to use
if (!isValidSocksProxy(options.proxy)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options);
}
// Validate custom auth (if set)
validateCustomProxyAuth(options.proxy, options);
// Check timeout
if (options.timeout && !isValidTimeoutValue(options.timeout)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options);
}
// Check existing_socket (if provided)
if (options.existing_socket &&
!(options.existing_socket instanceof stream.Duplex)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsExistingSocket, options);
}
}
exports.validateSocksClientOptions = validateSocksClientOptions;
/**
* Validates the SocksClientChainOptions
* @param options { SocksClientChainOptions }
*/
function validateSocksClientChainOptions(options) {
// Only connect is supported when chaining.
if (options.command !== 'connect') {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandChain, options);
}
// Check destination
if (!isValidSocksRemoteHost(options.destination)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options);
}
// Validate proxies (length)
if (!(options.proxies &&
Array.isArray(options.proxies) &&
options.proxies.length >= 2)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxiesLength, options);
}
// Validate proxies
options.proxies.forEach((proxy) => {
if (!isValidSocksProxy(proxy)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options);
}
// Validate custom auth (if set)
validateCustomProxyAuth(proxy, options);
});
// Check timeout
if (options.timeout && !isValidTimeoutValue(options.timeout)) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options);
}
}
exports.validateSocksClientChainOptions = validateSocksClientChainOptions;
function validateCustomProxyAuth(proxy, options) {
if (proxy.custom_auth_method !== undefined) {
// Invalid auth method range
if (proxy.custom_auth_method < constants_1.SOCKS5_CUSTOM_AUTH_START ||
proxy.custom_auth_method > constants_1.SOCKS5_CUSTOM_AUTH_END) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthRange, options);
}
// Missing custom_auth_request_handler
if (proxy.custom_auth_request_handler === undefined ||
typeof proxy.custom_auth_request_handler !== 'function') {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
}
// Missing custom_auth_response_size
if (proxy.custom_auth_response_size === undefined) {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
}
// Missing/invalid custom_auth_response_handler
if (proxy.custom_auth_response_handler === undefined ||
typeof proxy.custom_auth_response_handler !== 'function') {
throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
}
}
}
/**
* Validates a SocksRemoteHost
* @param remoteHost { SocksRemoteHost }
*/
function isValidSocksRemoteHost(remoteHost) {
return (remoteHost &&
typeof remoteHost.host === 'string' &&
Buffer.byteLength(remoteHost.host) < 256 &&
typeof remoteHost.port === 'number' &&
remoteHost.port >= 0 &&
remoteHost.port <= 65535);
}
/**
* Validates a SocksProxy
* @param proxy { SocksProxy }
*/
function isValidSocksProxy(proxy) {
return (proxy &&
(typeof proxy.host === 'string' || typeof proxy.ipaddress === 'string') &&
typeof proxy.port === 'number' &&
proxy.port >= 0 &&
proxy.port <= 65535 &&
(proxy.type === 4 || proxy.type === 5));
}
/**
* Validates a timeout value.
* @param value { Number }
*/
function isValidTimeoutValue(value) {
return typeof value === 'number' && value > 0;
}
function ipv4ToInt32(ip) {
const address = new ip_address_1.Address4(ip);
// Convert the IPv4 address parts to an integer
return address.toArray().reduce((acc, part) => (acc << 8) + part, 0) >>> 0;
}
exports.ipv4ToInt32 = ipv4ToInt32;
function int32ToIpv4(int32) {
// Extract each byte (octet) from the 32-bit integer
const octet1 = (int32 >>> 24) & 0xff;
const octet2 = (int32 >>> 16) & 0xff;
const octet3 = (int32 >>> 8) & 0xff;
const octet4 = int32 & 0xff;
// Combine the octets into a string in IPv4 format
return [octet1, octet2, octet3, octet4].join('.');
}
exports.int32ToIpv4 = int32ToIpv4;
function ipToBuffer(ip) {
if (net.isIPv4(ip)) {
// Handle IPv4 addresses
const address = new ip_address_1.Address4(ip);
return Buffer.from(address.toArray());
}
else if (net.isIPv6(ip)) {
// Handle IPv6 addresses
const address = new ip_address_1.Address6(ip);
return Buffer.from(address
.canonicalForm()
.split(':')
.map((segment) => segment.padStart(4, '0'))
.join(''), 'hex');
}
else {
throw new Error('Invalid IP address format');
}
}
exports.ipToBuffer = ipToBuffer;
//# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={},t.React)}(this,function(t,e){"use strict";function n(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}),e.default=t,Object.freeze(e)}var i=n(e),s=React,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var i,s={},r=null,c=null;for(i in void 0!==n&&(r=""+n),void 0!==e.key&&(r=""+e.key),void 0!==e.ref&&(c=e.ref),e)a.call(e,i)&&!u.hasOwnProperty(i)&&(s[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===s[i]&&(s[i]=e[i]);return{$$typeof:o,type:t,key:r,ref:c,props:s,_owner:l.current}}const h=r,d=c,p=c,m=e.createContext({});function f(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}const g="undefined"!=typeof window,y=g?e.useLayoutEffect:e.useEffect,v=e.createContext(null);function x(t,e){-1===t.indexOf(e)&&t.push(e)}function w(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function T([...t],e,n){const i=e<0?t.length+e:e;if(i>=0&&i<t.length){const i=n<0?t.length+n:n,[s]=t.splice(e,1);t.splice(i,0,s)}return t}const P=(t,e,n)=>n>e?e:n<t?t:n;let b=()=>{};const S={},E=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function A(t){return"object"==typeof t&&null!==t}const M=t=>/^0[^.\s]+$/u.test(t);function C(t){let e;return()=>(void 0===e&&(e=t()),e)}const V=t=>t,D=(t,e)=>n=>e(t(n)),R=(...t)=>t.reduce(D),k=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class L{constructor(){this.subscriptions=[]}add(t){return x(this.subscriptions,t),()=>w(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const O=t=>1e3*t,j=t=>t/1e3;function B(t,e){return e?t*(1e3/e):0}const I=new Set;const F=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t},W=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function U(t,e,n,i){if(t===e&&n===i)return V;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=W(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:W(s(t),e,i)}const N=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$=t=>e=>1-t(1-e),z=U(.33,1.53,.69,.99),X=$(z),H=N(X),Y=t=>(t*=2)<1?.5*X(t):.5*(2-Math.pow(2,-10*(t-1))),K=t=>1-Math.sin(Math.acos(t)),G=$(K),_=N(K),Z=U(.42,0,1,1),q=U(0,0,.58,1),J=U(.42,0,.58,1);const Q=t=>Array.isArray(t)&&"number"!=typeof t[0];function tt(t,e){return Q(t)?t[F(0,t.length,e)]:t}const et=t=>Array.isArray(t)&&"number"==typeof t[0],nt={linear:V,easeIn:Z,easeInOut:J,easeOut:q,circIn:K,circInOut:_,circOut:G,backIn:X,backInOut:H,backOut:z,anticipate:Y},it=t=>{if(et(t)){t.length;const[e,n,i,s]=t;return U(e,n,i,s)}return"string"==typeof t?nt[t]:t},st=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ot={value:null,addProjectionMetrics:null};function rt(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=st.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){r.has(e)&&(c.schedule(e),t()),l++,e(a)}const c={schedule:(t,e=!1,o=!1)=>{const a=o&&s?n:i;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{a=t,s?o=!0:(s=!0,[n,i]=[i,n],n.forEach(u),e&&ot.value&&ot.value.frameloop[e].push(l),l=0,n.clear(),s=!1,o&&(o=!1,c.process(t)))}};return c}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:m}=r,f=()=>{const o=S.useManualTiming?s.timestamp:performance.now();n=!1,S.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:st.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<st.length;e++)r[st[e]].cancel(t)},state:s,steps:r}}const{schedule:at,cancel:lt,state:ut,steps:ct}=rt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:V,!0);let ht;function dt(){ht=void 0}const pt={now:()=>(void 0===ht&&pt.set(ut.isProcessing||S.useManualTiming?ut.timestamp:performance.now()),ht),set:t=>{ht=t,queueMicrotask(dt)}},mt={layout:0,mainThread:0,waapi:0},ft=t=>e=>"string"==typeof e&&e.startsWith(t),gt=ft("--"),yt=ft("var(--"),vt=t=>!!yt(t)&&xt.test(t.spLine truncated
@@ -0,0 +1,77 @@
'use strict';
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');
var assign = require('object.assign');
var isPropertyDescriptor = require('../helpers/records/property-descriptor');
var IsArray = require('./IsArray');
var IsDataDescriptor = require('./IsDataDescriptor');
var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty');
var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty');
var ToNumber = require('./ToNumber');
var ToString = require('./ToString');
var ToUint32 = require('./ToUint32');
// https://262.ecma-international.org/6.0/#sec-arraysetlength
// eslint-disable-next-line max-statements, max-lines-per-function
module.exports = function ArraySetLength(A, Desc) {
if (!IsArray(A)) {
throw new $TypeError('Assertion failed: A must be an Array');
}
if (!isPropertyDescriptor(Desc)) {
throw new $TypeError('Assertion failed: Desc must be a Property Descriptor');
}
if (!('[[Value]]' in Desc)) {
return OrdinaryDefineOwnProperty(A, 'length', Desc);
}
var newLenDesc = assign({}, Desc);
var newLen = ToUint32(Desc['[[Value]]']);
var numberLen = ToNumber(Desc['[[Value]]']);
if (newLen !== numberLen) {
throw new $RangeError('Invalid array length');
}
newLenDesc['[[Value]]'] = newLen;
var oldLenDesc = OrdinaryGetOwnProperty(A, 'length');
if (!IsDataDescriptor(oldLenDesc)) {
throw new $TypeError('Assertion failed: an array had a non-data descriptor on `length`');
}
var oldLen = oldLenDesc['[[Value]]'];
if (newLen >= oldLen) {
return OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
}
if (!oldLenDesc['[[Writable]]']) {
return false;
}
var newWritable;
if (!('[[Writable]]' in newLenDesc) || newLenDesc['[[Writable]]']) {
newWritable = true;
} else {
newWritable = false;
newLenDesc['[[Writable]]'] = true;
}
var succeeded = OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
if (!succeeded) {
return false;
}
while (newLen < oldLen) {
oldLen -= 1;
// eslint-disable-next-line no-param-reassign
var deleteSucceeded = delete A[ToString(oldLen)];
if (!deleteSucceeded) {
newLenDesc['[[Value]]'] = oldLen + 1;
if (!newWritable) {
newLenDesc['[[Writable]]'] = false;
OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
return false;
}
}
}
if (!newWritable) {
return OrdinaryDefineOwnProperty(A, 'length', { '[[Writable]]': false });
}
return true;
};
@@ -0,0 +1,53 @@
import { createRule, moduleVisitor } from '../utils/index.js';
export default createRule({
name: 'max-dependencies',
meta: {
type: 'suggestion',
docs: {
category: 'Style guide',
description: 'Enforce the maximum number of dependencies a module can have.',
},
schema: [
{
type: 'object',
properties: {
max: { type: 'number' },
ignoreTypeImports: { type: 'boolean' },
},
additionalProperties: false,
},
],
messages: {
max: 'Maximum number of dependencies ({{max}}) exceeded.',
},
},
defaultOptions: [],
create(context) {
const { ignoreTypeImports } = context.options[0] || {};
const dependencies = new Set();
let lastNode;
return {
'Program:exit'() {
const { max = 10 } = context.options[0] || {};
if (dependencies.size <= max) {
return;
}
context.report({
node: lastNode,
messageId: 'max',
data: {
max,
},
});
},
...moduleVisitor((source, node) => {
if (('importKind' in node && node.importKind !== 'type') ||
!ignoreTypeImports) {
dependencies.add(source.value);
}
lastNode = source;
}, { commonjs: true }),
};
},
});
//# sourceMappingURL=max-dependencies.js.map
@@ -0,0 +1,54 @@
/**
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/
interface IConptyNative {
startProcess(file: string, cols: number, rows: number, debug: boolean, pipeName: string, conptyInheritCursor: boolean, useConptyDll: boolean): IConptyProcess;
connect(ptyId: number, commandLine: string, cwd: string, env: string[], onExitCallback: (exitCode: number) => void): { pid: number };
resize(ptyId: number, cols: number, rows: number, useConptyDll: boolean): void;
clear(ptyId: number, useConptyDll: boolean): void;
kill(ptyId: number, useConptyDll: boolean): void;
}
interface IWinptyNative {
startProcess(file: string, commandLine: string, env: string[], cwd: string, cols: number, rows: number, debug: boolean): IWinptyProcess;
resize(pid: number, cols: number, rows: number): void;
kill(pid: number, innerPid: number): void;
getProcessList(pid: number): number[];
getExitCode(innerPid: number): number;
}
interface IUnixNative {
fork(file: string, args: string[], parsedEnv: string[], cwd: string, cols: number, rows: number, uid: number, gid: number, useUtf8: boolean, helperPath: string, onExitCallback: (code: number, signal: number) => void): IUnixProcess;
open(cols: number, rows: number): IUnixOpenProcess;
process(fd: number, pty?: string): string;
resize(fd: number, cols: number, rows: number): void;
}
interface IConptyProcess {
pty: number;
fd: number;
conin: string;
conout: string;
}
interface IWinptyProcess {
pty: number;
fd: number;
conin: string;
conout: string;
pid: number;
innerPid: number;
}
interface IUnixProcess {
fd: number;
pid: number;
pty: string;
}
interface IUnixOpenProcess {
master: number;
slave: number;
pty: string;
}
@@ -0,0 +1 @@
{"version":3,"names":["_isReactComponent","require","_isCompatTag","_buildChildren","_assertNode","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_createTypeAnnotationBasedOnTypeof","_createFlowUnionType","_createTSUnionType","_productions","_index2","_cloneNode","_clone","_cloneDeep","_cloneDeepWithoutLoc","_cloneWithoutLoc","_addComment","_addComments","_inheritInnerComments","_inheritLeadingComments","_inheritsComments","_inheritTrailingComments","_removeComments","_index3","_index4","_ensureBlock","_toBindingIdentifierName","_toBlock","_toComputedKey","_toExpression","_toIdentifier","_toKeyAlias","_toStatement","_valueToNode","_index5","_appendToMemberExpression","_inherits","_prependToMemberExpression","_removeProperties","_removePropertiesDeep","_removeTypeDuplicates","_getAssignmentIdentifiers","_getBindingIdentifiers","_getOuterBindingIdentifiers","_getFunctionName","_traverse","_traverseFast","_shallowEqual","_is","_isBinding","_isBlockScoped","_isImmutable","_isLet","_isNode","_isNodesEquivalent","_isPlaceholderType","_isReferenced","_isScope","_isSpecifierDefault","_isType","_isValidES3Identifier","_isValidIdentifier","_isVar","_matchesPattern","_validate","_buildMatchMemberExpression","_index6","_deprecationWarning","_toSequenceExpression","react","isReactComponent","isCompatTag","buildChildren","toSequenceExpression","process","env","BABEL_TYPES_8_BREAKING","console","warn"],"sources":["../src/index.ts"],"sourcesContent":["import isReactComponent from \"./validators/react/isReactComponent.ts\";\nimport isCompatTag from \"./validators/react/isCompatTag.ts\";\nimport buildChildren from \"./builders/react/buildChildren.ts\";\n\n// asserts\nexport { default as assertNode } from \"./asserts/assertNode.ts\";\nexport * from \"./asserts/generated/index.ts\";\n\n// builders\nexport { default as createTypeAnnotationBasedOnTypeof } from \"./builders/flow/createTypeAnnotationBasedOnTypeof.ts\";\n/** @deprecated use createFlowUnionType instead */\nexport { default as createUnionTypeAnnotation } from \"./builders/flow/createFlowUnionType.ts\";\nexport { default as createFlowUnionType } from \"./builders/flow/createFlowUnionType.ts\";\nexport { default as createTSUnionType } from \"./builders/typescript/createTSUnionType.ts\";\nexport * from \"./builders/productions.ts\";\nexport * from \"./builders/generated/index.ts\"; // includes AST types\n\n// clone\nexport { default as cloneNode } from \"./clone/cloneNode.ts\";\nexport { default as clone } from \"./clone/clone.ts\";\nexport { default as cloneDeep } from \"./clone/cloneDeep.ts\";\nexport { default as cloneDeepWithoutLoc } from \"./clone/cloneDeepWithoutLoc.ts\";\nexport { default as cloneWithoutLoc } from \"./clone/cloneWithoutLoc.ts\";\n\n// comments\nexport { default as addComment } from \"./comments/addComment.ts\";\nexport { default as addComments } from \"./comments/addComments.ts\";\nexport { default as inheritInnerComments } from \"./comments/inheritInnerComments.ts\";\nexport { default as inheritLeadingComments } from \"./comments/inheritLeadingComments.ts\";\nexport { default as inheritsComments } from \"./comments/inheritsComments.ts\";\nexport { default as inheritTrailingComments } from \"./comments/inheritTrailingComments.ts\";\nexport { default as removeComments } from \"./comments/removeComments.ts\";\n\n// constants\nexport * from \"./constants/generated/index.ts\";\nexport * from \"./constants/index.ts\";\n\n// converters\nexport { default as ensureBlock } from \"./converters/ensureBlock.ts\";\nexport { default as toBindingIdentifierName } from \"./converters/toBindingIdentifierName.ts\";\nexport { default as toBlock } from \"./converters/toBlock.ts\";\nexport { default as toComputedKey } from \"./converters/toComputedKey.ts\";\nexport { default as toExpression } from \"./converters/toExpression.ts\";\nexport { default as toIdentifier } from \"./converters/toIdentifier.ts\";\nexport { default as toKeyAlias } from \"./converters/toKeyAlias.ts\";\nexport { default as toStatement } from \"./converters/toStatement.ts\";\nexport { default as valueToNode } from \"./converters/valueToNode.ts\";\n\n// definitions\nexport * from \"./definitions/index.ts\";\n\n// modifications\nexport { default as appendToMemberExpression } from \"./modifications/appendToMemberExpression.ts\";\nexport { default as inherits } from \"./modifications/inherits.ts\";\nexport { default as prependToMemberExpression } from \"./modifications/prependToMemberExpression.ts\";\nexport {\n default as removeProperties,\n type Options as RemovePropertiesOptions,\n} from \"./modifications/removeProperties.ts\";\nexport { default as removePropertiesDeep } from \"./modifications/removePropertiesDeep.ts\";\nexport { default as removeTypeDuplicates } from \"./modifications/flow/removeTypeDuplicates.ts\";\n\n// retrievers\nexport { default as getAssignmentIdentifiers } from \"./retrievers/getAsLine truncated
@@ -0,0 +1,23 @@
import baseAt from './_baseAt.js';
import flatRest from './_flatRest.js';
/**
* Creates an array of values corresponding to `paths` of `object`.
*
* @static
* @memberOf _
* @since 1.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {...(string|string[])} [paths] The property paths to pick.
* @returns {Array} Returns the picked values.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
*
* _.at(object, ['a[0].b.c', 'a[1]']);
* // => [3, 4]
*/
var at = flatRest(baseAt);
export default at;
@@ -0,0 +1,19 @@
var arrayMap = require('./_arrayMap');
/**
* The base implementation of `_.values` and `_.valuesIn` which creates an
* array of `object` property values corresponding to the property names
* of `props`.
*
* @private
* @param {Object} object The object to query.
* @param {Array} props The property names to get values for.
* @returns {Object} Returns the array of property values.
*/
function baseValues(object, props) {
return arrayMap(props, function(key) {
return object[key];
});
}
module.exports = baseValues;
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e"},C:{"1":"0 1 2 3 4 5 Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC 0C 1C"},D:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e"},E:{"1":"G 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F A B C L M 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C"},F:{"1":"0 1 2 3 4 5 WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R FD GD HD ID NC uC JD OC"},G:{"1":"dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB RC SC yD","2":"J oD pD qD rD sD aC tD uD vD wD xD QC"},Q:{"16":"zD"},R:{"16":"0D"},S:{"2":"1D","16":"2D"}},B:5,C:"WebAssembly Reference Types",D:true};
@@ -0,0 +1,520 @@
# Fraction.js - ℚ in JavaScript
[![NPM Package](https://img.shields.io/npm/v/fraction.js.svg?style=flat)](https://npmjs.org/package/fraction.js "View this project on npm")
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
Do you find the limitations of floating-point arithmetic frustrating, especially when rational and irrational numbers like π or √2 are stored within the same finite precision? This can lead to avoidable inaccuracies such as:
```javascript
1 / 98 * 98 // Results in 0.9999999999999999
```
For applications requiring higher precision or where working with fractions is preferable, consider incorporating *Fraction.js* into your project.
The library effectively addresses precision issues, as demonstrated below:
```javascript
Fraction(1).div(98).mul(98) // Returns 1
```
*Fraction.js* uses a `BigInt` representation for both the numerator and denominator, ensuring minimal performance overhead while maximizing accuracy. Its design is optimized for precision, making it an ideal choice as a foundational library for other math tools, such as [Polynomial.js](https://github.com/rawify/Polynomial.js) and [Math.js](https://github.com/josdejong/mathjs).
## Convert Decimal to Fraction
One of the core features of *Fraction.js* is its ability to seamlessly convert decimal numbers into fractions.
```javascript
let x = new Fraction(1.88);
let res = x.toFraction(true); // Returns "1 22/25" as a string
```
This is particularly useful when you need precise fraction representations instead of dealing with the limitations of floating-point arithmetic. What if you allow some error tolerance?
```javascript
let x = new Fraction(0.33333);
let res = x.simplify(0.001) // Error < 0.001
.toFraction(); // Returns "1/3" as a string
```
## Precision
As native `BigInt` support in JavaScript becomes more common, libraries like *Fraction.js* use it to handle calculations with higher precision. This improves the speed and accuracy of math operations with large numbers, providing a better solution for tasks that need more precision than floating-point numbers can offer.
## Examples / Motivation
A simple example of using *Fraction.js* might look like this:
```javascript
var f = new Fraction("9.4'31'"); // 9.4313131313131...
f.mul([-4, 3]).mod("4.'8'"); // 4.88888888888888...
```
The result can then be displayed as:
```javascript
console.log(f.toFraction()); // -4154 / 1485
```
Additionally, you can access the internal attributes of the fraction, such as the sign (s), numerator (n), and denominator (d). Keep in mind that these values are stored as `BigInt`:
```javascript
Number(f.s) * Number(f.n) / Number(f.d) = -1 * 4154 / 1485 = -2.797306...
```
If you attempted to calculate this manually using floating-point arithmetic, you'd get something like:
```javascript
(9.4313131 * (-4 / 3)) % 4.888888 = -2.797308133...
```
While the result is reasonably close, it’s not as accurate as the fraction-based approach that *Fraction.js* provides, especially when dealing with repeating decimals or complex operations. This highlights the value of precision that the library brings.
### Laplace Probability
Here's a straightforward example of using *Fraction.js* to calculate probabilities. Let's determine the probability of rolling a specific outcome on a fair die:
- **P({3})**: The probability of rolling a 3.
- **P({1, 4})**: The probability of rolling either 1 or 4.
- **P({2, 4, 6})**: The probability of rolling 2, 4, or 6.
#### P({3}):
```javascript
var p = new Fraction([3].length, 6).toString(); // "0.1(6)"
```
#### P({1, 4}):
```javascript
var p = new Fraction([1, 4].length, 6).toString(); // "0.(3)"
```
#### P({2, 4, 6}):
```javascript
var p = new Fraction([2, 4, 6].length, 6).toString(); // "0.5"
```
### Convert degrees/minutes/seconds to precise rational representation:
57+45/60+17/3600
```javascript
var deg = 57; // 57°
var min = 45; // 45 Minutes
var sec = 17; // 17 Seconds
new Fraction(deg).add(min, 60).add(sec, 3600).toString() // -> 57.7547(2)
```
### Rational approximation of irrational numbers
To approximate a number like *sqrt(5) - 2* with a numerator and denominator, you can reformat the equation as follows: *pow(n / d + 2, 2) = 5*.
Then the following algorithm will generate the rational number besides the binary representation.
```javascript
var x = "/", s = "";
var a = new Fraction(0),
b = new Fraction(1);
for (var n = 0; n <= 10; n++) {
var c = a.add(b).div(2);
console.log(n + "\t" + a + "\t" + b + "\t" + c + "\t" + x);
if (c.add(2).pow(2).valueOf() < 5) {
a = c;
x = "1";
} else {
b = c;
x = "0";
}
s+= x;
}
console.log(s)
```
The result is
```
n a[n] b[n] c[n] x[n]
0 0/1 1/1 1/2 /
1 0/1 1/2 1/4 0
2 0/1 1/4 1/8 0
3 1/8 1/4 3/16 1
4 3/16 1/4 7/32 1
5 7/32 1/4 15/64 1
6 15/64 1/4 31/128 1
7 15/64 31/128 61/256 0
8 15/64 61/256 121/512 0
9 15/64 121/512 241/1024 0
10 241/1024 121/512 483/2048 1
```
Thus the approximation after 11 iterations of the bisection method is *483 / 2048* and the binary representation is 0.00111100011 (see [WolframAlpha](http://www.wolframalpha.com/input/?i=sqrt%285%29-2+binary))
I published another example on how to approximate PI with fraction.js on my [blog](https://raw.org/article/rational-numbers-in-javascript/) (Still not the best idea to approximate irrational numbers, but it illustrates the capabilities of Fraction.js perfectly).
### Get the exact fractional part of a number
```javascript
var f = new Fraction("-6.(3416)");
console.log(f.mod(1).abs().toFraction()); // = 3416/9999
```
### Mathematical correct modulo
The behaviour on negative congruences is different to most modulo implementations in computer science. Even the *mod()* function of Fraction.js behaves in the typical way. To solve the problem of having the mathematical correct modulo with Fraction.js you could come up with this:
```javascript
var a = -1;
var b = 10.99;
console.log(new Fraction(a)
.mod(b)); // Not correct, usual Modulo
console.log(new Fraction(a)
.mod(b).add(b).mod(b)); // Correct! Mathematical Modulo
```
fmod() imprecision circumvented
---
It turns out that Fraction.js outperforms almost any fmod() implementation, including JavaScript itself, [php.js](http://phpjs.org/functions/fmod/), C++, Python, Java and even Wolframalpha due to the fact that numbers like 0.05, 0.1, ... are infinite decimal in base 2.
The equation *fmod(4.55, 0.05)* gives *0.04999999999999957*, wolframalpha says *1/20*. The correct answer should be **zero**, as 0.05 divides 4.55 without any remainder.
## Parser
Any function (see below) as well as the constructor of the *Fraction* class parses its input and reduce it to the smallest term.
You can pass either Arrays, Objects, Integers, Doubles or Strings.
### Arrays / Objects
```javascript
new Fraction(numerator, denominator);
new Fraction([numerator, denominator]);
new Fraction({n: numerator, d: denominator});
```
### Integers
```javascript
new Fraction(123);
```
### Doubles
```javascript
new Fraction(55.4);
```
**Note:** If you pass a double as it is, Fraction.js will perform a number analysis based on Farey Sequences. If you concern performance, cache Fraction.js objects and pass arrays/objects.
The method is really precise, but too large exact numbers, like 1234567.9991829 will result in a wrong approximation. If you want to keep the number as it is, convert it to a string, as the string parser will not perform any further observations. If you have problems with the approximation, in the file `examples/approx.js` is a different approximation algorithm, which might work better in some more specific use-cases.
### Strings
```javascript
new Fraction("123.45");
new Fraction("123/45"); // A rational number represented as two decimals, separated by a slash
new Fraction("123:45"); // A rational number represented as two decimals, separated by a colon
new Fraction("4 123/45"); // A rational number represented as a whole number and a fraction
new Fraction("123.'456'"); // Note the quotes, see below!
new Fraction("123.(456)"); // Note the brackets, see below!
new Fraction("123.45'6'"); // Note the quotes, see below!
new Fraction("123.45(6)"); // Note the brackets, see below!
```
### Two arguments
```javascript
new Fraction(3, 2); // 3/2 = 1.5
```
### Repeating decimal places
*Fraction.js* can easily handle repeating decimal places. For example *1/3* is *0.3333...*. There is only one repeating digit. As you can see in the examples above, you can pass a number like *1/3* as "0.'3'" or "0.(3)", which are synonym. There are no tests to parse something like 0.166666666 to 1/6! If you really want to handle this number, wrap around brackets on your own with the function below for example: 0.1(66666666)
Assume you want to divide 123.32 / 33.6(567). [WolframAlpha](http://www.wolframalpha.com/input/?i=123.32+%2F+%2812453%2F370%29) states that you'll get a period of 1776 digits. *Fraction.js* comes to the same result. Give it a try:
```javascript
var f = new Fraction("123.32");
console.log("Bam: " + f.div("33.6(567)"));
```
To automatically make a number like "0.123123123" to something more Fraction.js friendly like "0.(123)", I hacked this little brute force algorithm in a 10 minutes. Improvements are welcome...
```javascript
function formatDecimal(str) {
var comma, pre, offset, pad, times, repeat;
if (-1 === (comma = str.indexOf(".")))
return str;
pre = str.substr(0, comma + 1);
str = str.substr(comma + 1);
for (var i = 0; i < str.length; i++) {
offset = str.substr(0, i);
for (var j = 0; j < 5; j++) {
pad = str.substr(i, j + 1);
times = Math.ceil((str.length - offset.length) / pad.length);
repeat = new Array(times + 1).join(pad); // Silly String.repeat hack
if (0 === (offset + repeat).indexOf(str)) {
return pre + offset + "(" + pad + ")";
}
}
}
return null;
}
var f, x = formatDecimal("13.0123123123"); // = 13.0(123)
if (x !== null) {
f = new Fraction(x);
}
```
## Attributes
The Fraction object allows direct access to the numerator, denominator and sign attributes. It is ensured that only the sign-attribute holds sign information so that a sign comparison is only necessary against this attribute.
```javascript
var f = new Fraction('-1/2');
console.log(f.n); // Numerator: 1
console.log(f.d); // Denominator: 2
console.log(f.s); // Sign: -1
```
## Functions
### Fraction abs()
Returns the actual number without any sign information
### Fraction neg()
Returns the actual number with flipped sign in order to get the additive inverse
### Fraction add(n)
Returns the sum of the actual number and the parameter n
### Fraction sub(n)
Returns the difference of the actual number and the parameter n
### Fraction mul(n)
Returns the product of the actual number and the parameter n
### Fraction div(n)
Returns the quotient of the actual number and the parameter n
### Fraction pow(exp)
Returns the power of the actual number, raised to an possible rational exponent. If the result becomes non-rational the function returns `null`.
### Fraction log(base)
Returns the logarithm of the actual number to a given rational base. If the result becomes non-rational the function returns `null`.
### Fraction mod(n)
Returns the modulus (rest of the division) of the actual object and n (this % n). It's a much more precise [fmod()](#fmod-impreciseness-circumvented) if you like. Please note that *mod()* is just like the modulo operator of most programming languages. If you want a mathematical correct modulo, see [here](#mathematical-correct-modulo).
### Fraction mod()
Returns the modulus (rest of the division) of the actual object (numerator mod denominator)
### Fraction gcd(n)
Returns the fractional greatest common divisor
### Fraction lcm(n)
Returns the fractional least common multiple
### Fraction ceil([places=0-16])
Returns the ceiling of a rational number with Math.ceil
### Fraction floor([places=0-16])
Returns the floor of a rational number with Math.floor
### Fraction round([places=0-16])
Returns the rational number rounded with Math.round
### Fraction roundTo(multiple)
Rounds a fraction to the closest multiple of another fraction.
### Fraction inverse()
Returns the multiplicative inverse of the actual number (n / d becomes d / n) in order to get the reciprocal
### Fraction simplify([eps=0.001])
Simplifies the rational number under a certain error threshold. Ex. `0.333` will be `1/3` with `eps=0.001`
### boolean equals(n)
Check if two rational numbers are equal
### boolean lt(n)
Check if this rational number is less than another
### boolean lte(n)
Check if this rational number is less than or equal another
### boolean gt(n)
Check if this rational number is greater than another
### boolean gte(n)
Check if this rational number is greater than or equal another
### int compare(n)
Compare two numbers.
```
result < 0: n is greater than actual number
result > 0: n is smaller than actual number
result = 0: n is equal to the actual number
```
### boolean divisible(n)
Check if two numbers are divisible (n divides this)
### double valueOf()
Returns a decimal representation of the fraction
### String toString([decimalPlaces=15])
Generates an exact string representation of the given object. For repeating decimal places, digits within repeating cycles are enclosed in parentheses, e.g., `1/3 = "0.(3)"`. For other numbers, the string will include up to the specified `decimalPlaces` significant digits, including any trailing zeros if truncation occurs. For example, `1/2` will be represented as `"0.5"`, without additional trailing zeros.
**Note:** Since both `valueOf()` and `toString()` are provided, `toString()` will only be invoked implicitly when the object is used in a string context. For instance, when using the plus operator like `"123" + new Fraction`, `valueOf()` will be called first, as JavaScript attempts to combine primitives before concatenating them, with the string type taking precedence. However, `alert(new Fraction)` or `String(new Fraction)` will behave as expected. To ensure specific behavior, explicitly call either `toString()` or `valueOf()`.
### String toLatex(showMixed=false)
Generates an exact LaTeX representation of the actual object. You can see a [live demo](https://raw.org/article/rational-numbers-in-javascript/) on my blog.
The optional boolean parameter indicates if you want to show the a mixed fraction. "1 1/3" instead of "4/3"
### String toFraction(showMixed=false)
Gets a string representation of the fraction
The optional boolean parameter indicates if you want to showa mixed fraction. "1 1/3" instead of "4/3"
### Array toContinued()
Gets an array of the fraction represented as a continued fraction. The first element always contains the whole part.
```javascript
var f = new Fraction('88/33');
var c = f.toContinued(); // [2, 1, 2]
```
### Fraction clone()
Creates a copy of the actual Fraction object
## Exceptions
If a really hard error occurs (parsing error, division by zero), *Fraction.js* throws exceptions! Please make sure you handle them correctly.
## Installation
You can install `Fraction.js` via npm:
```bash
npm install fraction.js
```
Or with yarn:
```bash
yarn add fraction.js
```
Alternatively, download or clone the repository:
```bash
git clone https://github.com/rawify/Fraction.js
```
## Usage
Include the `fraction.min.js` file in your project:
```html
<script src="path/to/fraction.min.js"></script>
<script>
var x = new Fraction("13/4");
</script>
```
Or in a Node.js project:
```javascript
const Fraction = require('fraction.js');
```
or
```javascript
import Fraction from 'fraction.js';
```
## Coding Style
As every library I publish, Fraction.js is also built to be as small as possible after compressing it with Google Closure Compiler in advanced mode. Thus the coding style orientates a little on maxing-out the compression rate. Please make sure you keep this style if you plan to extend the library.
## Building the library
After cloning the Git repository run:
```bash
npm install
npm run build
```
## Run a test
Testing the source against the shipped test suite is as easy as
```bash
npm run test
```
## Copyright and Licensing
Copyright (c) 2025, [Robert Eisele](https://raw.org/)
Licensed under the MIT license.
@@ -0,0 +1,12 @@
import { isoCrypto, isoUint8Array } from './iso/index.js';
/**
* Returns hash digest of the given data, using the given algorithm when provided. Defaults to using
* SHA-256.
*/
export function toHash(data, algorithm = -7) {
if (typeof data === 'string') {
data = isoUint8Array.fromUTF8String(data);
}
const digest = isoCrypto.digest(data, algorithm);
return digest;
}
@@ -0,0 +1 @@
export declare function useInterval(): readonly [(listener: Function, duration: number) => void, () => void];
@@ -0,0 +1 @@
{"version":3,"names":["_temporalUndefined","require","_tdz","_temporalRef","val","name","undef","err"],"sources":["../../src/helpers/temporalRef.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport undef from \"./temporalUndefined.ts\";\nimport err from \"./tdz.ts\";\n\nexport default function _temporalRef<T>(val: T, name: string) {\n return val === undef ? err(name) : val;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAEe,SAASE,YAAYA,CAAIC,GAAM,EAAEC,IAAY,EAAE;EAC5D,OAAOD,GAAG,KAAKE,0BAAK,GAAG,IAAAC,YAAG,EAACF,IAAI,CAAC,GAAGD,GAAG;AACxC","ignoreList":[]}
@@ -0,0 +1,21 @@
type UseIntersectionObserverOptions = {
root?: Element | Document | null;
isEnabled?: boolean;
rootMargin?: string;
threshold?: number | number[];
freezeOnceVisible?: boolean;
onChange?: (isIntersecting: boolean, entry: IntersectionObserverEntry) => void;
initialIsIntersecting?: boolean;
};
type IntersectionReturn = [
(node?: Element | null) => void,
boolean,
IntersectionObserverEntry | undefined
] & {
ref: (node?: Element | null) => void;
isIntersecting: boolean;
entry?: IntersectionObserverEntry;
};
declare function useIntersectionObserver({ threshold, root, rootMargin, isEnabled, freezeOnceVisible, initialIsIntersecting, onChange, }?: UseIntersectionObserverOptions): IntersectionReturn;
export { useIntersectionObserver };
@@ -0,0 +1,43 @@
{{# def.definitions }}
{{# def.errors }}
{{# def.setupKeyword }}
{{# def.setupNextLevel }}
{{? {{# def.nonEmptySchema:$schema }} }}
{{
$it.schema = $schema;
$it.schemaPath = $schemaPath;
$it.errSchemaPath = $errSchemaPath;
}}
var {{=$errs}} = errors;
{{# def.setCompositeRule }}
{{
$it.createErrors = false;
var $allErrorsOption;
if ($it.opts.allErrors) {
$allErrorsOption = $it.opts.allErrors;
$it.opts.allErrors = false;
}
}}
{{= it.validate($it) }}
{{
$it.createErrors = true;
if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
}}
{{# def.resetCompositeRule }}
if ({{=$nextValid}}) {
{{# def.error:'not' }}
} else {
{{# def.resetErrors }}
{{? it.opts.allErrors }} } {{?}}
{{??}}
{{# def.addError:'not' }}
{{? $breakOnError}}
if (false) {
{{?}}
{{?}}
@@ -0,0 +1,45 @@
"use strict"
const { READ } = require("@eslint-community/eslint-utils")
/**
* @satisfies {import('../types.js').SupportVersionTraceMap}
*/
const http2 = {
constants: { [READ]: { supported: ["8.4.0"] } },
sensitiveHeaders: { [READ]: { supported: ["15.0.0", "14.18.0"] } },
createServer: { [READ]: { supported: ["8.4.0"] } },
createSecureServer: { [READ]: { supported: ["8.4.0"] } },
connect: { [READ]: { supported: ["8.4.0"] } },
getDefaultSettings: { [READ]: { supported: ["8.4.0"] } },
getPackedSettings: { [READ]: { supported: ["8.4.0"] } },
getUnpackedSettings: { [READ]: { supported: ["8.4.0"] } },
performServerHandshake: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
Http2Session: { [READ]: { supported: ["8.4.0"] } },
ServerHttp2Session: { [READ]: { supported: ["8.4.0"] } },
ClientHttp2Session: { [READ]: { supported: ["8.4.0"] } },
Http2Stream: { [READ]: { supported: ["8.4.0"] } },
ClientHttp2Stream: { [READ]: { supported: ["8.4.0"] } },
ServerHttp2Stream: { [READ]: { supported: ["8.4.0"] } },
Http2Server: { [READ]: { supported: ["8.4.0"] } },
Http2SecureServer: { [READ]: { supported: ["8.4.0"] } },
Http2ServerRequest: { [READ]: { supported: ["8.4.0"] } },
Http2ServerResponse: { [READ]: { supported: ["8.4.0"] } },
}
/**
* @satisfies {import('../types.js').SupportVersionTraceMap}
*/
module.exports = {
http2: {
[READ]: {
experimental: ["8.4.0"],
supported: ["10.10.0", "8.13.0"],
},
...http2,
},
"node:http2": {
[READ]: { supported: ["14.13.1", "12.20.0"] },
...http2,
},
}
@@ -0,0 +1,558 @@
flf2a$ 5 4 15 0 11 0 8063 200
Author : Christian 'CeeJay' Jensen
Date : 2006/5/19
Version: 0.10 beta
-------------------------------------------------
"Cygnet" - A figfont by CeeJay
A cygnet is a baby swan.
The font is named so because it's based on
the Swan font, only smaller.
-------------------------------------------------
$$ #
$$ #
$$ #
$$ #
$$ ##
.#
|#
'#
o#
##
. .#
| |#
$ $#
$ $#
$ $##
#
_|_|_#
_|_|_#
| | #
##
.. #
.|-.#
`-|.#
`|-'#
##
#
o /#
,' #
/ o#
##
( ) #
.-' #
( `.)#
`--'`#
##
.#
|#
$#
$#
##
,#
:$#
:$#
`.#
##
`.#
$:#
$:#
.'#
##
#
| #
`-:-'#
$/ \$#
##
$ $#
$_|_$#
$ | $#
$ $#
##
#
#
o#
-'#
##
#
$___$#
$ $#
$ $#
$##
#
#
#
o#
##
,#
/ #
/ #
' #
##
#
.-.#
| |#
`-'#
##
#
. #
'| #
'-'#
##
#
,-.#
/ #
'--#
##
#
--.#
--|#
--'#
##
#
,.#
'-|#
'#
##
#
.--#
'-.#
`-'#
##
#
,-#
:-.#
`-'#
##
#
--,#
/ #
' #
##
#
,-.#
:-:#
`-'#
##
#
,-.#
`-;#
' #
##
#
#
o #
o #
##
#
o #
o #
-' #
##
#
.'#
`. #
`#
##
$ $#
$--$#
$--$#
$ $#
##
#
`. #
.`#
' #
##
#
.-.#
-'#
' #
##
#
.-.#
|a'#
`- #
##
#
. #
/_\ #
' '#
##
#
.-.#
|< #
'-'#
##
#
.-#
( #
`-#
##
#
.-.#
| :#
'-'#
##
#
.--#
|- #
'--#
##
#
.--#
|- #
' #
##
#
.-. #
|-. #
'-' #
##
#
. .#
|-|#
' '#
##
#
-.-#
| #
-'-#
##
#
.-.#
;#
`' #
##
#
. .#
|< #
' `#
##
#
. #
| #
'-'#
##
#
. .#
|\/|#
' '#
##
#
. .#
|\|#
' '#
##
#
.-.#
| |#
`-'#
##
#
.-.#
|-'#
' #
##
#
.-.#
|.|#
`-`#
##
#
.-.#
|-'#
'`-#
##
#
.-.#
`-.#
`-'#
##
#
---#
| #
' #
##
#
. .#
| |#
`-'#
##
#
. .#
| |#
` #
##
#
. .#
|/\|#
' '#
##
#
. .#
x #
' '#
##
#
. .#
Y #
' #
##
#
--.#
/ #
'--#
##
.--#
| #
| #
'--#
##
#
\ #
\ #
\#
##
--.#
|#
|#
--'#
##
. #
' `#
#
#
##
#
#
#
___#
##
o #
\#
#
#
##
#
#
.-. #
`-`-#
##
#
. #
|-.#
`-'#
##
#
#
.-#
`-#
##
#
. #
.-| #
`-'-#
##
#
#
.-,#
`'-#
##
#
.-#
-|-#
' #
##
#
#
.-.#
`-|#
`-'##
#
. #
|-. #
' '-#
##
#
.#
.#
'#
##
#
.#
.#
|#
`-'##
#
. #
|_,#
' `#
##
#
. #
| #
'-#
##
#
#
.-.-.#
' ' '#
##
#
#
.-.#
' '#
##
#
#
.-.#
`-'#
##
#
#
.-.#
|-'#
' ##
#
#
.-.#
`-|#
'##
#
#
.-.#
' #
##
#
#
.-#
-'#
##
#
. #
-|-#
'-#
##
#
#
. .#
'-'#
##
#
#
. .#
` #
##
#
#
. . .#
` ` #
##
#
#
._.#
' '#
##
#
#
. .#
'-|#
`-'##
#
#
-,#
'-#
##
#
.-#
< #
`-#
##
.#
|#
|#
|#
'##
#
-. #
>#
-' #
##
#
#
,-. #
`-'#
##
. . #
. #
/_\ #
' '#
##
o o#
.--.#
: :#
`--'#
##
o o#
. .#
: :#
`--'#
##
#
. . #
.-. #
`-`-#
##
#
. .#
.-.#
`-'#
##
#
. .#
. .#
'-'#
##
#
,-.#
|< #
|-'#
' ##
197 LATIN CAPITAL LETTER A WITH RING ABOVE
o #
. #
/_\ #
' '#
##
198 LATIN CAPITAL LETTER AE
#
,--#
/+--#
' '--#
##
216 LATIN CAPITAL LETTER O WITH STROKE
#
.-/#
|/|#
/-'#
##
229 LATIN SMALL LETTER A WITH RING ABOVE
#
o #
.-. #
`-`-#
##
230 LATIN SMALL LETTER AE
#
#
.-.-,#
`-`'-#
##
248 LATIN SMALL LETTER O WITH STROKE
#
#
.-;#
;-'#
##
@@ -0,0 +1,10 @@
function _regeneratorKeys(e) {
var n = Object(e),
r = [];
for (var t in n) r.unshift(t);
return function e() {
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
return e.done = !0, e;
};
}
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,14 @@
/**
* A list-like collection that holds weak references to objects.
* Automatically cleans up dead references when a threshold is met.
*
* FinalizationRegistry is not used here due to it's lack of determinism.
* FinalizationRegsitry callbacks are not guaranteed to be called after an object is garbage collected.
*/
export declare class WeakList<T extends object> implements Iterable<T> {
#private;
constructor();
[Symbol.iterator](): Iterator<T>;
push(value: T): void;
}
//# sourceMappingURL=WeakList.d.ts.map
@@ -0,0 +1,5 @@
import type { CollisionDetection } from './types';
/**
* Returns the rectangles that the pointer is hovering over
*/
export declare const pointerWithin: CollisionDetection;
@@ -0,0 +1 @@
{"mappings":";AAyCA;IACE,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAoCD;;;GAGG;AACH,4BAA4B,KAAK,EAAE,gBAAgB,GAAG,IAAI,OAAO,CAShE;AAmDD,oCAA4B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAYtD;AAED,oCAA4B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAKtD;AAGD,eAAe;AACf,OAAO,MAAM,cAAc,yBAAyB,GAAG,yBAA0G,CAAC;AAgBlK;;;;GAIG;AACH,4BAA4B,OAAO,CAQlC","sources":["packages/@react-aria/ssr/src/packages/@react-aria/ssr/src/SSRProvider.tsx","packages/@react-aria/ssr/src/packages/@react-aria/ssr/src/index.ts","packages/@react-aria/ssr/src/index.ts"],"sourcesContent":[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 {SSRProvider, useSSRSafeId, useIsSSR} from './SSRProvider';\nexport type {SSRProviderProps} from './SSRProvider';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,30 @@
'use strict';
var callBind = require('call-bind-apply-helpers');
var gOPD = require('gopd');
var hasProtoAccessor;
try {
// eslint-disable-next-line no-extra-parens, no-proto
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
} catch (e) {
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
throw e;
}
}
// eslint-disable-next-line no-extra-parens
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
var $Object = Object;
var $getPrototypeOf = $Object.getPrototypeOf;
/** @type {import('./get')} */
module.exports = desc && typeof desc.get === 'function'
? callBind([desc.get])
: typeof $getPrototypeOf === 'function'
? /** @type {import('./get')} */ function getDunder(value) {
// eslint-disable-next-line eqeqeq
return $getPrototypeOf(value == null ? value : $Object(value));
}
: false;
@@ -0,0 +1,261 @@
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <wchar.h>
#include "../src/shared/OsModule.h"
#include "../src/shared/StringUtil.h"
#include "TestUtil.cc"
#include "../src/shared/StringUtil.cc"
#define COUNT_OF(x) (sizeof(x) / sizeof((x)[0]))
// Some of these types and functions are missing from the MinGW headers.
// Others are undocumented.
struct AGENT_CONSOLE_FONT_INFO {
DWORD nFont;
COORD dwFontSize;
};
struct AGENT_CONSOLE_FONT_INFOEX {
ULONG cbSize;
DWORD nFont;
COORD dwFontSize;
UINT FontFamily;
UINT FontWeight;
WCHAR FaceName[LF_FACESIZE];
};
// undocumented XP API
typedef BOOL WINAPI SetConsoleFont_t(
HANDLE hOutput,
DWORD dwFontIndex);
// undocumented XP API
typedef DWORD WINAPI GetNumberOfConsoleFonts_t();
// XP and up
typedef BOOL WINAPI GetCurrentConsoleFont_t(
HANDLE hOutput,
BOOL bMaximumWindow,
AGENT_CONSOLE_FONT_INFO *lpConsoleCurrentFont);
// XP and up
typedef COORD WINAPI GetConsoleFontSize_t(
HANDLE hConsoleOutput,
DWORD nFont);
// Vista and up
typedef BOOL WINAPI GetCurrentConsoleFontEx_t(
HANDLE hConsoleOutput,
BOOL bMaximumWindow,
AGENT_CONSOLE_FONT_INFOEX *lpConsoleCurrentFontEx);
// Vista and up
typedef BOOL WINAPI SetCurrentConsoleFontEx_t(
HANDLE hConsoleOutput,
BOOL bMaximumWindow,
AGENT_CONSOLE_FONT_INFOEX *lpConsoleCurrentFontEx);
#define GET_MODULE_PROC(mod, funcName) \
m_##funcName = reinterpret_cast<funcName##_t*>((mod).proc(#funcName)); \
#define DEFINE_ACCESSOR(funcName) \
funcName##_t &funcName() const { \
ASSERT(valid()); \
return *m_##funcName; \
}
class XPFontAPI {
public:
XPFontAPI() : m_kernel32(L"kernel32.dll") {
GET_MODULE_PROC(m_kernel32, GetCurrentConsoleFont);
GET_MODULE_PROC(m_kernel32, GetConsoleFontSize);
}
bool valid() const {
return m_GetCurrentConsoleFont != NULL &&
m_GetConsoleFontSize != NULL;
}
DEFINE_ACCESSOR(GetCurrentConsoleFont)
DEFINE_ACCESSOR(GetConsoleFontSize)
private:
OsModule m_kernel32;
GetCurrentConsoleFont_t *m_GetCurrentConsoleFont;
GetConsoleFontSize_t *m_GetConsoleFontSize;
};
class UndocumentedXPFontAPI : public XPFontAPI {
public:
UndocumentedXPFontAPI() : m_kernel32(L"kernel32.dll") {
GET_MODULE_PROC(m_kernel32, SetConsoleFont);
GET_MODULE_PROC(m_kernel32, GetNumberOfConsoleFonts);
}
bool valid() const {
return this->XPFontAPI::valid() &&
m_SetConsoleFont != NULL &&
m_GetNumberOfConsoleFonts != NULL;
}
DEFINE_ACCESSOR(SetConsoleFont)
DEFINE_ACCESSOR(GetNumberOfConsoleFonts)
private:
OsModule m_kernel32;
SetConsoleFont_t *m_SetConsoleFont;
GetNumberOfConsoleFonts_t *m_GetNumberOfConsoleFonts;
};
class VistaFontAPI : public XPFontAPI {
public:
VistaFontAPI() : m_kernel32(L"kernel32.dll") {
GET_MODULE_PROC(m_kernel32, GetCurrentConsoleFontEx);
GET_MODULE_PROC(m_kernel32, SetCurrentConsoleFontEx);
}
bool valid() const {
return this->XPFontAPI::valid() &&
m_GetCurrentConsoleFontEx != NULL &&
m_SetCurrentConsoleFontEx != NULL;
}
DEFINE_ACCESSOR(GetCurrentConsoleFontEx)
DEFINE_ACCESSOR(SetCurrentConsoleFontEx)
private:
OsModule m_kernel32;
GetCurrentConsoleFontEx_t *m_GetCurrentConsoleFontEx;
SetCurrentConsoleFontEx_t *m_SetCurrentConsoleFontEx;
};
static std::vector<std::pair<DWORD, COORD> > readFontTable(
XPFontAPI &api, HANDLE conout, DWORD maxCount) {
std::vector<std::pair<DWORD, COORD> > ret;
for (DWORD i = 0; i < maxCount; ++i) {
COORD size = api.GetConsoleFontSize()(conout, i);
if (size.X == 0 && size.Y == 0) {
break;
}
ret.push_back(std::make_pair(i, size));
}
return ret;
}
static void dumpFontTable(HANDLE conout) {
const int kMaxCount = 1000;
XPFontAPI api;
if (!api.valid()) {
printf("dumpFontTable: cannot dump font table -- missing APIs\n");
return;
}
std::vector<std::pair<DWORD, COORD> > table =
readFontTable(api, conout, kMaxCount);
std::string line;
char tmp[128];
size_t first = 0;
while (first < table.size()) {
size_t last = std::min(table.size() - 1, first + 10 - 1);
winpty_snprintf(tmp, "%02u-%02u:",
static_cast<unsigned>(first), static_cast<unsigned>(last));
line = tmp;
for (size_t i = first; i <= last; ++i) {
if (i % 10 == 5) {
line += " - ";
}
winpty_snprintf(tmp, " %2dx%-2d",
table[i].second.X, table[i].second.Y);
line += tmp;
}
printf("%s\n", line.c_str());
first = last + 1;
}
if (table.size() == kMaxCount) {
printf("... stopped reading at %d fonts ...\n", kMaxCount);
}
}
static std::string stringToCodePoints(const std::wstring &str) {
std::string ret = "(";
for (size_t i = 0; i < str.size(); ++i) {
char tmp[32];
winpty_snprintf(tmp, "%X", str[i]);
if (ret.size() > 1) {
ret.push_back(' ');
}
ret += tmp;
}
ret.push_back(')');
return ret;
}
static void dumpFontInfoEx(
const AGENT_CONSOLE_FONT_INFOEX &infoex) {
std::wstring faceName(infoex.FaceName,
winpty_wcsnlen(infoex.FaceName, COUNT_OF(infoex.FaceName)));
cprintf(L"nFont=%u dwFontSize=(%d,%d) "
"FontFamily=0x%x FontWeight=%u FaceName=%ls %hs\n",
static_cast<unsigned>(infoex.nFont),
infoex.dwFontSize.X, infoex.dwFontSize.Y,
infoex.FontFamily, infoex.FontWeight, faceName.c_str(),
stringToCodePoints(faceName).c_str());
}
static void dumpVistaFont(VistaFontAPI &api, HANDLE conout, BOOL maxWindow) {
AGENT_CONSOLE_FONT_INFOEX infoex = {0};
infoex.cbSize = sizeof(infoex);
if (!api.GetCurrentConsoleFontEx()(conout, maxWindow, &infoex)) {
printf("GetCurrentConsoleFontEx call failed\n");
return;
}
dumpFontInfoEx(infoex);
}
static void dumpXPFont(XPFontAPI &api, HANDLE conout, BOOL maxWindow) {
AGENT_CONSOLE_FONT_INFO info = {0};
if (!api.GetCurrentConsoleFont()(conout, maxWindow, &info)) {
printf("GetCurrentConsoleFont call failed\n");
return;
}
printf("nFont=%u dwFontSize=(%d,%d)\n",
static_cast<unsigned>(info.nFont),
info.dwFontSize.X, info.dwFontSize.Y);
}
static void dumpFontAndTable(HANDLE conout) {
VistaFontAPI vista;
if (vista.valid()) {
printf("maxWnd=0: "); dumpVistaFont(vista, conout, FALSE);
printf("maxWnd=1: "); dumpVistaFont(vista, conout, TRUE);
dumpFontTable(conout);
return;
}
UndocumentedXPFontAPI xp;
if (xp.valid()) {
printf("maxWnd=0: "); dumpXPFont(xp, conout, FALSE);
printf("maxWnd=1: "); dumpXPFont(xp, conout, TRUE);
dumpFontTable(conout);
return;
}
printf("setSmallFont: neither Vista nor XP APIs detected -- giving up\n");
dumpFontTable(conout);
}
int main() {
const HANDLE conout = openConout();
const COORD largest = GetLargestConsoleWindowSize(conout);
printf("largestConsoleWindowSize=(%d,%d)\n", largest.X, largest.Y);
dumpFontAndTable(conout);
UndocumentedXPFontAPI xp;
if (xp.valid()) {
printf("GetNumberOfConsoleFonts returned %u\n", xp.GetNumberOfConsoleFonts()());
} else {
printf("The GetNumberOfConsoleFonts API was missing\n");
}
printf("CP=%u OutputCP=%u\n", GetConsoleCP(), GetConsoleOutputCP());
return 0;
}
@@ -0,0 +1,3 @@
export * from './OB11BaseMetaEvent';
export * from './OB11HeartbeatEvent';
export * from './OB11LifeCycleEvent';
@@ -0,0 +1,24 @@
(The MIT License)
Copyright (c) 2012-2014 Federico Romero
Copyright (c) 2012-2014 Isaac Z. Schlueter
Copyright (c) 2014-2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,30 @@
{
"name": "is-promise",
"version": "4.0.0",
"description": "Test whether an object looks like a promises-a+ promise",
"main": "./index.js",
"scripts": {
"test": "node test"
},
"files": [
"index.js",
"index.mjs",
"index.d.ts"
],
"exports": {
".": [
{
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"
},
"./index.js"
]
},
"repository": {
"type": "git",
"url": "https://github.com/then/is-promise.git"
},
"author": "ForbesLindesay",
"license": "MIT"
}
@@ -0,0 +1,15 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $BigInt = GetIntrinsic('%BigInt%', true);
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseNOT
module.exports = function BigIntBitwiseNOT(x) {
if (typeof x !== 'bigint') {
throw new $TypeError('Assertion failed: `x` argument must be a BigInt');
}
return -x - $BigInt(1);
};
@@ -0,0 +1,69 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.1.3](https://github.com/ljharb/safe-array-concat/compare/v1.1.2...v1.1.3) - 2024-12-11
### Commits
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/get-intrinsic`, `@types/tape`, `auto-changelog`, `mock-property`, `tape` [`9452ca7`](https://github.com/ljharb/safe-array-concat/commit/9452ca7dc6e22d89fb1bbf4f604d3e058a6813c0)
- [actions] split out node 10-20, and 20+ [`8166059`](https://github.com/ljharb/safe-array-concat/commit/8166059134d555337faf7574f40c746deaecfa99)
- [Deps] update `call-bind`, `get-intrinsic`, `has-symbols` [`d35014a`](https://github.com/ljharb/safe-array-concat/commit/d35014a2f8240ca70c336ef694744726b03a042b)
- [Refactor] use `call-bound` directly [`0bdddbd`](https://github.com/ljharb/safe-array-concat/commit/0bdddbdbdd887f12ecc58ee9fd1f358ec13560d3)
- [Tests] replace `aud` with `npm audit` [`c62dae0`](https://github.com/ljharb/safe-array-concat/commit/c62dae04b6eb56c460132fdd6e10de432228757e)
- [Dev Deps] add missing peer dep [`4860aae`](https://github.com/ljharb/safe-array-concat/commit/4860aae938375ae69ecf1c8d6caf58632ca57715)
## [v1.1.2](https://github.com/ljharb/safe-array-concat/compare/v1.1.1...v1.1.2) - 2024-03-09
### Commits
- [types] use a generic [`a1d744d`](https://github.com/ljharb/safe-array-concat/commit/a1d744d749033c91f0c108b28ac6dbc6016ecce4)
- [Dev Deps] update `@ljharb/tsconfig`, `set-function-length` [`3d3da0a`](https://github.com/ljharb/safe-array-concat/commit/3d3da0ab110bce21f466381c5d09f93200a20f85)
## [v1.1.1](https://github.com/ljharb/safe-array-concat/compare/v1.1.0...v1.1.1) - 2024-03-09
### Commits
- [types] use shared config [`f509f80`](https://github.com/ljharb/safe-array-concat/commit/f509f80fb2dd9734c309ccb59ca9451c5a5de885)
- [actions] remove redundant finisher; use reusable workflows [`b5f5ff4`](https://github.com/ljharb/safe-array-concat/commit/b5f5ff497976a48e291788b26b741cd4f3d388eb)
- [types] use handwritten d.ts instead of emit [`e717048`](https://github.com/ljharb/safe-array-concat/commit/e717048433b52d3a3240b7c697b5736756ed296e)
- [Dev Deps] update `set-function-length`, `tape` [`dde26a7`](https://github.com/ljharb/safe-array-concat/commit/dde26a7600ebe8ebc8f45d1bf8f1a970175604d8)
- [Deps] update `call-bind`, `get-intrinsic` [`d5d2cde`](https://github.com/ljharb/safe-array-concat/commit/d5d2cde9e5b7179d00d85e007b80b138969c5968)
- [Dev Deps] update `tape` [`9454c5a`](https://github.com/ljharb/safe-array-concat/commit/9454c5a3beacb08200b4b00b7ffa54a572cb76ab)
- [Tests] add `@arethetypeswrong/cli [`00a5243`](https://github.com/ljharb/safe-array-concat/commit/00a5243a5b923ff2b694b3b5ef4ce39027e30f6e)
- [Deps] update `get-intrinsic` [`c935764`](https://github.com/ljharb/safe-array-concat/commit/c9357646c3923a1351dca21f175b2b421dd15da5)
## [v1.1.0](https://github.com/ljharb/safe-array-concat/compare/v1.0.1...v1.1.0) - 2024-01-15
### Commits
- [New] add types [`bd92413`](https://github.com/ljharb/safe-array-concat/commit/bd92413643b2bd0ad62e854172fad129d3899dc1)
- [Dev Deps] update `aud`, `mock-property`, `npmignore`, `set-function-length`, `tape` [`497ffcb`](https://github.com/ljharb/safe-array-concat/commit/497ffcbb271ad61752756ec363ad5b9400e4d367)
- [Deps] update `call-bind`, `get-intrinsic` [`770f870`](https://github.com/ljharb/safe-array-concat/commit/770f8704d3751b947c7f4772d9ee38d8bcdecf44)
- [Dev Deps] update `mock-property`, `tape` [`be76bd9`](https://github.com/ljharb/safe-array-concat/commit/be76bd958fa73607a105122a8770677ecbdf78f0)
- [Tests] use `set-function-length/env` [`89b1167`](https://github.com/ljharb/safe-array-concat/commit/89b116758d91ad521f963cccf056f9a3f0b18c20)
- [meta] add missing npmrc values [`3185cc7`](https://github.com/ljharb/safe-array-concat/commit/3185cc7a6773baf625c65bb58ffb9b7ee5f3306e)
- [meta] add `sideEffects` flag [`df6c7eb`](https://github.com/ljharb/safe-array-concat/commit/df6c7ebca7f2fd2f152fe2c2a2260d21728e70a3)
## [v1.0.1](https://github.com/ljharb/safe-array-concat/compare/v1.0.0...v1.0.1) - 2023-09-05
### Fixed
- [Perf] set `Symbol.isConcatSpreadable` only when required [`#2`](https://github.com/ljharb/safe-array-concat/issues/2)
### Commits
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`c0791b0`](https://github.com/ljharb/safe-array-concat/commit/c0791b00b74e70113921c32d4d1fd494b7e8f555)
- [Deps] update `get-intrinsic` [`7d07ae6`](https://github.com/ljharb/safe-array-concat/commit/7d07ae69d512bb3b6fb2131f1c824b5ffd85af9f)
## v1.0.0 - 2023-04-20
### Commits
- Initial implementation, tests, readme [`31b8e70`](https://github.com/ljharb/safe-array-concat/commit/31b8e709bbba4b01ebc51cc15cdcc7012fe58341)
- Initial commit [`83d38c6`](https://github.com/ljharb/safe-array-concat/commit/83d38c6f4cde453063393482d9129b134d403d0a)
- npm init [`516fdc2`](https://github.com/ljharb/safe-array-concat/commit/516fdc2bef306ec13f98b1f1b49c929b5308907f)
- Only apps should have lockfiles [`9cfa07b`](https://github.com/ljharb/safe-array-concat/commit/9cfa07b9112107b5ba22c74baca8cb80934a09f2)
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=isAnyAncestorBindingConstraintsWithName.spec.d.ts.map
@@ -0,0 +1,842 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.DateManip = {}));
})(this, function(exports2) {
"use strict";
const MS_IN_SECOND = 1e3;
const MS_IN_MINUTE = 6e4;
const MS_IN_HOUR = 36e5;
const MS_IN_DAY = 864e5;
const rangeOfUnits = [
"time",
"year",
"month",
"date",
"day",
"hour",
"minute",
"second",
"millisecond",
"utcOffset"
];
function addMilliseconds(date, ms) {
date.setTime(+date + ms);
return date;
}
function addDays(date, days) {
return addMilliseconds(date, days * MS_IN_DAY);
}
function addHours(date, hours) {
return addMilliseconds(date, hours * MS_IN_HOUR);
}
function addMinutes(date, minutes) {
return addMilliseconds(date, minutes * MS_IN_MINUTE);
}
function isLeapYear$1(year) {
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
}
const arr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
const arr2 = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function daysOfYear(year) {
return isLeapYear$1(year) ? arr2 : arr;
}
function daysInMonth(date) {
return daysOfYear(date.getFullYear())[date.getMonth()];
}
function addMonths(date, months) {
const expectedMonth = date.getMonth() + months;
const tempMaxDay = daysInMonth(new Date(date.getFullYear(), expectedMonth, 1, 0, 0, 0, 0));
const currentDay = date.getDate();
date.setMonth(expectedMonth, currentDay > tempMaxDay ? tempMaxDay : currentDay);
return date;
}
function addSeconds(date, seconds) {
return addMilliseconds(date, seconds * MS_IN_SECOND);
}
function addYears(date, years) {
return addMonths(date, years * 12);
}
const units = rangeOfUnits.reduce((acc, unit) => {
acc[unit.toUpperCase()] = unit;
return acc;
}, {});
const { DATE: DATE$5, DAY: DAY$6, HOUR: HOUR$7, MILLISECOND: MILLISECOND$3, MINUTE: MINUTE$7, MONTH: MONTH$7, SECOND: SECOND$7, TIME: TIME$1, YEAR: YEAR$7 } = units;
const compatUnits = {};
function mapUnit(key, ...args) {
for (let i = 0; i < arguments.length; i++) {
compatUnits[arguments[i]] = key;
}
}
mapUnit(YEAR$7, "Y", "y", "years");
mapUnit(MONTH$7, "M", "months");
mapUnit(DATE$5, "D", "dates");
mapUnit(DAY$6, "d", "days");
mapUnit(HOUR$7, "h", "hours");
mapUnit(MINUTE$7, "m", "minutes");
mapUnit(SECOND$7, "s", "seconds");
mapUnit(MILLISECOND$3, "ms", "milliseconds");
mapUnit(TIME$1, "t");
function normalizeUnit(u) {
return compatUnits[u];
}
const { DAY: DAY$1$1, HOUR: HOUR$1$1, MINUTE: MINUTE$1$1, MONTH: MONTH$1$1, SECOND: SECOND$1$1, YEAR: YEAR$1$1 } = units;
function addNumber(date, num, unit) {
unit = normalizeUnit(unit);
switch (unit) {
case YEAR$1$1:
return addYears(date, num);
case MONTH$1$1:
return addMonths(date, num);
case DAY$1$1:
return addDays(date, num);
case HOUR$1$1:
return addHours(date, num);
case MINUTE$1$1:
return addMinutes(date, num);
case SECOND$1$1:
return addSeconds(date, num);
default:
return addMilliseconds(date, num);
}
}
const { DAY: DAY$5, HOUR: HOUR$6, MINUTE: MINUTE$6, MONTH: MONTH$6, SECOND: SECOND$6, YEAR: YEAR$6 } = units;
function addObject(date, obj, times) {
let time = 0;
let expectedMonth = 0;
let expectedDay = 0;
Object.entries(obj).forEach(([unit, num]) => {
unit = normalizeUnit(unit);
num *= times;
switch (unit) {
case YEAR$6:
expectedMonth += num * 12;
return;
case MONTH$6:
expectedMonth += date.getMonth() + num;
return;
case DAY$5:
expectedDay = num;
return;
case HOUR$6:
num *= MS_IN_HOUR;
break;
case MINUTE$6:
num *= MS_IN_MINUTE;
break;
case SECOND$6:
num *= MS_IN_SECOND;
break;
}
time += num;
});
if (expectedMonth) {
const tempMaxDay = daysInMonth(new Date(date.getFullYear(), expectedMonth, 1, 0, 0, 0, 0));
const currentDay = date.getDate();
date.setMonth(expectedMonth, (currentDay > tempMaxDay ? tempMaxDay : currentDay) + expectedDay);
}
return addMilliseconds(date, time);
}
function add(date, num, unit) {
return typeof num === "object" && num !== null ? addObject(date, num, 1) : addNumber(date, num, unit);
}
const { YEAR: YEAR$5, MONTH: MONTH$5, DATE: DATE$4, HOUR: HOUR$5, MINUTE: MINUTE$5, SECOND: SECOND$5, MILLISECOND: MILLISECOND$2, UTC_OFFSET: UTC_OFFSET$1 } = units;
function escapeRegex(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
const TOKEN_MAP = {
YYYY: { pattern: "(\\d{1,4})", key: YEAR$5 },
// 年份
// YY: { pattern: '(\\d{1,2})', key: YEAR }, // 年份
MM: { pattern: "(\\d{1,2})", key: MONTH$5 },
// 月份
DD: { pattern: "(\\d{1,2})", key: DATE$4 },
// 日期
HH: { pattern: "(\\d{1,2})", key: HOUR$5 },
// 小时
mm: { pattern: "(\\d{1,2})", key: MINUTE$5 },
// 分钟
ss: { pattern: "(\\d{1,2})", key: SECOND$5 },
// 秒
SSS: { pattern: "(\\d{1,3})", key: MILLISECOND$2 },
// 毫秒
Z: { pattern: "(Z|[+-]\\d{2}(?::?\\d{2})?)", key: UTC_OFFSET$1 }
// 时区
};
const TOKEN_KEYS = Object.keys(TOKEN_MAP).sort((a, b) => b.length - a.length);
const TOKEN_PATTERN = new RegExp(`(${TOKEN_KEYS.join("|")})`, "g");
function compile(formatString) {
const matchedTokens = [];
const pattern2 = escapeRegex(formatString).replace(TOKEN_PATTERN, (m) => {
matchedTokens.push(m);
return TOKEN_MAP[m].pattern;
});
return { pattern: pattern2, tokens: matchedTokens };
}
function dayOfYear(date, val) {
const monthDays = daysOfYear(date.getFullYear());
const currentMonth = date.getMonth();
let dayCount = date.getDate();
for (let i = 0; i < currentMonth; i++) {
dayCount += monthDays[i];
}
if (val === void 0) {
return dayCount;
}
date.setTime(+date + (val - dayCount) * MS_IN_DAY);
return date;
}
function absFloor(v) {
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
}
const BASIC_ISO_REGEX = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
const EXTENDED_ISO_REGEX = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
const ISO_TIMES_REGEX = [
/(\d\d):(\d\d):(\d\d)\.(\d+)/,
// 'HH:mm:ss.SSSS'
/(\d\d):(\d\d):(\d\d),(\d+)/,
// 'HH:mm:ss,SSSS'
/(\d\d):(\d\d):(\d\d)/,
// 'HH:mm:ss'
/(\d\d):(\d\d)/,
// 'HH:mm'
/(\d\d)(\d\d)(\d\d)\.(\d+)/,
// 'HHmmss.SSSS'
/(\d\d)(\d\d)(\d\d),(\d+)/,
// 'HHmmss,SSSS'
/(\d\d)(\d\d)(\d\d)/,
// 'HHmmss'
/(\d\d)(\d\d)/,
// 'HHmm'
/(\d\d)/
// 'HH'
];
const TZ_REGEX = /(Z)|([+-]\d\d)(?::?(\d\d))?/;
const ISO_DATES_REGEX = [
/(\d{4})-(\d\d)-(\d\d)/,
// 'YYYY-MM-DD'
/(\d{4})-(\d\d)/,
// 'YYYY-MM'
/(\d{4})(\d\d)(\d\d)/,
// 'YYYYMMDD'
/(\d{4})(\d\d)/,
// 'YYYYMM'
/(\d{4})/
// 'YYYY'
];
function autoExtract(input) {
const dateRet = new Array(8);
let matches;
const match = EXTENDED_ISO_REGEX.exec(input) || BASIC_ISO_REGEX.exec(input);
if (match) {
const datesLen = ISO_DATES_REGEX.length;
for (let i = 0; i < datesLen; i++) {
if (matches = ISO_DATES_REGEX[i].exec(match[1])) {
for (let j = 0; j < 3; j++) {
const matched = matches[j + 1];
dateRet[j] = matched ? +matched : 1;
}
if (dateRet[1]) {
dateRet[1] -= 1;
}
break;
}
}
matches = null;
if (match[3]) {
for (let i = 0, timesLen = ISO_TIMES_REGEX.length; i < timesLen; i++) {
if (matches = ISO_TIMES_REGEX[i].exec(match[3])) {
if (matches[4]) {
matches[4] = matches[4].padEnd(3, "00");
}
for (let j = 1, len = matches.length; j < len; j++) {
dateRet[j + 2] = +matches[j];
}
break;
}
}
}
matches = null;
if (match[4]) {
matches = TZ_REGEX.exec(match[4]);
if (matches) {
dateRet[7] = matches[1] ? NaN : +matches[2] * 60 + (matches[3] ? +matches[3] : 0);
}
}
return dateRet;
}
return input;
}
function createDate(y, m, d, h, minute, s, ms) {
let date;
if (y < 100 && y >= 0) {
date = new Date(y + 400, m, d, h, minute, s, ms);
if (isFinite(date.getFullYear())) {
date.setFullYear(y);
}
} else {
date = new Date(y, m, d, h, minute, s, ms);
}
return date;
}
function createUTCDate(y, m, d, h, minute, s, ms) {
let date;
if (y < 100 && y >= 0) {
y += 400;
date = new Date(Date.UTC(y, m, d, h, minute, s, ms));
if (isFinite(date.getUTCFullYear())) {
date.setUTCFullYear(y);
}
} else {
date = new Date(Date.UTC(y, m, d, h, minute, s, ms));
}
return date;
}
function createFromArray(input) {
const utcOffset = input[7];
const currentDate = /* @__PURE__ */ new Date();
const isUTC = Number.isNaN(utcOffset);
const flag = isUTC ? "UTC" : "";
const currentStuffing = [
currentDate[`get${flag}FullYear`](),
currentDate[`get${flag}Month`](),
currentDate[`get${flag}Date`]()
];
let i = 0;
const array = new Array(7);
for (; i < 3 && input[i] == null; ++i) {
array[i] = currentStuffing[i];
}
for (; i < 7; i++) {
array[i] = input[i] == null ? 0 : input[i];
}
let day = array[2];
if (day === 0) {
day = 1;
}
let minute = array[4];
if (!isUTC && typeof utcOffset === "number") {
minute -= utcOffset + currentDate.getTimezoneOffset();
}
return (isUTC ? createUTCDate : createDate)(
array[0],
array[1],
day,
array[3],
minute,
array[5],
array[6]
);
}
function toInteger(val) {
return parseInt(val, 10);
}
function toMonth(val) {
return parseInt(val, 10) - 1;
}
function toMilliseconds(val) {
return parseInt(val.padEnd(3, "0"), 10);
}
function parseTimezone(val) {
if (val === "Z") {
return NaN;
}
const matches = TZ_REGEX.exec(val);
return +matches[2] * 60 + (matches[3] ? +matches[3] : 0);
}
function extractWithFormat(input, format2) {
const { pattern: pattern2, tokens: tokens2 } = compile(format2);
const match = new RegExp(pattern2).exec(input);
if (!match) {
return "";
}
const parts = [];
tokens2.forEach((token, i) => {
const value = match[i + 1];
switch (token) {
case "YYYY":
parts[0] = toInteger(value);
break;
// case 'YY':
// parts[0] = toInteger(value);
// break;
case "MM":
parts[1] = toMonth(value);
break;
case "DD":
parts[2] = toInteger(value);
break;
case "HH":
parts[3] = toInteger(value);
break;
case "mm":
parts[4] = toInteger(value);
break;
case "ss":
parts[5] = toInteger(value);
break;
case "SSS":
parts[6] = toMilliseconds(value);
break;
case "Z":
parts[7] = parseTimezone(value);
break;
}
});
return parts;
}
const { DATE: DATE$3, DAY: DAY$4, HOUR: HOUR$4, MILLISECOND: MILLISECOND$1, MINUTE: MINUTE$4, MONTH: MONTH$4, SECOND: SECOND$4, YEAR: YEAR$4, UTC_OFFSET } = units;
const ASP_NET_JSON_REGEX = /^\/?Date\((-?\d+)/i;
function ensureType(value, checked) {
return checked;
}
function parseObject(obj) {
const array = [];
Object.entries(obj).forEach(([unit, value]) => {
unit = normalizeUnit(unit);
switch (unit) {
case YEAR$4:
array[0] = value;
break;
case MONTH$4:
array[1] = value;
break;
case DATE$3:
case DAY$4:
array[2] = value;
break;
case HOUR$4:
array[3] = value;
break;
case MINUTE$4:
array[4] = value;
break;
case SECOND$4:
array[5] = value;
break;
case MILLISECOND$1:
array[6] = value;
break;
case UTC_OFFSET:
array[7] = value;
break;
}
});
if (array.length === 0) {
return /* @__PURE__ */ new Date();
}
return createFromArray(array);
}
function parseString(input, format2) {
const extracted = typeof format2 === "string" && format2 ? extractWithFormat(input, format2) : autoExtract(input);
if (Array.isArray(extracted)) {
return createFromArray(extracted);
}
const matched = ASP_NET_JSON_REGEX.exec(input);
return new Date(matched !== null ? +matched[1] : Date.parse(extracted));
}
function parse(input, format2) {
let ret;
const whatType = typeof input;
if (ensureType(input, whatType === "string")) {
ret = parseString(input, format2);
} else if (Array.isArray(input)) {
ret = createFromArray(input);
} else if (input instanceof Date) {
ret = new Date(input);
} else if (ensureType(input, whatType === "object" && input !== null)) {
if (input.isValid && input.isValid()) {
ret = /* @__PURE__ */ new Date(+input);
} else {
ret = parseObject(input);
}
} else if (ensureType(input, whatType === "number")) {
ret = new Date(input);
} else if (ensureType(input, whatType === "undefined")) {
ret = format2 ? /* @__PURE__ */ new Date(NaN) : /* @__PURE__ */ new Date();
} else {
ret = new Date(Date.parse(input));
}
return ret;
}
function diffInDays(date, input, asFloat) {
const parsed = parse(input);
const output = (+date - +parsed) / MS_IN_DAY;
return asFloat ? output : absFloor(output);
}
function diffInHours(date, input, asFloat) {
const parsed = parse(input);
const output = (+date - +parsed) / MS_IN_HOUR;
return asFloat ? output : absFloor(output);
}
function diffInMilliseconds(date, input, asFloat) {
const parsed = parse(input);
const output = +date - +parsed;
return asFloat ? output : absFloor(output);
}
function diffInMinutes(date, input, asFloat) {
const parsed = parse(input);
const output = (+date - +parsed) / MS_IN_MINUTE;
return asFloat ? output : absFloor(output);
}
function monthDiff(a, b) {
const aTime = +a;
const bTime = +b;
if (aTime < bTime) {
return -monthDiff(b, a);
}
const wholeMonthDiff = (b.getFullYear() - a.getFullYear()) * 12 + (b.getMonth() - a.getMonth());
const anchor = +addMonths(new Date(aTime), wholeMonthDiff);
let anchor2;
let adjust;
if (bTime < anchor) {
anchor2 = +addMonths(new Date(aTime), wholeMonthDiff - 1);
adjust = (bTime - anchor) / (anchor - anchor2);
} else {
anchor2 = +addMonths(new Date(aTime), wholeMonthDiff + 1);
adjust = (bTime - anchor) / (anchor2 - anchor);
}
return -(wholeMonthDiff + adjust) || 0;
}
function diffInMonths(date, input, asFloat) {
const parsed = parse(input);
const output = monthDiff(date, parsed);
return asFloat ? output : absFloor(output);
}
function diffInSeconds(date, input, asFloat) {
const parsed = parse(input);
const output = (+date - +parsed) / MS_IN_SECOND;
return asFloat ? output : absFloor(output);
}
function diffInYears(date, input, asFloat) {
const parsed = parse(input);
const output = monthDiff(date, parsed) / 12;
return asFloat ? output : absFloor(output);
}
const {
DAY: DAY$3,
HOUR: HOUR$3,
MINUTE: MINUTE$3,
MONTH: MONTH$3,
SECOND: SECOND$3,
YEAR: YEAR$3
} = units;
function diff(date, input, unit, asFloat) {
unit = normalizeUnit(unit);
switch (unit) {
case YEAR$3:
return diffInYears(date, input, asFloat);
case MONTH$3:
return diffInMonths(date, input, asFloat);
// case DATE:
case DAY$3:
return diffInDays(date, input, asFloat);
case HOUR$3:
return diffInHours(date, input, asFloat);
case MINUTE$3:
return diffInMinutes(date, input, asFloat);
case SECOND$3:
return diffInSeconds(date, input, asFloat);
default:
return diffInMilliseconds(date, input, asFloat);
}
}
function startOfDate(date, y, m, d) {
return +new Date(
y || date.getFullYear(),
m == null ? date.getMonth() : m,
d || date.getDate()
);
}
function startOfTime(date, ms) {
const input = +date;
return input - input % ms;
}
const { DATE: DATE$2, DAY: DAY$2, HOUR: HOUR$2, MINUTE: MINUTE$2, MONTH: MONTH$2, SECOND: SECOND$2, YEAR: YEAR$2 } = units;
function endOf(date, unit) {
unit = normalizeUnit(unit);
let time = 0;
switch (unit) {
case YEAR$2:
time = startOfDate(date, date.getFullYear() + 1, 0, 1) - 1;
break;
case MONTH$2:
time = startOfDate(date, void 0, date.getMonth() + 1, 1) - 1;
break;
case DATE$2:
case DAY$2:
time = startOfDate(date) + MS_IN_DAY - 1;
break;
case HOUR$2:
time = startOfTime(date, MS_IN_HOUR) + MS_IN_HOUR - 1;
break;
case MINUTE$2:
time = startOfTime(date, MS_IN_MINUTE) + MS_IN_MINUTE - 1;
break;
case SECOND$2:
time = startOfTime(date, MS_IN_SECOND) + MS_IN_SECOND - 1;
break;
}
time && date.setTime(time);
return date;
}
function padLeft(val, len) {
return String(val).padStart(len || 2, "0");
}
function dateTimeFormat(date, opts) {
return new Intl.DateTimeFormat("en-US", opts).format(date);
}
function getOrdinalSuffix(day) {
if (day > 3 && day < 21) {
return "th";
}
switch (day % 10) {
case 1:
return "st";
case 2:
return "nd";
case 3:
return "rd";
default:
return "th";
}
}
function timezone(date, together) {
let offset = date.getTimezoneOffset();
let prefix;
if (offset <= 0) {
prefix = "+";
offset = Math.abs(offset);
} else {
prefix = "-";
}
return `${prefix}${padLeft(Math.floor(offset / 60))}${together ? "" : ":"}${padLeft(Math.floor(offset % 60))}`;
}
const FORMAT_MAP = {
// 年份
yyyy: (d) => d.getFullYear(),
YYYY: (d) => d.getFullYear(),
YY: (d) => padLeft(d.getFullYear() % 100),
// 月份
MMMM: (d) => dateTimeFormat(d, { month: "long" }),
MMM: (d) => dateTimeFormat(d, { month: "short" }),
MM: (d) => padLeft(d.getMonth() + 1),
M: (d) => d.getMonth() + 1,
// 日期
DD: (d) => padLeft(d.getDate()),
D: (d) => d.getDate(),
Do: (d) => {
const day = d.getDate();
return String(day) + getOrdinalSuffix(day);
},
// 星期
dddd: (d) => dateTimeFormat(d, { weekday: "long" }),
ddd: (d) => dateTimeFormat(d, { weekday: "short" }),
dd: (d) => dateTimeFormat(d, { weekday: "narrow" }),
// 时间
HH: (d) => padLeft(d.getHours()),
H: (d) => d.getHours(),
hh: (d) => padLeft(d.getHours() % 12 || 12),
h: (d) => d.getHours() % 12 || 12,
mm: (d) => padLeft(d.getMinutes()),
m: (d) => d.getMinutes(),
ss: (d) => padLeft(d.getSeconds()),
s: (d) => d.getSeconds(),
SSS: (d) => padLeft(d.getMilliseconds(), 3),
// 其他
A: (d) => d.getHours() >= 12 ? "PM" : "AM",
a: (d) => d.getHours() >= 12 ? "pm" : "am",
Z: (d) => timezone(d),
ZZ: (d) => timezone(d, true)
};
const tokens = Object.keys(FORMAT_MAP).sort((a, b) => b.length - a.length).join("|");
const pattern = new RegExp(
`${tokens}|\\[([^\\]]*)]`,
"g"
);
function format(date, formatString) {
if (!formatString || formatString === "ISO") {
return date.toISOString();
}
return formatString.replace(pattern, (match, escapeContent) => {
if (escapeContent) {
return escapeContent;
}
const formatter = FORMAT_MAP[match];
return formatter ? formatter(date) : match;
});
}
const { DATE: DATE$1, DAY: DAY$1, HOUR: HOUR$1, MILLISECOND, MINUTE: MINUTE$1, MONTH: MONTH$1, SECOND: SECOND$1, TIME, YEAR: YEAR$1 } = units;
const mapping = {
[YEAR$1]: "FullYear",
[MONTH$1]: "Month",
[DATE$1]: "Date",
[DAY$1]: "Day",
[HOUR$1]: "Hours",
[MINUTE$1]: "Minutes",
[SECOND$1]: "Seconds",
[MILLISECOND]: "Milliseconds",
[TIME]: "Time"
};
const setting = {};
const getting = {};
Object.entries(mapping).forEach(([key, method]) => {
if (key === DAY$1) {
setting[key] = function(date, val) {
const day = date.getDay();
if (val !== day) {
date.setTime(+date + (val - day) * MS_IN_DAY);
}
};
} else {
setting[key] = function(date, val) {
date[`set${method}`](val);
};
}
getting[key] = function(date) {
return date[`get${method}`]();
};
});
function get(date, unit) {
const fn = getting[normalizeUnit(unit)];
return fn ? fn(date) : 0;
}
function set(date, unit, val) {
const fn = setting[normalizeUnit(unit)];
fn && fn(date, val);
return date;
}
const { DATE, DAY, HOUR, MINUTE, MONTH, SECOND, YEAR } = units;
function startOf(date, unit) {
unit = normalizeUnit(unit);
let time = 0;
switch (unit) {
case YEAR:
time = startOfDate(date, void 0, 0, 1);
break;
case MONTH:
time = startOfDate(date, void 0, void 0, 1);
break;
case DATE:
case DAY:
time = startOfDate(date);
break;
case HOUR:
time = startOfTime(date, MS_IN_HOUR);
break;
case MINUTE:
time = startOfTime(date, MS_IN_MINUTE);
break;
case SECOND:
time = startOfTime(date, MS_IN_SECOND);
break;
}
time && date.setTime(time);
return date;
}
function isAfter(date, input, unit) {
unit = normalizeUnit(unit);
const inputMs = +parse(input);
if (!unit) {
return +date > inputMs;
}
return +startOf(new Date(date), unit) > inputMs;
}
function isBefore(date, input, unit) {
unit = normalizeUnit(unit);
const inputMs = +parse(input);
if (!unit) {
return +date < inputMs;
}
return +endOf(new Date(date), unit) < inputMs;
}
function isBetween(date, from, to, unit, inclusivity) {
inclusivity = inclusivity || "()";
return (inclusivity.startsWith("(") ? isAfter(date, from, unit) : !isBefore(date, from, unit)) && (inclusivity.charAt(1) === ")" ? isBefore(date, to, unit) : !isAfter(date, to, unit));
}
function isLeapYear(date) {
return isLeapYear$1(date.getFullYear());
}
function isSame(date, input, unit) {
unit = normalizeUnit(unit);
const inputMs = +parse(input);
if (!unit) {
return +date === inputMs;
}
return +startOf(new Date(date), unit) <= inputMs && inputMs <= +endOf(new Date(date), unit);
}
function isSameOrAfter(date, input, unit) {
return !isBefore(date, input, unit);
}
function isSameOrBefore(date, input, unit) {
return !isAfter(date, input, unit);
}
function isValid(date) {
return date.toString() !== "Invalid Date";
}
function subDays(date, days) {
return addDays(date, -days);
}
function subHours(date, hours) {
return addHours(date, -hours);
}
function subMilliseconds(date, ms) {
return addMilliseconds(date, -ms);
}
function subMinutes(date, minutes) {
return addMinutes(date, -minutes);
}
function subMonths(date, months) {
return addMonths(date, -months);
}
function subSeconds(date, seconds) {
return addSeconds(date, -seconds);
}
function subYears(date, years) {
return addMonths(date, -years * 12);
}
function subtract(date, num, unit) {
return typeof num === "object" && num !== null ? addObject(date, num, -1) : addNumber(date, -num, unit);
}
exports2.add = add;
exports2.addDays = addDays;
exports2.addHours = addHours;
exports2.addMilliseconds = addMilliseconds;
exports2.addMinutes = addMinutes;
exports2.addMonths = addMonths;
exports2.addSeconds = addSeconds;
exports2.addYears = addYears;
exports2.compile = compile;
exports2.dayOfYear = dayOfYear;
exports2.daysInMonth = daysInMonth;
exports2.diff = diff;
exports2.diffInDays = diffInDays;
exports2.diffInHours = diffInHours;
exports2.diffInMilliseconds = diffInMilliseconds;
exports2.diffInMinutes = diffInMinutes;
exports2.diffInMonths = diffInMonths;
exports2.diffInSeconds = diffInSeconds;
exports2.diffInYears = diffInYears;
exports2.endOf = endOf;
exports2.format = format;
exports2.get = get;
exports2.isAfter = isAfter;
exports2.isBefore = isBefore;
exports2.isBetween = isBetween;
exports2.isLeapYear = isLeapYear;
exports2.isSame = isSame;
exports2.isSameOrAfter = isSameOrAfter;
exports2.isSameOrBefore = isSameOrBefore;
exports2.isValid = isValid;
exports2.parse = parse;
exports2.set = set;
exports2.startOf = startOf;
exports2.subDays = subDays;
exports2.subHours = subHours;
exports2.subMilliseconds = subMilliseconds;
exports2.subMinutes = subMinutes;
exports2.subMonths = subMonths;
exports2.subSeconds = subSeconds;
exports2.subYears = subYears;
exports2.subtract = subtract;
exports2.units = units;
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
});
@@ -0,0 +1,110 @@
import $5FSX7$arAEmodulejs from "./ar-AE.mjs";
import $5FSX7$bgBGmodulejs from "./bg-BG.mjs";
import $5FSX7$csCZmodulejs from "./cs-CZ.mjs";
import $5FSX7$daDKmodulejs from "./da-DK.mjs";
import $5FSX7$deDEmodulejs from "./de-DE.mjs";
import $5FSX7$elGRmodulejs from "./el-GR.mjs";
import $5FSX7$enUSmodulejs from "./en-US.mjs";
import $5FSX7$esESmodulejs from "./es-ES.mjs";
import $5FSX7$etEEmodulejs from "./et-EE.mjs";
import $5FSX7$fiFImodulejs from "./fi-FI.mjs";
import $5FSX7$frFRmodulejs from "./fr-FR.mjs";
import $5FSX7$heILmodulejs from "./he-IL.mjs";
import $5FSX7$hrHRmodulejs from "./hr-HR.mjs";
import $5FSX7$huHUmodulejs from "./hu-HU.mjs";
import $5FSX7$itITmodulejs from "./it-IT.mjs";
import $5FSX7$jaJPmodulejs from "./ja-JP.mjs";
import $5FSX7$koKRmodulejs from "./ko-KR.mjs";
import $5FSX7$ltLTmodulejs from "./lt-LT.mjs";
import $5FSX7$lvLVmodulejs from "./lv-LV.mjs";
import $5FSX7$nbNOmodulejs from "./nb-NO.mjs";
import $5FSX7$nlNLmodulejs from "./nl-NL.mjs";
import $5FSX7$plPLmodulejs from "./pl-PL.mjs";
import $5FSX7$ptBRmodulejs from "./pt-BR.mjs";
import $5FSX7$ptPTmodulejs from "./pt-PT.mjs";
import $5FSX7$roROmodulejs from "./ro-RO.mjs";
import $5FSX7$ruRUmodulejs from "./ru-RU.mjs";
import $5FSX7$skSKmodulejs from "./sk-SK.mjs";
import $5FSX7$slSImodulejs from "./sl-SI.mjs";
import $5FSX7$srSPmodulejs from "./sr-SP.mjs";
import $5FSX7$svSEmodulejs from "./sv-SE.mjs";
import $5FSX7$trTRmodulejs from "./tr-TR.mjs";
import $5FSX7$ukUAmodulejs from "./uk-UA.mjs";
import $5FSX7$zhCNmodulejs from "./zh-CN.mjs";
import $5FSX7$zhTWmodulejs from "./zh-TW.mjs";
var $2cbb7ca666678a14$exports = {};
$2cbb7ca666678a14$exports = {
"ar-AE": $5FSX7$arAEmodulejs,
"bg-BG": $5FSX7$bgBGmodulejs,
"cs-CZ": $5FSX7$csCZmodulejs,
"da-DK": $5FSX7$daDKmodulejs,
"de-DE": $5FSX7$deDEmodulejs,
"el-GR": $5FSX7$elGRmodulejs,
"en-US": $5FSX7$enUSmodulejs,
"es-ES": $5FSX7$esESmodulejs,
"et-EE": $5FSX7$etEEmodulejs,
"fi-FI": $5FSX7$fiFImodulejs,
"fr-FR": $5FSX7$frFRmodulejs,
"he-IL": $5FSX7$heILmodulejs,
"hr-HR": $5FSX7$hrHRmodulejs,
"hu-HU": $5FSX7$huHUmodulejs,
"it-IT": $5FSX7$itITmodulejs,
"ja-JP": $5FSX7$jaJPmodulejs,
"ko-KR": $5FSX7$koKRmodulejs,
"lt-LT": $5FSX7$ltLTmodulejs,
"lv-LV": $5FSX7$lvLVmodulejs,
"nb-NO": $5FSX7$nbNOmodulejs,
"nl-NL": $5FSX7$nlNLmodulejs,
"pl-PL": $5FSX7$plPLmodulejs,
"pt-BR": $5FSX7$ptBRmodulejs,
"pt-PT": $5FSX7$ptPTmodulejs,
"ro-RO": $5FSX7$roROmodulejs,
"ru-RU": $5FSX7$ruRUmodulejs,
"sk-SK": $5FSX7$skSKmodulejs,
"sl-SI": $5FSX7$slSImodulejs,
"sr-SP": $5FSX7$srSPmodulejs,
"sv-SE": $5FSX7$svSEmodulejs,
"tr-TR": $5FSX7$trTRmodulejs,
"uk-UA": $5FSX7$ukUAmodulejs,
"zh-CN": $5FSX7$zhCNmodulejs,
"zh-TW": $5FSX7$zhTWmodulejs
};
export {$2cbb7ca666678a14$exports as default};
//# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1,36 @@
import type NameManager from "../NameManager";
import type TokenProcessor from "../TokenProcessor";
import Transformer from "./Transformer";
/**
* Transformer supporting the optional chaining and nullish coalescing operators.
*
* Tech plan here:
* https://github.com/alangpierce/sucrase/wiki/Sucrase-Optional-Chaining-and-Nullish-Coalescing-Technical-Plan
*
* The prefix and suffix code snippets are handled by TokenProcessor, and this transformer handles
* the operators themselves.
*/
export default class OptionalChainingNullishTransformer extends Transformer {
readonly tokens: TokenProcessor;
readonly nameManager: NameManager;
constructor(tokens: TokenProcessor, nameManager: NameManager);
process(): boolean;
/**
* Determine if the current token is the last of its chain, so that we know whether it's eligible
* to have a delete op inserted.
*
* We can do this by walking forward until we determine one way or another. Each
* isOptionalChainStart token must be paired with exactly one isOptionalChainEnd token after it in
* a nesting way, so we can track depth and walk to the end of the chain (the point where the
* depth goes negative) and see if any other subscript token is after us in the chain.
*/
isLastSubscriptInChain(): boolean;
/**
* Determine if we are the open-paren in an expression like super.a()?.b.
*
* We can do this by walking backward to find the previous subscript. If that subscript was
* preceded by a super, then we must be the subscript after it, so if this is a call expression,
* we'll need to attach the right context.
*/
justSkippedSuper(): boolean;
}
@@ -0,0 +1 @@
{"version":3,"file":"isScopedBinding.d.ts","sourceRoot":"","sources":["../../../../src/binding/calculations/isScopedBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B,wBAAgB,eAAe,CAAC,CAAC,EAC/B,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAClB,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC,CAKrE"}
@@ -0,0 +1,201 @@
# cssesc [![Build status](https://travis-ci.org/mathiasbynens/cssesc.svg?branch=master)](https://travis-ci.org/mathiasbynens/cssesc) [![Code coverage status](https://img.shields.io/codecov/c/github/mathiasbynens/cssesc.svg)](https://codecov.io/gh/mathiasbynens/cssesc)
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
This is a JavaScript library for [escaping text for use in CSS strings or identifiers](https://mathiasbynens.be/notes/css-escapes) while generating the shortest possible valid ASCII-only output. [Here’s an online demo.](https://mothereff.in/css-escapes)
[A polyfill for the CSSOM `CSS.escape()` method is available in a separate repository.](https://mths.be/cssescape) (In comparison, _cssesc_ is much more powerful.)
Feel free to fork if you see possible improvements!
## Installation
Via [npm](https://www.npmjs.com/):
```bash
npm install cssesc
```
In a browser:
```html
<script src="cssesc.js"></script>
```
In [Node.js](https://nodejs.org/):
```js
const cssesc = require('cssesc');
```
In Ruby using [the `ruby-cssesc` wrapper gem](https://github.com/borodean/ruby-cssesc):
```bash
gem install ruby-cssesc
```
```ruby
require 'ruby-cssesc'
CSSEsc.escape('I ♥ Ruby', is_identifier: true)
```
In Sass using [`sassy-escape`](https://github.com/borodean/sassy-escape):
```bash
gem install sassy-escape
```
```scss
body {
content: escape('I ♥ Sass', $is-identifier: true);
}
```
## API
### `cssesc(value, options)`
This function takes a value and returns an escaped version of the value where any characters that are not printable ASCII symbols are escaped using the shortest possible (but valid) [escape sequences for use in CSS strings or identifiers](https://mathiasbynens.be/notes/css-escapes).
```js
cssesc('Ich ♥ Bücher');
// → 'Ich \\2665 B\\FC cher'
cssesc('foo 𝌆 bar');
// → 'foo \\1D306 bar'
```
By default, `cssesc` returns a string that can be used as part of a CSS string. If the target is a CSS identifier rather than a CSS string, use the `isIdentifier: true` setting (see below).
The optional `options` argument accepts an object with the following options:
#### `isIdentifier`
The default value for the `isIdentifier` option is `false`. This means that the input text will be escaped for use in a CSS string literal. If you want to use the result as a CSS identifier instead (in a selector, for example), set this option to `true`.
```js
cssesc('123a2b');
// → '123a2b'
cssesc('123a2b', {
'isIdentifier': true
});
// → '\\31 23a2b'
```
#### `quotes`
The default value for the `quotes` option is `'single'`. This means that any occurences of `'` in the input text will be escaped as `\'`, so that the output can be used in a CSS string literal wrapped in single quotes.
```js
cssesc('Lorem ipsum "dolor" sit \'amet\' etc.');
// → 'Lorem ipsum "dolor" sit \\\'amet\\\' etc.'
// → "Lorem ipsum \"dolor\" sit \\'amet\\' etc."
cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
'quotes': 'single'
});
// → 'Lorem ipsum "dolor" sit \\\'amet\\\' etc.'
// → "Lorem ipsum \"dolor\" sit \\'amet\\' etc."
```
If you want to use the output as part of a CSS string literal wrapped in double quotes, set the `quotes` option to `'double'`.
```js
cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
'quotes': 'double'
});
// → 'Lorem ipsum \\"dolor\\" sit \'amet\' etc.'
// → "Lorem ipsum \\\"dolor\\\" sit 'amet' etc."
```
#### `wrap`
The `wrap` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, the output will be a valid CSS string literal wrapped in quotes. The type of quotes can be specified through the `quotes` setting.
```js
cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
'quotes': 'single',
'wrap': true
});
// → '\'Lorem ipsum "dolor" sit \\\'amet\\\' etc.\''
// → "\'Lorem ipsum \"dolor\" sit \\\'amet\\\' etc.\'"
cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
'quotes': 'double',
'wrap': true
});
// → '"Lorem ipsum \\"dolor\\" sit \'amet\' etc."'
// → "\"Lorem ipsum \\\"dolor\\\" sit \'amet\' etc.\""
```
#### `escapeEverything`
The `escapeEverything` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, all the symbols in the output will be escaped, even printable ASCII symbols.
```js
cssesc('lolwat"foo\'bar', {
'escapeEverything': true
});
// → '\\6C\\6F\\6C\\77\\61\\74\\"\\66\\6F\\6F\\\'\\62\\61\\72'
// → "\\6C\\6F\\6C\\77\\61\\74\\\"\\66\\6F\\6F\\'\\62\\61\\72"
```
#### Overriding the default options globally
The global default settings can be overridden by modifying the `css.options` object. This saves you from passing in an `options` object for every call to `encode` if you want to use the non-default setting.
```js
// Read the global default setting for `escapeEverything`:
cssesc.options.escapeEverything;
// → `false` by default
// Override the global default setting for `escapeEverything`:
cssesc.options.escapeEverything = true;
// Using the global default setting for `escapeEverything`, which is now `true`:
cssesc('foo © bar ≠ baz 𝌆 qux');
// → '\\66\\6F\\6F\\ \\A9\\ \\62\\61\\72\\ \\2260\\ \\62\\61\\7A\\ \\1D306\\ \\71\\75\\78'
```
### `cssesc.version`
A string representing the semantic version number.
### Using the `cssesc` binary
To use the `cssesc` binary in your shell, simply install cssesc globally using npm:
```bash
npm install -g cssesc
```
After that you will be able to escape text for use in CSS strings or identifiers from the command line:
```bash
$ cssesc 'föo ♥ bår 𝌆 baz'
f\F6o \2665 b\E5r \1D306 baz
```
If the output needs to be a CSS identifier rather than part of a string literal, use the `-i`/`--identifier` option:
```bash
$ cssesc --identifier 'föo ♥ bår 𝌆 baz'
f\F6o\ \2665\ b\E5r\ \1D306\ baz
```
See `cssesc --help` for the full list of options.
## Support
This library supports the Node.js and browser versions mentioned in [`.babelrc`](https://github.com/mathiasbynens/cssesc/blob/master/.babelrc). For a version that supports a wider variety of legacy browsers and environments out-of-the-box, [see v0.1.0](https://github.com/mathiasbynens/cssesc/releases/tag/v0.1.0).
## Author
| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](https://mathiasbynens.be/) |
## License
This library is available under the [MIT](https://mths.be/mit) license.
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,oBAAoB,CAAC,sGAAwE,CAAC;AAClH","sources":["packages/@react-aria/menu/intl/cs-CZ.json"],"sourcesContent":["{\n \"longPressMessage\": \"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
@@ -0,0 +1,42 @@
"use strict"
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
const { getSourceCode } = require("eslint-compat-utils")
module.exports = {
meta: {
docs: {
description: "disallow the `Intl.supportedValuesOf` method.",
category: "ES2022-Intl-API",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-intl-supportedvaluesof.html",
},
fixable: null,
messages: {
forbidden: "ES2022 Intl API '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"(program) {
const sourceCode = getSourceCode(context)
const tracker = new ReferenceTracker(
sourceCode.getScope(program),
)
for (const { node, path } of tracker.iterateGlobalReferences({
Intl: {
supportedValuesOf: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1,3 @@
import CryptoJS = require("./index");
export = CryptoJS.TripleDES;
@@ -0,0 +1 @@
{"version":3,"file":"no-set-state.d.ts","sourceRoot":"","sources":["no-set-state.js"],"names":[],"mappings":"wBAqBW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU"}
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PACKAGE_JSON = exports.EABI = exports.WASM32_WASI = exports.WASI = exports.WASM32 = exports.LOG_PREFIX = exports.meta = exports.DEFAULT_NPM_REGISTRY = void 0;
const path = require("node:path");
exports.DEFAULT_NPM_REGISTRY = 'https://registry.npmjs.org/';
exports.meta = require(path.resolve(__dirname, '../package.json'));
const { name, version } = exports.meta;
exports.LOG_PREFIX = `[${name}@${version}] `;
exports.WASM32 = 'wasm32';
exports.WASI = 'wasi';
exports.WASM32_WASI = `${exports.WASM32}-${exports.WASI}`;
exports.EABI = 'eabi';
exports.PACKAGE_JSON = 'package.json';
//# sourceMappingURL=constants.js.map
@@ -0,0 +1,3 @@
import CryptoJS = require("./index");
export = CryptoJS.HmacSHA1;
@@ -0,0 +1,62 @@
import {tabsIds as $99b62ae3ff97ec45$export$c5f62239608282b6} from "./utils.module.js";
import {TabsKeyboardDelegate as $bfc6f2d60b8a4c40$export$15010ca3c1abe90b} from "./TabsKeyboardDelegate.module.js";
import {useId as $bQNZs$useId, useLabels as $bQNZs$useLabels, mergeProps as $bQNZs$mergeProps} from "@react-aria/utils";
import {useLocale as $bQNZs$useLocale} from "@react-aria/i18n";
import {useMemo as $bQNZs$useMemo} from "react";
import {useSelectableCollection as $bQNZs$useSelectableCollection} from "@react-aria/selection";
/*
* 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 $58d314389b21fa3f$export$773e389e644c5874(props, state, ref) {
let { orientation: orientation = 'horizontal', keyboardActivation: keyboardActivation = 'automatic' } = props;
let { collection: collection, selectionManager: manager, disabledKeys: disabledKeys } = state;
let { direction: direction } = (0, $bQNZs$useLocale)();
let delegate = (0, $bQNZs$useMemo)(()=>new (0, $bfc6f2d60b8a4c40$export$15010ca3c1abe90b)(collection, direction, orientation, disabledKeys), [
collection,
disabledKeys,
orientation,
direction
]);
let { collectionProps: collectionProps } = (0, $bQNZs$useSelectableCollection)({
ref: ref,
selectionManager: manager,
keyboardDelegate: delegate,
selectOnFocus: keyboardActivation === 'automatic',
disallowEmptySelection: true,
scrollRef: ref,
linkBehavior: 'selection'
});
// Compute base id for all tabs
let tabsId = (0, $bQNZs$useId)();
(0, $99b62ae3ff97ec45$export$c5f62239608282b6).set(state, tabsId);
let tabListLabelProps = (0, $bQNZs$useLabels)({
...props,
id: tabsId
});
return {
tabListProps: {
...(0, $bQNZs$mergeProps)(collectionProps, tabListLabelProps),
role: 'tablist',
'aria-orientation': orientation,
tabIndex: undefined
}
};
}
export {$58d314389b21fa3f$export$773e389e644c5874 as useTabList};
//# sourceMappingURL=useTabList.module.js.map
@@ -0,0 +1,11 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = require("react");
var _createEffectWithTarget = _interopRequireDefault(require("./createEffectWithTarget"));
var useEffectWithTarget = (0, _createEffectWithTarget["default"])(_react.useEffect);
var _default = exports["default"] = useEffectWithTarget;
@@ -0,0 +1 @@
{"name":"@jridgewell/sourcemap-codec","version":"1.5.5","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532092084,"integrity":"sha512-saakd7FVlV7sB0lJxPAaywkJ8R69jC/1QO2e2TcVLl8ZDaccoi9woo8schL6tVJhKyT8pyy4mSRgiae248P97g==","mode":420,"size":1080},"types/scopes.d.cts":{"checkedAt":1794532092084,"integrity":"sha512-xuVJzVoY1l8qkU0OHSobKq6HQOUDFaHxRqODSb6ajbjSslXjz2EEQMjpubCM/RR+Dd7tdjJoJWrHSr8XO1YKKA==","mode":420,"size":1151},"types/sourcemap-codec.d.cts":{"checkedAt":1794532092084,"integrity":"sha512-YUHXQ6gur0RUnKNYP95g/Slb1vwanN/iACwzDPb1nSTdM+qNk36C6bbVyLpdEagL1m+bgP3qXi16kL07D4rSlA==","mode":420,"size":699},"types/strings.d.cts":{"checkedAt":1794532092084,"integrity":"sha512-N+abuCPDfB4RUnZejiHrptGmfVHSe0ErGDHiITnmZOsa1pG9HIHdwhB2VU1A4pkO/piUPme7c4PrjEBDhRTQlA==","mode":420,"size":361},"types/vlq.d.cts":{"checkedAt":1794532092085,"integrity":"sha512-vfpH9FUR4poKB5wNYzdrEPbs8pP9dQw+M+v7r6Uzj1NqM5gO9BwZyty9rg1Hy8Y7AMRZfC8ezAW122oBmEPLhg==","mode":420,"size":442},"dist/sourcemap-codec.umd.js":{"checkedAt":1794532092085,"integrity":"sha512-fAg0XN3651Lf3EcQ+1I6GqxN+6iRIaBJAdyzj1yHtQELIrWWd5ATFaQfwDJEnoCov9eVHuvJYiBovC8YbHNoFA==","mode":420,"size":14590},"package.json":{"checkedAt":1794532092085,"integrity":"sha512-DySoGJ1Tyb/lE0OvX3JrMb6lisPlbSawhVjH7XjZa5mSiIW+Z80yxXTgPTVnP3LPOyvRGhkgOwO0ay0K5y1ulw==","mode":420,"size":2150},"types/scopes.d.cts.map":{"checkedAt":1794532092085,"integrity":"sha512-D5nqrwTIUdLrQl6s6/7N1GYL9N4RLDhpBz+888FHsfY0PYoXoFwqShBoYo7isOzIyhf92hAwLtyjuvQV0By9Fw==","mode":420,"size":1348},"types/scopes.d.mts.map":{"checkedAt":1794532092085,"integrity":"sha512-D5nqrwTIUdLrQl6s6/7N1GYL9N4RLDhpBz+888FHsfY0PYoXoFwqShBoYo7isOzIyhf92hAwLtyjuvQV0By9Fw==","mode":420,"size":1348},"types/sourcemap-codec.d.cts.map":{"checkedAt":1794532092085,"integrity":"sha512-G1xY50zRNLADILPdg3LWKepypEDL+VndICBaSHUD6a5yQVrYC/nx1EwpIvpnhdgwr/ImGDuRY/o+VuG/TsE+tA==","mode":420,"size":705},"types/sourcemap-codec.d.mts.map":{"checkedAt":1794532092085,"integrity":"sha512-G1xY50zRNLADILPdg3LWKepypEDL+VndICBaSHUD6a5yQVrYC/nx1EwpIvpnhdgwr/ImGDuRY/o+VuG/TsE+tA==","mode":420,"size":705},"dist/sourcemap-codec.mjs.map":{"checkedAt":1794532092085,"integrity":"sha512-ZrnRr+y9Cc39cFpddeYAXQNJscBc5BiWbvHbe/ZQflpPkW9jxjGMO5NaUkD++WyUPV8HBsEsA9wXg4bRb8tSWg==","mode":420,"size":9612},"dist/sourcemap-codec.umd.js.map":{"checkedAt":1794532092086,"integrity":"sha512-AGzJxgpCD8LknzVDfcHuGl1USTxsRVQ2CP/7NnTMPrNAvmGa3gWoANOk/tNIkvCRUTkk16XZB1Llp77iEcN+8g==","mode":420,"size":9700},"types/strings.d.cts.map":{"checkedAt":1794532092086,"integrity":"sha512-Bm5kgvoMEm98G6L5nY0J4Fm0zEM859cGpj08rLiiQ0+B/NldlegpUckwLYmPyHzLN2KhT1+80zsu/WDcAoG/CQ==","mode":420,"size":422},"types/strings.d.mts.map":{"checkedAt":1794532092086,"integrity":"sha512-Bm5kgvoMEm98G6L5nY0J4Fm0zEM859cGpj08rLiiQ0+B/NldlegpUckwLYmPyHzLN2KhT1+80zsu/WDcAoG/CQ==","mode":420,"size":422},"types/vlq.d.cts.map":{"checkedAt":1794532092086,"integrity":"sha512-B784t/h1bpMjhEBpU8MLEi9f/qepQdf9uAE01WYmgjZXK/d99AqZlp7nBeGkXAwgOWZ6BV+xX026cPDwFWdWag==","mode":420,"size":449},"types/vlq.d.mts.map":{"checkedAt":1794532092086,"integrity":"sha512-B784t/h1bpMjhEBpU8MLEi9f/qepQdf9uAE01WYmgjZXK/d99AqZlp7nBeGkXAwgOWZ6BV+xX026cPDwFWdWag==","mode":420,"size":449},"README.md":{"checkedAt":1794532092086,"integrity":"sha512-bPd3gmhUHY0Bb9wTF60XqlrwRSyjTStRzjrtiIYwmV6ho+kP/0KszOj4v4znHt0VFRC1ADZ//ARcDS0rBtOC+A==","mode":420,"size":10051},"dist/sourcemap-codec.mjs":{"checkedAt":1794532092086,"integrity":"sha512-LqyRdllYoSD4bJlwDlEXbJFkjtxLYYh5hzMomD/iaWUbEF9zOxlNzr3YIFMi6i25zRNAOnZ0ZHg35F9aFiL/Zg==","mode":420,"size":12869},"types/scopes.d.mts":{"checkedAt":1794532092084,"integrity":"sha512-xuVJzVoY1l8qkU0OHSobKq6HQOUDFaHxRqODSb6ajbjSslXjz2EEQMjpubCM/RR+Dd7tdjJoJWrHSr8XO1YKKA==","mode":420,"size":1151},"types/sourcemap-codec.d.mts":{"checkedAt":1794532092087,"integrity":"sha512-zP1HCvQ3v18LJPlntEfcfFnNielFLnE5oFmzWtW75B0Qwz88gGD0RxbRXuoejz0jjv/MVSvENz/GtKXKWcVMvg==","mode":420,"size":699},"types/strings.d.mts":{"checkedAt":1794532092084,"integrity":"sha512-N+abuCPDfB4RUnZejiHrptGmfVHSe0ErGDHiITnmZOsa1pG9HIHdwhB2VU1A4pkO/piUPme7c4PrjEBDhRTQlA==","mode":420,"size":361},"types/vlq.d.mts":{"checkedAt":1794532092087,"integrity":"sha512-pNWDpM2z3hMMQNkXkAq7P5gybwoXtQy4pSowzfe6uw6sTF3C0WKR0jC0PPgpooEjKEBDP+x4J1lj8tibiVBD4A==","mode":420,"size":442},"src/scopes.ts":{"checkedAt":1794532092087,"integrity":"sha512-ZAUNTHPoNSLGfKDgjj6s+zJ0APGOKOCl2PVi17d158zrRadtzpktveaTHUmziAVh9sdnesyiX9305L6Q9RhlFw==","mode":420,"size":9713},"src/sourcemap-codec.ts":{"checkedAt":1794532092087,"integrity":"sha512-6rpUbCfo58h6e47cm6RNVjCo851RS8Gimjp69UJ5FXyuBf+f4ZnR/TDqEMyph3fhLYIoQuWIeYdg/Z8fHYsUEg==","mode":420,"size":3203},"src/strings.ts":{"checkedAt":1794532092087,"integrity":"sha512-OXVKRmA29auAE9mh8sdP9SpMYvmCGfhjULf/1znfKJz2tHzd30lCfpkYfvpI3V77YQEFiyYxXjJJagVKmATycg==","mode":420,"size":1503},"src/vlq.ts":{"checkedAt":1794532092087,"integrity":"sha512-Bb1lHSf8JBfVmG3/Oc3hmmVHWjLUPJOppXFaquWi7r3nD1noXsIP21+2KQ+lRXLine truncated
@@ -0,0 +1,79 @@
{
"name": "smart-buffer",
"version": "4.2.0",
"description": "smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.",
"main": "build/smartbuffer.js",
"contributors": ["syvita"],
"homepage": "https://github.com/JoshGlazebrook/smart-buffer/",
"repository": {
"type": "git",
"url": "https://github.com/JoshGlazebrook/smart-buffer.git"
},
"bugs": {
"url": "https://github.com/JoshGlazebrook/smart-buffer/issues"
},
"keywords": [
"buffer",
"smart",
"packet",
"serialize",
"network",
"cursor",
"simple"
],
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"author": "Josh Glazebrook",
"license": "MIT",
"readmeFilename": "README.md",
"devDependencies": {
"@types/chai": "4.1.7",
"@types/mocha": "5.2.7",
"@types/node": "^12.0.0",
"chai": "4.2.0",
"coveralls": "3.0.5",
"istanbul": "^0.4.5",
"mocha": "6.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "14.1.1",
"source-map-support": "0.5.12",
"ts-node": "8.3.0",
"tslint": "5.18.0",
"typescript": "^3.2.1"
},
"typings": "typings/smartbuffer.d.ts",
"dependencies": {},
"scripts": {
"prepublish": "npm install -g typescript && npm run build",
"test": "NODE_ENV=test mocha --recursive --require ts-node/register test/**/*.ts",
"coverage": "NODE_ENV=test nyc npm test",
"coveralls": "NODE_ENV=test nyc npm test && nyc report --reporter=text-lcov | coveralls",
"lint": "tslint --type-check --project tsconfig.json 'src/**/*.ts'",
"build": "tsc -p ./"
},
"nyc": {
"extension": [
".ts",
".tsx"
],
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"**.*.d.ts",
"node_modules",
"typings"
],
"require": [
"ts-node/register"
],
"reporter": [
"json",
"html"
],
"all": true
}
}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var RulerRole = {
relatedConcepts: [],
type: 'structure'
};
var _default = RulerRole;
exports.default = _default;
@@ -0,0 +1 @@
{"name":"vite-tsconfig-paths","version":"5.1.4","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532124464,"integrity":"sha512-8cIRJ2leLAQ+Fs64BgaAb+iyxGhVimVEXrf8ZPa58EKh/gGDBTpphemUOWaqnRlw6lZ5LoLEgVIevH5dx6RfPA==","mode":420,"size":1063},"dist/index.js":{"checkedAt":1794532124464,"integrity":"sha512-seq0A8nmSWFWIMBMTjBFNtGFaU/qZGV4JP5YOvONFJQobOu4a/YR78MHDSkTemiXbZvwkUhHpZ+p1IEzwpMQnQ==","mode":420,"size":13400},"package.json":{"checkedAt":1794532124465,"integrity":"sha512-uGzw0Qc4IrivrUyfRbeR5uLu8HFdIygd9njuXfRXKaNWC9JWf2Sq3KMP0/zfG5g6LNsKbt7jhQsGonvr5aAXHA==","mode":420,"size":1378},"dist/index.js.map":{"checkedAt":1794532124465,"integrity":"sha512-TscsX9KSZCH0H7QzR1f5r1kTMz9+D8T8e4JbMMURHoaTn9ZC+5xVwvy+sCH+K/KH49hF2hAYBmFgQWOZm81EqA==","mode":420,"size":26073},"README.md":{"checkedAt":1794532124465,"integrity":"sha512-QHyQjh/ycqSDhcFQj5gBdsXB+nO2o0DBsUyaNhZyIn5MDa5Yvs4HtJ+vSiIKLO5i+wKDPMOG/0iC6SucSaMiWQ==","mode":420,"size":5081},"dist/index.d.mts":{"checkedAt":1794532124465,"integrity":"sha512-DAlA4BpyXGVAIexpvGzVxW8/IPL/6bOeRVj6lvvF78W4BQX1KLaImboRpxQHwQpejbHElZtudSiMGZu5yuh6kQ==","mode":420,"size":173},"src/debug.ts":{"checkedAt":1794532124465,"integrity":"sha512-vE4zwZwr1fUp8xOBhbwvwM+4W6B9AlmqPOjriGXQveKLuvdINixCRDycIHuMDTQ95L3CvXT4WEDp8IrRzBPjUQ==","mode":420,"size":233},"dist/index.d.ts":{"checkedAt":1794532124465,"integrity":"sha512-DjBZkMyDHenjhiUgD/ZdEqYp5nkTQTvnfjs9pVawlT6GVjWO/KpQ/YxRtuHlk8vi/PGyNeGXF7XaiCLg2QUftQ==","mode":420,"size":2344},"src/index.ts":{"checkedAt":1794532124466,"integrity":"sha512-hyyZo00rU7tpwvI3VQrGFfanlFL+4FCDXZ6Bp232JW4ByY+zYvuWpdZSa4xZ0q/MN2dIhgISmJhDmrfNUmUKww==","mode":420,"size":14663},"src/mappings.ts":{"checkedAt":1794532124466,"integrity":"sha512-JLqMcQPdPtlHiSQRdMTDBdkVEJMjrnmhWX6tAArRLJE6Kh1wZ6euos0JLaVyVYr4+pdnS4U9q2hrXeXLZpRODQ==","mode":420,"size":1564},"src/path.ts":{"checkedAt":1794532124466,"integrity":"sha512-aoEb4zdXWJvFqjcg/IcaFtFh1k7Skw3Au/3mzY+ZO0jx+aMmjjH/GSiHX3kgD7Fa/neFG1aapnSVwVyQ6Ojh0g==","mode":420,"size":638},"src/types.ts":{"checkedAt":1794532124466,"integrity":"sha512-exZzO5YG93Oeb/+7Jpx+R6aRAjokQlBrqX8dLmJuJ3n0BntMeoS5MB23f3i9THcvXXC/XeAwXL4BjyBgwQIA0w==","mode":420,"size":2322}}}
@@ -0,0 +1,573 @@
'use strict';
var defineProperties = require('define-properties');
var test = require('tape');
var callBind = require('call-bind');
var functionsHaveNames = require('functions-have-names')();
var forEach = require('for-each');
var debug = require('object-inspect');
var v = require('es-value-fixtures');
var hasSymbols = require('has-symbols/shams')();
var mockProperty = require('mock-property');
var hasPropertyDescriptors = require('has-property-descriptors')();
var index = require('../Iterator.concat');
var impl = require('../Iterator.concat/implementation');
var from = require('../Iterator.from/polyfill')();
var isEnumerable = Object.prototype.propertyIsEnumerable;
var testIterator = require('./helpers/testIterator');
module.exports = {
tests: function (concat, name, t) {
t['throws'](
function () { return new concat(); }, // eslint-disable-line new-cap
TypeError,
'`' + name + '` itself is not a constructor'
);
t['throws'](
function () { return new concat({}); }, // eslint-disable-line new-cap
TypeError,
'`' + name + '` itself is not a constructor, with an argument'
);
forEach(v.primitives.concat(v.objects), function (nonIterator) {
t['throws'](
function () { concat(nonIterator); },
TypeError,
debug(nonIterator) + ' is not an iterable Object'
);
});
t.deepEqual(concat().next(), { value: undefined, done: true }, 'no arguments -> empty iterator');
t.test('actual iteration', { skip: !hasSymbols }, function (st) {
forEach(v.nonFunctions, function (nonFunction) {
var badIterable = {};
badIterable[Symbol.iterator] = nonFunction;
st['throws'](
function () { concat([], badIterable, []); },
TypeError,
debug(badIterable) + '[Symbol.iterator] is not a function'
);
});
forEach(v.primitives, function (nonObject) {
var badIterable = {};
badIterable[Symbol.iterator] = function () { return nonObject; };
st['throws'](
function () { concat([], badIterable, []).next(); },
TypeError,
debug(badIterable) + '[Symbol.iterator] does not return an object'
);
});
forEach(v.strings, function (string) {
st['throws'](
function () { concat(string); },
TypeError,
'non-objects are not considered iterable'
);
var stringIt = concat(['a'], [string], ['c']);
testIterator(stringIt, ['a', string, 'c'], st, 'string iterator: ' + debug(string));
});
var arrayIt = concat([1, 2, 3]);
st.equal(typeof arrayIt.next, 'function', 'has a `next` function');
st.test('real iterators', { skip: !hasSymbols }, function (s2t) {
var iter = [1, 2][Symbol.iterator]();
testIterator(concat(iter, [3]), [1, 2, 3], s2t, 'array iterator + array yields combined results');
s2t.end();
});
st.test('observability in a replaced String iterator', function (s2t) {
var originalStringIterator = String.prototype[Symbol.iterator];
var observedType;
s2t.teardown(mockProperty(String.prototype, Symbol.iterator, {
get: function () {
'use strict'; // eslint-disable-line strict, lines-around-directive
observedType = typeof this;
return originalStringIterator;
}
}));
concat(from(''));
s2t.equal(observedType, 'string', 'string primitive -> primitive receiver in Symbol.iterator getter');
concat(from(Object('')));
s2t.equal(observedType, 'object', 'boxed string -> boxed string in Symbol.iterator getter');
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/arguments-checked-in-order', { skip: !hasPropertyDescriptors }, function (s2t) {
var getIterator = 0;
var iterable1 = {};
Object.defineProperty(iterable1, Symbol.iterator, {
get: function () {
getIterator += 1;
return function () {
throw new EvalError();
};
}
});
var iterable2 = {};
Object.defineProperty(iterable2, Symbol.iterator, {
get: function () {
throw new EvalError();
}
});
s2t.equal(getIterator, 0);
s2t['throws'](function () { concat(iterable1, null, iterable2); }, TypeError);
s2t.equal(getIterator, 1);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/fresh-iterator-result', function (s2t) {
var oldIterResult = {
done: false,
value: 123
};
var testIterator1 = {
next: function () {
return oldIterResult;
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
var iterator = concat(iterable);
var iterResult = iterator.next();
s2t.equal(iterResult.done, false);
s2t.equal(iterResult.value, 123);
s2t.notEqual(iterResult, oldIterResult);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/get-iterator-method-only-once', { skip: !hasPropertyDescriptors }, function (s2t) {
var iteratorGets = 0;
var iteratorCalls = 0;
var array = [1, 2, 3];
function CountingIterable() {}
Object.defineProperty(
CountingIterable.prototype,
Symbol.iterator,
{
get: function () {
iteratorGets += 1;
return function () {
iteratorCalls += 1;
return array[Symbol.iterator]();
};
}
}
);
var iterable = new CountingIterable();
s2t.equal(iteratorGets, 0);
s2t.equal(iteratorCalls, 0);
var iter = concat(iterable);
s2t.equal(iteratorGets, 1);
s2t.equal(iteratorCalls, 0);
testIterator(iter, array, s2t, 'iterating over the iterator calls the iterator function once');
s2t.equal(iteratorGets, 1);
s2t.equal(iteratorCalls, 1);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/get-iterator-method-throws', { skip: !hasPropertyDescriptors }, function (s2t) {
var iterable = {};
Object.defineProperty(iterable, Symbol.iterator, {
get: function () {
throw new EvalError();
}
});
s2t['throws'](function () { concat(iterable); }, EvalError);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/inner-iterator-created-in-order', function (s2t) {
var calledIterator = [];
var iterable1 = {};
iterable1[Symbol.iterator] = function () {
calledIterator.push('iterable1');
return [1][Symbol.iterator]();
};
var iterable2 = {};
iterable2[Symbol.iterator] = function () {
calledIterator.push('iterable2');
return [2][Symbol.iterator]();
};
var iterator = concat(iterable1, iterable2);
s2t.deepEqual(calledIterator, []);
s2t.deepEqual(iterator.next(), { done: false, value: 1 });
s2t.deepEqual(calledIterator, ['iterable1']);
s2t.deepEqual(iterator.next(), { done: false, value: 2 });
s2t.deepEqual(calledIterator, ['iterable1', 'iterable2']);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-called-with-zero-arguments', function (s2t) {
var nextCalled = 0;
var testIterator1 = {
next: function () {
nextCalled += 1;
s2t.equal(arguments.length, 0);
return {
done: false,
value: 0
};
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
var iterator = concat(iterable);
s2t.equal(nextCalled, 0);
iterator.next();
s2t.equal(nextCalled, 1);
iterator.next(1);
s2t.equal(nextCalled, 2);
iterator.next(1, 2);
s2t.equal(nextCalled, 3);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-returns-non-object', function (s2t) {
var nonObjectIterator = {
next: function () {
return null;
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return nonObjectIterator;
};
var iterator = concat(iterable);
s2t['throws'](function () { iterator.next(); }, TypeError);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-returns-throwing-done', { skip: !hasPropertyDescriptors }, function (s2t) {
var throwingIterator = {
next: function () {
var result = { done: null, value: 1 };
Object.defineProperty(result, 'done', {
get: function () {
throw new EvalError();
}
});
return result;
},
'return': function () {
throw new Error();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return throwingIterator;
};
var iterator = concat(iterable);
s2t['throws'](function () { iterator.next(); }, EvalError);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-returns-throwing-value-done', { skip: !hasPropertyDescriptors }, function (s2t) {
function ReturnCalledError() {}
function ValueGetterError() {}
var throwingIterator = {
next: function () {
var result = { value: null, done: true };
Object.defineProperty(result, 'value', {
get: function () {
throw new ValueGetterError();
}
});
return result;
},
'return': function () {
throw new ReturnCalledError();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return throwingIterator;
};
var iterator = concat(iterable);
var iterResult = iterator.next();
s2t.equal(iterResult.done, true);
s2t.equal(iterResult.value, undefined);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-returns-throwing-value', { skip: !hasPropertyDescriptors }, function (s2t) {
var throwingIterator = {
next: function () {
var result = { value: null, done: false };
Object.defineProperty(result, 'value', {
get: function () {
throw new EvalError();
}
});
return result;
},
'return': function () {
throw new Error();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return throwingIterator;
};
var iterator = concat(iterable);
s2t['throws'](function () { iterator.next(); }, EvalError);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/next-method-throws', function (s2t) {
var throwingIterator = {
next: function () {
throw new EvalError();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return throwingIterator;
};
var iterator = concat(iterable);
s2t['throws'](function () { iterator.next(); }, EvalError);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/return-is-not-forwarded-after-exhaustion', function (s2t) {
var testIterator1 = {
next: function () {
return {
done: true,
value: undefined
};
},
'return': function () {
throw new EvalError();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
var iterator = concat(iterable);
iterator.next();
iterator['return']();
s2t.end();
});
t.test('test262: test/built-ins/Iterator/concat/return-is-not-forwarded-before-initial-start', function (s2t) {
var testIterator1 = {
next: function () {
return {
done: false,
value: 1
};
},
'return': function () {
throw new EvalError();
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
var iterator = concat(iterable);
iterator['return']();
iterator.next();
iterator['return']();
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/return-method-called-with-zero-arguments', function (s2t) {
var returnCalled = 0;
var testIterator1 = {
next: function () {
return { done: false };
},
'return': function () {
returnCalled += 1;
s2t.equal(arguments.length, 0);
return { done: true };
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
var iterator;
// Call with zero arguments.
iterator = concat(iterable);
iterator.next();
s2t.equal(returnCalled, 0);
iterator['return']();
s2t.equal(returnCalled, 1);
// Call with one argument.
iterator = concat(iterable);
iterator.next();
s2t.equal(returnCalled, 1);
iterator['return'](1);
s2t.equal(returnCalled, 2);
// Call with two arguments.
iterator = concat(iterable);
iterator.next();
s2t.equal(returnCalled, 2);
iterator['return'](1, 2);
s2t.equal(returnCalled, 3);
s2t.end();
});
st.test('test262: test/built-ins/Iterator/concat/throws-typeerror-when-generator-is-running-next', function (s2t) {
var enterCount = 0;
var iterator;
var testIterator1 = {
next: function () {
enterCount += 1;
iterator.next();
return { done: false };
}
};
var iterable = {};
iterable[Symbol.iterator] = function () {
return testIterator1;
};
iterator = concat(iterable);
s2t.equal(enterCount, 0);
s2t['throws'](function () { iterator.next(); }, TypeError);
s2t.equal(enterCount, 1);
s2t.end();
});
st.end();
});
},
index: function () {
test('Iterator.concat: index', function (t) {
module.exports.tests(index, 'Iterator.concat', t);
t.end();
});
},
implementation: function () {
test('Iterator.concat: implementation', function (t) {
module.exports.tests(impl, 'Iterator.concat', t);
t.end();
});
},
shimmed: function () {
test('Iterator.concat: shimmed', function (t) {
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(Iterator.concat.name, 'concat', 'Iterator.concat has name "concat"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(Iterator, 'concat'), 'Iterator.concat is not enumerable');
et.end();
});
t.equal(Iterator.concat.length, 0, 'Iterator.concat has length 0');
module.exports.tests(callBind(Iterator.concat, Iterator), 'Iterator.concat', t);
t.end();
});
}
};
@@ -0,0 +1,13 @@
const focusableElements = new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A",
]);
function isElementKeyboardAccessible(element) {
return (focusableElements.has(element.tagName) ||
element.tabIndex !== -1);
}
export { isElementKeyboardAccessible };
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,oBAAoB,CAAC,gHAAyE,CAAC;AACnH","sources":["packages/@react-aria/menu/intl/ro-RO.json"],"sourcesContent":["{\n \"longPressMessage\": \"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
@@ -0,0 +1,26 @@
import React from 'react';
import { ClientRect, UniqueIdentifier } from '@dnd-kit/core';
import type { Disabled, SortingStrategy } from '../types';
export interface Props {
children: React.ReactNode;
items: (UniqueIdentifier | {
id: UniqueIdentifier;
})[];
strategy?: SortingStrategy;
id?: string;
disabled?: boolean | Disabled;
}
interface ContextDescriptor {
activeIndex: number;
containerId: string;
disabled: Disabled;
disableTransforms: boolean;
items: UniqueIdentifier[];
overIndex: number;
useDragOverlay: boolean;
sortedRects: ClientRect[];
strategy: SortingStrategy;
}
export declare const Context: React.Context<ContextDescriptor>;
export declare function SortableContext({ children, id, items: userDefinedItems, strategy, disabled: disabledProp, }: Props): JSX.Element;
export {};
@@ -0,0 +1,63 @@
var $c49208f7d2aac50b$exports = require("./useToggleButton.main.js");
var $eYVcO$reactariatoolbar = require("@react-aria/toolbar");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useToggleButtonGroup", () => $7d1e6c2af0d638cd$export$dd5580ae642f110f);
$parcel$export(module.exports, "useToggleButtonGroupItem", () => $7d1e6c2af0d638cd$export$bc53712daae3d6e6);
/*
* Copyright 2024 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $7d1e6c2af0d638cd$export$dd5580ae642f110f(props, state, ref) {
let { isDisabled: isDisabled } = props;
let { toolbarProps: toolbarProps } = (0, $eYVcO$reactariatoolbar.useToolbar)(props, ref);
return {
groupProps: {
...toolbarProps,
role: state.selectionMode === 'single' ? 'radiogroup' : toolbarProps.role,
'aria-disabled': isDisabled
}
};
}
function $7d1e6c2af0d638cd$export$bc53712daae3d6e6(props, state, ref) {
let toggleState = {
isSelected: state.selectedKeys.has(props.id),
setSelected (isSelected) {
state.setSelected(props.id, isSelected);
},
toggle () {
state.toggleKey(props.id);
}
};
let { isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, buttonProps: buttonProps } = (0, $c49208f7d2aac50b$exports.useToggleButton)({
...props,
id: undefined,
isDisabled: props.isDisabled || state.isDisabled
}, toggleState, ref);
if (state.selectionMode === 'single') {
buttonProps.role = 'radio';
buttonProps['aria-checked'] = toggleState.isSelected;
delete buttonProps['aria-pressed'];
}
return {
isPressed: isPressed,
isSelected: isSelected,
isDisabled: isDisabled,
buttonProps: buttonProps
};
}
//# sourceMappingURL=useToggleButtonGroup.main.js.map
@@ -0,0 +1,32 @@
"use strict";
var PolicyMappings_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolicyMappings = exports.PolicyMapping = exports.id_ce_policyMappings = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const object_identifiers_1 = require("../object_identifiers");
exports.id_ce_policyMappings = `${object_identifiers_1.id_ce}.33`;
class PolicyMapping {
constructor(params = {}) {
this.issuerDomainPolicy = "";
this.subjectDomainPolicy = "";
Object.assign(this, params);
}
}
exports.PolicyMapping = PolicyMapping;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
], PolicyMapping.prototype, "issuerDomainPolicy", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
], PolicyMapping.prototype, "subjectDomainPolicy", void 0);
let PolicyMappings = PolicyMappings_1 = class PolicyMappings extends asn1_schema_1.AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, PolicyMappings_1.prototype);
}
};
exports.PolicyMappings = PolicyMappings;
exports.PolicyMappings = PolicyMappings = PolicyMappings_1 = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: PolicyMapping })
], PolicyMappings);
@@ -0,0 +1,3 @@
import { MutableRefObject } from 'react';
import { Options, SendMessage, WebSocketLike } from './types';
export declare const attachSharedListeners: (webSocketInstance: WebSocketLike, url: string, optionsRef: MutableRefObject<Options>, sendMessage: SendMessage) => () => void;
@@ -0,0 +1 @@
{"mappings":";;;;AAyBA,mCAAmC,CAAC,SAAS,WAAW,CAAE,SAAQ,IAAI,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC;CAAG;AAEzG,4BAA4B,CAAC;IAC3B,oCAAoC;IACpC,WAAW,EAAE,CAAC,CAAC;IACf,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAA;CACnB;AAGD,0BAA0B,KAAK,EAAE,kBAAkB,QAAQ,CAAC,EAAE,GAAG,EAAE,UAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,WAAW,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AAC7J,0BAA0B,KAAK,EAAE,kBAAkB,GAAG,CAAC,EAAE,GAAG,EAAE,UAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,WAAW,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AACxJ,0BAA0B,KAAK,EAAE,kBAAkB,KAAK,CAAC,EAAE,GAAG,EAAE,UAAU,cAAc,GAAG,IAAI,CAAC,GAAG,WAAW,eAAe,cAAc,CAAC,CAAC,CAAC;AAC9I,0BAA0B,KAAK,EAAE,kBAAkB,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,WAAW,oBAAoB,gBAAgB,CAAC,CAAC,CAAC;AACzJ,0BAA0B,KAAK,EAAE,kBAAkB,MAAM,CAAC,EAAE,GAAG,EAAE,UAAU,eAAe,GAAG,IAAI,CAAC,GAAG,WAAW,eAAe,eAAe,CAAC,CAAC,CAAC;AACjJ,0BAA0B,KAAK,EAAE,kBAAkB,WAAW,CAAC,EAAE,GAAG,EAAE,UAAU,OAAO,GAAG,IAAI,CAAC,GAAG,WAAW,aAAa,CAAC,CAAC;ACd5H,kCAAyC,CAAC,SAAS,WAAW,CAAE,SAAQ,IAAI,CAAC,sBAAsB,CAAC,CAAC,EAAE,UAAU,CAAC;CAAG;AAErH,2BAAkC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC;IACxD,sCAAsC;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,UAAU,EAAE,OAAO,CAAA;CACpB;AAGD,gCAAgC,KAAK,EAAE,wBAAwB,QAAQ,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,iBAAiB,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AACnM,gCAAgC,KAAK,EAAE,wBAAwB,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,iBAAiB,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AAC9L,gCAAgC,KAAK,EAAE,wBAAwB,KAAK,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,cAAc,GAAG,IAAI,CAAC,GAAG,iBAAiB,eAAe,cAAc,CAAC,CAAC,CAAC;AACpL,gCAAgC,KAAK,EAAE,wBAAwB,OAAO,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,iBAAiB,oBAAoB,gBAAgB,CAAC,CAAC,CAAC;AAC/L,gCAAgC,KAAK,EAAE,wBAAwB,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,eAAe,GAAG,IAAI,CAAC,GAAG,iBAAiB,eAAe,eAAe,CAAC,CAAC,CAAC;AACvL,gCAAgC,KAAK,EAAE,wBAAwB,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,OAAO,GAAG,IAAI,CAAC,GAAG,iBAAiB,aAAa,CAAC,CAAC;AChBlK,2CAA4C,SAAQ,gBAAgB,EAAE,iBAAiB;IACrF;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;IACE;;OAEG;IACH,UAAU,EAAE,aAAa,CAAA;CAC1B;AAED,qCAAqC,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,WAAW,GAAG,IAAI,CAAC,GAAG,qBAAqB,CAW1J;AAED,OAAY,EAAC,8BAA8B,EAAC,CAAC;AAC7C,2CAAkD,CAAC,SAAS,WAAW,CAAE,SAAQ,IAAI,CAAC,+BAA+B,CAAC,CAAC,EAAE,UAAU,CAAC;CAAG;AAGvI,yCAAyC,KAAK,EAAE,iCAAiC,QAAQ,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,iBAAiB,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AAC1N,yCAAyC,KAAK,EAAE,iCAAiC,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,iBAAiB,GAAG,IAAI,CAAC,GAAG,iBAAiB,qBAAqB,iBAAiB,CAAC,CAAC,CAAC;AACrN,yCAAyC,KAAK,EAAE,iCAAiC,KAAK,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,cAAc,GAAG,IAAI,CAAC,GAAG,iBAAiB,eAAe,cAAc,CAAC,CAAC,CAAC;AAC3M,yCAAyC,KAAK,EAAE,iCAAiC,OAAO,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,iBAAiB,oBAAoB,gBAAgB,CAAC,CAAC,CAAC;AACtN,yCAAyC,KAAK,EAAE,iCAAiC,MAAM,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,eAAe,GAAG,IAAI,CAAC,GAAG,iBAAiB,eAAe,eAAe,CAAC,CAAC,CAAC;AAC9M,yCAAyC,KAAK,EAAE,iCAAiC,WAAW,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAU,OAAO,GAAG,IAAI,CAAC,GAAG,iBAAiB,aAAa,CAAC,CAAC;AC/CzL,YAAY,EAAC,eAAe,EAAE,qBAAqB,EAAC,MAAM,qBAAqB,CAAC","sources":["packages/@react-aria/button/src/packages/@react-aria/button/src/useButton.ts","packages/@react-aria/button/src/packages/@react-aria/button/src/useToggleButton.ts","packages/@react-aria/button/src/packages/@react-aria/button/src/useToggleButtonGroup.ts","packages/@react-aria/button/src/packages/@react-aria/button/src/index.ts","packages/@react-aria/button/src/index.ts"],"sourcesContent":[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 {useButton} from './useButton';\nexport {useToggleButton} from './useToggleButton';\nexport {useToggleButtonGroup, useToggleButtonGroupItem} from './useToggleButtonGroup';\nexport type {AriaButtonOptions, ButtonAria} from './useButton';\nexport type {AriaButtonProps, AriaToggleButtonProps} from '@react-types/button';\nexport type {AriaToggleButtonGroupProps, ToggleButtonGroupAria, AriaToggleButtonGroupItemProps} from './useToggleButtonGroup';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1 @@
{"name":"@heroui/use-aria-modal-overlay","version":"2.2.4","requiresBuild":false,"files":{"dist/index.js":{"checkedAt":1794532108693,"integrity":"sha512-TNXd9P9aSHUGaiBU59+rIwgfQavkWuvsXoFX+bzZr5T3bdRi7TMOK4MpK+8XC0xyBOK9CZNLryzNp97PKKT0Tw==","mode":420,"size":1892},"package.json":{"checkedAt":1794532108694,"integrity":"sha512-VtxWZJ4xJPDgdoTMoeb6k3epx5fF3+doLIa+jmGU8zVNb+oKtKTwUxtZLi9iEAe7nIfa0fn4cjzD/tkwmMa6Xg==","mode":420,"size":1570},"README.md":{"checkedAt":1794532108694,"integrity":"sha512-7OksYqSEO1GuOh1fvs2WyH6XBzuhSoqcD9oQDt+74fn8YyUojXZfPrWnpcbNClbhx9b01pQEEnj3JU1juFQO5g==","mode":420,"size":521},"dist/index.mjs":{"checkedAt":1794532108694,"integrity":"sha512-BRoWtaL3yUwtx237CC0N5roHB+CBmKlkLdcCgIAzYf75YWLTdbhZJ1xJ3UwyDny5/EjQgcot+OE4cWEaV18gQQ==","mode":420,"size":810},"dist/index.d.ts":{"checkedAt":1794532108694,"integrity":"sha512-qEccVNMiCy7xeUKbvqyf4njflqR+EZCwG+Mkb3UM25JvSbONyB9Ivky6EOU7dlz9UPMGOThw26gect3trPDmWw==","mode":420,"size":1039},"LICENSE":{"checkedAt":1794532108694,"integrity":"sha512-eaopHP+N4EYXlGoX9hmoxDPoVft4BqrXKmbsFTcsoBHSrJp/GWF4qVtLBzrw9h9ZrbFfPY69z+3RuDX9FdPG+Q==","mode":420,"size":1064}}}
@@ -0,0 +1,350 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _decorate;
var _toArray = require("toArray");
var _toPropertyKey = require("toPropertyKey");
function _decorate(decorators, factory, superClass, mixins) {
var api = _getDecoratorsApi();
if (mixins) {
for (var i = 0; i < mixins.length; i++) {
api = mixins[i](api);
}
}
var r = factory(function initialize(O) {
api.initializeInstanceElements(O, decorated.elements);
}, superClass);
var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators);
api.initializeClassElements(r.F, decorated.elements);
return api.runClassFinishers(r.F, decorated.finishers);
}
function _getDecoratorsApi() {
_getDecoratorsApi = function () {
return api;
};
var api = {
elementsDefinitionOrder: [["method"], ["field"]],
initializeInstanceElements: function (O, elements) {
["method", "field"].forEach(function (kind) {
elements.forEach(function (element) {
if (element.kind === kind && element.placement === "own") {
this.defineClassElement(O, element);
}
}, this);
}, this);
},
initializeClassElements: function (F, elements) {
var proto = F.prototype;
["method", "field"].forEach(function (kind) {
elements.forEach(function (element) {
var placement = element.placement;
if (element.kind === kind && (placement === "static" || placement === "prototype")) {
var receiver = placement === "static" ? F : proto;
this.defineClassElement(receiver, element);
}
}, this);
}, this);
},
defineClassElement: function (receiver, element) {
var descriptor = element.descriptor;
if (element.kind === "field") {
var initializer = element.initializer;
descriptor = {
enumerable: descriptor.enumerable,
writable: descriptor.writable,
configurable: descriptor.configurable,
value: initializer === void 0 ? void 0 : initializer.call(receiver)
};
}
Object.defineProperty(receiver, element.key, descriptor);
},
decorateClass: function (elements, decorators) {
var newElements = [];
var finishers = [];
var placements = {
static: [],
prototype: [],
own: []
};
elements.forEach(function (element) {
this.addElementPlacement(element, placements);
}, this);
elements.forEach(function (element) {
if (!_hasDecorators(element)) return newElements.push(element);
var elementFinishersExtras = this.decorateElement(element, placements);
newElements.push(elementFinishersExtras.element);
newElements.push.apply(newElements, elementFinishersExtras.extras);
finishers.push.apply(finishers, elementFinishersExtras.finishers);
}, this);
if (!decorators) {
return {
elements: newElements,
finishers: finishers
};
}
var result = this.decorateConstructor(newElements, decorators);
finishers.push.apply(finishers, result.finishers);
result.finishers = finishers;
return result;
},
addElementPlacement: function (element, placements, silent) {
var keys = placements[element.placement];
if (!silent && keys.indexOf(element.key) !== -1) {
throw new TypeError("Duplicated element (" + element.key + ")");
}
keys.push(element.key);
},
decorateElement: function (element, placements) {
var extras = [];
var finishers = [];
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
var keys = placements[element.placement];
keys.splice(keys.indexOf(element.key), 1);
var elementObject = this.fromElementDescriptor(element);
var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
element = elementFinisherExtras.element;
this.addElementPlacement(element, placements);
if (elementFinisherExtras.finisher) {
finishers.push(elementFinisherExtras.finisher);
}
var newExtras = elementFinisherExtras.extras;
if (newExtras) {
for (var j = 0; j < newExtras.length; j++) {
this.addElementPlacement(newExtras[j], placements);
}
extras.push.apply(extras, newExtras);
}
}
return {
element: element,
finishers: finishers,
extras: extras
};
},
decorateConstructor: function (elements, decorators) {
var finishers = [];
for (var i = decorators.length - 1; i >= 0; i--) {
var obj = this.fromClassDescriptor(elements);
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
if (elementsAndFinisher.finisher !== undefined) {
finishers.push(elementsAndFinisher.finisher);
}
if (elementsAndFinisher.elements !== undefined) {
elements = elementsAndFinisher.elements;
for (var j = 0; j < elements.length - 1; j++) {
for (var k = j + 1; k < elements.length; k++) {
if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
throw new TypeError("Duplicated element (" + elements[j].key + ")");
}
}
}
}
}
return {
elements: elements,
finishers: finishers
};
},
fromElementDescriptor: function (element) {
var obj = {
kind: element.kind,
key: element.key,
placement: element.placement,
descriptor: element.descriptor
};
var desc = {
value: "Descriptor",
configurable: true
};
Object.defineProperty(obj, Symbol.toStringTag, desc);
if (element.kind === "field") obj.initializer = element.initializer;
return obj;
},
toElementDescriptors: function (elementObjects) {
if (elementObjects === undefined) return;
return _toArray(elementObjects).map(function (elementObject) {
var element = this.toElementDescriptor(elementObject);
this.disallowProperty(elementObject, "finisher", "An element descriptor");
this.disallowProperty(elementObject, "extras", "An element descriptor");
return element;
}, this);
},
toElementDescriptor: function (elementObject) {
var kind = String(elementObject.kind);
if (kind !== "method" && kind !== "field") {
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
}
var key = _toPropertyKey(elementObject.key);
var placement = String(elementObject.placement);
if (placement !== "static" && placement !== "prototype" && placement !== "own") {
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
}
var descriptor = elementObject.descriptor;
this.disallowProperty(elementObject, "elements", "An element descriptor");
var element = {
kind: kind,
key: key,
placement: placement,
descriptor: Object.assign({}, descriptor)
};
if (kind !== "field") {
this.disallowProperty(elementObject, "initializer", "A method descriptor");
} else {
this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
element.initializer = elementObject.initializer;
}
return element;
},
toElementFinisherExtras: function (elementObject) {
var element = this.toElementDescriptor(elementObject);
var finisher = _optionalCallableProperty(elementObject, "finisher");
var extras = this.toElementDescriptors(elementObject.extras);
return {
element: element,
finisher: finisher,
extras: extras
};
},
fromClassDescriptor: function (elements) {
var obj = {
kind: "class",
elements: elements.map(this.fromElementDescriptor, this)
};
var desc = {
value: "Descriptor",
configurable: true
};
Object.defineProperty(obj, Symbol.toStringTag, desc);
return obj;
},
toClassDescriptor: function (obj) {
var kind = String(obj.kind);
if (kind !== "class") {
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
}
this.disallowProperty(obj, "key", "A class descriptor");
this.disallowProperty(obj, "placement", "A class descriptor");
this.disallowProperty(obj, "descriptor", "A class descriptor");
this.disallowProperty(obj, "initializer", "A class descriptor");
this.disallowProperty(obj, "extras", "A class descriptor");
var finisher = _optionalCallableProperty(obj, "finisher");
var elements = this.toElementDescriptors(obj.elements);
return {
elements: elements,
finisher: finisher
};
},
runClassFinishers: function (constructor, finishers) {
for (var i = 0; i < finishers.length; i++) {
var newConstructor = (0, finishers[i])(constructor);
if (newConstructor !== undefined) {
if (typeof newConstructor !== "function") {
throw new TypeError("Finishers must return a constructor.");
}
constructor = newConstructor;
}
}
return constructor;
},
disallowProperty: function (obj, name, objectType) {
if (obj[name] !== undefined) {
throw new TypeError(objectType + " can't have a ." + name + " property.");
}
}
};
return api;
}
function _createElementDescriptor(def) {
var key = _toPropertyKey(def.key);
var descriptor;
if (def.kind === "method") {
descriptor = {
value: def.value,
writable: true,
configurable: true,
enumerable: false
};
} else if (def.kind === "get") {
descriptor = {
get: def.value,
configurable: true,
enumerable: false
};
} else if (def.kind === "set") {
descriptor = {
set: def.value,
configurable: true,
enumerable: false
};
} else if (def.kind === "field") {
descriptor = {
configurable: true,
writable: true,
enumerable: true
};
}
var element = {
kind: def.kind === "field" ? "field" : "method",
key: key,
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype",
descriptor: descriptor
};
if (def.decorators) element.decorators = def.decorators;
if (def.kind === "field") element.initializer = def.value;
return element;
}
function _coalesceGetterSetter(element, other) {
if (element.descriptor.get !== undefined) {
other.descriptor.get = element.descriptor.get;
} else {
other.descriptor.set = element.descriptor.set;
}
}
function _coalesceClassElements(elements) {
var newElements = [];
var isSameElement = function (other) {
return other.kind === "method" && other.key === element.key && other.placement === element.placement;
};
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
var other;
if (element.kind === "method" && (other = newElements.find(isSameElement))) {
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
if (_hasDecorators(element) || _hasDecorators(other)) {
throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
}
other.descriptor = element.descriptor;
} else {
if (_hasDecorators(element)) {
if (_hasDecorators(other)) {
throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
}
other.decorators = element.decorators;
}
_coalesceGetterSetter(element, other);
}
} else {
newElements.push(element);
}
}
return newElements;
}
function _hasDecorators(element) {
return element.decorators && element.decorators.length;
}
function _isDataDescriptor(desc) {
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
}
function _optionalCallableProperty(obj, name) {
var value = obj[name];
if (value !== undefined && typeof value !== "function") {
throw new TypeError("Expected '" + name + "' to be a function");
}
return value;
}
//# sourceMappingURL=decorate.js.map
@@ -0,0 +1,5 @@
import { InternalBindingConstraints } from '../../binding/models/BindingConstraintsImplementation';
import { SingleImmutableLinkedListNode } from '../../common/models/SingleImmutableLinkedList';
import { PlanServiceNode } from '../models/PlanServiceNode';
export declare function checkServiceNodeSingleInjectionBindings(serviceNode: PlanServiceNode, isOptional: boolean, bindingConstraintNode: SingleImmutableLinkedListNode<InternalBindingConstraints>): void;
//# sourceMappingURL=checkServiceNodeSingleInjectionBindings.d.ts.map
@@ -0,0 +1,47 @@
/**
* This splits a string on a top-level character.
*
* Regex doesn't support recursion (at least not the JS-flavored version).
* So we have to use a tiny state machine to keep track of paren placement.
*
* Expected behavior using commas:
* var(--a, 0 0 1px rgb(0, 0, 0)), 0 0 1px rgb(0, 0, 0)
* ─┬─ ┬ ┬ ┬
* x x x ╰──────── Split because top-level
* ╰──────────────┴──┴───────────── Ignored b/c inside >= 1 levels of parens
*
* @param {string} input
* @param {string} separator
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "splitAtTopLevelOnly", {
enumerable: true,
get: function() {
return splitAtTopLevelOnly;
}
});
function splitAtTopLevelOnly(input, separator) {
let stack = [];
let parts = [];
let lastPos = 0;
let isEscaped = false;
for(let idx = 0; idx < input.length; idx++){
let char = input[idx];
if (stack.length === 0 && char === separator[0] && !isEscaped) {
if (separator.length === 1 || input.slice(idx, idx + separator.length) === separator) {
parts.push(input.slice(lastPos, idx));
lastPos = idx + separator.length;
}
}
isEscaped = isEscaped ? false : char === "\\";
if (char === "(" || char === "[" || char === "{") {
stack.push(char);
} else if (char === ")" && stack[stack.length - 1] === "(" || char === "]" && stack[stack.length - 1] === "[" || char === "}" && stack[stack.length - 1] === "{") {
stack.pop();
}
}
parts.push(input.slice(lastPos));
return parts;
}
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_class_private_field_init.cjs",
"module": "../../esm/_class_private_field_init.js"
}
@@ -0,0 +1,9 @@
'use strict'
const SemVer = require('../classes/semver')
const compareBuild = (a, b, loose) => {
const versionA = new SemVer(a, loose)
const versionB = new SemVer(b, loose)
return versionA.compare(versionB) || versionA.compareBuild(versionB)
}
module.exports = compareBuild
@@ -0,0 +1,7 @@
/**
* Parse Date time skeleton into Intl.DateTimeFormatOptions
* Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
* @public
* @param skeleton skeleton string
*/
export declare function parseDateTimeSkeleton(skeleton: string): Intl.DateTimeFormatOptions;
@@ -0,0 +1,247 @@
/**
* @fileoverview Utility functions to locate the source text of each code unit in the value of a string literal or template token.
* @author Francesco Trotta
*/
"use strict";
/**
* Represents a code unit produced by the evaluation of a JavaScript common token like a string
* literal or template token.
*/
class CodeUnit {
constructor(start, source) {
this.start = start;
this.source = source;
}
get end() {
return this.start + this.length;
}
get length() {
return this.source.length;
}
}
/**
* An object used to keep track of the position in a source text where the next characters will be read.
*/
class TextReader {
constructor(source) {
this.source = source;
this.pos = 0;
}
/**
* Advances the reading position of the specified number of characters.
* @param {number} length Number of characters to advance.
* @returns {void}
*/
advance(length) {
this.pos += length;
}
/**
* Reads characters from the source.
* @param {number} [offset=0] The offset where reading starts, relative to the current position.
* @param {number} [length=1] Number of characters to read.
* @returns {string} A substring of source characters.
*/
read(offset = 0, length = 1) {
const start = offset + this.pos;
return this.source.slice(start, start + length);
}
}
const SIMPLE_ESCAPE_SEQUENCES = {
__proto__: null,
b: "\b",
f: "\f",
n: "\n",
r: "\r",
t: "\t",
v: "\v",
};
/**
* Reads a hex escape sequence.
* @param {TextReader} reader The reader should be positioned on the first hexadecimal digit.
* @param {number} length The number of hexadecimal digits.
* @returns {string} A code unit.
*/
function readHexSequence(reader, length) {
const str = reader.read(0, length);
const charCode = parseInt(str, 16);
reader.advance(length);
return String.fromCharCode(charCode);
}
/**
* Reads a Unicode escape sequence.
* @param {TextReader} reader The reader should be positioned after the "u".
* @returns {string} A code unit.
*/
function readUnicodeSequence(reader) {
const regExp = /\{(?<hexDigits>[\dA-F]+)\}/iuy;
regExp.lastIndex = reader.pos;
const match = regExp.exec(reader.source);
if (match) {
const codePoint = parseInt(match.groups.hexDigits, 16);
reader.pos = regExp.lastIndex;
return String.fromCodePoint(codePoint);
}
return readHexSequence(reader, 4);
}
/**
* Reads an octal escape sequence.
* @param {TextReader} reader The reader should be positioned after the first octal digit.
* @param {number} maxLength The maximum number of octal digits.
* @returns {string} A code unit.
*/
function readOctalSequence(reader, maxLength) {
const [octalStr] = reader.read(-1, maxLength).match(/^[0-7]+/u);
reader.advance(octalStr.length - 1);
const octal = parseInt(octalStr, 8);
return String.fromCharCode(octal);
}
/**
* Reads an escape sequence or line continuation.
* @param {TextReader} reader The reader should be positioned on the backslash.
* @returns {string} A string of zero, one or two code units.
*/
function readEscapeSequenceOrLineContinuation(reader) {
const char = reader.read(1);
reader.advance(2);
const unitChar = SIMPLE_ESCAPE_SEQUENCES[char];
if (unitChar) {
return unitChar;
}
switch (char) {
case "x":
return readHexSequence(reader, 2);
case "u":
return readUnicodeSequence(reader);
case "\r":
if (reader.read() === "\n") {
reader.advance(1);
}
// fallthrough
case "\n":
case "\u2028":
case "\u2029":
return "";
case "0":
case "1":
case "2":
case "3":
return readOctalSequence(reader, 3);
case "4":
case "5":
case "6":
case "7":
return readOctalSequence(reader, 2);
default:
return char;
}
}
/**
* Reads an escape sequence or line continuation and generates the respective `CodeUnit` elements.
* @param {TextReader} reader The reader should be positioned on the backslash.
* @returns {Generator<CodeUnit>} Zero, one or two `CodeUnit` elements.
*/
function* mapEscapeSequenceOrLineContinuation(reader) {
const start = reader.pos;
const str = readEscapeSequenceOrLineContinuation(reader);
const end = reader.pos;
const source = reader.source.slice(start, end);
switch (str.length) {
case 0:
break;
case 1:
yield new CodeUnit(start, source);
break;
default:
yield new CodeUnit(start, source);
yield new CodeUnit(start, source);
break;
}
}
/**
* Parses a string literal.
* @param {string} source The string literal to parse, including the delimiting quotes.
* @returns {CodeUnit[]} A list of code units produced by the string literal.
*/
function parseStringLiteral(source) {
const reader = new TextReader(source);
const quote = reader.read();
reader.advance(1);
const codeUnits = [];
for (;;) {
const char = reader.read();
if (char === quote) {
break;
}
if (char === "\\") {
codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader));
} else {
codeUnits.push(new CodeUnit(reader.pos, char));
reader.advance(1);
}
}
return codeUnits;
}
/**
* Parses a template token.
* @param {string} source The template token to parse, including the delimiting sequences `` ` ``, `${` and `}`.
* @returns {CodeUnit[]} A list of code units produced by the template token.
*/
function parseTemplateToken(source) {
const reader = new TextReader(source);
reader.advance(1);
const codeUnits = [];
for (;;) {
const char = reader.read();
if (char === "`" || (char === "$" && reader.read(1) === "{")) {
break;
}
if (char === "\\") {
codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader));
} else {
let unitSource;
if (char === "\r" && reader.read(1) === "\n") {
unitSource = "\r\n";
} else {
unitSource = char;
}
codeUnits.push(new CodeUnit(reader.pos, unitSource));
reader.advance(unitSource.length);
}
}
return codeUnits;
}
module.exports = { parseStringLiteral, parseTemplateToken };
@@ -0,0 +1,68 @@
/**
* @fileoverview Enforce the state initialization style to be either in a constructor or with a class property
* @author Kanitkorn Sujautra
*/
'use strict';
const astUtil = require('../util/ast');
const componentUtil = require('../util/componentUtil');
const docsUrl = require('../util/docsUrl');
const report = require('../util/report');
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
const messages = {
stateInitConstructor: 'State initialization should be in a constructor',
stateInitClassProp: 'State initialization should be in a class property',
};
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
docs: {
description: 'Enforce class component state initialization style',
category: 'Stylistic Issues',
recommended: false,
url: docsUrl('state-in-constructor'),
},
messages,
schema: [{
enum: ['always', 'never'],
}],
},
create(context) {
const option = context.options[0] || 'always';
return {
'ClassProperty, PropertyDefinition'(node) {
if (
option === 'always'
&& !node.static
&& node.key.name === 'state'
&& componentUtil.getParentES6Component(context, node)
) {
report(context, messages.stateInitConstructor, 'stateInitConstructor', {
node,
});
}
},
AssignmentExpression(node) {
if (
option === 'never'
&& componentUtil.isStateMemberExpression(node.left)
&& astUtil.inConstructor(context, node)
&& componentUtil.getParentES6Component(context, node)
) {
report(context, messages.stateInitClassProp, 'stateInitClassProp', {
node,
});
}
},
};
},
};
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Markers = void 0;
/** @deprecated */
var Markers;
(function (Markers) {
Markers["start"] = "/**";
Markers["nostart"] = "/***";
Markers["delim"] = "*";
Markers["end"] = "*/";
})(Markers = exports.Markers || (exports.Markers = {}));
//# sourceMappingURL=primitives.cjs.map
@@ -0,0 +1,15 @@
/*
* Copyright 2024 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
// Custom event names for updating the autocomplete's aria-activedecendant.
export const CLEAR_FOCUS_EVENT = 'react-aria-clear-focus';
export const FOCUS_EVENT = 'react-aria-focus';
@@ -0,0 +1,10 @@
export declare class NodeIGlobalAdapter {
onLog(..._args: unknown[]): void;
onGetSrvCalTime(..._args: unknown[]): void;
onShowErrUITips(..._args: unknown[]): void;
fixPicImgType(..._args: unknown[]): void;
getAppSetting(..._args: unknown[]): void;
onInstallFinished(..._args: unknown[]): void;
onUpdateGeneralFlag(..._args: unknown[]): void;
onGetOfflineMsg(..._args: unknown[]): void;
}
@@ -0,0 +1,17 @@
var copyObject = require('./_copyObject'),
keysIn = require('./keysIn');
/**
* The base implementation of `_.assignIn` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssignIn(object, source) {
return object && copyObject(source, keysIn(source), object);
}
module.exports = baseAssignIn;
@@ -0,0 +1,22 @@
var baseRest = require('./_baseRest'),
unzip = require('./unzip');
/**
* Creates an array of grouped elements, the first of which contains the
* first elements of the given arrays, the second of which contains the
* second elements of the given arrays, and so on.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to process.
* @returns {Array} Returns the new array of grouped elements.
* @example
*
* _.zip(['a', 'b'], [1, 2], [true, false]);
* // => [['a', 1, true], ['b', 2, false]]
*/
var zip = baseRest(unzip);
module.exports = zip;
@@ -0,0 +1 @@
{"name":"esquery","version":"1.6.0","requiresBuild":false,"files":{"dist/esquery.esm.js":{"checkedAt":1794532094310,"integrity":"sha512-sjvM00VLydLvAPWoDY72CnD4qMZ3BaUIN4wgRysV2OKP3saaiRkb+ND/Elt5/qi15objBrTRhuLoxbC99ZEFpg==","mode":420,"size":124983},"dist/esquery.esm.min.js":{"checkedAt":1794532094310,"integrity":"sha512-v9XJ5mStwvB/3ItstVLjG6EjSMIT22EZM5N+V5zGkc78evpwQA+UVhRoxwG+Vqy4cvTzMh3OvuXex/hGRvwzzQ==","mode":420,"size":35160},"dist/esquery.js":{"checkedAt":1794532094311,"integrity":"sha512-JTPMOzfEFUjPVDUaWVZqHZM55G2PGx+HzgJ71RTmdm1XdAwVq9kKD9/cva1UIwDmra7YXdBjFtWFc1lj4khxtA==","mode":420,"size":133490},"dist/esquery.lite.js":{"checkedAt":1794532094311,"integrity":"sha512-L56ytqC9UGg+5VWYLqXFIpqdvawYoAWgIrNgKZKXuyy4Kl7RFnP4FHdfF2dNK3cy1WUn3S/vi6xsk0h/ejBXmg==","mode":420,"size":107945},"dist/esquery.lite.min.js":{"checkedAt":1794532094311,"integrity":"sha512-uIjxC5gquovO1b+beG6fc3v8BhX1Tsj0ZYTkqZ9teZbYmpLNqhpYeNPIJ9lsD5wtPWzJLg7ZC43e6WgIT/Y5CA==","mode":420,"size":24813},"dist/esquery.min.js":{"checkedAt":1794532094311,"integrity":"sha512-xQmPXEGMIGiaKHdzqJxfB6H6PNd1uivoyzuWpY4UIoK/nRkp1oTCOMCA3elI1LbXAxfiusrZaXkVo1eYRqWLiQ==","mode":420,"size":35341},"parser.js":{"checkedAt":1794532094312,"integrity":"sha512-PwcKjtsafRqU5T5SaFyMfMuT0ChZZuX/yf2AnwrAFz6myAjJhvKGMzMbswxRMgJrqaynvMKQNqAhqWELbcVtJw==","mode":420,"size":72830},"package.json":{"checkedAt":1794532094312,"integrity":"sha512-K5OLKFt3rHeLkK0o9JlMfwGyyKiCXHsdKu7eEkkDtD5flM5S/viJN84Il8VSW65Mjwkj/OAGWGrawcKu+W3hbQ==","mode":420,"size":2030},"dist/esquery.esm.min.js.map":{"checkedAt":1794532094312,"integrity":"sha512-gNwhxUM/9r2lSqMlueVX21VIIU9iKt7/x38MWJ2rX6ghwbBochpEHoF5HFkIztjfUxbES+QRH3ZDn2rLRXQIyw==","mode":420,"size":179272},"dist/esquery.lite.min.js.map":{"checkedAt":1794532094313,"integrity":"sha512-i1kzdBEHOjiPO430y9RUztW0gVu1rCqr1plNlTb9WCFi9eBGJ4cx1LHBUKEdY64agnEdmGw+nFEDhr8hpA+V1w==","mode":420,"size":138403},"dist/esquery.min.js.map":{"checkedAt":1794532094313,"integrity":"sha512-3940pZ0RjwtWD0qxzagt5EBUmLglwiWDAxB1lka+eKuwN1UM6phz1UzqRsYjLoBcxlxwgWP2INa9Htfotet2pg==","mode":420,"size":179268},"README.md":{"checkedAt":1794532094313,"integrity":"sha512-6ArYRS2BIlJGyW7NujdlMubUf7eAsO7qjxtQ3AN0AS0W98v1CYqGqF6XX2HJ6t65s+Lnb2TdcdmVZ126HHv8dg==","mode":420,"size":2187},"license.txt":{"checkedAt":1794532094313,"integrity":"sha512-KxZ+zb29Pc9n5t97m8OfTBuhCF+TBD4+SzWGL+PF5wUfFAtMXkHHv8IzgxhqoT9W+DoFHdJsuk4UG/hAFdLquQ==","mode":420,"size":1488}}}
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('after', require('../after'));
func.placeholder = require('./placeholder');
module.exports = func;
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more