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

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

No files matched your search

@@ -0,0 +1,66 @@
'use strict';
var utils = require('../utils.js');
require('eslint-visitor-keys');
require('espree');
require('estraverse');
var noWhitespaceBeforeProperty = utils.createRule({
name: "no-whitespace-before-property",
package: "js",
meta: {
type: "layout",
docs: {
description: "Disallow whitespace before properties"
},
fixable: "whitespace",
schema: [],
messages: {
unexpectedWhitespace: "Unexpected whitespace before property {{propName}}."
}
},
create(context) {
const sourceCode = context.sourceCode;
function reportError(node, leftToken, rightToken) {
context.report({
node,
messageId: "unexpectedWhitespace",
data: {
propName: sourceCode.getText(node.property)
},
fix(fixer) {
let replacementText = "";
if (!node.computed && !node.optional && utils.isDecimalInteger(node.object)) {
return null;
}
if (sourceCode.commentsExistBetween(leftToken, rightToken))
return null;
if (node.optional)
replacementText = "?.";
else if (!node.computed)
replacementText = ".";
return fixer.replaceTextRange([leftToken.range[1], rightToken.range[0]], replacementText);
}
});
}
return {
MemberExpression(node) {
let rightToken;
let leftToken;
if (!utils.isTokenOnSameLine(node.object, node.property))
return;
if (node.computed) {
rightToken = sourceCode.getTokenBefore(node.property, utils.isOpeningBracketToken);
leftToken = sourceCode.getTokenBefore(rightToken, node.optional ? 1 : 0);
} else {
rightToken = sourceCode.getFirstToken(node.property);
leftToken = sourceCode.getTokenBefore(rightToken, 1);
}
if (sourceCode.isSpaceBetweenTokens(leftToken, rightToken))
reportError(node, leftToken, rightToken);
}
};
}
});
module.exports = noWhitespaceBeforeProperty;
@@ -0,0 +1 @@
{"name":"undici-types","version":"6.21.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532091065,"integrity":"sha512-pVFqd00dT/0PxmkbY6ZkYriv+B7siZq+pJWsROXJg7Jg5pV7nSZGTG3Dr92pvgHhKiTGQTCYxDyGpBQTgHNI7A==","mode":420,"size":1090},"package.json":{"checkedAt":1794532091065,"integrity":"sha512-m04BGhiocJW4oOkRjpDfWkVsWmbCoMjK5IlJh7aI6kO/mU/B8ySJaUVaoAkBSQm8CNYJ8Xv8QMmyKUkemVnyjA==","mode":420,"size":1193},"README.md":{"checkedAt":1794532091065,"integrity":"sha512-Ua0Cq3c+cPY2pRau2gBhOATHoUDPUVJqfXDxrv/nm3BJ21Lq1N410Xb67D9X0P3nf3w1Slujdb7t/vkfJjAQEg==","mode":420,"size":455},"agent.d.ts":{"checkedAt":1794532091065,"integrity":"sha512-8c6qAnNfSKW/5k++oYTR55l+roEofolI4PimEjucv4WP+6EBdtMESHBcCWDyaTjcRyraiJ96dLw1C7oxyDlzxg==","mode":420,"size":1065},"api.d.ts":{"checkedAt":1794532091065,"integrity":"sha512-CewyJFz1lbodFwowUm0x3lvpXA6W4iyvqofpqliNx9B3zzgcSNwgrUyoo9O5AcdvrP9Ka+BPqKavrRYbW8WiMw==","mode":420,"size":1455},"balanced-pool.d.ts":{"checkedAt":1794532091065,"integrity":"sha512-+LsCALjz4296lbxNRhYGTD/qmAoVjm4C77fg0qpOdZ5MjwjgcEsIDivXI1+pURPTu4+Vg0mvGR9ktZrwJWqIPg==","mode":420,"size":961},"cache.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-g+8WZhBufA+IN+Qytgaj+QP+Oiml4I5EUEGlgib4y/pm9acyDkdNkXoe+Uvhfq3dUsxEm9K46CLydhnnKayMDA==","mode":420,"size":1251},"client.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-XIX+4X+ZtVYouhdHlGxmjagHCWDvUuRKuBAW/wF5wCIwqdS60iWMVECoxD4O5XwyzHtHRFDQYOjU8vrcEVARcw==","mode":420,"size":4964},"connector.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-swtwCwGJrrO/sUBeZFdJGY9hCN62Q47kfc+sg4DBfLkpoqaqBh3T32Dhyg2Gb6r48DtrzflWiKGy+hQ0NZnROQ==","mode":420,"size":1029},"content-type.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-0QdEAAB9S2c80xA1nANZRgLjeKWSDZ/121CLg0/Yi2l5yj7gy+DCiPh/n3/ABKNxSEU+9XWbLLQ73csz/+Tulw==","mode":420,"size":561},"cookies.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-7IPEWmdPmHQBJ5Zz3HWis+dA34ON1dPNv1JW5GX5VD4Gx5Zl7hKiGwLbcnyHfW9hWbDWvytTJMQXJWLs6p9z4A==","mode":420,"size":635},"diagnostics-channel.d.ts":{"checkedAt":1794532091066,"integrity":"sha512-Q9gROR+sflCp8R36CjS68nad+Ap8s0oUbC7HjDAprtUrFsco4P/LZD18SsACnoCfFRMixcfnFyRz0o/NoYB0qQ==","mode":420,"size":1579},"dispatcher.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-HmH1fNTlMZGaWw7J7WtCf7T5zG6w8CTt+4L/LxlRZZQCHjfN6Cc1GdemNtBacs0l30NR6Rp6SljGAN75VYEfYQ==","mode":420,"size":14222},"env-http-proxy-agent.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-F4ArhLhBCgI5VfVtMbSFx9K2iOuWRKEmpoBVFaFsB9srBtaKZDJnqEZRrhXpol0E3xF/YkwawHrOr2rDvlWcXg==","mode":420,"size":675},"errors.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-d0v4tW2qTUzjxeFIWgkaO2AEau1G4fj4XfdDPpg1ph9tPDFWrlzoUdOkKorF6q2ohPcIg374VtWkdReky5S+vg==","mode":420,"size":4280},"eventsource.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-dvEWE1DB6L+qRpEdMQqtaFAqBu7vfpkYGBi6Qm2xBoFUnL8JhC+z13aoP+h/xS3GdoT2eXPPY1hC5tl2XJKP3g==","mode":420,"size":1648},"fetch.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-BGMHAlKFq7k68gsjB/znvvxcciysJGIJbmoUGWFfEV1w/kHdbz1mI5BzLVEtNe/TRvXb/4N2ZNINuea2fFQkqQ==","mode":420,"size":5575},"file.d.ts":{"checkedAt":1794532091067,"integrity":"sha512-K9l7f89iGcQy2VeGuDcuO0BMrGGr9NotKMm/qCjXufWXij9ojLH81oeWJxLLZ+Mg0HAgj7BOu9yvNph6LtFuWw==","mode":420,"size":1707},"filereader.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-sGRR8ccptf1+gSUBEkAV51N0Ev3lfDN4wd0svfIsn+EDibBBPHG7AL0pWs1ta4jDYDAR6Yk6FJuDKNC7c5bRSA==","mode":420,"size":1433},"formdata.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-xdWkUpvQaYuqAGgba1KjZsJi+8DRKzLQAV/lXPx+IfYg3GMnE7Aa5GkbwexYpekBCp8y4iW6b8Lqt4+fgDXUWA==","mode":420,"size":4998},"global-dispatcher.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-ZLbmJz7aVdS+PTcMQBCUYlut7lMP6V7SodwD7a7T1F/b8/D8X6BR7+ull4gEOQy5y3nFvLY4ApGT4atPVS6oSw==","mode":420,"size":276},"global-origin.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-8fGoLU/ZCAadZdWxTjSlFCRaMA+fqQncEWAzcI4fhSmd1qVeJuXji0ASBKWAv8DsoIVDRewvnGy9A+FLdI0CCA==","mode":420,"size":175},"handlers.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-4nPAuyDvR8xETHHmocs8cQb7a1s4WdSkdYudH2UDNIttkw+/PYMdu5nLDgLR9A0cJjwRsO8mfEnE0GKlIOLktQ==","mode":420,"size":447},"header.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-ZndPriRc57uhMjH8NqHTg6h/ho/b2CmGVwQWU3di2cHfBXfwHmirJgcwE9rNLxXQ2lP6x1SlHZiudaxFwuyOsQ==","mode":420,"size":133},"index.d.ts":{"checkedAt":1794532091068,"integrity":"sha512-C4kvKV6AtUtlZXzMxVkuuCZ4tFjTgoNlxxb0C1yexiGj0vI5PoLTCWmzxANulR/Z2MV3MeUhVUrvwMlm9KvUcA==","mode":420,"size":3387},"interceptors.d.ts":{"checkedAt":1794532091069,"integrity":"sha512-/q7YAaox+dBc/8YSnDu6QqmCjL8c7Y9eYwkypW3K7OnnrOg0HBg3oP6jwiOA3qDAgCVrf/C/RnzN19F6DlHOkQ==","mode":420,"size":922},"mock-agent.d.ts":{"checkedAt":1794532091069,"integrity":"sha512-xMqppUybC2PCOOO6HWIaGUviCEp7OqbojbLG9HL9lkJq0Z2+Tzxnd19t30WsN5pxr/OS23EoDMPeDyQFXRtroA==","mode":420,"size":2535},"mock-client.d.ts":{"checkedAt":1794532091069,"integrity":"sha512-6FRiixkHn8dzYfp4TQPN7cFVpT37M8e4CYh2Uxo5BuuKVLCrD7dabaTToGH08AhtMI8STLine truncated
@@ -0,0 +1,129 @@
/*
* 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.
*/
// Portions of the code in this file are based on code from ICU.
// Original licensing can be found in the NOTICE file in the root directory of this source tree.
import {AnyCalendarDate, CalendarIdentifier} from '../types';
import {CalendarDate} from '../CalendarDate';
import {fromExtendedYear, GregorianCalendar, gregorianToJulianDay, isLeapYear} from './GregorianCalendar';
// Starts in 78 AD,
const INDIAN_ERA_START = 78;
// The Indian year starts 80 days later than the Gregorian year.
const INDIAN_YEAR_START = 80;
/**
* The Indian National Calendar is similar to the Gregorian calendar, but with
* years numbered since the Saka era in 78 AD (Gregorian). There are 12 months
* in each year, with either 30 or 31 days. Only one era identifier is supported: 'saka'.
*/
export class IndianCalendar extends GregorianCalendar {
identifier: CalendarIdentifier = 'indian';
fromJulianDay(jd: number): CalendarDate {
// Gregorian date for Julian day
let date = super.fromJulianDay(jd);
// Year in Saka era
let indianYear = date.year - INDIAN_ERA_START;
// Day number in Gregorian year (starting from 0)
let yDay = jd - gregorianToJulianDay(date.era, date.year, 1, 1);
let leapMonth: number;
if (yDay < INDIAN_YEAR_START) {
// Day is at the end of the preceding Saka year
indianYear--;
// Days in leapMonth this year, previous Gregorian year
leapMonth = isLeapYear(date.year - 1) ? 31 : 30;
yDay += leapMonth + (31 * 5) + (30 * 3) + 10;
} else {
// Days in leapMonth this year
leapMonth = isLeapYear(date.year) ? 31 : 30;
yDay -= INDIAN_YEAR_START;
}
let indianMonth: number;
let indianDay: number;
if (yDay < leapMonth) {
indianMonth = 1;
indianDay = yDay + 1;
} else {
let mDay = yDay - leapMonth;
if (mDay < (31 * 5)) {
indianMonth = Math.floor(mDay / 31) + 2;
indianDay = (mDay % 31) + 1;
} else {
mDay -= 31 * 5;
indianMonth = Math.floor(mDay / 30) + 7;
indianDay = (mDay % 30) + 1;
}
}
return new CalendarDate(this, indianYear, indianMonth, indianDay);
}
toJulianDay(date: AnyCalendarDate): number {
let extendedYear = date.year + INDIAN_ERA_START;
let [era, year] = fromExtendedYear(extendedYear);
let leapMonth: number;
let jd: number;
if (isLeapYear(year)) {
leapMonth = 31;
jd = gregorianToJulianDay(era, year, 3, 21);
} else {
leapMonth = 30;
jd = gregorianToJulianDay(era, year, 3, 22);
}
if (date.month === 1) {
return jd + date.day - 1;
}
jd += leapMonth + Math.min(date.month - 2, 5) * 31;
if (date.month >= 8) {
jd += (date.month - 7) * 30;
}
jd += date.day - 1;
return jd;
}
getDaysInMonth(date: AnyCalendarDate): number {
if (date.month === 1 && isLeapYear(date.year + INDIAN_ERA_START)) {
return 31;
}
if (date.month >= 2 && date.month <= 6) {
return 31;
}
return 30;
}
getYearsInEra(): number {
// 9999-12-31 gregorian is 9920-10-10 indian.
// Round down to 9919 for the last full year.
return 9919;
}
getEras(): string[] {
return ['saka'];
}
balanceDate(): void {}
}
@@ -0,0 +1 @@
{"version":3,"file":"conout.js","sourceRoot":"","sources":["../../src/shared/conout.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAUH,SAAgB,iBAAiB,CAAC,cAAsB;IACtD,OAAU,cAAc,YAAS,CAAC;AACpC,CAAC;AAFD,8CAEC"}
@@ -0,0 +1 @@
{"version":3,"file":"foreignNames.d.ts","sourceRoot":"","sources":["../src/foreignNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,qBAwCxB,CAAC;AACF,eAAO,MAAM,cAAc,qBA8D1B,CAAC"}
@@ -0,0 +1,24 @@
(The MIT License)
Copyright (c) 2013 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2014 Jeremiah Senkpiel <fishrock123@rocketmail.com>
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.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 @@
{"version":3,"file":"issue_706.test.d.ts","sourceRoot":"","sources":["../../../../src/test/bugs/issue_706.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
if (typeof Iterator === 'function' && typeof Iterator.prototype.map === 'function') {
try {
// https://issues.chromium.org/issues/336839115
Iterator.prototype.map.call({ next: null }, function () {}).next();
} catch (e) {
return Iterator.prototype.map;
}
}
return implementation;
};
@@ -0,0 +1,9 @@
export { SortableContext } from './components';
export type { SortableContextProps } from './components';
export { useSortable, defaultAnimateLayoutChanges, defaultNewIndexGetter, } from './hooks';
export type { UseSortableArguments, AnimateLayoutChanges, NewIndexGetter, } from './hooks';
export { horizontalListSortingStrategy, rectSortingStrategy, rectSwappingStrategy, verticalListSortingStrategy, } from './strategies';
export { sortableKeyboardCoordinates } from './sensors';
export { arrayMove, arraySwap } from './utilities';
export { hasSortableData } from './types';
export type { SortableData, SortingStrategy } from './types';
@@ -0,0 +1 @@
{"version":3,"names":["_isNativeReflectConstruct","require","_setPrototypeOf","_construct","Parent","args","Class","isNativeReflectConstruct","Reflect","construct","apply","arguments","a","push","instance","bind","setPrototypeOf","prototype"],"sources":["../../src/helpers/construct.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.ts\";\nimport setPrototypeOf from \"./setPrototypeOf.ts\";\n\nexport default function _construct(\n Parent: Function,\n args: any[],\n Class: Function,\n): any {\n if (isNativeReflectConstruct()) {\n // Avoid issues with Class being present but undefined when it wasn't\n // present in the original call.\n return Reflect.construct.apply(null, arguments as any);\n }\n // NOTE: If Parent !== Class, the correct __proto__ is set *after*\n // calling the constructor.\n var a: [any, ...any[]] = [null];\n a.push.apply(a, args);\n var instance = new (Parent.bind.apply(Parent, a))();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAEe,SAASE,UAAUA,CAChCC,MAAgB,EAChBC,IAAW,EACXC,KAAe,EACV;EACL,IAAI,IAAAC,iCAAwB,EAAC,CAAC,EAAE;IAG9B,OAAOC,OAAO,CAACC,SAAS,CAACC,KAAK,CAAC,IAAI,EAAEC,SAAgB,CAAC;EACxD;EAGA,IAAIC,CAAkB,GAAG,CAAC,IAAI,CAAC;EAC/BA,CAAC,CAACC,IAAI,CAACH,KAAK,CAACE,CAAC,EAAEP,IAAI,CAAC;EACrB,IAAIS,QAAQ,GAAG,KAAKV,MAAM,CAACW,IAAI,CAACL,KAAK,CAACN,MAAM,EAAEQ,CAAC,CAAC,EAAE,CAAC;EACnD,IAAIN,KAAK,EAAE,IAAAU,uBAAc,EAACF,QAAQ,EAAER,KAAK,CAACW,SAAS,CAAC;EACpD,OAAOH,QAAQ;AACjB","ignoreList":[]}
@@ -0,0 +1,386 @@
/*
Copyright spdx-correct.js contributors
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.
*/
var parse = require('spdx-expression-parse')
var spdxLicenseIds = require('spdx-license-ids')
function valid (string) {
try {
parse(string)
return true
} catch (error) {
return false
}
}
// Sorting function that orders the given array of transpositions such
// that a transposition with the longer pattern comes before a transposition
// with a shorter pattern. This is to prevent e.g. the transposition
// ["General Public License", "GPL"] from matching to "Lesser General Public License"
// before a longer and more accurate transposition ["Lesser General Public License", "LGPL"]
// has a chance to be recognized.
function sortTranspositions(a, b) {
var length = b[0].length - a[0].length
if (length !== 0) return length
return a[0].toUpperCase().localeCompare(b[0].toUpperCase())
}
// Common transpositions of license identifier acronyms
var transpositions = [
['APGL', 'AGPL'],
['Gpl', 'GPL'],
['GLP', 'GPL'],
['APL', 'Apache'],
['ISD', 'ISC'],
['GLP', 'GPL'],
['IST', 'ISC'],
['Claude', 'Clause'],
[' or later', '+'],
[' International', ''],
['GNU', 'GPL'],
['GUN', 'GPL'],
['+', ''],
['GNU GPL', 'GPL'],
['GNU LGPL', 'LGPL'],
['GNU/GPL', 'GPL'],
['GNU GLP', 'GPL'],
['GNU LESSER GENERAL PUBLIC LICENSE', 'LGPL'],
['GNU Lesser General Public License', 'LGPL'],
['GNU LESSER GENERAL PUBLIC LICENSE', 'LGPL-2.1'],
['GNU Lesser General Public License', 'LGPL-2.1'],
['LESSER GENERAL PUBLIC LICENSE', 'LGPL'],
['Lesser General Public License', 'LGPL'],
['LESSER GENERAL PUBLIC LICENSE', 'LGPL-2.1'],
['Lesser General Public License', 'LGPL-2.1'],
['GNU General Public License', 'GPL'],
['Gnu public license', 'GPL'],
['GNU Public License', 'GPL'],
['GNU GENERAL PUBLIC LICENSE', 'GPL'],
['MTI', 'MIT'],
['Mozilla Public License', 'MPL'],
['Universal Permissive License', 'UPL'],
['WTH', 'WTF'],
['WTFGPL', 'WTFPL'],
['-License', '']
].sort(sortTranspositions)
var TRANSPOSED = 0
var CORRECT = 1
// Simple corrections to nearly valid identifiers.
var transforms = [
// e.g. 'mit'
function (argument) {
return argument.toUpperCase()
},
// e.g. 'MIT '
function (argument) {
return argument.trim()
},
// e.g. 'M.I.T.'
function (argument) {
return argument.replace(/\./g, '')
},
// e.g. 'Apache- 2.0'
function (argument) {
return argument.replace(/\s+/g, '')
},
// e.g. 'CC BY 4.0''
function (argument) {
return argument.replace(/\s+/g, '-')
},
// e.g. 'LGPLv2.1'
function (argument) {
return argument.replace('v', '-')
},
// e.g. 'Apache 2.0'
function (argument) {
return argument.replace(/,?\s*(\d)/, '-$1')
},
// e.g. 'GPL 2'
function (argument) {
return argument.replace(/,?\s*(\d)/, '-$1.0')
},
// e.g. 'Apache Version 2.0'
function (argument) {
return argument
.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2')
},
// e.g. 'Apache Version 2'
function (argument) {
return argument
.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2.0')
},
// e.g. 'ZLIB'
function (argument) {
return argument[0].toUpperCase() + argument.slice(1)
},
// e.g. 'MPL/2.0'
function (argument) {
return argument.replace('/', '-')
},
// e.g. 'Apache 2'
function (argument) {
return argument
.replace(/\s*V\s*(\d)/, '-$1')
.replace(/(\d)$/, '$1.0')
},
// e.g. 'GPL-2.0', 'GPL-3.0'
function (argument) {
if (argument.indexOf('3.0') !== -1) {
return argument + '-or-later'
} else {
return argument + '-only'
}
},
// e.g. 'GPL-2.0-'
function (argument) {
return argument + 'only'
},
// e.g. 'GPL2'
function (argument) {
return argument.replace(/(\d)$/, '-$1.0')
},
// e.g. 'BSD 3'
function (argument) {
return argument.replace(/(-| )?(\d)$/, '-$2-Clause')
},
// e.g. 'BSD clause 3'
function (argument) {
return argument.replace(/(-| )clause(-| )(\d)/, '-$3-Clause')
},
// e.g. 'New BSD license'
function (argument) {
return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, 'BSD-3-Clause')
},
// e.g. 'Simplified BSD license'
function (argument) {
return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, 'BSD-2-Clause')
},
// e.g. 'Free BSD license'
function (argument) {
return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, 'BSD-2-Clause-$1BSD')
},
// e.g. 'Clear BSD license'
function (argument) {
return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, 'BSD-3-Clause-Clear')
},
// e.g. 'Old BSD License'
function (argument) {
return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, 'BSD-4-Clause')
},
// e.g. 'BY-NC-4.0'
function (argument) {
return 'CC-' + argument
},
// e.g. 'BY-NC'
function (argument) {
return 'CC-' + argument + '-4.0'
},
// e.g. 'Attribution-NonCommercial'
function (argument) {
return argument
.replace('Attribution', 'BY')
.replace('NonCommercial', 'NC')
.replace('NoDerivatives', 'ND')
.replace(/ (\d)/, '-$1')
.replace(/ ?International/, '')
},
// e.g. 'Attribution-NonCommercial'
function (argument) {
return 'CC-' +
argument
.replace('Attribution', 'BY')
.replace('NonCommercial', 'NC')
.replace('NoDerivatives', 'ND')
.replace(/ (\d)/, '-$1')
.replace(/ ?International/, '') +
'-4.0'
}
]
var licensesWithVersions = spdxLicenseIds
.map(function (id) {
var match = /^(.*)-\d+\.\d+$/.exec(id)
return match
? [match[0], match[1]]
: [id, null]
})
.reduce(function (objectMap, item) {
var key = item[1]
objectMap[key] = objectMap[key] || []
objectMap[key].push(item[0])
return objectMap
}, {})
var licensesWithOneVersion = Object.keys(licensesWithVersions)
.map(function makeEntries (key) {
return [key, licensesWithVersions[key]]
})
.filter(function identifySoleVersions (item) {
return (
// Licenses has just one valid version suffix.
item[1].length === 1 &&
item[0] !== null &&
// APL will be considered Apache, rather than APL-1.0
item[0] !== 'APL'
)
})
.map(function createLastResorts (item) {
return [item[0], item[1][0]]
})
licensesWithVersions = undefined
// If all else fails, guess that strings containing certain substrings
// meant to identify certain licenses.
var lastResorts = [
['UNLI', 'Unlicense'],
['WTF', 'WTFPL'],
['2 CLAUSE', 'BSD-2-Clause'],
['2-CLAUSE', 'BSD-2-Clause'],
['3 CLAUSE', 'BSD-3-Clause'],
['3-CLAUSE', 'BSD-3-Clause'],
['AFFERO', 'AGPL-3.0-or-later'],
['AGPL', 'AGPL-3.0-or-later'],
['APACHE', 'Apache-2.0'],
['ARTISTIC', 'Artistic-2.0'],
['Affero', 'AGPL-3.0-or-later'],
['BEER', 'Beerware'],
['BOOST', 'BSL-1.0'],
['BSD', 'BSD-2-Clause'],
['CDDL', 'CDDL-1.1'],
['ECLIPSE', 'EPL-1.0'],
['FUCK', 'WTFPL'],
['GNU', 'GPL-3.0-or-later'],
['LGPL', 'LGPL-3.0-or-later'],
['GPLV1', 'GPL-1.0-only'],
['GPL-1', 'GPL-1.0-only'],
['GPLV2', 'GPL-2.0-only'],
['GPL-2', 'GPL-2.0-only'],
['GPL', 'GPL-3.0-or-later'],
['MIT +NO-FALSE-ATTRIBS', 'MITNFA'],
['MIT', 'MIT'],
['MPL', 'MPL-2.0'],
['X11', 'X11'],
['ZLIB', 'Zlib']
].concat(licensesWithOneVersion).sort(sortTranspositions)
var SUBSTRING = 0
var IDENTIFIER = 1
var validTransformation = function (identifier) {
for (var i = 0; i < transforms.length; i++) {
var transformed = transforms[i](identifier).trim()
if (transformed !== identifier && valid(transformed)) {
return transformed
}
}
return null
}
var validLastResort = function (identifier) {
var upperCased = identifier.toUpperCase()
for (var i = 0; i < lastResorts.length; i++) {
var lastResort = lastResorts[i]
if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
return lastResort[IDENTIFIER]
}
}
return null
}
var anyCorrection = function (identifier, check) {
for (var i = 0; i < transpositions.length; i++) {
var transposition = transpositions[i]
var transposed = transposition[TRANSPOSED]
if (identifier.indexOf(transposed) > -1) {
var corrected = identifier.replace(
transposed,
transposition[CORRECT]
)
var checked = check(corrected)
if (checked !== null) {
return checked
}
}
}
return null
}
module.exports = function (identifier, options) {
options = options || {}
var upgrade = options.upgrade === undefined ? true : !!options.upgrade
function postprocess (value) {
return upgrade ? upgradeGPLs(value) : value
}
var validArugment = (
typeof identifier === 'string' &&
identifier.trim().length !== 0
)
if (!validArugment) {
throw Error('Invalid argument. Expected non-empty string.')
}
identifier = identifier.trim()
if (valid(identifier)) {
return postprocess(identifier)
}
var noPlus = identifier.replace(/\+$/, '').trim()
if (valid(noPlus)) {
return postprocess(noPlus)
}
var transformed = validTransformation(identifier)
if (transformed !== null) {
return postprocess(transformed)
}
transformed = anyCorrection(identifier, function (argument) {
if (valid(argument)) {
return argument
}
return validTransformation(argument)
})
if (transformed !== null) {
return postprocess(transformed)
}
transformed = validLastResort(identifier)
if (transformed !== null) {
return postprocess(transformed)
}
transformed = anyCorrection(identifier, validLastResort)
if (transformed !== null) {
return postprocess(transformed)
}
return null
}
function upgradeGPLs (value) {
if ([
'GPL-1.0', 'LGPL-1.0', 'AGPL-1.0',
'GPL-2.0', 'LGPL-2.0', 'AGPL-2.0',
'LGPL-2.1'
].indexOf(value) !== -1) {
return value + '-only'
} else if ([
'GPL-1.0+', 'GPL-2.0+', 'GPL-3.0+',
'LGPL-2.0+', 'LGPL-2.1+', 'LGPL-3.0+',
'AGPL-1.0+', 'AGPL-3.0+'
].indexOf(value) !== -1) {
return value.replace(/\+$/, '-or-later')
} else if (['GPL-3.0', 'LGPL-3.0', 'AGPL-3.0'].indexOf(value) !== -1) {
return value + '-or-later'
} else {
return value
}
}
@@ -0,0 +1,29 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/base/table-body.tsx
var table_body_exports = {};
__export(table_body_exports, {
default: () => table_body_default
});
module.exports = __toCommonJS(table_body_exports);
var import_table = require("@react-stately/table");
var TableBody = import_table.TableBody;
var table_body_default = TableBody;
@@ -0,0 +1 @@
{"name":"vite-plugin-static-copy","version":"2.3.2","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532124405,"integrity":"sha512-az9M6TwPmDq1hCtLEOAaVy41YGzloSWBmcSd3KetmhVQWsAzse8b+MGmtpcuXU60mUlO06hCQ+ZnuvmyYFgFFw==","mode":420,"size":1067},"dist/index.js":{"checkedAt":1794532124405,"integrity":"sha512-gdlxVxB5qGgHV/RCf0dr+t+4w60Cap/HrdCR4k0DkGJDwqPtxVoVb9EvQXUsOHpFvmYiekieUKqyRL9zOCXapw==","mode":420,"size":34936},"package.json":{"checkedAt":1794532124405,"integrity":"sha512-O/xnAnUV6dh9YOvqchOZsuNEOUvBxUMsyi3lCm7hzcMOrK3PAvH+rJyTfWmW87ZHBUtEZ47uqtFMWW8jA7BabA==","mode":420,"size":1987},"README.md":{"checkedAt":1794532124405,"integrity":"sha512-7fGZUVkYi1KPXhqdDNAWxrjCg2+SgvfxBl1vtG1t5g0nykGBgaRaDig4jntZeH/MWeCyVV9r08Rjcg1zgplY1w==","mode":420,"size":3403},"dist/index.d.ts":{"checkedAt":1794532124405,"integrity":"sha512-BMnteJfSqSncZVn9j+li/x7XpHmUIzu5/hEF7+mZ5j3LOvgzrRr7xGZTp4HLLkrMl/NklYS3tKi7J6lAFNo8bw==","mode":420,"size":2798}}}
@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getCFFString;
var _cffStandardStrings = _interopRequireDefault(require("./cffStandardStrings"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @file 获取cff字符串
* @author mengke01(kekee000@gmail.com)
*/
/**
* 根据索引获取cff字符串
*
* @param {Object} strings 标准cff字符串索引
* @param {number} index 索引号
* @return {number} 字符串索引
*/
function getCFFString(strings, index) {
if (index <= 390) {
index = _cffStandardStrings.default[index];
}
// Strings below index 392 are standard CFF strings and are not encoded in the font.
else {
index = strings[index - 391];
}
return index;
}
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/string.prototype.matchall
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,57 @@
{
"name": "es-module-lexer",
"version": "1.7.0",
"description": "Lexes ES modules returning their import/export metadata",
"main": "dist/lexer.cjs",
"module": "dist/lexer.js",
"types": "types/lexer.d.ts",
"exports": {
".": {
"types": "./types/lexer.d.ts",
"module": "./dist/lexer.js",
"import": "./dist/lexer.js",
"require": "./dist/lexer.cjs"
},
"./js": {
"types": "./types/lexer.d.ts",
"default": "./dist/lexer.asm.js"
}
},
"scripts": {
"build": "npm install -g chomp ; chomp build",
"test": "npm install -g chomp ; chomp test"
},
"author": "Guy Bedford",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.224",
"@types/node": "^18.7.1",
"kleur": "^2.0.2",
"mocha": "^5.2.0",
"terser": "^5.19.4",
"typescript": "^4.7.4"
},
"files": [
"dist",
"types",
"lexer.js"
],
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/guybedford/es-module-lexer.git"
},
"bugs": {
"url": "https://github.com/guybedford/es-module-lexer/issues"
},
"homepage": "https://github.com/guybedford/es-module-lexer#readme",
"directories": {
"lib": "lib",
"test": "test"
},
"keywords": []
}
@@ -0,0 +1,6 @@
function makeAnimationInstant(options) {
options.duration = 0;
options.type = "keyframes";
}
export { makeAnimationInstant };
@@ -0,0 +1,587 @@
# NAN ChangeLog
**Version 2.24.0: current Node 25.2.1, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1**
### 2.24.0 Dec 03 2025
- Feature: Adding new Nan::TryEncode() wrapper for node::TryEncode() (#1005) fd5ff3f5ab3f5bb6bb6dd2d247f3eccd79227854
### 2.23.1 Nov 05 2025
- Feature: Adding WriteUtf8V2() and SetPrototypeV2() methods to support v8 14.3 (#1004) 9e1106ab7b7036d262df7f430eee3bff33757e9a
### 2.23.0 Jul 10 2025
- Feature: Support Node 23 (#979) 59ab6d03d5d68554290ee9f34003cd90aa92c185
### 2.22.2 Feb 26 2025
- Bugfix: Fix version guard for `ScriptOrigin` constructors (#989) 053239d73702ac11fa0c3c438f85c1409f960f89
### 2.22.1 Feb 21 2025
- Build: Fix compatibility with Python >= 3.12 (#987) b5d90f15730b620fb6cc4fed079674740424539a
### 2.22.0 Oct 11 2024
- Feature: replace SetAccessor -> SetNativeDataProperty (#977) 6bd62c9a0004339d5d1e18a945c84929d0f6b808
### 2.21.0 Oct 10 2024
- Feature: Support for node version 20.17.0 (#976) a7df36eda8a7fe8581c00a18590f5e4faafca7ae
### 2.20.0 Jun 12 2024
- Feature: fix removal of v8::CopyablePersistent (#970) 5805ca5c4c2eef9a65316b68741e29f4825c511f
### 2.19.0 Mar 6 2024
- Feature: Fix builds for Electron 29 (#966) 1b630ddb3412cde35b64513662b440f9fd71e1ff
### 2.18.0 Sep 12 2023
- Feature: Cast v8::Object::GetInternalField() return value to v8::Value (#956) bdfee1788239f735b67fe6b46b1439da755e9b62
### 2.17.0 Oct 10 2022
- Feature: overload deprecated AccessorSignatures (#943) 7f9ceb80fbc45c9ba1a10e6591ccbef9e8dee6b4
### 2.16.0 May 25 2022
- Feature: Add support for Node 18 (#937) 16fa32231e2ccd89d2804b3f765319128b20c4ac
### 2.15.0 Aug 4 2021
- Feature: add ScriptOrigin (#918) d09debf9eeedcb7ca4073e84ffe5fbb455ecb709
### 2.14.2 Oct 13 2020
- Bugfix: fix gcc 8 function cast warning (#899) 35f0fab205574b2cbda04e6347c8b2db755e124f
### 2.14.1 Apr 21 2020
- Bugfix: use GetBackingStore() instead of GetContents() (#888) 2c023bd447661a61071da318b0ff4003c3858d39
### 2.14.0 May 16 2019
- Feature: Add missing methods to Nan::Maybe<T> (#852) 4e962489fb84a184035b9fa74f245f650249aca6
### 2.13.2 Mar 24 2019
- Bugfix: remove usage of deprecated `IsNearDeath` (#842) fbaf42252af279c3d867c6b193571f9711c39847
### 2.13.1 Mar 14 2019
- Bugfix: check V8 version directly instead of inferring from NMV (#840) 12f9df9f393285de8fb4a8cd01478dc4fe3b089d
### 2.13.0 Mar 13 2019
- Feature: add support for node master (#831) 113c0282072e7ff4f9dfc98b432fd894b798c2c
### 2.12.1 Dec 18 2018
- Bugfix: Fix build breakage with Node.js 10.0.0-10.9.0. (#833) 625e90e8fef8d39ffa7247250a76a100b2487474
### 2.12.0 Dec 16 2018
- Bugfix: Add scope.Escape() to Call() (#817) 2e5ed4fc3a8ac80a6ef1f2a55099ab3ac8800dc6
- Bugfix: Fix Node.js v10.12.0 deprecation warnings. 509859cc23b1770376b56550a027840a2ce0f73d
- Feature: Allow SetWeak() for non-object persistent handles. (#824) e6ef6a48e7e671fe3e4b7dddaa8912a3f8262ecd
### 2.11.1 Sep 29 2018
- Fix: adapt to V8 7.0 24a22c3b25eeeec2016c6ec239bdd6169e985447
### 2.11.0 Aug 25 2018
- Removal: remove `FunctionCallbackInfo::Callee` for nodejs `>= 10` 1a56c0a6efd4fac944cb46c30912a8e023bda7d4
- Bugfix: Fix `AsyncProgressWorkerBase::WorkProgress` sends invalid data b0c764d1dab11e9f8b37ffb81e2560a4498aad5e
- Feature: Introduce `GetCurrentEventLoop` b4911b0bb1f6d47d860e10ec014d941c51efac5e
- Feature: Add `NAN_MODULE_WORKER_ENABLED` macro as a replacement for `NAN_MODULE` b058fb047d18a58250e66ae831444441c1f2ac7a
### 2.10.0 Mar 16 2018
- Deprecation: Deprecate `MakeCallback` 5e92b19a59e194241d6a658bd6ff7bfbda372950
- Feature: add `Nan::Call` overload 4482e1242fe124d166fc1a5b2be3c1cc849fe452
- Feature: add more `Nan::Call` overloads 8584e63e6d04c7d2eb8c4a664e4ef57d70bf672b
- Feature: Fix deprecation warnings for Node 10 1caf258243b0602ed56922bde74f1c91b0cbcb6a
### 2.9.2 Feb 22 2018
- Bugfix: Bandaid for async hooks 212bd2f849be14ef1b02fc85010b053daa24252b
### 2.9.1 Feb 22 2018
- Bugfix: Avoid deprecation warnings in deprecated `Nan::Callback::operator()` 372b14d91289df4604b0f81780709708c45a9aa4
- Bugfix: Avoid deprecation warnings in `Nan::JSON` 3bc294bce0b7d0a3ee4559926303e5ed4866fda2
### 2.9.0 Feb 22 2018
- Deprecation: Deprecate legacy `Callback::Call` 6dd5fa690af61ca3523004b433304c581b3ea309
- Feature: introduce `AsyncResource` class 90c0a179c0d8cb5fd26f1a7d2b1d6231eb402d48o
- Feature: Add context aware `Nan::Callback::Call` functions 7169e09fb088418b6e388222e88b4c13f07ebaee
- Feature: Make `AsyncWorker` context aware 066ba21a6fb9e2b5230c9ed3a6fc51f1211736a4
- Feature: add `Callback` overload to `Nan::Call` 5328daf66e202658c1dc0d916c3aaba99b3cc606
- Bugfix: fix warning: suggest parentheses around `&&` within `||` b2bb63d68b8ae623a526b542764e1ac82319cb2c
- Bugfix: Fix compilation on io.js 3 d06114dba0a522fb436f0c5f47b994210968cd7b
### 2.8.0 Nov 15 2017
- Deprecation: Deprecate `Nan::ForceSet` in favor of `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
- Feature: Add `Nan::AsyncProgressQueueWorker` a976636ecc2ef617d1b061ce4a6edf39923691cb
- Feature: Add `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
- Bugfix: Fix compiling on io.js 1 & 2 82705a64503ce60c62e98df5bd02972bba090900
- Bugfix: Use DefineOwnProperty instead of ForceSet 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
### 2.7.0 Aug 30 2017
- Feature: Add `Nan::To<v8::Function>()` overload. b93280670c9f6da42ed4cf6cbf085ffdd87bd65b
- Bugfix: Fix ternary in `Nan::MaybeLocal<T>::FromMaybe<S>()`. 79a26f7d362e756a9524e672a82c3d603b542867
### 2.6.2 Apr 12 2017
- Bugfix: Fix v8::JSON::Parse() deprecation warning. 87f6a3c65815fa062296a994cc863e2fa124867d
### 2.6.1 Apr 6 2017
- Bugfix: nan_json.h: fix build breakage in Node 6 ac8d47dc3c10bfbf3f15a6b951633120c0ee6d51
### 2.6.0 Apr 6 2017
- Feature: nan: add support for JSON::Parse & Stringify b533226c629cce70e1932a873bb6f849044a56c5
### 2.5.1 Jan 23 2017
- Bugfix: Fix disappearing handle for private value 6a80995694f162ef63dbc9948fbefd45d4485aa0
- Bugfix: Add missing scopes a93b8bae6bc7d32a170db6e89228b7f60ee57112
- Bugfix: Use string::data instead of string::front in NewOneByteString d5f920371e67e1f3b268295daee6e83af86b6e50
### 2.5.0 Dec 21 2016
- Feature: Support Private accessors a86255cb357e8ad8ccbf1f6a4a901c921e39a178
- Bugfix: Abort in delete operators that shouldn't be called 0fe38215ff8581703967dfd26c12793feb960018
### 2.4.0 Jul 10 2016
- Feature: Rewrite Callback to add Callback::Reset c4cf44d61f8275cd5f7b0c911d7a806d4004f649
- Feature: AsyncProgressWorker: add template types for .send 1242c9a11a7ed481c8f08ec06316385cacc513d0
- Bugfix: Add constness to old Persistent comparison operators bd43cb9982c7639605d60fd073efe8cae165d9b2
### 2.3.5 May 31 2016
- Bugfix: Replace NAN_INLINE with 'inline' keyword. 71819d8725f822990f439479c9aba3b240804909
### 2.3.4 May 31 2016
- Bugfix: Remove V8 deprecation warnings 0592fb0a47f3a1c7763087ebea8e1138829f24f9
- Bugfix: Fix new versions not to use WeakCallbackInfo::IsFirstPass 615c19d9e03d4be2049c10db0151edbc3b229246
- Bugfix: Make ObjectWrap::handle() const d19af99595587fe7a26bd850af6595c2a7145afc
- Bugfix: Fix compilation errors related to 0592fb0a47f3a1c7763087ebea8e1138829f24f9 e9191c525b94f652718325e28610a1adcf90fed8
### 2.3.3 May 4 2016
- Bugfix: Refactor SetMethod() to deal with v8::Templates (#566) b9083cf6d5de6ebe6bcb49c7502fbb7c0d9ddda8
### 2.3.2 Apr 27 2016
- Bugfix: Fix compilation on outdated versions due to Handle removal f8b7c875d04d425a41dfd4f3f8345bc3a11e6c52
### 2.3.1 Apr 27 2016
- Bugfix: Don't use deprecated v8::Template::Set() in SetMethod a90951e9ea70fa1b3836af4b925322919159100e
### 2.3.0 Apr 27 2016
- Feature: added Signal() for invoking async callbacks without sending data from AsyncProgressWorker d8adba45f20e077d00561b20199133620c990b38
- Bugfix: Don't use deprecated v8::Template::Set() 00dacf0a4b86027415867fa7f1059acc499dcece
### 2.2.1 Mar 29 2016
- Bugfix: Use NewFromUnsigned in ReturnValue<T>::Set(uint32_t i) for pre_12 3a18f9bdce29826e0e4c217854bc476918241a58
- Performance: Remove unneeeded nullptr checks b715ef44887931c94f0d1605b3b1a4156eebece9
### 2.2.0 Jan 9 2016
- Feature: Add Function::Call wrapper 4c157474dacf284d125c324177b45aa5dabc08c6
- Feature: Rename GC*logueCallback to GCCallback for > 4.0 3603435109f981606d300eb88004ca101283acec
- Bugfix: Fix Global::Pass for old versions 367e82a60fbaa52716232cc89db1cc3f685d77d9
- Bugfix: Remove weird MaybeLocal wrapping of what already is a MaybeLocal 23b4590db10c2ba66aee2338aebe9751c4cb190b
### 2.1.0 Oct 8 2015
- Deprecation: Deprecate NanErrnoException in favor of ErrnoException 0af1ca4cf8b3f0f65ed31bc63a663ab3319da55c
- Feature: added helper class for accessing contents of typedarrays 17b51294c801e534479d5463697a73462d0ca555
- Feature: [Maybe types] Add MakeMaybe(...) 48d7b53d9702b0c7a060e69ea10fea8fb48d814d
- Feature: new: allow utf16 string with length 66ac6e65c8ab9394ef588adfc59131b3b9d8347b
- Feature: Introduce SetCallHandler and SetCallAsFunctionHandler 7764a9a115d60ba10dc24d86feb0fbc9b4f75537
- Bugfix: Enable creating Locals from Globals under Node 0.10. 9bf9b8b190821af889790fdc18ace57257e4f9ff
- Bugfix: Fix issue #462 where PropertyCallbackInfo data is not stored safely. 55f50adedd543098526c7b9f4fffd607d3f9861f
### 2.0.9 Sep 8 2015
- Bugfix: EscapableHandleScope in Nan::NewBuffer for Node 0.8 and 0.10 b1654d7
### 2.0.8 Aug 28 2015
- Work around duplicate linking bug in clang 11902da
### 2.0.7 Aug 26 2015
- Build: Repackage
### 2.0.6 Aug 26 2015
- Bugfix: Properly handle null callback in FunctionTemplate factory 6e99cb1
- Bugfix: Remove unused static std::map instances 525bddc
- Bugfix: Make better use of maybe versions of APIs bfba85b
- Bugfix: Fix shadowing issues with handle in ObjectWrap 0a9072d
### 2.0.5 Aug 10 2015
- Bugfix: Reimplement weak callback in ObjectWrap 98d38c1
- Bugfix: Make sure callback classes are not assignable, copyable or movable 81f9b1d
### 2.0.4 Aug 6 2015
- Build: Repackage
### 2.0.3 Aug 6 2015
- Bugfix: Don't use clang++ / g++ syntax extension. 231450e
### 2.0.2 Aug 6 2015
- Build: Repackage
### 2.0.1 Aug 6 2015
- Bugfix: Add workaround for missing REPLACE_INVALID_UTF8 60d6687
- Bugfix: Reimplement ObjectWrap from scratch to prevent memory leaks 6484601
- Bugfix: Fix Persistent leak in FunctionCallbackInfo and PropertyCallbackInfo 641ef5f
- Bugfix: Add missing overload for Nan::NewInstance that takes argc/argv 29450ed
### 2.0.0 Jul 31 2015
- Change: Renamed identifiers with leading underscores b5932b4
- Change: Replaced NanObjectWrapHandle with class NanObjectWrap 464f1e1
- Change: Replace NanScope and NanEscpableScope macros with classes 47751c4
- Change: Rename NanNewBufferHandle to NanNewBuffer 6745f99
- Change: Rename NanBufferUse to NanNewBuffer 3e8b0a5
- Change: Rename NanNewBuffer to NanCopyBuffer d6af78d
- Change: Remove Nan prefix from all names 72d1f67
- Change: Update Buffer API for new upstream changes d5d3291
- Change: Rename Scope and EscapableScope to HandleScope and EscapableHandleScope 21a7a6a
- Change: Get rid of Handles e6c0daf
- Feature: Support io.js 3 with V8 4.4
- Feature: Introduce NanPersistent 7fed696
- Feature: Introduce NanGlobal 4408da1
- Feature: Added NanTryCatch 10f1ca4
- Feature: Update for V8 v4.3 4b6404a
- Feature: Introduce NanNewOneByteString c543d32
- Feature: Introduce namespace Nan 67ed1b1
- Removal: Remove NanLocker and NanUnlocker dd6e401
- Removal: Remove string converters, except NanUtf8String, which now follows the node implementation b5d00a9
- Removal: Remove NanReturn* macros d90a25c
- Removal: Remove HasInstance e8f84fe
### 1.9.0 Jul 31 2015
- Feature: Added `NanFatalException` 81d4a2c
- Feature: Added more error types 4265f06
- Feature: Added dereference and function call operators to NanCallback c4b2ed0
- Feature: Added indexed GetFromPersistent and SaveToPersistent edd510c
- Feature: Added more overloads of SaveToPersistent and GetFromPersistent 8b1cef6
- Feature: Added NanErrnoException dd87d9e
- Correctness: Prevent assign, copy, and move for classes that do not support it 1f55c59, 4b808cb, c96d9b2, fba4a29, 3357130
- Deprecation: Deprecate `NanGetPointerSafe` and `NanSetPointerSafe` 81d4a2c
- Deprecation: Deprecate `NanBooleanOptionValue` and `NanUInt32OptionValue` 0ad254b
### 1.8.4 Apr 26 2015
- Build: Repackage
### 1.8.3 Apr 26 2015
- Bugfix: Include missing header 1af8648
### 1.8.2 Apr 23 2015
- Build: Repackage
### 1.8.1 Apr 23 2015
- Bugfix: NanObjectWrapHandle should take a pointer 155f1d3
### 1.8.0 Apr 23 2015
- Feature: Allow primitives with NanReturnValue 2e4475e
- Feature: Added comparison operators to NanCallback 55b075e
- Feature: Backport thread local storage 15bb7fa
- Removal: Remove support for signatures with arguments 8a2069d
- Correcteness: Replaced NanObjectWrapHandle macro with function 0bc6d59
### 1.7.0 Feb 28 2015
- Feature: Made NanCallback::Call accept optional target 8d54da7
- Feature: Support atom-shell 0.21 0b7f1bb
### 1.6.2 Feb 6 2015
- Bugfix: NanEncode: fix argument type for node::Encode on io.js 2be8639
### 1.6.1 Jan 23 2015
- Build: version bump
### 1.5.3 Jan 23 2015
- Build: repackage
### 1.6.0 Jan 23 2015
- Deprecated `NanNewContextHandle` in favor of `NanNew<Context>` 49259af
- Support utility functions moved in newer v8 versions (Node 0.11.15, io.js 1.0) a0aa179
- Added `NanEncode`, `NanDecodeBytes` and `NanDecodeWrite` 75e6fb9
### 1.5.2 Jan 23 2015
- Bugfix: Fix non-inline definition build error with clang++ 21d96a1, 60fadd4
- Bugfix: Readded missing String constructors 18d828f
- Bugfix: Add overload handling NanNew<FunctionTemplate>(..) 5ef813b
- Bugfix: Fix uv_work_cb versioning 997e4ae
- Bugfix: Add function factory and test 4eca89c
- Bugfix: Add object template factory and test cdcb951
- Correctness: Lifted an io.js related typedef c9490be
- Correctness: Make explicit downcasts of String lengths 00074e6
- Windows: Limit the scope of disabled warning C4530 83d7deb
### 1.5.1 Jan 15 2015
- Build: version bump
### 1.4.3 Jan 15 2015
- Build: version bump
### 1.4.2 Jan 15 2015
- Feature: Support io.js 0dbc5e8
### 1.5.0 Jan 14 2015
- Feature: Support io.js b003843
- Correctness: Improved NanNew internals 9cd4f6a
- Feature: Implement progress to NanAsyncWorker 8d6a160
### 1.4.1 Nov 8 2014
- Bugfix: Handle DEBUG definition correctly
- Bugfix: Accept int as Boolean
### 1.4.0 Nov 1 2014
- Feature: Added NAN_GC_CALLBACK 6a5c245
- Performance: Removed unnecessary local handle creation 18a7243, 41fe2f8
- Correctness: Added constness to references in NanHasInstance 02c61cd
- Warnings: Fixed spurious warnings from -Wundef and -Wshadow, 541b122, 99d8cb6
- Windoze: Shut Visual Studio up when compiling 8d558c1
- License: Switch to plain MIT from custom hacked MIT license 11de983
- Build: Added test target to Makefile e232e46
- Performance: Removed superfluous scope in NanAsyncWorker f4b7821
- Sugar/Feature: Added NanReturnThis() and NanReturnHolder() shorthands 237a5ff, d697208
- Feature: Added suitable overload of NanNew for v8::Integer::NewFromUnsigned b27b450
### 1.3.0 Aug 2 2014
- Added NanNew<v8::String, std::string>(std::string)
- Added NanNew<v8::String, std::string&>(std::string&)
- Added NanAsciiString helper class
- Added NanUtf8String helper class
- Added NanUcs2String helper class
- Deprecated NanRawString()
- Deprecated NanCString()
- Added NanGetIsolateData(v8::Isolate *isolate)
- Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::Function> func, int argc, v8::Handle<v8::Value>* argv)
- Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::String> symbol, int argc, v8::Handle<v8::Value>* argv)
- Added NanMakeCallback(v8::Handle<v8::Object> target, const char* method, int argc, v8::Handle<v8::Value>* argv)
- Added NanSetTemplate(v8::Handle<v8::Template> templ, v8::Handle<v8::String> name , v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- Added NanSetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, const char *name, v8::Handle<v8::Data> value)
- Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
### 1.2.0 Jun 5 2014
- Add NanSetPrototypeTemplate
- Changed NAN_WEAK_CALLBACK internals, switched _NanWeakCallbackData to class,
introduced _NanWeakCallbackDispatcher
- Removed -Wno-unused-local-typedefs from test builds
- Made test builds Windows compatible ('Sleep()')
### 1.1.2 May 28 2014
- Release to fix more stuff-ups in 1.1.1
### 1.1.1 May 28 2014
- Release to fix version mismatch in nan.h and lack of changelog entry for 1.1.0
### 1.1.0 May 25 2014
- Remove nan_isolate, use v8::Isolate::GetCurrent() internally instead
- Additional explicit overloads for NanNew(): (char*,int), (uint8_t*[,int]),
(uint16_t*[,int), double, int, unsigned int, bool, v8::String::ExternalStringResource*,
v8::String::ExternalAsciiStringResource*
- Deprecate NanSymbol()
- Added SetErrorMessage() and ErrorMessage() to NanAsyncWorker
### 1.0.0 May 4 2014
- Heavy API changes for V8 3.25 / Node 0.11.13
- Use cpplint.py
- Removed NanInitPersistent
- Removed NanPersistentToLocal
- Removed NanFromV8String
- Removed NanMakeWeak
- Removed NanNewLocal
- Removed NAN_WEAK_CALLBACK_OBJECT
- Removed NAN_WEAK_CALLBACK_DATA
- Introduce NanNew, replaces NanNewLocal, NanPersistentToLocal, adds many overloaded typed versions
- Introduce NanUndefined, NanNull, NanTrue and NanFalse
- Introduce NanEscapableScope and NanEscapeScope
- Introduce NanMakeWeakPersistent (requires a special callback to work on both old and new node)
- Introduce NanMakeCallback for node::MakeCallback
- Introduce NanSetTemplate
- Introduce NanGetCurrentContext
- Introduce NanCompileScript and NanRunScript
- Introduce NanAdjustExternalMemory
- Introduce NanAddGCEpilogueCallback, NanAddGCPrologueCallback, NanRemoveGCEpilogueCallback, NanRemoveGCPrologueCallback
- Introduce NanGetHeapStatistics
- Rename NanAsyncWorker#SavePersistent() to SaveToPersistent()
### 0.8.0 Jan 9 2014
- NanDispose -> NanDisposePersistent, deprecate NanDispose
- Extract _NAN_*_RETURN_TYPE, pull up NAN_*()
### 0.7.1 Jan 9 2014
- Fixes to work against debug builds of Node
- Safer NanPersistentToLocal (avoid reinterpret_cast)
- Speed up common NanRawString case by only extracting flattened string when necessary
### 0.7.0 Dec 17 2013
- New no-arg form of NanCallback() constructor.
- NanCallback#Call takes Handle rather than Local
- Removed deprecated NanCallback#Run method, use NanCallback#Call instead
- Split off _NAN_*_ARGS_TYPE from _NAN_*_ARGS
- Restore (unofficial) Node 0.6 compatibility at NanCallback#Call()
- Introduce NanRawString() for char* (or appropriate void*) from v8::String
(replacement for NanFromV8String)
- Introduce NanCString() for null-terminated char* from v8::String
### 0.6.0 Nov 21 2013
- Introduce NanNewLocal<T>(v8::Handle<T> value) for use in place of
v8::Local<T>::New(...) since v8 started requiring isolate in Node 0.11.9
### 0.5.2 Nov 16 2013
- Convert SavePersistent and GetFromPersistent in NanAsyncWorker from protected and public
### 0.5.1 Nov 12 2013
- Use node::MakeCallback() instead of direct v8::Function::Call()
### 0.5.0 Nov 11 2013
- Added @TooTallNate as collaborator
- New, much simpler, "include_dirs" for binding.gyp
- Added full range of NAN_INDEX_* macros to match NAN_PROPERTY_* macros
### 0.4.4 Nov 2 2013
- Isolate argument from v8::Persistent::MakeWeak removed for 0.11.8+
### 0.4.3 Nov 2 2013
- Include node_object_wrap.h, removed from node.h for Node 0.11.8.
### 0.4.2 Nov 2 2013
- Handle deprecation of v8::Persistent::Dispose(v8::Isolate* isolate)) for
Node 0.11.8 release.
### 0.4.1 Sep 16 2013
- Added explicit `#include <uv.h>` as it was removed from node.h for v0.11.8
### 0.4.0 Sep 2 2013
- Added NAN_INLINE and NAN_DEPRECATED and made use of them
- Added NanError, NanTypeError and NanRangeError
- Cleaned up code
### 0.3.2 Aug 30 2013
- Fix missing scope declaration in GetFromPersistent() and SaveToPersistent
in NanAsyncWorker
### 0.3.1 Aug 20 2013
- fix "not all control paths return a value" compile warning on some platforms
### 0.3.0 Aug 19 2013
- Made NAN work with NPM
- Lots of fixes to NanFromV8String, pulling in features from new Node core
- Changed node::encoding to Nan::Encoding in NanFromV8String to unify the API
- Added optional error number argument for NanThrowError()
- Added NanInitPersistent()
- Added NanReturnNull() and NanReturnEmptyString()
- Added NanLocker and NanUnlocker
- Added missing scopes
- Made sure to clear disposed Persistent handles
- Changed NanAsyncWorker to allocate error messages on the heap
- Changed NanThrowError(Local<Value>) to NanThrowError(Handle<Value>)
- Fixed leak in NanAsyncWorker when errmsg is used
### 0.2.2 Aug 5 2013
- Fixed usage of undefined variable with node::BASE64 in NanFromV8String()
### 0.2.1 Aug 5 2013
- Fixed 0.8 breakage, node::BUFFER encoding type not available in 0.8 for
NanFromV8String()
### 0.2.0 Aug 5 2013
- Added NAN_PROPERTY_GETTER, NAN_PROPERTY_SETTER, NAN_PROPERTY_ENUMERATOR,
NAN_PROPERTY_DELETER, NAN_PROPERTY_QUERY
- Extracted _NAN_METHOD_ARGS, _NAN_GETTER_ARGS, _NAN_SETTER_ARGS,
_NAN_PROPERTY_GETTER_ARGS, _NAN_PROPERTY_SETTER_ARGS,
_NAN_PROPERTY_ENUMERATOR_ARGS, _NAN_PROPERTY_DELETER_ARGS,
_NAN_PROPERTY_QUERY_ARGS
- Added NanGetInternalFieldPointer, NanSetInternalFieldPointer
- Added NAN_WEAK_CALLBACK, NAN_WEAK_CALLBACK_OBJECT,
NAN_WEAK_CALLBACK_DATA, NanMakeWeak
- Renamed THROW_ERROR to _NAN_THROW_ERROR
- Added NanNewBufferHandle(char*, size_t, node::smalloc::FreeCallback, void*)
- Added NanBufferUse(char*, uint32_t)
- Added NanNewContextHandle(v8::ExtensionConfiguration*,
v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
- Fixed broken NanCallback#GetFunction()
- Added optional encoding and size arguments to NanFromV8String()
- Added NanGetPointerSafe() and NanSetPointerSafe()
- Added initial test suite (to be expanded)
- Allow NanUInt32OptionValue to convert any Number object
### 0.1.0 Jul 21 2013
- Added `NAN_GETTER`, `NAN_SETTER`
- Added `NanThrowError` with single Local<Value> argument
- Added `NanNewBufferHandle` with single uint32_t argument
- Added `NanHasInstance(Persistent<FunctionTemplate>&, Handle<Value>)`
- Added `Local<Function> NanCallback#GetFunction()`
- Added `NanCallback#Call(int, Local<Value>[])`
- Deprecated `NanCallback#Run(int, Local<Value>[])` in favour of Call
@@ -0,0 +1,7 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
return Array.prototype.flatMap || implementation;
};
@@ -0,0 +1,49 @@
# postcss-selector-parser [![test](https://github.com/postcss/postcss-selector-parser/actions/workflows/test.yml/badge.svg)](https://github.com/postcss/postcss-selector-parser/actions/workflows/test.yml)
> Selector parser with built in methods for working with selector strings.
## Install
With [npm](https://npmjs.com/package/postcss-selector-parser) do:
```
npm install postcss-selector-parser
```
## Quick Start
```js
const parser = require('postcss-selector-parser');
const transform = selectors => {
selectors.walk(selector => {
// do something with the selector
console.log(String(selector))
});
};
const transformed = parser(transform).processSync('h1, h2, h3');
```
To normalize selector whitespace:
```js
const parser = require('postcss-selector-parser');
const normalized = parser().processSync('h1, h2, h3', {lossless: false});
// -> h1,h2,h3
```
Async support is provided through `parser.process` and will resolve a Promise
with the resulting selector string.
## API
Please see [API.md](API.md).
## Credits
* Huge thanks to Andrey Sitnik (@ai) for work on PostCSS which helped
accelerate this module's development.
## License
MIT
@@ -0,0 +1 @@
{"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AAgCM,SAAS,0CAAU,KAAqB;IAC7C,IAAI,YAAC,QAAQ,cAAE,UAAU,kBAAE,cAAc,EAAC,GAAG;IAC7C,IAAI,aAAC,SAAS,kBAAE,cAAc,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAW,EAAE;IAC3D,IAAI,QAAQ,CAAA,GAAA,YAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IAEhC,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,OAAO,CAAA,GAAA,iBAAS,EAAE,MAAM,KAAK,EAAS;QAC9D,GAAG,UAAU;QACb,WAAW,CAAA,GAAA,WAAG,EAAE;YACd,CAAC,cAAc,GAAG,EAAE;YACpB,CAAC,kBAAkB,GAAG,EAAE;QAC1B;IACF;AACF","sources":["packages/@react-aria/focus/src/FocusRing.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport clsx from 'clsx';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useFocusRing} from './useFocusRing';\n\nexport interface FocusRingProps {\n /** Child element to apply CSS classes to. */\n children: ReactElement,\n /** CSS class to apply when the element is focused. */\n focusClass?: string,\n /** CSS class to apply when the element has keyboard focus. */\n focusRingClass?: string,\n /**\n * Whether to show the focus ring when something\n * inside the container element has focus (true), or\n * only if the container itself has focus (false).\n * @default false\n */\n within?: boolean,\n /** Whether the element is a text input. */\n isTextInput?: boolean,\n /** Whether the element will be auto focused. */\n autoFocus?: boolean\n}\n\n/**\n * A utility component that applies a CSS class when an element has keyboard focus.\n * Focus rings are visible only when the user is interacting with a keyboard,\n * not with a mouse, touch, or other input methods.\n */\nexport function FocusRing(props: FocusRingProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> {\n let {children, focusClass, focusRingClass} = props;\n let {isFocused, isFocusVisible, focusProps} = useFocusRing(props);\n let child = React.Children.only(children);\n\n return React.cloneElement(child, mergeProps(child.props as any, {\n ...focusProps,\n className: clsx({\n [focusClass || '']: isFocused,\n [focusRingClass || '']: isFocusVisible\n })\n }));\n}\n"],"names":[],"version":3,"file":"FocusRing.module.js.map"}
@@ -0,0 +1,28 @@
# @marijn/find-cluster-break
Small JavaScript module for finding grapheme cluster breaks in
strings, scanning from a given position.
```javascript
import {findClusterBreak} from "@marijn/find-cluster-break"
console.log(findClusterBreak("💪🏽🦋", 0))
// → 4
```
This code is open source, released under an MIT license.
## Documentation
**`findClusterBreak`**`(str: string, pos: number, forward = true, includeExtending = true): number`
Returns a next grapheme cluster break _after_ (not equal to) `pos`,
if `forward` is true, or before otherwise. Returns `pos` itself if no
further cluster break is available in the string. Moves across
surrogate pairs, extending characters (when `includeExtending` is
true, which is the default), characters joined with zero-width joiners,
and flag emoji.
**`isExtendingChar`**`(code: number): boolean`
Query whether the given character has a `Grapheme_Cluster_Break` value
of `Extend` in Unicode.
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->
@@ -0,0 +1,121 @@
# minimist <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]
parse argument options
This module is the guts of optimist's argument parser without all the
fanciful decoration.
# example
``` js
var argv = require('minimist')(process.argv.slice(2));
console.log(argv);
```
```
$ node example/parse.js -a beep -b boop
{ _: [], a: 'beep', b: 'boop' }
```
```
$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz
{
_: ['foo', 'bar', 'baz'],
x: 3,
y: 4,
n: 5,
a: true,
b: true,
c: true,
beep: 'boop'
}
```
# security
Previous versions had a prototype pollution bug that could cause privilege
escalation in some circumstances when handling untrusted user input.
Please use version 1.2.6 or later:
* https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795 (version <=1.2.5)
* https://snyk.io/vuln/SNYK-JS-MINIMIST-559764 (version <=1.2.3)
# methods
``` js
var parseArgs = require('minimist')
```
## var argv = parseArgs(args, opts={})
Return an argument object `argv` populated with the array arguments from `args`.
`argv._` contains all the arguments that didn't have an option associated with
them.
Numeric-looking arguments will be returned as numbers unless `opts.string` or
`opts.boolean` is set for that argument name.
Any arguments after `'--'` will not be parsed and will end up in `argv._`.
options can be:
* `opts.string` - a string or array of strings argument names to always treat as
strings
* `opts.boolean` - a boolean, string or array of strings to always treat as
booleans. if `true` will treat all double hyphenated arguments without equal signs
as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)
* `opts.alias` - an object mapping string names to strings or arrays of string
argument names to use as aliases
* `opts.default` - an object mapping string argument names to default values
* `opts.stopEarly` - when true, populate `argv._` with everything after the
first non-option
* `opts['--']` - when true, populate `argv._` with everything before the `--`
and `argv['--']` with everything after the `--`. Here's an example:
```
> require('./')('one two three -- four five --six'.split(' '), { '--': true })
{
_: ['one', 'two', 'three'],
'--': ['four', 'five', '--six']
}
```
Note that with `opts['--']` set, parsing for arguments still stops after the
`--`.
* `opts.unknown` - a function which is invoked with a command line parameter not
defined in the `opts` configuration object. If the function returns `false`, the
unknown option is not added to `argv`.
# install
With [npm](https://npmjs.org) do:
```
npm install minimist
```
# license
MIT
[package-url]: https://npmjs.org/package/minimist
[npm-version-svg]: https://versionbadg.es/minimistjs/minimist.svg
[npm-badge-png]: https://nodei.co/npm/minimist.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/minimist.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/minimist.svg
[downloads-url]: https://npm-stat.com/charts.html?package=minimist
[codecov-image]: https://codecov.io/gh/minimistjs/minimist/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/minimistjs/minimist/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/minimistjs/minimist
[actions-url]: https://github.com/minimistjs/minimist/actions
@@ -0,0 +1,14 @@
'use strict'
const isNamedCallback = require('./is-named-callback')
function isCallback(node, exceptions) {
const isCallExpression = node.type === 'CallExpression'
// istanbul ignore next -- always invoked on `CallExpression`
const callee = node.callee || {}
const nameIsCallback = isNamedCallback(callee.name, exceptions)
const isCB = isCallExpression && nameIsCallback
return isCB
}
module.exports = isCallback
@@ -0,0 +1,9 @@
import { CacheBindingInvalidation } from '../models/CacheBindingInvalidation';
import { PlanParamsOperationsManager } from './PlanParamsOperationsManager';
import { ServiceReferenceManager } from './ServiceReferenceManager';
export declare class PlanResultCacheManager {
#private;
constructor(planParamsOperationsManager: PlanParamsOperationsManager, serviceReferenceManager: ServiceReferenceManager);
invalidateService(invalidation: CacheBindingInvalidation): void;
}
//# sourceMappingURL=PlanResultCacheManager.d.ts.map
@@ -0,0 +1,5 @@
export { isDocument } from './isDocument';
export { isHTMLElement } from './isHTMLElement';
export { isNode } from './isNode';
export { isSVGElement } from './isSVGElement';
export { isWindow } from './isWindow';
@@ -0,0 +1,128 @@
// Generated by LiveScript 1.6.0
(function(){
var ref$, any, all, isItNaN, types, defaultType, toString$ = {}.toString;
ref$ = require('prelude-ls'), any = ref$.any, all = ref$.all, isItNaN = ref$.isItNaN;
types = {
Number: {
typeOf: 'Number',
validate: function(it){
return !isItNaN(it);
}
},
NaN: {
typeOf: 'Number',
validate: isItNaN
},
Int: {
typeOf: 'Number',
validate: function(it){
return !isItNaN(it) && it % 1 === 0;
}
},
Float: {
typeOf: 'Number',
validate: function(it){
return !isItNaN(it);
}
},
Date: {
typeOf: 'Date',
validate: function(it){
return !isItNaN(it.getTime());
}
}
};
defaultType = {
array: 'Array',
tuple: 'Array'
};
function checkArray(input, type, options){
return all(function(it){
return checkMultiple(it, type.of, options);
}, input);
}
function checkTuple(input, type, options){
var i, i$, ref$, len$, types;
i = 0;
for (i$ = 0, len$ = (ref$ = type.of).length; i$ < len$; ++i$) {
types = ref$[i$];
if (!checkMultiple(input[i], types, options)) {
return false;
}
i++;
}
return input.length <= i;
}
function checkFields(input, type, options){
var inputKeys, numInputKeys, k, numOfKeys, key, ref$, types;
inputKeys = {};
numInputKeys = 0;
for (k in input) {
inputKeys[k] = true;
numInputKeys++;
}
numOfKeys = 0;
for (key in ref$ = type.of) {
types = ref$[key];
if (!checkMultiple(input[key], types, options)) {
return false;
}
if (inputKeys[key]) {
numOfKeys++;
}
}
return type.subset || numInputKeys === numOfKeys;
}
function checkStructure(input, type, options){
if (!(input instanceof Object)) {
return false;
}
switch (type.structure) {
case 'fields':
return checkFields(input, type, options);
case 'array':
return checkArray(input, type, options);
case 'tuple':
return checkTuple(input, type, options);
}
}
function check(input, typeObj, options){
var type, structure, setting, that;
type = typeObj.type, structure = typeObj.structure;
if (type) {
if (type === '*') {
return true;
}
setting = options.customTypes[type] || types[type];
if (setting) {
return (setting.typeOf === void 8 || setting.typeOf === toString$.call(input).slice(8, -1)) && setting.validate(input);
} else {
return type === toString$.call(input).slice(8, -1) && (!structure || checkStructure(input, typeObj, options));
}
} else if (structure) {
if (that = defaultType[structure]) {
if (that !== toString$.call(input).slice(8, -1)) {
return false;
}
}
return checkStructure(input, typeObj, options);
} else {
throw new Error("No type defined. Input: " + input + ".");
}
}
function checkMultiple(input, types, options){
if (toString$.call(types).slice(8, -1) !== 'Array') {
throw new Error("Types must be in an array. Input: " + input + ".");
}
return any(function(it){
return check(input, it, options);
}, types);
}
module.exports = function(parsedType, input, options){
options == null && (options = {});
if (options.customTypes == null) {
options.customTypes = {};
}
return checkMultiple(input, parsedType, options);
};
}).call(this);
@@ -0,0 +1,16 @@
{
"root": true,
"extends": "@ljharb",
"overrides": [
{
"files": "./index.js",
"extends": "@ljharb/eslint-config/node/8"
},
{
"files": "./require.mjs",
"extends": "@ljharb/eslint-config/node/16",
},
],
}
@@ -0,0 +1,289 @@
// THIS FILE IS AUTO GENERATED
import type { IconType } from '../lib/index'
export declare const FiActivity: IconType;
export declare const FiAirplay: IconType;
export declare const FiAlertCircle: IconType;
export declare const FiAlertOctagon: IconType;
export declare const FiAlertTriangle: IconType;
export declare const FiAlignCenter: IconType;
export declare const FiAlignJustify: IconType;
export declare const FiAlignLeft: IconType;
export declare const FiAlignRight: IconType;
export declare const FiAnchor: IconType;
export declare const FiAperture: IconType;
export declare const FiArchive: IconType;
export declare const FiArrowDownCircle: IconType;
export declare const FiArrowDownLeft: IconType;
export declare const FiArrowDownRight: IconType;
export declare const FiArrowDown: IconType;
export declare const FiArrowLeftCircle: IconType;
export declare const FiArrowLeft: IconType;
export declare const FiArrowRightCircle: IconType;
export declare const FiArrowRight: IconType;
export declare const FiArrowUpCircle: IconType;
export declare const FiArrowUpLeft: IconType;
export declare const FiArrowUpRight: IconType;
export declare const FiArrowUp: IconType;
export declare const FiAtSign: IconType;
export declare const FiAward: IconType;
export declare const FiBarChart2: IconType;
export declare const FiBarChart: IconType;
export declare const FiBatteryCharging: IconType;
export declare const FiBattery: IconType;
export declare const FiBellOff: IconType;
export declare const FiBell: IconType;
export declare const FiBluetooth: IconType;
export declare const FiBold: IconType;
export declare const FiBookOpen: IconType;
export declare const FiBook: IconType;
export declare const FiBookmark: IconType;
export declare const FiBox: IconType;
export declare const FiBriefcase: IconType;
export declare const FiCalendar: IconType;
export declare const FiCameraOff: IconType;
export declare const FiCamera: IconType;
export declare const FiCast: IconType;
export declare const FiCheckCircle: IconType;
export declare const FiCheckSquare: IconType;
export declare const FiCheck: IconType;
export declare const FiChevronDown: IconType;
export declare const FiChevronLeft: IconType;
export declare const FiChevronRight: IconType;
export declare const FiChevronUp: IconType;
export declare const FiChevronsDown: IconType;
export declare const FiChevronsLeft: IconType;
export declare const FiChevronsRight: IconType;
export declare const FiChevronsUp: IconType;
export declare const FiChrome: IconType;
export declare const FiCircle: IconType;
export declare const FiClipboard: IconType;
export declare const FiClock: IconType;
export declare const FiCloudDrizzle: IconType;
export declare const FiCloudLightning: IconType;
export declare const FiCloudOff: IconType;
export declare const FiCloudRain: IconType;
export declare const FiCloudSnow: IconType;
export declare const FiCloud: IconType;
export declare const FiCode: IconType;
export declare const FiCodepen: IconType;
export declare const FiCodesandbox: IconType;
export declare const FiCoffee: IconType;
export declare const FiColumns: IconType;
export declare const FiCommand: IconType;
export declare const FiCompass: IconType;
export declare const FiCopy: IconType;
export declare const FiCornerDownLeft: IconType;
export declare const FiCornerDownRight: IconType;
export declare const FiCornerLeftDown: IconType;
export declare const FiCornerLeftUp: IconType;
export declare const FiCornerRightDown: IconType;
export declare const FiCornerRightUp: IconType;
export declare const FiCornerUpLeft: IconType;
export declare const FiCornerUpRight: IconType;
export declare const FiCpu: IconType;
export declare const FiCreditCard: IconType;
export declare const FiCrop: IconType;
export declare const FiCrosshair: IconType;
export declare const FiDatabase: IconType;
export declare const FiDelete: IconType;
export declare const FiDisc: IconType;
export declare const FiDivideCircle: IconType;
export declare const FiDivideSquare: IconType;
export declare const FiDivide: IconType;
export declare const FiDollarSign: IconType;
export declare const FiDownloadCloud: IconType;
export declare const FiDownload: IconType;
export declare const FiDribbble: IconType;
export declare const FiDroplet: IconType;
export declare const FiEdit2: IconType;
export declare const FiEdit3: IconType;
export declare const FiEdit: IconType;
export declare const FiExternalLink: IconType;
export declare const FiEyeOff: IconType;
export declare const FiEye: IconType;
export declare const FiFacebook: IconType;
export declare const FiFastForward: IconType;
export declare const FiFeather: IconType;
export declare const FiFigma: IconType;
export declare const FiFileMinus: IconType;
export declare const FiFilePlus: IconType;
export declare const FiFileText: IconType;
export declare const FiFile: IconType;
export declare const FiFilm: IconType;
export declare const FiFilter: IconType;
export declare const FiFlag: IconType;
export declare const FiFolderMinus: IconType;
export declare const FiFolderPlus: IconType;
export declare const FiFolder: IconType;
export declare const FiFramer: IconType;
export declare const FiFrown: IconType;
export declare const FiGift: IconType;
export declare const FiGitBranch: IconType;
export declare const FiGitCommit: IconType;
export declare const FiGitMerge: IconType;
export declare const FiGitPullRequest: IconType;
export declare const FiGithub: IconType;
export declare const FiGitlab: IconType;
export declare const FiGlobe: IconType;
export declare const FiGrid: IconType;
export declare const FiHardDrive: IconType;
export declare const FiHash: IconType;
export declare const FiHeadphones: IconType;
export declare const FiHeart: IconType;
export declare const FiHelpCircle: IconType;
export declare const FiHexagon: IconType;
export declare const FiHome: IconType;
export declare const FiImage: IconType;
export declare const FiInbox: IconType;
export declare const FiInfo: IconType;
export declare const FiInstagram: IconType;
export declare const FiItalic: IconType;
export declare const FiKey: IconType;
export declare const FiLayers: IconType;
export declare const FiLayout: IconType;
export declare const FiLifeBuoy: IconType;
export declare const FiLink2: IconType;
export declare const FiLink: IconType;
export declare const FiLinkedin: IconType;
export declare const FiList: IconType;
export declare const FiLoader: IconType;
export declare const FiLock: IconType;
export declare const FiLogIn: IconType;
export declare const FiLogOut: IconType;
export declare const FiMail: IconType;
export declare const FiMapPin: IconType;
export declare const FiMap: IconType;
export declare const FiMaximize2: IconType;
export declare const FiMaximize: IconType;
export declare const FiMeh: IconType;
export declare const FiMenu: IconType;
export declare const FiMessageCircle: IconType;
export declare const FiMessageSquare: IconType;
export declare const FiMicOff: IconType;
export declare const FiMic: IconType;
export declare const FiMinimize2: IconType;
export declare const FiMinimize: IconType;
export declare const FiMinusCircle: IconType;
export declare const FiMinusSquare: IconType;
export declare const FiMinus: IconType;
export declare const FiMonitor: IconType;
export declare const FiMoon: IconType;
export declare const FiMoreHorizontal: IconType;
export declare const FiMoreVertical: IconType;
export declare const FiMousePointer: IconType;
export declare const FiMove: IconType;
export declare const FiMusic: IconType;
export declare const FiNavigation2: IconType;
export declare const FiNavigation: IconType;
export declare const FiOctagon: IconType;
export declare const FiPackage: IconType;
export declare const FiPaperclip: IconType;
export declare const FiPauseCircle: IconType;
export declare const FiPause: IconType;
export declare const FiPenTool: IconType;
export declare const FiPercent: IconType;
export declare const FiPhoneCall: IconType;
export declare const FiPhoneForwarded: IconType;
export declare const FiPhoneIncoming: IconType;
export declare const FiPhoneMissed: IconType;
export declare const FiPhoneOff: IconType;
export declare const FiPhoneOutgoing: IconType;
export declare const FiPhone: IconType;
export declare const FiPieChart: IconType;
export declare const FiPlayCircle: IconType;
export declare const FiPlay: IconType;
export declare const FiPlusCircle: IconType;
export declare const FiPlusSquare: IconType;
export declare const FiPlus: IconType;
export declare const FiPocket: IconType;
export declare const FiPower: IconType;
export declare const FiPrinter: IconType;
export declare const FiRadio: IconType;
export declare const FiRefreshCcw: IconType;
export declare const FiRefreshCw: IconType;
export declare const FiRepeat: IconType;
export declare const FiRewind: IconType;
export declare const FiRotateCcw: IconType;
export declare const FiRotateCw: IconType;
export declare const FiRss: IconType;
export declare const FiSave: IconType;
export declare const FiScissors: IconType;
export declare const FiSearch: IconType;
export declare const FiSend: IconType;
export declare const FiServer: IconType;
export declare const FiSettings: IconType;
export declare const FiShare2: IconType;
export declare const FiShare: IconType;
export declare const FiShieldOff: IconType;
export declare const FiShield: IconType;
export declare const FiShoppingBag: IconType;
export declare const FiShoppingCart: IconType;
export declare const FiShuffle: IconType;
export declare const FiSidebar: IconType;
export declare const FiSkipBack: IconType;
export declare const FiSkipForward: IconType;
export declare const FiSlack: IconType;
export declare const FiSlash: IconType;
export declare const FiSliders: IconType;
export declare const FiSmartphone: IconType;
export declare const FiSmile: IconType;
export declare const FiSpeaker: IconType;
export declare const FiSquare: IconType;
export declare const FiStar: IconType;
export declare const FiStopCircle: IconType;
export declare const FiSun: IconType;
export declare const FiSunrise: IconType;
export declare const FiSunset: IconType;
export declare const FiTable: IconType;
export declare const FiTablet: IconType;
export declare const FiTag: IconType;
export declare const FiTarget: IconType;
export declare const FiTerminal: IconType;
export declare const FiThermometer: IconType;
export declare const FiThumbsDown: IconType;
export declare const FiThumbsUp: IconType;
export declare const FiToggleLeft: IconType;
export declare const FiToggleRight: IconType;
export declare const FiTool: IconType;
export declare const FiTrash2: IconType;
export declare const FiTrash: IconType;
export declare const FiTrello: IconType;
export declare const FiTrendingDown: IconType;
export declare const FiTrendingUp: IconType;
export declare const FiTriangle: IconType;
export declare const FiTruck: IconType;
export declare const FiTv: IconType;
export declare const FiTwitch: IconType;
export declare const FiTwitter: IconType;
export declare const FiType: IconType;
export declare const FiUmbrella: IconType;
export declare const FiUnderline: IconType;
export declare const FiUnlock: IconType;
export declare const FiUploadCloud: IconType;
export declare const FiUpload: IconType;
export declare const FiUserCheck: IconType;
export declare const FiUserMinus: IconType;
export declare const FiUserPlus: IconType;
export declare const FiUserX: IconType;
export declare const FiUser: IconType;
export declare const FiUsers: IconType;
export declare const FiVideoOff: IconType;
export declare const FiVideo: IconType;
export declare const FiVoicemail: IconType;
export declare const FiVolume1: IconType;
export declare const FiVolume2: IconType;
export declare const FiVolumeX: IconType;
export declare const FiVolume: IconType;
export declare const FiWatch: IconType;
export declare const FiWifiOff: IconType;
export declare const FiWifi: IconType;
export declare const FiWind: IconType;
export declare const FiXCircle: IconType;
export declare const FiXOctagon: IconType;
export declare const FiXSquare: IconType;
export declare const FiX: IconType;
export declare const FiYoutube: IconType;
export declare const FiZapOff: IconType;
export declare const FiZap: IconType;
export declare const FiZoomIn: IconType;
export declare const FiZoomOut: IconType;
@@ -0,0 +1,9 @@
import type { TSESLint } from '@typescript-eslint/utils';
export interface Options {
count?: number;
exactCount?: boolean;
considerComments?: boolean;
}
export type MessageId = 'newline';
declare const _default: TSESLint.RuleModule<"newline", [(Options | undefined)?], import("../utils/create-rule.ts").ImportXPluginDocs, TSESLint.RuleListener>;
export default _default;
@@ -0,0 +1,20 @@
import type { TSESTree } from '@typescript-eslint/utils';
import type { Arrayable } from '../types.js';
export interface Options {
basePath?: string;
zones?: Array<{
from: Arrayable<string>;
target: Arrayable<string>;
message?: string;
except?: string[];
}>;
}
export type MessageId = 'path' | 'mixedGlob' | 'glob' | 'zone';
export interface Validator {
isPathRestricted: (absoluteImportPath: string) => boolean;
hasValidExceptions: boolean;
isPathException?: (absoluteImportPath: string) => boolean;
reportInvalidException: (node: TSESTree.Node) => void;
}
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageId, [(Options | undefined)?], import("../utils/create-rule.ts").ImportXPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;
@@ -0,0 +1 @@
{"version":3,"file":"SubplanParams.d.ts","sourceRoot":"","sources":["../../../../src/planning/models/SubplanParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,IAAI,EAAE,qBAAqB,CAAC;CAC7B"}
@@ -0,0 +1,14 @@
import {
useMultiSelectState
} from "./chunk-TCDHLXYC.mjs";
import {
useMultiSelectListState
} from "./chunk-RVB7J7GX.mjs";
import {
useMultiSelect
} from "./chunk-ZAWAHRYS.mjs";
export {
useMultiSelect,
useMultiSelectListState,
useMultiSelectState
};
@@ -0,0 +1,24 @@
/**
* Checks if `value` is a valid array-like length.
*
* 校验是否是一个有效的数组长度
*
* @example
* ```js
* import { isLength } from 'is-what-type';
*
* isLength(3); // true
* isLength(0); // true
* isLength(Number.MIN_VALUE); // false
* isLength(Infinity); // false
* isLength(-1); // false
* isLength(3.5); // false
* isLength('3'); // false
* isLength(null); // false
* isLength(undefined); // false
* ```
*
* @param value - The value to check
* @returns `true` if `value` is a valid length, `false` otherwise
*/
export declare function isLength(value: unknown): value is number;
@@ -0,0 +1 @@
{"version":3,"file":"SingleInjectionResolvedValueElementMetadata.d.ts","sourceRoot":"","sources":["../../../../src/metadata/models/SingleInjectionResolvedValueElementMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,MAAM,2CAA2C,GACrD,gCAAgC,CAAC,gCAAgC,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1 @@
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;AAOA,gCAUC;AAED,8BAYC;AAED,8CAEC;AAED,8CAEC;AAMD,0BASC;AA/CD,SAAgB,UAAU,CAA4B,OAA4B;IAChF,IAAI,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,SAAS,CAAC,WAAmB;IAC3C,OAAO;QACL,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACnD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,WAAW,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,YAAY,KAAK,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,OAAO,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,iBAAiB,CAAC,YAAoB;IACpD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,WAAmB,EAAE,QAAgB;IAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAE/B,IAAI,QAAQ,GAAG,MAAM,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3C,OAAO,WAAW,CAAC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;AAC/E,CAAC"}
@@ -0,0 +1,29 @@
import createCompounder from './_createCompounder.js';
import upperFirst from './upperFirst.js';
/**
* Converts `string` to
* [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
*
* @static
* @memberOf _
* @since 3.1.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the start cased string.
* @example
*
* _.startCase('--foo-bar--');
* // => 'Foo Bar'
*
* _.startCase('fooBar');
* // => 'Foo Bar'
*
* _.startCase('__FOO_BAR__');
* // => 'FOO BAR'
*/
var startCase = createCompounder(function(result, word, index) {
return result + (index ? ' ' : '') + upperFirst(word);
});
export default startCase;
@@ -0,0 +1,413 @@
export default `flf2a$ 4 3 20 -1 3
LockerGnome by Christopher Joseph Pirillo <pirillc2770@cobra.uni.edu>
Figletized by Simon Bradley <syb3@aber.ac.uk>
$$@
$$@
$$@
$$@@
::| @
\`:' @
+ @
@@
::| ::| @
\`\` \`\` @
@
@@
:|:| @
::==:| @
:|:| @
@@
.::|::\\@
\`::|::>@
\\::|:/ @
\` @@
:| ::/'@
::/ @
,::/ :|@
@@
/:::\\ @
\\:,:/_, @
:,,,\\_ @
@@
::| @
:/ @
@
@@
,:/ @
(:( @
\`:\\ @
@@
\\:, @
):) @
/:' @
@@
\\:|:/ @
--:-- @
/:|:\\ @
@@
::| @
::::::| @
::| @
@@
@
@
::| @
:/ @@
@
:::::| @
@
@@
@
@
::| @
@@
::/'@
::/ @
,::/ @
@@
,::::,@
: -- |@
\`::::'@
@@
::| @
:| @
:::| @
@@
::~~:\\@
,:/ @
/::::|@
@@
/:'\`:,@
|:< @
\\:,,:'@
@@
:| :| @
:::::|@
:| @
@@
:::::|@
\`:::\\ @
,:::/ @
@@
,::::\\@
::---,@
\`::::'@
@@
:::::/@
::/ @
::/ @
@@
,::::,@
>----<@
\`::::'@
@@
,::::,@
\\----|@
,::::'@
@@
@
::) @
::) @
@@
@
::) @
::| @
:/ @@
,:/ @
<:< @
\`:\\ @
@@
@
:::::| @
:::::| @
@@
\\:. @
>:> @
/:' @
@@
/:~~~:\\@
,:::/@
++ @
@@
/:::\\ @
\`\\__| ) @
\`\\:::/ @
@@
::::\\ @
::|,::|@
::| ::|@
@@
::::::\\@
::>-::<@
::::::/@
@@
,::::\\@
::| @
'::::/@
@@
::::::\\@
::| ::|@
::::::/@
@@
::::::|@
:::> @
::::::|@
@@
::::::|@
::::> @
::| @
@@
:::::\\@
::> ==@
:::::/@
@@
::| ::|@
::::::|@
::| ::|@
@@
::::::|@
::| @
::::::|@
@@
::|@
::> ::|@
::::/ @
@@
::| ::|@
:::::< @
::| ::|@
@@
::| @
::| @
::::::|@
@@
::::::|@
:::"::|@
::| ::|@
@@
::\\ ::|@
::::::|@
::| \\:|@
@@
::::\\ @
::| ::|@
::::/ @
@@
::::::\\@
::|_::|@
::|~~~ @
@@
::::\\ @
::|,::|@
:::::\\@
@@
::::::\\@
::|,::|@
::| ::\\@
@@
.:::::|@
\`:::::>@
,::::/ @
@@
::::::|@
::| @
::| @
@@
::| ::|@
::|_::|@
\`:::::|@
@@
::| ::|@
::::/ @
::/ @
@@
::| ::|@
:::"::|@
::::::|@
@@
::| ::|@
>:::< @
::| ::|@
@@
::| ::|@
::::/ @
::| @
@@
<::::\\@
,:::::/@
\`:::::>@
@@
::= @
:| @
::= @
@@
\`::\\ @
::\\ @
::\\,@
@@
=:| @
:| @
=:| @
@@
, @
/:\\ @
@
@@
@
@
::::::| @
@@
::|@
:|@
@
@@
@
.::\\ @
\`::| @
@@
:| @
::'| @
:::| @
@@
@
.::/ @
\`::\\ @
@@
:| @
:':| @
:::| @
@@
@
:~~/ @
:::, @
@@
,::| @
::| @
:| @
@@
@
/::| @
\\::| @
,.:/ @@
:| @
:::| @
:|:| @
@@
++ @
:| @
:| @
@@
++ @
, :| @
\\::/ @
@@
:| @
:|_/ @
:|~\\ @
@@
:| @
:| @
:| @
@@
@
:\\/| @
:::| @
@@
@
:::\\ @
:|:| @
@@
@
,::\\ @
\`::/ @
@@
@
:::\\ @
:::/ @
:| @@
@
/::| @
\\::| @
:| @@
@
:::| @
:| @
@@
@
<::< @
>::> @
@@
:| @
:::| @
:| @
@@
@
:\\:| @
\`::| @
@@
@
:\\:| @
:/ @
@@
@
:::| @
:/\\| @
@@
@
\\:/ @
/:\\ @
@@
@
:\\:| @
\`::| @
.,:' @@
@
>::> @
<::< @
@@
,:/ @
>= @
\`:\\ @
@@
::| @
- @
::| @
@@
\\:, @
=< @
/:' @
@@
,-:_, @
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
`
@@ -0,0 +1,6 @@
import type { PackageJson } from './types.js';
export type * from './types.js';
export declare function isNpm(): boolean | undefined;
export declare function isPnp(): boolean;
export declare function checkAndPreparePackage(packageName: string, version?: string, checkVersion?: boolean): Promise<void>;
export declare function checkAndPreparePackage(packageJson: PackageJson, checkVersion?: boolean): Promise<void>;
@@ -0,0 +1,717 @@
flf2a$ 7 7 16 -1 2
Relief by Nick Miners N.M.Miners@durham.ac.uk
June 1994
_____#
_____#
_____#
_____#
_____#
_____#
_____##
_____#
/~~\_#
/~~\_#
/~~\_#
_____#
/~~\_#
_____##
________#
/~\_/~\_#
/~\_/~\_#
________#
________#
________#
________##
____________#
__/~\_/~\___#
/~~~~~~~~~\_#
__/~\_/~\___#
/~~~~~~~~~\_#
__/~\_/~\___#
____________##
__________#
___/~~~~\_#
__/~~\____#
/~~~~~\___#
__/~~\____#
/~~~~~~~\_#
__________##
_________#
/~\_/~~\_#
___/~~\__#
__/~~\___#
_/~~\____#
/~~\_/~\_#
_________##
__________#
_/~~~~~\__#
/~~\______#
_/~~~~~~~\#
/~~\/~~\__#
_/~~~~~\__#
__________##
____#
/~\_#
/\__#
____#
____#
____#
____##
______#
_/~~\_#
/~~\__#
/~~\__#
/~~\__#
_/~~\_#
______##
______#
/~~\__#
_/~~\_#
_/~~\_#
_/~~\_#
/~~\__#
______##
__________#
___/~~\___#
/~\/~~\/~\#
_/~~~~~~\_#
/~\/~~\/~\#
___/~~\___#
__________##
___________#
___/~~\____#
___/~~\____#
/~~~~~~~~\_#
___/~~\____#
___/~~\____#
___________##
_____#
_____#
_____#
_____#
_____#
/~~\_#
/~\__##
__________#
__________#
__________#
/~~~~~~~\_#
__________#
__________#
__________##
_____#
_____#
_____#
_____#
_____#
/~~\_#
_____##
_________#
____/~~\_#
___/~~\__#
__/~~\___#
_/~~\____#
/~~\_____#
_________##
____________#
__/~~~~~\___#
_/~~\_/~~\__#
/~~\___/~~\_#
_/~~\_/~~\__#
__/~~~~~\___#
____________##
_________#
__/~~\___#
_/~~~\___#
__/~~\___#
__/~~\___#
/~~~~~~\_#
_________##
__________#
_/~~~~~~\_#
/~~\_/~~\_#
___/~~\___#
_/~~\_____#
/~~~~~~~\_#
__________##
__________#
_/~~~~~~\_#
/~~\_/~~\_#
___/~~~\__#
/~~\_/~~\_#
_/~~~~~~\_#
__________##
___________#
__/~~~~~\__#
_/~~\/~~\__#
/~~\_/~~\__#
/~~~~~~~~\_#
_____/~~\__#
___________##
_________#
/~~~~~~\_#
/~~\_____#
/~~~~~\__#
____/~~\_#
/~~~~~\__#
_________##
__________#
___/~~\___#
__/~~\____#
_/~~~~~\__#
/~~\_/~~\_#
_/~~~~~\__#
__________##
_________#
/~~~~~~\_#
___/~~\__#
__/~~\___#
_/~~\____#
/~~\_____#
_________##
__________#
_/~~~~~\__#
/~~\_/~~\_#
_/~~~~~\__#
/~~\_/~~\_#
_/~~~~~\__#
__________##
__________#
_/~~~~~\__#
/~~\_/~~\_#
_/~~~~~\__#
___/~~\___#
__/~~\____#
__________##
_____#
_____#
_____#
_/~~\#
_____#
_/~~\#
_____##
_____#
_____#
_____#
_/~~\#
_____#
_/~~\#
_/~\_##
_______#
__/~~\_#
_/~~\__#
/~~\___#
_/~~\__#
__/~~\_#
_______##
__________#
__________#
/~~~~~~~\_#
__________#
/~~~~~~~\_#
__________#
__________##
_______#
_/~~\__#
__/~~\_#
__/~~\_#
_/~~\__#
/~~\___#
_______##
_________#
_/~~~~\__#
____/~~\_#
___/~~\__#
_________#
___/~~\__#
_________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\/~~~~\_#
/~~\_______#
_/~~~~~~\__#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\_______#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~~~~~~\__#
___________##
___________#
/~~~~~~~~\_#
/~~\_______#
/~~~~~~\___#
/~~\_______#
/~~~~~~~~\_#
___________##
___________#
/~~~~~~~~\_#
/~~\_______#
/~~~~~~\___#
/~~\_______#
/~~\_______#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\_______#
/~~\__/~~\_#
_/~~~~~~~\_#
______/~~\_##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
_______#
/~~~~\_#
_/~~\__#
_/~~\__#
_/~~\__#
/~~~~\_#
_______##
_________#
__/~~~~\_#
___/~~\__#
___/~~\__#
___/~~\__#
/~~~~\___#
_________##
___________#
/~~\__/~~\_#
/~~\_/~~\__#
/~~~~~\____#
/~~\_/~~\__#
/~~\__/~~\_#
___________##
___________#
/~~\_______#
/~~\_______#
/~~\_______#
/~~\_______#
/~~~~~~~~\_#
___________##
___________#
/~~\__/~~\_#
/~~~\/~~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
/~~\__/~~\_#
/~~~~\/~~\_#
/~~~~~~~~\_#
/~~\/~~~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\_______#
/~~\_______#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\_/~~\__#
_/~~~~~~~\_#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\_______#
_/~~~~~~\__#
______/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~~\_#
___/~~\____#
___/~~\____#
___/~~\____#
___/~~\____#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
___________##
_____________#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
_/~~~~~~~~\__#
_____________##
___________#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
_/~~\/~~\__#
/~~\__/~~\_#
___________##
___________#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
___/~~\____#
___/~~\____#
___________##
___________#
/~~~~~~~~\_#
_____/~~\__#
___/~~\____#
_/~~\______#
/~~~~~~~~\_#
___________##
_______#
/~~~~\_#
/~~\___#
/~~\___#
/~~\___#
/~~~~\_#
_______##
_________#
/~~\_____#
_/~~\____#
__/~~\___#
___/~~\__#
____/~~\_#
_________##
_______#
/~~~~\_#
__/~~\_#
__/~~\_#
__/~~\_#
/~~~~\_#
_______##
___________#
____/\_____#
__/~~~~\___#
/~~\__/~~\_#
___________#
___________#
___________##
___________#
___________#
___________#
___________#
___________#
/~~~~~~~~\_#
___________##
____#
/~\_#
_/\_#
____#
____#
____#
____##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\_______#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~~~~~~\__#
___________##
___________#
/~~~~~~~~\_#
/~~\_______#
/~~~~~~\___#
/~~\_______#
/~~~~~~~~\_#
___________##
___________#
/~~~~~~~~\_#
/~~\_______#
/~~~~~~\___#
/~~\_______#
/~~\_______#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\_______#
/~~\__/~~\_#
_/~~~~~~~\_#
______/~~\_##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
_______#
/~~~~\_#
_/~~\__#
_/~~\__#
_/~~\__#
/~~~~\_#
_______##
_________#
__/~~~~\_#
___/~~\__#
___/~~\__#
___/~~\__#
/~~~~\___#
_________##
___________#
/~~\__/~~\_#
/~~\_/~~\__#
/~~~~~\____#
/~~\_/~~\__#
/~~\__/~~\_#
___________##
___________#
/~~\_______#
/~~\_______#
/~~\_______#
/~~\_______#
/~~~~~~~~\_#
___________##
___________#
/~~\__/~~\_#
/~~~\/~~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
/~~\__/~~\_#
/~~~~\/~~\_#
/~~~~~~~~\_#
/~~\/~~~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\_______#
/~~\_______#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\_/~~\__#
_/~~~~~~~\_#
___________##
___________#
/~~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\_______#
_/~~~~~~\__#
______/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~~~~~~~\_#
___/~~\____#
___/~~\____#
___/~~\____#
___/~~\____#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
___________##
_____________#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
/~~\/~~\/~~\_#
_/~~~~~~~~\__#
_____________##
___________#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
_/~~\/~~\__#
/~~\__/~~\_#
___________##
___________#
/~~\__/~~\_#
_/~~\/~~\__#
__/~~~~\___#
___/~~\____#
___/~~\____#
___________##
___________#
/~~~~~~~~\_#
_____/~~\__#
___/~~\____#
_/~~\______#
/~~~~~~~~\_#
___________##
_________#
__/~~~~\_#
__/~~\___#
/~~~~\___#
__/~~\___#
__/~~~~\_#
_________##
_____#
/~~\_#
/~~\_#
/~~\_#
/~~\_#
/~~\_#
_____##
_________#
/~~~~\___#
__/~~\___#
__/~~~~\_#
__/~~\___#
/~~~~\___#
_________##
______________#
__/~~~\__/~~\_#
_/~~~~~~~~~\__#
/~~\__/~~~\___#
______________#
______________#
______________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~~~~~~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
/~~\__/~~\_#
_/~~~~~~\__#
___________##
___________#
_/~~~~~~\__#
/~~\__/~~\_#
/~~\_/~~\__#
/~~\__/~~\_#
/~~\_/~~\__#
___________##
@@ -0,0 +1,6 @@
export var Version;
(function (Version) {
Version[Version["v1"] = 0] = "v1";
Version[Version["v2"] = 1] = "v2";
Version[Version["v3"] = 2] = "v3";
})(Version || (Version = {}));
@@ -0,0 +1,69 @@
<p align="center">
<img src="https://cdn.jsdelivr.net/gh/hexagon/base64@main/base64.png" alt="@hexagon/base64" width="200" height="200"><br>
<br>Probably the only JavaScript base64 library you'll ever need!<br>
</p>
# @hexagon/base64
Encode, decode and validate base64/base64url to string/arraybuffer and vice-versa. Works in Node, Deno and browser.
[![Node.js CI](https://github.com/Hexagon/base64/actions/workflows/node.js.yml/badge.svg)](https://github.com/Hexagon/base64/actions/workflows/node.js.yml) [![Deno CI](https://github.com/Hexagon/base64/actions/workflows/deno.yml/badge.svg)](https://github.com/Hexagon/base64/actions/workflows/deno.yml)
[![npm version](https://badge.fury.io/js/@hexagon%2Fbase64.svg)](https://badge.fury.io/js/@hexagon%2Fbase64) [![NPM Downloads](https://img.shields.io/npm/dm/@hexagon/base64.svg)](https://www.npmjs.org/package/@hexagon/base64) [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/@hexagon/base64/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@hexagon/base64) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4978bdbf495941c087ecb32b120f28ff)](https://www.codacy.com/gh/Hexagon/base64/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Hexagon/base64&amp;utm_campaign=Badge_Grade)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Hexagon/base64/blob/master/LICENSE)
* Supports regular base64 and base64url
* Convert to/from string or arraybuffer
* Validate / identify base64 and base64url
* Works in Node.js >=4.0 (both require and import).
* Works in Deno >=1.16.
* Works in browsers as standalone, UMD or ES-module.
* Includes [TypeScript](https://www.typescriptlang.org/) typings.
```javascript
// Encode string as regular base64
const example1enc = base64.fromString("Hellö Wörld, how are you doing today?!");
console.log(example1enc);
// > SGVsbMO2IFfDtnJsZCwgaG93IGFyZSB5b3UgZG9pbmcgdG9kYXk/IQ==
// Decode string as regular base64
const example1dec = base64.toString("SGVsbMO2IFfDtnJsZCwgaG93IGFyZSB5b3UgZG9pbmcgdG9kYXk/IQ==");
console.log(example1dec);
// > Hellö Wörld, how are you doing today?!
```
Full documentation available at [base64.56k.guru](https://base64.56k.guru)
## Quick Installation
Node.js: `npm install @hexagon/base64 --save`
Deno: `import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";`
For browser/cdn usage, refer to the documentation.
### Quick API
- __fromArrayBuffer(buffer, urlMode)__ - Encodes `ArrayBuffer` into base64 or base64url if urlMode(optional) is true
- __toArrayBuffer(str, urlMode)__ - Decodes base64url string (or base64url string if urlMode is true) to `ArrayBuffer`
- __fromString(str, urlMode)__ - Encodes `String` into base64 string(base64url string if urlMode is true)
- __toString(str, urlMode)__ - Decodes base64 or base64url string to `String`
- __validate(str, urlMode)__ - Returns true if `String` str is valid base64/base64 dependending on urlMode
## Contributing
See [Contribution Guide](https://base64.56k.guru/contributing.html)
## Donations
If you found this library helpful and wish to support its development, consider making a donation through [Hexagon's GitHub Sponsors page](https://github.com/sponsors/hexagon). Your generosity ensures the library's continued development and maintenance.
### Contributors
The underlying code is loosely based on [github.com/niklasvh/base64-arraybuffer](https://github.com/niklasvh/base64-arraybuffer)
## License
MIT
@@ -0,0 +1,6 @@
export { getValidChildren, pickChildren } from './children.js';
export { filterDOMProps } from './filter-dom-props.js';
export { DOMEventNames, DOMPropNames } from './dom-props.js';
export { renderFn } from './functions.js';
import 'react';
import '@react-types/shared';
@@ -0,0 +1 @@
{"version":3,"file":"PlanServiceNodeParent.d.ts","sourceRoot":"","sources":["../../../../src/planning/models/PlanServiceNodeParent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,MAAM,MAAM,qBAAqB,CAAC,UAAU,GAAG,GAAG,IAC9C,mBAAmB,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,GAChD,wBAAwB,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
{"version":3,"names":["_taggedTemplateLiteralLoose","strings","raw","slice"],"sources":["../../src/helpers/taggedTemplateLiteralLoose.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nexport default function _taggedTemplateLiteralLoose(\n strings: readonly string[],\n raw?: readonly string[],\n): TemplateStringsArray {\n if (!raw) {\n raw = strings.slice(0);\n }\n // Loose: TemplateStringsArray['raw'] is readonly, so we have to cast it to any before assigning\n (strings as any).raw = raw;\n return strings as TemplateStringsArray;\n}\n"],"mappings":";;;;;;AAEe,SAASA,2BAA2BA,CACjDC,OAA0B,EAC1BC,GAAuB,EACD;EACtB,IAAI,CAACA,GAAG,EAAE;IACRA,GAAG,GAAGD,OAAO,CAACE,KAAK,CAAC,CAAC,CAAC;EACxB;EAECF,OAAO,CAASC,GAAG,GAAGA,GAAG;EAC1B,OAAOD,OAAO;AAChB","ignoreList":[]}
@@ -0,0 +1,50 @@
#!/usr/bin/env node
'use strict';
var path = require('path');
var fs = require('fs');
if (
String(process.env.npm_lifecycle_script).slice(0, 8) !== 'resolve '
&& (
!process.argv
|| process.argv.length < 2
|| (process.argv[1] !== __filename && fs.statSync(process.argv[1]).ino !== fs.statSync(__filename).ino)
|| (process.env.npm_lifecycle_event !== 'npx' && process.env._ && fs.realpathSync(path.resolve(process.env._)) !== __filename)
)
) {
console.error('Error: `resolve` must be run directly as an executable');
process.exit(1);
}
var supportsPreserveSymlinkFlag = require('supports-preserve-symlinks-flag');
var preserveSymlinks = false;
for (var i = 2; i < process.argv.length; i += 1) {
if (process.argv[i].slice(0, 2) === '--') {
if (supportsPreserveSymlinkFlag && process.argv[i] === '--preserve-symlinks') {
preserveSymlinks = true;
} else if (process.argv[i].length > 2) {
console.error('Unknown argument ' + process.argv[i].replace(/[=].*$/, ''));
process.exit(2);
}
process.argv.splice(i, 1);
i -= 1;
if (process.argv[i] === '--') { break; } // eslint-disable-line no-restricted-syntax
}
}
if (process.argv.length < 3) {
console.error('Error: `resolve` expects a specifier');
process.exit(2);
}
var resolve = require('../');
var result = resolve.sync(process.argv[2], {
basedir: process.cwd(),
preserveSymlinks: preserveSymlinks
});
console.log(result);
@@ -0,0 +1,44 @@
import { PluginFunc } from 'dayjs/esm'
declare const plugin: PluginFunc
export = plugin
declare module 'dayjs/esm' {
type WeekdayNames = [string, string, string, string, string, string, string];
type MonthNames = [string, string, string, string, string, string, string, string, string, string, string, string];
interface InstanceLocaleDataReturn {
firstDayOfWeek(): number;
weekdays(instance?: Dayjs): WeekdayNames;
weekdaysShort(instance?: Dayjs): WeekdayNames;
weekdaysMin(instance?: Dayjs): WeekdayNames;
months(instance?: Dayjs): MonthNames;
monthsShort(instance?: Dayjs): MonthNames;
longDateFormat(format: string): string;
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
ordinal(n: number): string
}
interface GlobalLocaleDataReturn {
firstDayOfWeek(): number;
weekdays(): WeekdayNames;
weekdaysShort(): WeekdayNames;
weekdaysMin(): WeekdayNames;
months(): MonthNames;
monthsShort(): MonthNames;
longDateFormat(format: string): string;
meridiem(hour?: number, minute?: number, isLower?: boolean): string;
ordinal(n: number): string
}
interface Dayjs {
localeData(): InstanceLocaleDataReturn;
}
export function weekdays(localOrder?: boolean): WeekdayNames;
export function weekdaysShort(localOrder?: boolean): WeekdayNames;
export function weekdaysMin(localOrder?: boolean): WeekdayNames;
export function monthsShort(): MonthNames;
export function months(): MonthNames;
export function localeData(): GlobalLocaleDataReturn;
}
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_class_apply_descriptor_update.cjs",
"module": "../../esm/_class_apply_descriptor_update.js"
}
@@ -0,0 +1 @@
module.exports={C:{"60":0.00311,"102":0.00311,"115":0.1026,"125":0.01244,"128":0.23628,"131":0.00311,"136":0.00311,"137":0.00311,"139":0.00311,"140":0.04042,"141":0.00622,"142":0.02176,"143":0.46946,"144":0.53164,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 133 134 135 138 145 146 147 3.5 3.6"},D:{"39":0.00622,"40":0.00622,"41":0.00622,"42":0.00622,"43":0.00622,"44":0.00622,"45":0.00622,"46":0.00622,"47":0.00933,"48":0.00622,"49":0.01555,"50":0.00622,"51":0.00622,"52":0.00622,"53":0.00622,"54":0.00622,"55":0.00622,"56":0.00622,"57":0.00622,"58":0.00622,"59":0.00622,"60":0.00622,"69":0.01555,"70":0.00311,"75":0.01244,"79":0.03109,"80":0.00311,"83":0.00311,"86":0.00311,"87":0.00933,"89":0.00311,"91":0.00311,"96":0.00311,"98":0.01555,"99":0.00622,"100":0.00311,"101":0.00622,"103":0.00622,"105":0.00622,"106":0.00311,"108":0.00622,"109":0.68709,"112":6.74031,"113":0.00311,"114":0.00311,"115":0.00311,"116":0.01555,"118":0.05285,"119":0.00622,"120":0.01555,"121":0.00933,"122":0.03109,"123":0.00311,"124":0.02176,"125":4.76921,"126":0.42904,"127":0.00933,"128":0.02487,"129":0.01555,"130":0.01244,"131":0.12436,"132":0.01555,"133":0.01555,"134":0.01555,"135":0.01555,"136":0.01865,"137":0.04042,"138":0.15856,"139":0.34199,"140":2.20117,"141":5.45008,"142":0.05907,"143":0.00311,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 76 77 78 81 84 85 88 90 92 93 94 95 97 102 104 107 110 111 117 144 145"},F:{"46":0.00622,"91":0.00933,"92":0.01244,"95":0.00311,"114":0.0342,"120":0.04353,"121":0.00933,"122":0.39484,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00311,"92":0.00311,"98":0.00311,"109":0.00311,"113":0.00311,"114":0.13058,"131":0.00311,"132":0.00311,"133":0.00311,"134":0.00311,"136":0.00311,"137":0.00311,"138":0.00622,"139":0.01244,"140":0.1741,"141":0.80834,"142":0.00311,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 26.2","13.1":0.00622,"14.1":0.00311,"15.1":0.00622,"15.5":0.00622,"15.6":0.07773,"16.1":0.00311,"16.2":0.00311,"16.3":0.00933,"16.4":0.00622,"16.5":0.00933,"16.6":0.12747,"17.0":0.00311,"17.1":0.06218,"17.2":0.00933,"17.3":0.00933,"17.4":0.03731,"17.5":0.04353,"17.6":0.13369,"18.0":0.00622,"18.1":0.04353,"18.2":0.00933,"18.3":0.04664,"18.4":0.04353,"18.5-18.6":0.11192,"26.0":0.44459,"26.1":0.01865},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00329,"5.0-5.1":0,"6.0-6.1":0.01316,"7.0-7.1":0.00987,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02961,"10.0-10.2":0.00329,"10.3":0.05593,"11.0-11.2":0.82914,"11.3-11.4":0.01974,"12.0-12.1":0.00658,"12.2-12.5":0.16122,"13.0-13.1":0,"13.2":0.01645,"13.3":0.00658,"13.4-13.7":0.02632,"14.0-14.4":0.05593,"14.5-14.8":0.05922,"15.0-15.1":0.05593,"15.2-15.3":0.04277,"15.4":0.04935,"15.5":0.05593,"15.6-15.8":0.73043,"16.0":0.09871,"16.1":0.18425,"16.2":0.09542,"16.3":0.17109,"16.4":0.04277,"16.5":0.07568,"16.6-16.7":0.9772,"17.0":0.0691,"17.1":0.10529,"17.2":0.07568,"17.3":0.11187,"17.4":0.19741,"17.5":0.33889,"17.6-17.7":0.85546,"18.0":0.19412,"18.1":0.40141,"18.2":0.21716,"18.3":0.69753,"18.4":0.35864,"18.5-18.6":18.28716,"26.0":2.2604,"26.1":0.08226},P:{"4":0.04074,"22":0.01018,"23":0.02037,"24":0.03055,"25":0.06111,"26":0.08147,"27":0.06111,"28":2.57664,"29":0.27498,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.03055,"19.0":0.01018},I:{"0":0.00688,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.15852,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00622,_:"6 7 8 9 10 5.5"},S:{"2.5":0.09649,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31014},Q:{_:"14.9"},O:{"0":0.00689},H:{"0":0},L:{"0":35.46096}};
@@ -0,0 +1 @@
{"version":3,"file":"esquery.lite.min.js","sources":["../parser.js","../esquery.js"],"sourcesContent":["/*\n * Generated by PEG.js 0.10.0.\n *\n * http://pegjs.org/\n */\n(function(root, factory) {\n if (typeof define === \"function\" && define.amd) {\n define([], factory);\n } else if (typeof module === \"object\" && module.exports) {\n module.exports = factory();\n }\n})(this, function() {\n \"use strict\";\n\n function peg$subclass(child, parent) {\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n }\n\n function peg$SyntaxError(message, expected, found, location) {\n this.message = message;\n this.expected = expected;\n this.found = found;\n this.location = location;\n this.name = \"SyntaxError\";\n\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, peg$SyntaxError);\n }\n }\n\n peg$subclass(peg$SyntaxError, Error);\n\n peg$SyntaxError.buildMessage = function(expected, found) {\n var DESCRIBE_EXPECTATION_FNS = {\n literal: function(expectation) {\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n },\n\n \"class\": function(expectation) {\n var escapedParts = \"\",\n i;\n\n for (i = 0; i < expectation.parts.length; i++) {\n escapedParts += expectation.parts[i] instanceof Array\n ? classEscape(expectation.parts[i][0]) + \"-\" + classEscape(expectation.parts[i][1])\n : classEscape(expectation.parts[i]);\n }\n\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n },\n\n any: function(expectation) {\n return \"any character\";\n },\n\n end: function(expectation) {\n return \"end of input\";\n },\n\n other: function(expectation) {\n return expectation.description;\n }\n };\n\n function hex(ch) {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n\n function literalEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\"/g, '\\\\\"')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function classEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\]/g, '\\\\]')\n .replace(/\\^/g, '\\\\^')\n .replace(/-/g, '\\\\-')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function describeExpectation(expectation) {\n return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);\n }\n\n function describeExpected(expected) {\n var descriptions = new Array(expected.length),\n i, j;\n\n for (i = 0; i < expected.length; i++) {\n descriptions[i] = describeExpectation(expected[i]);\n }\n\n descriptions.sort();\n\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found) {\n return found ? \"\\\"\" + literalEscape(found) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n\n function peg$parse(input, options) {\n options = options !== void 0 ? options : {};\n\n var peg$FAILED = {},\n\n peg$startRuleFunctions = { start: peg$parsestart },\n peg$startRuleFunction = peg$parsestart,\n\n peg$c0 = function(ss) {\n return ss.length === 1 ? ss[0] : { type: 'matches', selectors: ss };\n },\n peg$c1 = function() { return void 0; },\n peg$c2 = \" \",\n peg$c3 = peg$literalExpectation(\" \", false),\n peg$c4 = /^[^ [\\],():#!=><~+.]/,\n peg$c5 = peg$classExpectation([\" \", \"[\", \"]\", \",\Line truncated
@@ -0,0 +1,4 @@
import type { FieldElement } from '../types';
declare const _default: (element: FieldElement) => element is HTMLInputElement;
export default _default;
//# sourceMappingURL=isCheckBoxInput.d.ts.map
@@ -0,0 +1,138 @@
cmake_minimum_required(VERSION 3.5)
project(nan)
set(CMAKE_CXX_STANDARD 11)
set(CPPLINT "${CMAKE_CURRENT_SOURCE_DIR}/cpplint.py")
set(MODULES symbols strings)
set(SOURCES "")
set(ADDONS "")
foreach(MODULE ${MODULES})
list(APPEND SOURCES "test/cpp/${MODULE}.cpp")
list(APPEND ADDONS "test/build/${CMAKE_BUILD_TYPE}/${MODULE}.node")
endforeach()
set(LINT_SOURCES examples/async_pi_estimate/addon.cc
examples/async_pi_estimate/async.cc
examples/async_pi_estimate/async.h
examples/async_pi_estimate/pi_est.cc
examples/async_pi_estimate/pi_est.h
examples/async_pi_estimate/sync.cc
examples/async_pi_estimate/sync.h
nan.h
nan_callbacks.h
nan_callbacks_12_inl.h
nan_callbacks_pre_12_inl.h
nan_converters.h
nan_converters_43_inl.h
nan_converters_pre_43_inl.h
nan_define_own_property_helper.h
nan_implementation_12_inl.h
nan_implementation_pre_12_inl.h
nan_json.h
nan_maybe_43_inl.h
nan_maybe_pre_43_inl.h
nan_new.h
nan_object_wrap.h
nan_persistent_12_inl.h
nan_persistent_pre_12_inl.h
nan_private.h
nan_scriptorigin.h
nan_string_bytes.h
nan_weak.h
test/cpp/accessors.cpp
test/cpp/accessors2.cpp
test/cpp/asyncresource.cpp
test/cpp/asyncworker.cpp
test/cpp/asyncprogressworker.cpp
test/cpp/asyncprogressworkerstream.cpp
test/cpp/asyncprogressworkersignal.cpp
test/cpp/asyncprogressqueueworker.cpp
test/cpp/asyncprogressqueueworkerstream.cpp
test/cpp/asyncworkererror.cpp
test/cpp/buffer.cpp
test/cpp/bufferworkerpersistent.cpp
test/cpp/error.cpp
test/cpp/gc.cpp
test/cpp/indexedinterceptors.cpp
test/cpp/callbackcontext.cpp
test/cpp/converters.cpp
test/cpp/isolatedata.cpp
test/cpp/json-parse.cpp
test/cpp/json-stringify.cpp
test/cpp/makecallback.cpp
test/cpp/maybe.cpp
test/cpp/morenews.cpp
test/cpp/multifile1.cpp
test/cpp/multifile2.cpp
test/cpp/multifile2.h
test/cpp/namedinterceptors.cpp
test/cpp/nancallback.cpp
test/cpp/nannew.cpp
test/cpp/news.cpp
test/cpp/objectwraphandle.cpp
test/cpp/persistent.cpp
test/cpp/private.cpp
test/cpp/returnemptystring.cpp
test/cpp/returnnull.cpp
test/cpp/returnundefined.cpp
test/cpp/returnvalue.cpp
test/cpp/setcallhandler.cpp
test/cpp/settemplate.cpp
test/cpp/sleep.h
test/cpp/strings.cpp
test/cpp/symbols.cpp
test/cpp/threadlocal.cpp
test/cpp/trycatch.cpp
test/cpp/typedarrays.cpp
test/cpp/weak.cpp
test/cpp/weak2.cpp
test/cpp/wrappedobjectfactory.cpp
node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc)
set(FILTER "-build/include_subdir,-whitespace/parens")
find_package(Python COMPONENTS Interpreter Development REQUIRED)
execute_process(
COMMAND npm install
OUTPUT_FILE node_modules
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(lint
COMMAND ${Python_EXECUTABLE} ${CPPLINT} --filter=${FILTER} ${LINT_SOURCES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(test
DEPENDS ${ADDONS}
COMMAND npm test
)
add_custom_target(forcetest
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test
COMMAND ../node_modules/.bin/node-gyp rebuild
COMMAND npm test
)
add_custom_target(docs
DEPENDS README.md doc/.build.sh doc/asyncworker.md doc/buffers.md doc/callback.md
doc/converters.md doc/errors.md doc/maybe_types.md doc/methods.md doc/new.md
doc/node_misc.md doc/persistent.md doc/scopes.md doc/script.md doc/string_bytes.md
doc/v8_internals.md doc/json.md doc/v8_misc.md
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND doc/.build.sh
)
add_custom_command(OUTPUT ${ADDONS}
DEPENDS ${SOURCES} nan.h nan_new.h nan_implementation_pre_12_inl.h nan_implementation_12_inl.h
nan_callbacks.h nan_callbacks_12_inl.h nan_callbacks_pre_12_inl.h nan_converters.h
nan_converters_43_inl.h nan_converters_pre_43_inl.h nan_define_own_property_helper.h
nan_json.h nan_maybe_43_inl.h nan_maybe_pre_43_inl.h nan_persistent_12_inl.h
nan_persistent_pre_12_inl.h nan_private.h nan_weak.h nan_scriptorigin.h nan_string_bytes.h
test/binding.gyp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test
COMMAND ../node_modules/.bin/node-gyp rebuild
)
@@ -0,0 +1,33 @@
import { GetPacketStatusDepends } from '../../action/packet/GetPacketStatus';
import { Static } from '@sinclair/typebox';
declare const PayloadSchema: import("@sinclair/typebox").TObject<{
file_id: import("@sinclair/typebox").TString;
}>;
type PayloadType = Static<typeof PayloadSchema>;
declare const ReturnSchema: import("@sinclair/typebox").TObject<{
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
type ReturnType = Static<typeof ReturnSchema>;
export declare class GetPrivateFileUrl extends GetPacketStatusDepends<PayloadType, ReturnType> {
actionName: "get_private_file_url";
payloadSchema: import("@sinclair/typebox").TObject<{
file_id: import("@sinclair/typebox").TString;
}>;
returnSchema: import("@sinclair/typebox").TObject<{
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {
user_id: string;
file_id: string;
};
returnExample: {
url: string;
};
_handle(payload: PayloadType): Promise<{
url: string;
}>;
}
export {};
@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Ben Mosher
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,35 @@
import baseIsEqual from './_baseIsEqual.js';
/**
* Performs a deep comparison between two values to determine if they are
* equivalent.
*
* **Note:** This method supports comparing arrays, array buffers, booleans,
* date objects, error objects, maps, numbers, `Object` objects, regexes,
* sets, strings, symbols, and typed arrays. `Object` objects are compared
* by their own, not inherited, enumerable properties. Functions and DOM
* nodes are compared by strict equality, i.e. `===`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.isEqual(object, other);
* // => true
*
* object === other;
* // => false
*/
function isEqual(value, other) {
return baseIsEqual(value, other);
}
export default isEqual;
@@ -0,0 +1,483 @@
import AtRule from './at-rule.js'
import Comment from './comment.js'
import Declaration from './declaration.js'
import Node, { ChildNode, ChildProps, NodeProps } from './node.js'
import { Root } from './postcss.js'
import Rule from './rule.js'
declare namespace Container {
export type ContainerWithChildren<Child extends Node = ChildNode> = {
nodes: Child[]
} & (
| AtRule
| Root
| Rule
)
export interface ValueOptions {
/**
* String that’s used to narrow down values and speed up the regexp search.
*/
fast?: string
/**
* An array of property names.
*/
props?: readonly string[]
}
export interface ContainerProps extends NodeProps {
nodes?: readonly (ChildProps | Node)[]
}
/**
* All types that can be passed into container methods to create or add a new
* child node.
*/
export type NewChild =
| ChildProps
| Node
| readonly ChildProps[]
| readonly Node[]
| readonly string[]
| string
| undefined
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Container_ as default }
}
/**
* The `Root`, `AtRule`, and `Rule` container nodes
* inherit some common methods to help work with their children.
*
* Note that all containers can store any content. If you write a rule inside
* a rule, PostCSS will parse it.
*/
declare abstract class Container_<Child extends Node = ChildNode> extends Node {
/**
* An array containing the container’s children.
*
* ```js
* const root = postcss.parse('a { color: black }')
* root.nodes.length //=> 1
* root.nodes[0].selector //=> 'a'
* root.nodes[0].nodes[0].prop //=> 'color'
* ```
*/
nodes: Child[] | undefined
/**
* The container’s first child.
*
* ```js
* rule.first === rules.nodes[0]
* ```
*/
get first(): Child | undefined
/**
* The container’s last child.
*
* ```js
* rule.last === rule.nodes[rule.nodes.length - 1]
* ```
*/
get last(): Child | undefined
/**
* Inserts new nodes to the end of the container.
*
* ```js
* const decl1 = new Declaration({ prop: 'color', value: 'black' })
* const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
* rule.append(decl1, decl2)
*
* root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
* root.append({ selector: 'a' }) // rule
* rule.append({ prop: 'color', value: 'black' }) // declaration
* rule.append({ text: 'Comment' }) // comment
*
* root.append('a {}')
* root.first.append('color: black; z-index: 1')
* ```
*
* @param nodes New nodes.
* @return This node for methods chain.
*/
append(...nodes: Container.NewChild[]): this
assign(overrides: Container.ContainerProps | object): this
clone(overrides?: Partial<Container.ContainerProps>): this
cloneAfter(overrides?: Partial<Container.ContainerProps>): this
cloneBefore(overrides?: Partial<Container.ContainerProps>): this
/**
* Iterates through the container’s immediate children,
* calling `callback` for each child.
*
* Returning `false` in the callback will break iteration.
*
* This method only iterates through the container’s immediate children.
* If you need to recursively iterate through all the container’s descendant
* nodes, use `Container#walk`.
*
* Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe
* if you are mutating the array of child nodes during iteration.
* PostCSS will adjust the current index to match the mutations.
*
* ```js
* const root = postcss.parse('a { color: black; z-index: 1 }')
* const rule = root.first
*
* for (const decl of rule.nodes) {
* decl.cloneBefore({ prop: '-webkit-' + decl.prop })
* // Cycle will be infinite, because cloneBefore moves the current node
* // to the next index
* }
*
* rule.each(decl => {
* decl.cloneBefore({ prop: '-webkit-' + decl.prop })
* // Will be executed only for color and z-index
* })
* ```
*
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
each(
callback: (node: Child, index: number) => false | void
): false | undefined
/**
* Returns `true` if callback returns `true`
* for all of the container’s children.
*
* ```js
* const noPrefixes = rule.every(i => i.prop[0] !== '-')
* ```
*
* @param condition Iterator returns true or false.
* @return Is every child pass condition.
*/
every(
condition: (node: Child, index: number, nodes: Child[]) => boolean
): boolean
/**
* Returns a `child`’s index within the `Container#nodes` array.
*
* ```js
* rule.index( rule.nodes[2] ) //=> 2
* ```
*
* @param child Child of the current container.
* @return Child index.
*/
index(child: Child | number): number
/**
* Insert new node after old node within the container.
*
* @param oldNode Child or child’s index.
* @param newNode New node.
* @return This node for methods chain.
*/
insertAfter(oldNode: Child | number, newNode: Container.NewChild): this
/**
* Traverses the container’s descendant nodes, calling callback
* for each comment node.
*
* Like `Container#each`, this method is safe
* to use if you are mutating arrays during iteration.
*
* ```js
* root.walkComments(comment => {
* comment.remove()
* })
* ```
*
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
/**
* Insert new node before old node within the container.
*
* ```js
* rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))
* ```
*
* @param oldNode Child or child’s index.
* @param newNode New node.
* @return This node for methods chain.
*/
insertBefore(oldNode: Child | number, newNode: Container.NewChild): this
/**
* Inserts new nodes to the start of the container.
*
* ```js
* const decl1 = new Declaration({ prop: 'color', value: 'black' })
* const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
* rule.prepend(decl1, decl2)
*
* root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
* root.append({ selector: 'a' }) // rule
* rule.append({ prop: 'color', value: 'black' }) // declaration
* rule.append({ text: 'Comment' }) // comment
*
* root.append('a {}')
* root.first.append('color: black; z-index: 1')
* ```
*
* @param nodes New nodes.
* @return This node for methods chain.
*/
prepend(...nodes: Container.NewChild[]): this
/**
* Add child to the end of the node.
*
* ```js
* rule.push(new Declaration({ prop: 'color', value: 'black' }))
* ```
*
* @param child New node.
* @return This node for methods chain.
*/
push(child: Child): this
/**
* Removes all children from the container
* and cleans their parent properties.
*
* ```js
* rule.removeAll()
* rule.nodes.length //=> 0
* ```
*
* @return This node for methods chain.
*/
removeAll(): this
/**
* Removes node from the container and cleans the parent properties
* from the node and its children.
*
* ```js
* rule.nodes.length //=> 5
* rule.removeChild(decl)
* rule.nodes.length //=> 4
* decl.parent //=> undefined
* ```
*
* @param child Child or child’s index.
* @return This node for methods chain.
*/
removeChild(child: Child | number): this
replaceValues(
pattern: RegExp | string,
replaced: { (substring: string, ...args: any[]): string } | string
): this
/**
* Passes all declaration values within the container that match pattern
* through callback, replacing those values with the returned result
* of callback.
*
* This method is useful if you are using a custom unit or function
* and need to iterate through all values.
*
* ```js
* root.replaceValues(/\d+rem/, { fast: 'rem' }, string => {
* return 15 * parseInt(string) + 'px'
* })
* ```
*
* @param pattern Replace pattern.
* @param {object} options Options to speed up the search.
* @param replaced String to replace pattern or callback
* that returns a new value. The callback
* will receive the same arguments
* as those passed to a function parameter
* of `String#replace`.
* @return This node for methods chain.
*/
replaceValues(
pattern: RegExp | string,
options: Container.ValueOptions,
replaced: { (substring: string, ...args: any[]): string } | string
): this
/**
* Returns `true` if callback returns `true` for (at least) one
* of the container’s children.
*
* ```js
* const hasPrefix = rule.some(i => i.prop[0] === '-')
* ```
*
* @param condition Iterator returns true or false.
* @return Is some child pass condition.
*/
some(
condition: (node: Child, index: number, nodes: Child[]) => boolean
): boolean
/**
* Traverses the container’s descendant nodes, calling callback
* for each node.
*
* Like container.each(), this method is safe to use
* if you are mutating arrays during iteration.
*
* If you only need to iterate through the container’s immediate children,
* use `Container#each`.
*
* ```js
* root.walk(node => {
* // Traverses all descendant nodes.
* })
* ```
*
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
walk(
callback: (node: ChildNode, index: number) => false | void
): false | undefined
/**
* Traverses the container’s descendant nodes, calling callback
* for each at-rule node.
*
* If you pass a filter, iteration will only happen over at-rules
* that have matching names.
*
* Like `Container#each`, this method is safe
* to use if you are mutating arrays during iteration.
*
* ```js
* root.walkAtRules(rule => {
* if (isOld(rule.name)) rule.remove()
* })
*
* let first = false
* root.walkAtRules('charset', rule => {
* if (!first) {
* first = true
* } else {
* rule.remove()
* }
* })
* ```
*
* @param name String or regular expression to filter at-rules by name.
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
walkAtRules(
nameFilter: RegExp | string,
callback: (atRule: AtRule, index: number) => false | void
): false | undefined
walkAtRules(
callback: (atRule: AtRule, index: number) => false | void
): false | undefined
walkComments(
callback: (comment: Comment, indexed: number) => false | void
): false | undefined
walkComments(
callback: (comment: Comment, indexed: number) => false | void
): false | undefined
/**
* Traverses the container’s descendant nodes, calling callback
* for each declaration node.
*
* If you pass a filter, iteration will only happen over declarations
* with matching properties.
*
* ```js
* root.walkDecls(decl => {
* checkPropertySupport(decl.prop)
* })
*
* root.walkDecls('border-radius', decl => {
* decl.remove()
* })
*
* root.walkDecls(/^background/, decl => {
* decl.value = takeFirstColorFromGradient(decl.value)
* })
* ```
*
* Like `Container#each`, this method is safe
* to use if you are mutating arrays during iteration.
*
* @param prop String or regular expression to filter declarations
* by property name.
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
walkDecls(
propFilter: RegExp | string,
callback: (decl: Declaration, index: number) => false | void
): false | undefined
walkDecls(
callback: (decl: Declaration, index: number) => false | void
): false | undefined
/**
* Traverses the container’s descendant nodes, calling callback
* for each rule node.
*
* If you pass a filter, iteration will only happen over rules
* with matching selectors.
*
* Like `Container#each`, this method is safe
* to use if you are mutating arrays during iteration.
*
* ```js
* const selectors = []
* root.walkRules(rule => {
* selectors.push(rule.selector)
* })
* console.log(`Your CSS uses ${ selectors.length } selectors`)
* ```
*
* @param selector String or regular expression to filter rules by selector.
* @param callback Iterator receives each node and index.
* @return Returns `false` if iteration was broke.
*/
walkRules(
selectorFilter: RegExp | string,
callback: (rule: Rule, index: number) => false | void
): false | undefined
walkRules(
callback: (rule: Rule, index: number) => false | void
): false | undefined
/**
* An internal method that converts a {@link NewChild} into a list of actual
* child nodes that can then be added to this container.
*
* This ensures that the nodes' parent is set to this container, that they use
* the correct prototype chain, and that they're marked as dirty.
*
* @param mnodes The new node or nodes to add.
* @param sample A node from whose raws the new node's `before` raw should be
* taken.
* @param type This should be set to `'prepend'` if the new nodes will be
* inserted at the beginning of the container.
* @hidden
*/
protected normalize(
nodes: Container.NewChild,
sample: Node | undefined,
type?: 'prepend' | false
): Child[]
}
declare class Container<
Child extends Node = ChildNode
> extends Container_<Child> {}
export = Container
@@ -0,0 +1,36 @@
var baseIsMatch = require('./_baseIsMatch'),
getMatchData = require('./_getMatchData');
/**
* Performs a partial deep comparison between `object` and `source` to
* determine if `object` contains equivalent property values.
*
* **Note:** This method is equivalent to `_.matches` when `source` is
* partially applied.
*
* Partial comparisons will match empty array and empty object `source`
* values against any array or object value, respectively. See `_.isEqual`
* for a list of supported value comparisons.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
* @example
*
* var object = { 'a': 1, 'b': 2 };
*
* _.isMatch(object, { 'b': 2 });
* // => true
*
* _.isMatch(object, { 'b': 1 });
* // => false
*/
function isMatch(object, source) {
return object === source || baseIsMatch(object, source, getMatchData(source));
}
module.exports = isMatch;
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=container.int.spec.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resolveProviderBindingCallback.d.ts","sourceRoot":"","sources":["../../../../src/resolution/calculations/resolveProviderBindingCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,wBAAgB,8BAA8B,CAC5C,UAAU,SAAS,QAAQ,CAAC,OAAO,CAAC,EACpC,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,UAAU,CAE5E"}
@@ -0,0 +1,51 @@
# spdx-license-ids
[![npm version](https://img.shields.io/npm/v/spdx-license-ids.svg)](https://www.npmjs.com/package/spdx-license-ids)
A list of [SPDX license](https://spdx.org/licenses/) identifiers
## Installation
[Download JSON directly](https://raw.githubusercontent.com/jslicense/spdx-license-ids/main/index.json), or [use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/):
```
npm install spdx-license-ids
```
## [Node.js](https://nodejs.org/) API
### require('spdx-license-ids')
Type: `string[]`
All license IDs except for the currently deprecated ones.
```javascript
const ids = require('spdx-license-ids');
//=> ['0BSD', 'AAL', 'ADSL', 'AFL-1.1', 'AFL-1.2', 'AFL-2.0', 'AFL-2.1', 'AFL-3.0', 'AGPL-1.0-only', ...]
ids.includes('BSD-3-Clause'); //=> true
ids.includes('CC-BY-1.0'); //=> true
ids.includes('GPL-3.0'); //=> false
```
### require('spdx-license-ids/deprecated')
Type: `string[]`
Deprecated license IDs.
```javascript
const deprecatedIds = require('spdx-license-ids/deprecated');
//=> ['AGPL-1.0', 'AGPL-3.0', 'GFDL-1.1', 'GFDL-1.2', 'GFDL-1.3', 'GPL-1.0', 'GPL-2.0', ...]
deprecatedIds.includes('BSD-3-Clause'); //=> false
deprecatedIds.includes('CC-BY-1.0'); //=> false
deprecatedIds.includes('GPL-3.0'); //=> true
```
## License
[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)
@@ -0,0 +1,211 @@
'use strict';
var utils = require('../utils.js');
var utils$1 = require('@typescript-eslint/utils');
var astUtils = require('@typescript-eslint/utils/ast-utils');
require('eslint-visitor-keys');
require('espree');
require('estraverse');
var _baseRule = utils.createRule({
name: "block-spacing",
package: "js",
meta: {
type: "layout",
docs: {
description: "Disallow or enforce spaces inside of blocks after opening block and before closing block"
},
fixable: "whitespace",
schema: [
{ type: "string", enum: ["always", "never"] }
],
messages: {
missing: "Requires a space {{location}} '{{token}}'.",
extra: "Unexpected space(s) {{location}} '{{token}}'."
}
},
create(context) {
const always = context.options[0] !== "never";
const messageId = always ? "missing" : "extra";
const sourceCode = context.sourceCode;
function getOpenBrace(node) {
if (node.type === "SwitchStatement") {
if (node.cases.length > 0)
return sourceCode.getTokenBefore(node.cases[0]);
return sourceCode.getLastToken(node, 1);
}
if (node.type === "StaticBlock")
return sourceCode.getFirstToken(node, { skip: 1 });
return sourceCode.getFirstToken(node);
}
function isValid(left, right) {
return !utils.isTokenOnSameLine(left, right) || sourceCode.isSpaceBetweenTokens(left, right) === always;
}
function checkSpacingInsideBraces(node) {
const openBrace = getOpenBrace(node);
const closeBrace = sourceCode.getLastToken(node);
const firstToken = sourceCode.getTokenAfter(openBrace, { includeComments: true });
const lastToken = sourceCode.getTokenBefore(closeBrace, { includeComments: true });
if (openBrace.type !== "Punctuator" || openBrace.value !== "{" || closeBrace.type !== "Punctuator" || closeBrace.value !== "}" || firstToken === closeBrace) {
return;
}
if (!always && firstToken.type === "Line")
return;
if (!isValid(openBrace, firstToken)) {
let loc = openBrace.loc;
if (messageId === "extra") {
loc = {
start: openBrace.loc.end,
end: firstToken.loc.start
};
}
context.report({
node,
loc,
messageId,
data: {
location: "after",
token: openBrace.value
},
fix(fixer) {
if (always)
return fixer.insertTextBefore(firstToken, " ");
return fixer.removeRange([openBrace.range[1], firstToken.range[0]]);
}
});
}
if (!isValid(lastToken, closeBrace)) {
let loc = closeBrace.loc;
if (messageId === "extra") {
loc = {
start: lastToken.loc.end,
end: closeBrace.loc.start
};
}
context.report({
node,
loc,
messageId,
data: {
location: "before",
token: closeBrace.value
},
fix(fixer) {
if (always)
return fixer.insertTextAfter(lastToken, " ");
return fixer.removeRange([lastToken.range[1], closeBrace.range[0]]);
}
});
}
}
return {
BlockStatement: checkSpacingInsideBraces,
StaticBlock: checkSpacingInsideBraces,
SwitchStatement: checkSpacingInsideBraces
};
}
});
const baseRule = /* @__PURE__ */ utils.castRuleModule(_baseRule);
var blockSpacing = utils.createRule({
name: "block-spacing",
package: "ts",
meta: {
type: "layout",
docs: {
description: "Disallow or enforce spaces inside of blocks after opening block and before closing block"
},
fixable: "whitespace",
hasSuggestions: baseRule.meta.hasSuggestions,
schema: baseRule.meta.schema,
messages: baseRule.meta.messages
},
defaultOptions: ["always"],
create(context, [whenToApplyOption]) {
const sourceCode = context.sourceCode;
const baseRules = baseRule.create(context);
const always = whenToApplyOption !== "never";
const messageId = always ? "missing" : "extra";
function getOpenBrace(node) {
return sourceCode.getFirstToken(node, {
filter: (token) => token.type === utils$1.AST_TOKEN_TYPES.Punctuator && token.value === "{"
});
}
function isValid(left, right) {
return !astUtils.isTokenOnSameLine(left, right) || sourceCode.isSpaceBetween(left, right) === always;
}
function checkSpacingInsideBraces(node) {
const openBrace = getOpenBrace(node);
const closeBrace = sourceCode.getLastToken(node);
const firstToken = sourceCode.getTokenAfter(openBrace, {
includeComments: true
});
const lastToken = sourceCode.getTokenBefore(closeBrace, {
includeComments: true
});
if (openBrace.type !== utils$1.AST_TOKEN_TYPES.Punctuator || openBrace.value !== "{" || closeBrace.type !== utils$1.AST_TOKEN_TYPES.Punctuator || closeBrace.value !== "}" || firstToken === closeBrace) {
return;
}
if (!always && firstToken.type === utils$1.AST_TOKEN_TYPES.Line)
return;
if (!isValid(openBrace, firstToken)) {
let loc = openBrace.loc;
if (messageId === "extra") {
loc = {
start: openBrace.loc.end,
end: firstToken.loc.start
};
}
context.report({
node,
loc,
messageId,
data: {
location: "after",
token: openBrace.value
},
fix(fixer) {
if (always)
return fixer.insertTextBefore(firstToken, " ");
return fixer.removeRange([openBrace.range[1], firstToken.range[0]]);
}
});
}
if (!isValid(lastToken, closeBrace)) {
let loc = closeBrace.loc;
if (messageId === "extra") {
loc = {
start: lastToken.loc.end,
end: closeBrace.loc.start
};
}
context.report({
node,
loc,
messageId,
data: {
location: "before",
token: closeBrace.value
},
fix(fixer) {
if (always)
return fixer.insertTextAfter(lastToken, " ");
return fixer.removeRange([lastToken.range[1], closeBrace.range[0]]);
}
});
}
}
return {
...baseRules,
// This code worked "out of the box" for interface and type literal
// Enums were very close to match as well, the only reason they are not is that was that enums don't have a body node in the parser
// So the opening brace punctuator starts in the middle of the node - `getFirstToken` in
// the base rule did not filter for the first opening brace punctuator
TSInterfaceBody: baseRules.BlockStatement,
TSTypeLiteral: baseRules.BlockStatement,
TSEnumDeclaration: checkSpacingInsideBraces
};
}
});
module.exports = blockSpacing;
@@ -0,0 +1,24 @@
name: CI
on:
pull_request:
push:
branches: [ master ]
jobs:
tests-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install module
run: npm install
- name: Run tests
run: npm test
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_apply_decs_2203_r.cjs",
"module": "../../esm/_apply_decs_2203_r.js"
}
@@ -0,0 +1 @@
{"version":3,"file":"syntax.d.ts","sourceRoot":"","sources":["syntax.js"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,4BAJa,SAAS,CAUrB;;;;oBA/BY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;;;sBAGhC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;+BAPoE,sBAAsB"}
@@ -0,0 +1,9 @@
var test = require('tape');
var resolve = require('../');
test('nonstring', function (t) {
t.plan(1);
resolve(555, function (err, res, pkg) {
t.ok(err);
});
});
@@ -0,0 +1,18 @@
import { anticipate, backInOut, circInOut } from 'motion-utils';
const unsupportedEasingFunctions = {
anticipate,
backInOut,
circInOut,
};
function isUnsupportedEase(key) {
return key in unsupportedEasingFunctions;
}
function replaceStringEasing(transition) {
if (typeof transition.ease === "string" &&
isUnsupportedEase(transition.ease)) {
transition.ease = unsupportedEasingFunctions[transition.ease];
}
}
export { replaceStringEasing };
@@ -0,0 +1,25 @@
var baseUniq = require('./_baseUniq');
/**
* Creates a duplicate-free version of an array, using
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons, in which only the first occurrence of each element
* is kept. The order of result values is determined by the order they occur
* in the array.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to inspect.
* @returns {Array} Returns the new duplicate free array.
* @example
*
* _.uniq([2, 1, 2]);
* // => [2, 1]
*/
function uniq(array) {
return (array && array.length) ? baseUniq(array) : [];
}
module.exports = uniq;
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=PlanResultCacheService.spec.d.ts.map
@@ -0,0 +1 @@
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAkBM,SAAS,0CAAY,KAAoB;IAC9C,OAAO;QACL,eAAe,MAAM,UAAU,GAAG,CAAC,IAAI;YACrC,WAAW,CAAA,GAAA,yCAAiB,EAAE,MAAM,SAAS;YAC7C,SAAS,CAAA,GAAA,yCAAiB,EAAE,MAAM,OAAO;QAC3C;IACF;AACF","sources":["packages/@react-aria/interactions/src/useKeyboard.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {createEventHandler} from './createEventHandler';\nimport {DOMAttributes, KeyboardEvents} from '@react-types/shared';\n\nexport interface KeyboardProps extends KeyboardEvents {\n /** Whether the keyboard events should be disabled. */\n isDisabled?: boolean\n}\n\nexport interface KeyboardResult {\n /** Props to spread onto the target element. */\n keyboardProps: DOMAttributes\n}\n\n/**\n * Handles keyboard interactions for a focusable element.\n */\nexport function useKeyboard(props: KeyboardProps): KeyboardResult {\n return {\n keyboardProps: props.isDisabled ? {} : {\n onKeyDown: createEventHandler(props.onKeyDown),\n onKeyUp: createEventHandler(props.onKeyUp)\n }\n };\n}\n"],"names":[],"version":3,"file":"useKeyboard.module.js.map"}
@@ -0,0 +1,473 @@
/**
* @typedef {import('hast').Element} HastElement
* @typedef {import('hast').ElementContent} HastElementContent
* @typedef {import('hast').Nodes} HastNodes
* @typedef {import('hast').Properties} HastProperties
* @typedef {import('hast').RootContent} HastRootContent
* @typedef {import('hast').Text} HastText
*
* @typedef {import('mdast').Definition} MdastDefinition
* @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
* @typedef {import('mdast').Nodes} MdastNodes
* @typedef {import('mdast').Parents} MdastParents
*
* @typedef {import('vfile').VFile} VFile
*
* @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
* @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
*/
/**
* @callback Handler
* Handle a node.
* @param {State} state
* Info passed around.
* @param {any} node
* mdast node to handle.
* @param {MdastParents | undefined} parent
* Parent of `node`.
* @returns {Array<HastElementContent> | HastElementContent | undefined}
* hast node.
*
* @typedef {Partial<Record<MdastNodes['type'], Handler>>} Handlers
* Handle nodes.
*
* @typedef Options
* Configuration (optional).
* @property {boolean | null | undefined} [allowDangerousHtml=false]
* Whether to persist raw HTML in markdown in the hast tree (default:
* `false`).
* @property {string | null | undefined} [clobberPrefix='user-content-']
* Prefix to use before the `id` property on footnotes to prevent them from
* *clobbering* (default: `'user-content-'`).
*
* Pass `''` for trusted markdown and when you are careful with
* polyfilling.
* You could pass a different prefix.
*
* DOM clobbering is this:
*
* ```html
* <p id="x"></p>
* <script>alert(x) // `x` now refers to the `p#x` DOM element</script>
* ```
*
* The above example shows that elements are made available by browsers, by
* their ID, on the `window` object.
* This is a security risk because you might be expecting some other variable
* at that place.
* It can also break polyfills.
* Using a prefix solves these problems.
* @property {VFile | null | undefined} [file]
* Corresponding virtual file representing the input document (optional).
* @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]
* Content of the backreference back to references (default: `defaultFootnoteBackContent`).
*
* The default value is:
*
* ```js
* function defaultFootnoteBackContent(_, rereferenceIndex) {
* const result = [{type: 'text', value: '↩'}]
*
* if (rereferenceIndex > 1) {
* result.push({
* type: 'element',
* tagName: 'sup',
* properties: {},
* children: [{type: 'text', value: String(rereferenceIndex)}]
* })
* }
*
* return result
* }
* ```
*
* This content is used in the `a` element of each backreference (the `↩`
* links).
* @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]
* Label to describe the backreference back to references (default:
* `defaultFootnoteBackLabel`).
*
* The default value is:
*
* ```js
* function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
* return (
* 'Back to reference ' +
* (referenceIndex + 1) +
* (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')
* )
* }
* ```
*
* Change it when the markdown is not in English.
*
* This label is used in the `ariaLabel` property on each backreference
* (the `↩` links).
* It affects users of assistive technology.
* @property {string | null | undefined} [footnoteLabel='Footnotes']
* Textual label to use for the footnotes section (default: `'Footnotes'`).
*
* Change it when the markdown is not in English.
*
* This label is typically hidden visually (assuming a `sr-only` CSS class
* is defined that does that) and so affects screen readers only.
* If you do have such a class, but want to show this section to everyone,
* pass different properties with the `footnoteLabelProperties` option.
* @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]
* Properties to use on the footnote label (default: `{className:
* ['sr-only']}`).
*
* Change it to show the label and add other properties.
*
* This label is typically hidden visually (assuming an `sr-only` CSS class
* is defined that does that) and so affects screen readers only.
* If you do have such a class, but want to show this section to everyone,
* pass an empty string.
* You can also add different properties.
*
* > **Note**: `id: 'footnote-label'` is always added, because footnote
* > calls use it with `aria-describedby` to provide an accessible label.
* @property {string | null | undefined} [footnoteLabelTagName='h2']
* HTML tag name to use for the footnote label element (default: `'h2'`).
*
* Change it to match your document structure.
*
* This label is typically hidden visually (assuming a `sr-only` CSS class
* is defined that does that) and so affects screen readers only.
* If you do have such a class, but want to show this section to everyone,
* pass different properties with the `footnoteLabelProperties` option.
* @property {Handlers | null | undefined} [handlers]
* Extra handlers for nodes (optional).
* @property {Array<MdastNodes['type']> | null | undefined} [passThrough]
* List of custom mdast node types to pass through (keep) in hast (note that
* the node itself is passed, but eventual children are transformed)
* (optional).
* @property {Handler | null | undefined} [unknownHandler]
* Handler for all unknown nodes (optional).
*
* @typedef State
* Info passed around.
* @property {(node: MdastNodes) => Array<HastElementContent>} all
* Transform the children of an mdast parent to hast.
* @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => HastElement | Type} applyData
* Honor the `data` of `from`, and generate an element instead of `node`.
* @property {Map<string, MdastDefinition>} definitionById
* Definitions by their identifier.
* @property {Map<string, MdastFootnoteDefinition>} footnoteById
* Footnote definitions by their identifier.
* @property {Map<string, number>} footnoteCounts
* Counts for how often the same footnote was called.
* @property {Array<string>} footnoteOrder
* Identifiers of order when footnote calls first appear in tree order.
* @property {Handlers} handlers
* Applied handlers.
* @property {(node: MdastNodes, parent: MdastParents | undefined) => Array<HastElementContent> | HastElementContent | undefined} one
* Transform an mdast node to hast.
* @property {Options} options
* Configuration.
* @property {(from: MdastNodes, node: HastNodes) => undefined} patch
* Copy a node’s positional info.
* @property {<Type extends HastRootContent>(nodes: Array<Type>, loose?: boolean | undefined) => Array<HastText | Type>} wrap
* Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.
*/
import structuredClone from '@ungap/structured-clone'
import {visit} from 'unist-util-visit'
import {position} from 'unist-util-position'
import {handlers as defaultHandlers} from './handlers/index.js'
const own = {}.hasOwnProperty
/** @type {Options} */
const emptyOptions = {}
/**
* Create `state` from an mdast tree.
*
* @param {MdastNodes} tree
* mdast node to transform.
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {State}
* `state` function.
*/
export function createState(tree, options) {
const settings = options || emptyOptions
/** @type {Map<string, MdastDefinition>} */
const definitionById = new Map()
/** @type {Map<string, MdastFootnoteDefinition>} */
const footnoteById = new Map()
/** @type {Map<string, number>} */
const footnoteCounts = new Map()
/** @type {Handlers} */
// @ts-expect-error: the root handler returns a root.
// Hard to type.
const handlers = {...defaultHandlers, ...settings.handlers}
/** @type {State} */
const state = {
all,
applyData,
definitionById,
footnoteById,
footnoteCounts,
footnoteOrder: [],
handlers,
one,
options: settings,
patch,
wrap
}
visit(tree, function (node) {
if (node.type === 'definition' || node.type === 'footnoteDefinition') {
const map = node.type === 'definition' ? definitionById : footnoteById
const id = String(node.identifier).toUpperCase()
// Mimick CM behavior of link definitions.
// See: <https://github.com/syntax-tree/mdast-util-definitions/blob/9032189/lib/index.js#L20-L21>.
if (!map.has(id)) {
// @ts-expect-error: node type matches map.
map.set(id, node)
}
}
})
return state
/**
* Transform an mdast node into a hast node.
*
* @param {MdastNodes} node
* mdast node.
* @param {MdastParents | undefined} [parent]
* Parent of `node`.
* @returns {Array<HastElementContent> | HastElementContent | undefined}
* Resulting hast node.
*/
function one(node, parent) {
const type = node.type
const handle = state.handlers[type]
if (own.call(state.handlers, type) && handle) {
return handle(state, node, parent)
}
if (state.options.passThrough && state.options.passThrough.includes(type)) {
if ('children' in node) {
const {children, ...shallow} = node
const result = structuredClone(shallow)
// @ts-expect-error: TS doesn’t understand…
result.children = state.all(node)
// @ts-expect-error: TS doesn’t understand…
return result
}
// @ts-expect-error: it’s custom.
return structuredClone(node)
}
const unknown = state.options.unknownHandler || defaultUnknownHandler
return unknown(state, node, parent)
}
/**
* Transform the children of an mdast node into hast nodes.
*
* @param {MdastNodes} parent
* mdast node to compile
* @returns {Array<HastElementContent>}
* Resulting hast nodes.
*/
function all(parent) {
/** @type {Array<HastElementContent>} */
const values = []
if ('children' in parent) {
const nodes = parent.children
let index = -1
while (++index < nodes.length) {
const result = state.one(nodes[index], parent)
// To do: see if we van clean this? Can we merge texts?
if (result) {
if (index && nodes[index - 1].type === 'break') {
if (!Array.isArray(result) && result.type === 'text') {
result.value = trimMarkdownSpaceStart(result.value)
}
if (!Array.isArray(result) && result.type === 'element') {
const head = result.children[0]
if (head && head.type === 'text') {
head.value = trimMarkdownSpaceStart(head.value)
}
}
}
if (Array.isArray(result)) {
values.push(...result)
} else {
values.push(result)
}
}
}
}
return values
}
}
/**
* Copy a node’s positional info.
*
* @param {MdastNodes} from
* mdast node to copy from.
* @param {HastNodes} to
* hast node to copy into.
* @returns {undefined}
* Nothing.
*/
function patch(from, to) {
if (from.position) to.position = position(from)
}
/**
* Honor the `data` of `from` and maybe generate an element instead of `to`.
*
* @template {HastNodes} Type
* Node type.
* @param {MdastNodes} from
* mdast node to use data from.
* @param {Type} to
* hast node to change.
* @returns {HastElement | Type}
* Nothing.
*/
function applyData(from, to) {
/** @type {HastElement | Type} */
let result = to
// Handle `data.hName`, `data.hProperties, `data.hChildren`.
if (from && from.data) {
const hName = from.data.hName
const hChildren = from.data.hChildren
const hProperties = from.data.hProperties
if (typeof hName === 'string') {
// Transforming the node resulted in an element with a different name
// than wanted:
if (result.type === 'element') {
result.tagName = hName
}
// Transforming the node resulted in a non-element, which happens for
// raw, text, and root nodes (unless custom handlers are passed).
// The intent of `hName` is to create an element, but likely also to keep
// the content around (otherwise: pass `hChildren`).
else {
/** @type {Array<HastElementContent>} */
// @ts-expect-error: assume no doctypes in `root`.
const children = 'children' in result ? result.children : [result]
result = {type: 'element', tagName: hName, properties: {}, children}
}
}
if (result.type === 'element' && hProperties) {
Object.assign(result.properties, structuredClone(hProperties))
}
if (
'children' in result &&
result.children &&
hChildren !== null &&
hChildren !== undefined
) {
result.children = hChildren
}
}
return result
}
/**
* Transform an unknown node.
*
* @param {State} state
* Info passed around.
* @param {MdastNodes} node
* Unknown mdast node.
* @returns {HastElement | HastText}
* Resulting hast node.
*/
function defaultUnknownHandler(state, node) {
const data = node.data || {}
/** @type {HastElement | HastText} */
const result =
'value' in node &&
!(own.call(data, 'hProperties') || own.call(data, 'hChildren'))
? {type: 'text', value: node.value}
: {
type: 'element',
tagName: 'div',
properties: {},
children: state.all(node)
}
state.patch(node, result)
return state.applyData(node, result)
}
/**
* Wrap `nodes` with line endings between each node.
*
* @template {HastRootContent} Type
* Node type.
* @param {Array<Type>} nodes
* List of nodes to wrap.
* @param {boolean | undefined} [loose=false]
* Whether to add line endings at start and end (default: `false`).
* @returns {Array<HastText | Type>}
* Wrapped nodes.
*/
export function wrap(nodes, loose) {
/** @type {Array<HastText | Type>} */
const result = []
let index = -1
if (loose) {
result.push({type: 'text', value: '\n'})
}
while (++index < nodes.length) {
if (index) result.push({type: 'text', value: '\n'})
result.push(nodes[index])
}
if (loose && nodes.length > 0) {
result.push({type: 'text', value: '\n'})
}
return result
}
/**
* Trim spaces and tabs at the start of `value`.
*
* @param {string} value
* Value to trim.
* @returns {string}
* Result.
*/
function trimMarkdownSpaceStart(value) {
let index = 0
let code = value.charCodeAt(index)
while (code === 9 || code === 32) {
index++
code = value.charCodeAt(index)
}
return value.slice(index)
}
@@ -0,0 +1 @@
{"version":3,"names":["_index","require","getQualifiedName","node","isIdentifier","name","isThisExpression","right","left","removeTypeDuplicates","nodesIn","nodes","Array","from","generics","Map","bases","typeGroups","Set","types","i","length","includes","isTSAnyKeyword","isTSBaseType","set","type","isTSUnionType","has","push","add","typeArgumentsKey","isTSTypeReference","typeArguments","typeName","existing","get","existingTypeArguments","params","baseType","genericName"],"sources":["../../../src/modifications/typescript/removeTypeDuplicates.ts"],"sourcesContent":["import {\n isIdentifier,\n isThisExpression,\n isTSAnyKeyword,\n isTSTypeReference,\n isTSUnionType,\n isTSBaseType,\n} from \"../../validators/generated/index.ts\";\nimport type * as t from \"../../index.ts\";\n\nfunction getQualifiedName(node: t.TSTypeReference[\"typeName\"]): string {\n return isIdentifier(node)\n ? node.name\n : isThisExpression(node)\n ? \"this\"\n : `${node.right.name}.${getQualifiedName(node.left)}`;\n}\n\n/**\n * Dedupe type annotations.\n */\nexport default function removeTypeDuplicates(\n nodesIn: ReadonlyArray<t.TSType>,\n): Array<t.TSType> {\n const nodes = Array.from(nodesIn);\n\n const generics = new Map<string, t.TSTypeReference>();\n const bases = new Map<t.TSBaseType[\"type\"], t.TSBaseType>();\n\n // store union type groups to circular references\n const typeGroups = new Set<t.TSType[]>();\n\n const types: t.TSType[] = [];\n\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n if (!node) continue;\n\n // detect duplicates\n if (types.includes(node)) {\n continue;\n }\n\n // this type matches anything\n if (isTSAnyKeyword(node)) {\n return [node];\n }\n\n // Analogue of FlowBaseAnnotation\n if (isTSBaseType(node)) {\n bases.set(node.type, node);\n continue;\n }\n\n if (isTSUnionType(node)) {\n if (!typeGroups.has(node.types)) {\n nodes.push(...node.types);\n typeGroups.add(node.types);\n }\n continue;\n }\n\n // todo: support merging tuples: number[]\n const typeArgumentsKey = process.env.BABEL_8_BREAKING\n ? \"typeArguments\"\n : \"typeParameters\";\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n if (isTSTypeReference(node) && node[typeArgumentsKey]) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n const typeArguments = node[typeArgumentsKey];\n const name = getQualifiedName(node.typeName);\n\n if (generics.has(name)) {\n let existing: t.TypeScript = generics.get(name);\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n const existingTypeArguments = existing[typeArgumentsKey];\n if (existingTypeArguments) {\n existingTypeArguments.params.push(...typeArguments.params);\n existingTypeArguments.params = removeTypeDuplicates(\n existingTypeArguments.params,\n );\n } else {\n existing = typeArguments;\n }\n } else {\n generics.set(name, node);\n }\n\n continue;\n }\n\n types.push(node);\n }\n\n // add back in bases\n for (const [, baseType] of bases) {\n types.push(baseType);\n }\n\n // add back in generics\n for (const [, genericName] of generics) {\n types.push(genericName);\n }\n\n return types;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,SAASC,gBAAgBA,CAACC,IAAmC,EAAU;EACrE,OAAO,IAAAC,mBAAY,EAACD,IAAI,CAAC,GACrBA,IAAI,CAACE,IAAI,GACT,IAAAC,uBAAgB,EAACH,IAAI,CAAC,GACpB,MAAM,GACN,GAAGA,IAAI,CAACI,KAAK,CAACF,IAAI,IAAIH,gBAAgB,CAACC,IAAI,CAACK,IAAI,CAAC,EAAE;AAC3D;AAKe,SAASC,oBAAoBA,CAC1CC,OAAgC,EACf;EACjB,MAAMC,KAAK,GAAGC,KAAK,CAACC,IAAI,CAACH,OAAO,CAAC;EAEjC,MAAMI,QAAQ,GAAG,IAAIC,GAAG,CAA4B,CAAC;EACrD,MAAMC,KAAK,GAAG,IAAID,GAAG,CAAqC,CAAC;EAG3D,MAAME,UAAU,GAAG,IAAIC,GAAG,CAAa,CAAC;EAExC,MAAMC,KAAiB,GAAG,EAAE;EAE5B,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,KAAK,CAACU,MAAM,EAAED,CAAC,EAAE,EAAE;IACrC,MAAMjB,IAAI,GAAGQ,KAAK,CAACS,CAAC,CAAC;IACrB,IAAI,CAACjB,IAAI,EAAE;IAGX,IAAIgB,KAAK,CAACG,QAAQ,CAACnB,IAAI,CAAC,EAAE;MACxB;IACF;IAGA,IAAI,IAAAoB,qBAAc,EAACpB,IAAI,CAAC,EAAE;MACxB,OAAO,CAACA,IAAI,CAAC;IACf;IAGA,IAAI,IAAAqB,mBAAY,EAACrB,IAAI,CAAC,EAAE;MACtBa,KAAK,CAACS,GAAG,CAACtB,IAAI,CAACuB,IAAI,EAAEvB,IAAI,CAAC;MAC1B;IACF;IAEA,IAAI,IAAAwB,oBAAa,EAACxB,IAAI,CAAC,EAAE;MACvB,IAAI,CAACc,UAAU,CAACW,GAAG,CAACzB,IAAI,CAACgB,KAAK,CAAC,EAAE;QAC/BR,KAAK,CAACkB,IAAI,CAAC,GAAG1B,IAAI,CAACgB,KAAK,CAAC;QACzBF,UAAU,CAACa,GAAG,CAAC3B,IAAI,CAACgB,KAAK,CAAC;MAC5B;MACA;IACF;IAGA,MAAMY,gBAAgB,GAElB,gBAAgB;IAEpB,IAAI,IAAAC,wBAAiB,EAAC7B,IAAI,CAAC,IAAIA,IAAI,CAAC4B,gBAAgB,CAAC,EAAE;MAErD,MAAME,aAAa,GAAG9B,IAAI,CAAC4B,gBAAgB,CAAC;MAC5C,MAAM1B,IAAI,GAAGH,gBAAgB,CAACC,IAAI,CAAC+B,QAAQ,CAAC;MAE5C,IAAIpB,QAAQ,CAACc,GAAG,CAACvB,IAAI,CAAC,EAAE;QACtB,IAAI8B,QAAsB,GAAGrB,QAAQ,CAACsB,GAAG,CAAC/B,IAAI,CAAC;QAE/C,MAAMgC,qBAAqB,GAAGF,QAAQ,CAACJ,gBAAgB,CAAC;QACxD,IAAIM,qBAAqB,EAAE;UACzBA,qBAAqB,CAACC,MAAM,CAACT,IAAI,CAAC,GAAGI,aAAa,CALine truncated
@@ -0,0 +1,47 @@
import units from "./units.mjs";
import { M as MS_IN_DAY } from "./constants-BuFquuHl.mjs";
import { n as normalizeUnit } from "./normalizeUnit-bp5SODxw.mjs";
const { DATE, DAY, HOUR, MILLISECOND, MINUTE, MONTH, SECOND, TIME, YEAR } = units;
const mapping = {
[YEAR]: "FullYear",
[MONTH]: "Month",
[DATE]: "Date",
[DAY]: "Day",
[HOUR]: "Hours",
[MINUTE]: "Minutes",
[SECOND]: "Seconds",
[MILLISECOND]: "Milliseconds",
[TIME]: "Time"
};
const setting = {};
const getting = {};
Object.entries(mapping).forEach(([key, method]) => {
if (key === DAY) {
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;
}
export {
get as g,
set as s
};
@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Extract = Extract;
const type_1 = require("../create/type");
const index_1 = require("../union/index");
const index_2 = require("../never/index");
const index_3 = require("../extends/index");
const extract_from_mapped_result_1 = require("./extract-from-mapped-result");
const extract_from_template_literal_1 = require("./extract-from-template-literal");
// ------------------------------------------------------------------
// TypeGuard
// ------------------------------------------------------------------
const kind_1 = require("../guard/kind");
function ExtractRest(L, R) {
const extracted = L.filter((inner) => (0, index_3.ExtendsCheck)(inner, R) !== index_3.ExtendsResult.False);
return extracted.length === 1 ? extracted[0] : (0, index_1.Union)(extracted);
}
/** `[Json]` Constructs a type by extracting from type all union members that are assignable to union */
function Extract(L, R, options) {
// overloads
if ((0, kind_1.IsTemplateLiteral)(L))
return (0, type_1.CreateType)((0, extract_from_template_literal_1.ExtractFromTemplateLiteral)(L, R), options);
if ((0, kind_1.IsMappedResult)(L))
return (0, type_1.CreateType)((0, extract_from_mapped_result_1.ExtractFromMappedResult)(L, R), options);
// prettier-ignore
return (0, type_1.CreateType)((0, kind_1.IsUnion)(L) ? ExtractRest(L.anyOf, R) :
(0, index_3.ExtendsCheck)(L, R) !== index_3.ExtendsResult.False ? L : (0, index_2.Never)(), options);
}
@@ -0,0 +1,11 @@
import { HasTransform, TransformEncode, TransformEncodeCheckError } from '../transform/index.mjs';
import { Check } from '../check/index.mjs';
import { Errors } from '../../errors/index.mjs';
/** Encodes a value or throws if error */
export function Encode(...args) {
const [schema, references, value] = args.length === 3 ? [args[0], args[1], args[2]] : [args[0], [], args[1]];
const encoded = HasTransform(schema, references) ? TransformEncode(schema, references, value) : value;
if (!Check(schema, references, encoded))
throw new TransformEncodeCheckError(schema, encoded, Errors(schema, references, encoded).First());
return encoded;
}
@@ -0,0 +1,134 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
const getESLintCoreRule_1 = require("../util/getESLintCoreRule");
const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-empty-function');
const defaultOptions = [
{
allow: [],
},
];
const schema = (0, util_1.deepMerge)(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002
Array.isArray(baseRule.meta.schema)
? baseRule.meta.schema[0]
: baseRule.meta.schema, {
properties: {
allow: {
description: 'Locations and kinds of functions that are allowed to be empty.',
items: {
type: 'string',
enum: [
'functions',
'arrowFunctions',
'generatorFunctions',
'methods',
'generatorMethods',
'getters',
'setters',
'constructors',
'private-constructors',
'protected-constructors',
'asyncFunctions',
'asyncMethods',
'decoratedFunctions',
'overrideMethods',
],
},
},
},
});
exports.default = (0, util_1.createRule)({
name: 'no-empty-function',
meta: {
type: 'suggestion',
defaultOptions,
docs: {
description: 'Disallow empty functions',
extendsBaseRule: true,
recommended: 'stylistic',
},
hasSuggestions: baseRule.meta.hasSuggestions,
messages: baseRule.meta.messages,
schema: [schema],
},
defaultOptions,
create(context, [{ allow = [] }]) {
const rules = baseRule.create(context);
const isAllowedProtectedConstructors = allow.includes('protected-constructors');
const isAllowedPrivateConstructors = allow.includes('private-constructors');
const isAllowedDecoratedFunctions = allow.includes('decoratedFunctions');
const isAllowedOverrideMethods = allow.includes('overrideMethods');
/**
* Check if the method body is empty
* @param node the node to be validated
* @returns true if the body is empty
* @private
*/
function isBodyEmpty(node) {
return node.body.body.length === 0;
}
/**
* Check if method has parameter properties
* @param node the node to be validated
* @returns true if the body has parameter properties
* @private
*/
function hasParameterProperties(node) {
return node.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty);
}
/**
* @param node the node to be validated
* @returns true if the constructor is allowed to be empty
* @private
*/
function isAllowedEmptyConstructor(node) {
const parent = node.parent;
if (isBodyEmpty(node) &&
parent.type === utils_1.AST_NODE_TYPES.MethodDefinition &&
parent.kind === 'constructor') {
const { accessibility } = parent;
return (
// allow protected constructors
(accessibility === 'protected' && isAllowedProtectedConstructors) ||
// allow private constructors
(accessibility === 'private' && isAllowedPrivateConstructors) ||
// allow constructors which have parameter properties
hasParameterProperties(node));
}
return false;
}
/**
* @param node the node to be validated
* @returns true if a function has decorators
* @private
*/
function isAllowedEmptyDecoratedFunctions(node) {
if (isAllowedDecoratedFunctions && isBodyEmpty(node)) {
const decorators = node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition
? node.parent.decorators
: undefined;
return !!decorators && !!decorators.length;
}
return false;
}
function isAllowedEmptyOverrideMethod(node) {
return (isAllowedOverrideMethods &&
isBodyEmpty(node) &&
node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition &&
node.parent.override);
}
return {
...rules,
FunctionExpression(node) {
if (isAllowedEmptyConstructor(node) ||
isAllowedEmptyDecoratedFunctions(node) ||
isAllowedEmptyOverrideMethod(node)) {
return;
}
rules.FunctionExpression(node);
},
};
},
});
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const es2022: LibDefinition;
@@ -0,0 +1,46 @@
# Buffer Alloc Unsafe
A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.
Works as Node.js: `v7.0.0` <br>
Works on Node.js: `v0.10.0`
## Installation
```sh
npm install --save buffer-alloc-unsafe
```
## Usage
```js
const allocUnsafe = require('buffer-alloc-unsafe')
console.log(allocUnsafe(10))
//=> <Buffer 78 0c 80 03 01 00 00 00 05 00>
console.log(allocUnsafe(10))
//=> <Buffer 58 ed bf 5f ff 7f 00 00 01 00>
console.log(allocUnsafe(10))
//=> <Buffer 50 0c 80 03 01 00 00 00 0a 00>
allocUnsafe(-10)
//=> RangeError: "size" argument must not be negative
```
## API
### allocUnsafe(size)
- `size` &lt;Integer&gt; The desired length of the new `Buffer`
Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must be
less than or equal to the value of `buffer.kMaxLength` and greater than or equal
to zero. Otherwise, a `RangeError` is thrown.
## See also
- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc`
- [buffer-fill](https://github.com/LinusU/buffer-fill) A ponyfill for `Buffer.fill`
- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from`
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,SAAS,oCAAc,EAAU;QAK7B;IAJF,IAAI,OAAO,WAAW,eAAe,OAAO,SAAS,IAAI,MACvD,OAAO;IAET,OAAO,EACL,kCAAA,OAAO,SAAS,CAAC,gBAAgB,cAAjC,sDAAA,gCAAmC,MAAM,CAAC,IAAI,CAAC,CAAC,QAA4C,GAAG,IAAI,CAAC,MAAM,KAAK,OAEjH,GAAG,IAAI,CAAC,OAAO,SAAS,CAAC,SAAS;AACpC;AAEA,SAAS,mCAAa,EAAU;QAElB;IADZ,OAAO,OAAO,WAAW,eAAe,OAAO,SAAS,IAAI,OACxD,GAAG,IAAI,CAAC,EAAA,kCAAA,OAAO,SAAS,CAAC,gBAAgB,cAAjC,sDAAA,gCAAmC,QAAQ,KAAI,OAAO,SAAS,CAAC,QAAQ,IAChF;AACN;AAEA,SAAS,6BAAO,EAAiB;IAK/B,IAAI,MAAsB;IAC1B,OAAO;QACL,IAAI,OAAO,MACT,MAAM;QAER,OAAO;IACT;AACF;AAEO,MAAM,4CAAQ,6BAAO;IAC1B,OAAO,mCAAa;AACtB;AAEO,MAAM,2CAAW,6BAAO;IAC7B,OAAO,mCAAa;AACtB;AAEO,MAAM,4CAAS,6BAAO;IAC3B,OAAO,mCAAa,aAClB,yFAAyF;IACxF,+CAAW,UAAU,cAAc,GAAG;AAC3C;AAEO,MAAM,4CAAQ,6BAAO;IAC1B,OAAO,8CAAc;AACvB;AAEO,MAAM,4CAAgB,6BAAO;IAClC,OAAO,+CAAW;AACpB;AAEO,MAAM,4CAAW,6BAAO;IAC7B,OAAO,oCAAc,mBAAmB,CAAC;AAC3C;AAEO,MAAM,4CAAW,6BAAO;IAC7B,OAAO,oCAAc;AACvB;AAEO,MAAM,4CAAY,6BAAO;IAC9B,OAAO,oCAAc;AACvB;AAEO,MAAM,4CAAY,6BAAO;IAC9B,OAAO,oCAAc;AACvB","sources":["packages/@react-aria/utils/src/platform.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nfunction testUserAgent(re: RegExp) {\n if (typeof window === 'undefined' || window.navigator == null) {\n return false;\n }\n return (\n window.navigator['userAgentData']?.brands.some((brand: {brand: string, version: string}) => re.test(brand.brand))\n ) ||\n re.test(window.navigator.userAgent);\n}\n\nfunction testPlatform(re: RegExp) {\n return typeof window !== 'undefined' && window.navigator != null\n ? re.test(window.navigator['userAgentData']?.platform || window.navigator.platform)\n : false;\n}\n\nfunction cached(fn: () => boolean) {\n if (process.env.NODE_ENV === 'test') {\n return fn;\n }\n \n let res: boolean | null = null;\n return () => {\n if (res == null) {\n res = fn();\n }\n return res;\n };\n}\n\nexport const isMac = cached(function () {\n return testPlatform(/^Mac/i);\n});\n\nexport const isIPhone = cached(function () {\n return testPlatform(/^iPhone/i);\n});\n\nexport const isIPad = cached(function () {\n return testPlatform(/^iPad/i) ||\n // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n (isMac() && navigator.maxTouchPoints > 1);\n});\n\nexport const isIOS = cached(function () {\n return isIPhone() || isIPad();\n});\n\nexport const isAppleDevice = cached(function () {\n return isMac() || isIOS();\n});\n\nexport const isWebKit = cached(function () {\n return testUserAgent(/AppleWebKit/i) && !isChrome();\n});\n\nexport const isChrome = cached(function () {\n return testUserAgent(/Chrome/i);\n});\n\nexport const isAndroid = cached(function () {\n return testUserAgent(/Android/i);\n});\n\nexport const isFirefox = cached(function () {\n return testUserAgent(/Firefox/i);\n});\n"],"names":[],"version":3,"file":"platform.main.js.map"}
@@ -0,0 +1,255 @@
var constants = require('fs-constants')
var eos = require('end-of-stream')
var util = require('util')
var alloc = require('buffer-alloc')
var toBuffer = require('to-buffer')
var Readable = require('readable-stream').Readable
var Writable = require('readable-stream').Writable
var StringDecoder = require('string_decoder').StringDecoder
var headers = require('./headers')
var DMODE = parseInt('755', 8)
var FMODE = parseInt('644', 8)
var END_OF_TAR = alloc(1024)
var noop = function () {}
var overflow = function (self, size) {
size &= 511
if (size) self.push(END_OF_TAR.slice(0, 512 - size))
}
function modeToType (mode) {
switch (mode & constants.S_IFMT) {
case constants.S_IFBLK: return 'block-device'
case constants.S_IFCHR: return 'character-device'
case constants.S_IFDIR: return 'directory'
case constants.S_IFIFO: return 'fifo'
case constants.S_IFLNK: return 'symlink'
}
return 'file'
}
var Sink = function (to) {
Writable.call(this)
this.written = 0
this._to = to
this._destroyed = false
}
util.inherits(Sink, Writable)
Sink.prototype._write = function (data, enc, cb) {
this.written += data.length
if (this._to.push(data)) return cb()
this._to._drain = cb
}
Sink.prototype.destroy = function () {
if (this._destroyed) return
this._destroyed = true
this.emit('close')
}
var LinkSink = function () {
Writable.call(this)
this.linkname = ''
this._decoder = new StringDecoder('utf-8')
this._destroyed = false
}
util.inherits(LinkSink, Writable)
LinkSink.prototype._write = function (data, enc, cb) {
this.linkname += this._decoder.write(data)
cb()
}
LinkSink.prototype.destroy = function () {
if (this._destroyed) return
this._destroyed = true
this.emit('close')
}
var Void = function () {
Writable.call(this)
this._destroyed = false
}
util.inherits(Void, Writable)
Void.prototype._write = function (data, enc, cb) {
cb(new Error('No body allowed for this entry'))
}
Void.prototype.destroy = function () {
if (this._destroyed) return
this._destroyed = true
this.emit('close')
}
var Pack = function (opts) {
if (!(this instanceof Pack)) return new Pack(opts)
Readable.call(this, opts)
this._drain = noop
this._finalized = false
this._finalizing = false
this._destroyed = false
this._stream = null
}
util.inherits(Pack, Readable)
Pack.prototype.entry = function (header, buffer, callback) {
if (this._stream) throw new Error('already piping an entry')
if (this._finalized || this._destroyed) return
if (typeof buffer === 'function') {
callback = buffer
buffer = null
}
if (!callback) callback = noop
var self = this
if (!header.size || header.type === 'symlink') header.size = 0
if (!header.type) header.type = modeToType(header.mode)
if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE
if (!header.uid) header.uid = 0
if (!header.gid) header.gid = 0
if (!header.mtime) header.mtime = new Date()
if (typeof buffer === 'string') buffer = toBuffer(buffer)
if (Buffer.isBuffer(buffer)) {
header.size = buffer.length
this._encode(header)
this.push(buffer)
overflow(self, header.size)
process.nextTick(callback)
return new Void()
}
if (header.type === 'symlink' && !header.linkname) {
var linkSink = new LinkSink()
eos(linkSink, function (err) {
if (err) { // stream was closed
self.destroy()
return callback(err)
}
header.linkname = linkSink.linkname
self._encode(header)
callback()
})
return linkSink
}
this._encode(header)
if (header.type !== 'file' && header.type !== 'contiguous-file') {
process.nextTick(callback)
return new Void()
}
var sink = new Sink(this)
this._stream = sink
eos(sink, function (err) {
self._stream = null
if (err) { // stream was closed
self.destroy()
return callback(err)
}
if (sink.written !== header.size) { // corrupting tar
self.destroy()
return callback(new Error('size mismatch'))
}
overflow(self, header.size)
if (self._finalizing) self.finalize()
callback()
})
return sink
}
Pack.prototype.finalize = function () {
if (this._stream) {
this._finalizing = true
return
}
if (this._finalized) return
this._finalized = true
this.push(END_OF_TAR)
this.push(null)
}
Pack.prototype.destroy = function (err) {
if (this._destroyed) return
this._destroyed = true
if (err) this.emit('error', err)
this.emit('close')
if (this._stream && this._stream.destroy) this._stream.destroy()
}
Pack.prototype._encode = function (header) {
if (!header.pax) {
var buf = headers.encode(header)
if (buf) {
this.push(buf)
return
}
}
this._encodePax(header)
}
Pack.prototype._encodePax = function (header) {
var paxHeader = headers.encodePax({
name: header.name,
linkname: header.linkname,
pax: header.pax
})
var newHeader = {
name: 'PaxHeader',
mode: header.mode,
uid: header.uid,
gid: header.gid,
size: paxHeader.length,
mtime: header.mtime,
type: 'pax-header',
linkname: header.linkname && 'PaxHeader',
uname: header.uname,
gname: header.gname,
devmajor: header.devmajor,
devminor: header.devminor
}
this.push(headers.encode(newHeader))
this.push(paxHeader)
overflow(this, paxHeader.length)
newHeader.size = header.size
newHeader.type = header.type
this.push(headers.encode(newHeader))
}
Pack.prototype._read = function (n) {
var drain = this._drain
this._drain = noop
drain()
}
module.exports = Pack
@@ -0,0 +1 @@
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAUM,MAAM;IAoBX;;GAEC,GACD,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK;IAC5B;IAEA;;GAEC,GACD,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM;IAC7B;IAEA;;GAEC,GACD,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM;IACjC;IAEA;;GAEC,GACD,IAAI,UAAiB;QACnB,OAAO,IAAI,CAAA,GAAA,+BAAI,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACjC;IAEA;;GAEC,GACD,IAAI,WAAkB;QACpB,OAAO,IAAI,CAAA,GAAA,+BAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC;IAEA;;GAEC,GACD,IAAI,aAAoB;QACtB,OAAO,IAAI,CAAA,GAAA,+BAAI,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI;IACpC;IAEA;;GAEC,GACD,IAAI,cAAqB;QACvB,OAAO,IAAI,CAAA,GAAA,+BAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI;IACvC;IAEA;;;GAGC,GACD,WAAW,IAAU,EAAW;QAC9B,IAAI,YAAY,QAAQ,GAAG,CAAC,QAAQ,KAAK,UAAU,CAAC,QAAQ,GAAG,CAAC,OAAO;QACvE,OAAO,AAAC,CAAA,aAAa,IAAI,CAAC,IAAI,GAAG,KAAK,KAAK,IAAI,GAAG,CAAA,KAC7C,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,IAC7B,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAC7B,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,MAAM,IAC9B,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM;IACrC;IAEA;;;GAGC,GACD,aAAa,IAAU,EAAW;QAChC,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,IAChB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,IAChB,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,IACtB,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI;IAC/B;IAEA;;;GAGC,GACD,cAAc,KAAY,EAAW;QACnC,OAAO,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,IACjB,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,IACjB,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IACpB,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC;IAC7B;IAEA;;;;GAIC,GACD,gBAAgB,IAAU,EAAqB;QAC7C,KAAK,IAAI,OAAO;YAAC;YAAW;YAAY;YAAc;SAAc,CAAE;YACpE,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC,IAAI,GAC9B,OAAO;QAEX;QAEA,OAAO;IACT;IAEA,OAAO,IAAU,EAAW;QAC1B,OAAO,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,IACjB,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,IACjB,KAAK,KAAK,KAAK,IAAI,CAAC,KAAK,IACzB,KAAK,MAAM,KAAK,IAAI,CAAC,MAAM;IACpC;IAEA,YAAY,KAAmB,EAAW;QACxC,OAAO,IAAI,CAAC,CAAC,KAAK,MAAM,CAAC,IAClB,IAAI,CAAC,CAAC,KAAK,MAAM,CAAC;IAC3B;IAEA,WAAW,IAAiB,EAAW;QACrC,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,KAAK,IACzB,IAAI,CAAC,MAAM,KAAK,KAAK,MAAM;IACpC;IAEA;;GAEC,GACD,MAAM,KAAW,EAAQ;QACvB,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;QAChC,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;QAChC,IAAI,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,IAAI;QAC9C,IAAI,SAAS,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,IAAI;QAC/C,OAAO,IAAI,0CAAK,GAAG,GAAG,OAAO;IAC/B;IAEA;;;GAGC,GACD,aAAa,KAAW,EAAQ;QAC9B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QACnB,OAAO,IAAI,0CAAK,GAAG,GAAG,GAAG;QAG3B,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;QAChC,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;QAChC,OAAO,IAAI,0CACT,GACA,GACA,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,IAAI,GAClC,KAAK,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,IAAI;IAEtC;IAEA;;GAEC,GACD,OAAa;QACX,OAAO,IAAI,0CAAK,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM;IACzD;IA9JA,YAAY,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAE;QAC/C,IAAI,CAAC,CAAC,GAAG;QACT,IAAI,CAAC,CAAC,GAAG;QACT,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,MAAM,GAAG;IAChB;AA0JF","sources":["packages/@react-stately/virtualizer/src/Rect.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Point} from './Point';\nimport {Size} from './Size';\n\nexport type RectCorner = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';\n\n/**\n * Represents a rectangle.\n */\nexport class Rect {\n /** The x-coordinate of the rectangle. */\n x: number;\n\n /** The y-coordinate of the rectangle. */\n y: number;\n\n /** The width of the rectangle. */\n width: number;\n\n /** The height of the rectangle. */\n height: number;\n\n constructor(x = 0, y = 0, width = 0, height = 0) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n /**\n * The maximum x-coordinate in the rectangle.\n */\n get maxX(): number {\n return this.x + this.width;\n }\n\n /**\n * The maximum y-coordinate in the rectangle.\n */\n get maxY(): number {\n return this.y + this.height;\n }\n\n /**\n * The area of the rectangle.\n */\n get area(): number {\n return this.width * this.height;\n }\n\n /**\n * The top left corner of the rectangle.\n */\n get topLeft(): Point {\n return new Point(this.x, this.y);\n }\n\n /**\n * The top right corner of the rectangle.\n */\n get topRight(): Point {\n return new Point(this.maxX, this.y);\n }\n\n /**\n * The bottom left coLine truncated
@@ -0,0 +1,18 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./isArray"), exports);
__exportStar(require("./NoInfer"), exports);
@@ -0,0 +1,130 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/overlays/utils.ts
var utils_exports = {};
__export(utils_exports, {
getArrowPlacement: () => getArrowPlacement,
getShouldUseAxisPlacement: () => getShouldUseAxisPlacement,
getTransformOrigins: () => getTransformOrigins,
toOverlayPlacement: () => toOverlayPlacement,
toReactAriaPlacement: () => toReactAriaPlacement
});
module.exports = __toCommonJS(utils_exports);
var getTransformOrigins = (placement) => {
const origins = {
top: {
originY: 1
},
bottom: {
originY: 0
},
left: {
originX: 1
},
right: {
originX: 0
},
"top-start": {
originX: 0,
originY: 1
},
"top-end": {
originX: 1,
originY: 1
},
"bottom-start": {
originX: 0,
originY: 0
},
"bottom-end": {
originX: 1,
originY: 0
},
"right-start": {
originX: 0,
originY: 0
},
"right-end": {
originX: 0,
originY: 1
},
"left-start": {
originX: 1,
originY: 0
},
"left-end": {
originX: 1,
originY: 1
}
};
return (origins == null ? void 0 : origins[placement]) || {};
};
var toReactAriaPlacement = (placement) => {
const mapPositions = {
top: "top",
bottom: "bottom",
left: "left",
right: "right",
"top-start": "top start",
"top-end": "top end",
"bottom-start": "bottom start",
"bottom-end": "bottom end",
"left-start": "left top",
"left-end": "left bottom",
"right-start": "right top",
"right-end": "right bottom"
};
return mapPositions[placement];
};
var toOverlayPlacement = (placement) => {
const mapPositions = {
top: "top",
bottom: "bottom",
left: "left",
right: "right",
center: "top"
};
return mapPositions[placement];
};
var getShouldUseAxisPlacement = (axisPlacement, overlayPlacement) => {
if (overlayPlacement.includes("-")) {
const [position] = overlayPlacement.split("-");
if (position.includes(axisPlacement)) {
return false;
}
}
return true;
};
var getArrowPlacement = (dynamicPlacement, placement) => {
if (placement.includes("-")) {
const [, position] = placement.split("-");
return `${dynamicPlacement}-${position}`;
}
return dynamicPlacement;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
getArrowPlacement,
getShouldUseAxisPlacement,
getTransformOrigins,
toOverlayPlacement,
toReactAriaPlacement
});
@@ -0,0 +1,10 @@
import { OB11GroupNoticeEvent } from './OB11GroupNoticeEvent';
import { NapCatCore } from '../../../napcat-core';
export declare class OB11GroupEssenceEvent extends OB11GroupNoticeEvent {
notice_type: string;
message_id: number;
sender_id: number;
operator_id: number;
sub_type: 'add' | 'delete';
constructor(core: NapCatCore, groupId: number, message_id: number, sender_id: number, operator_id: number);
}
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`
};
//# sourceMappingURL=el-GR.main.js.map
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SingleInjectionResolvedValueElementMetadata.js.map
@@ -0,0 +1,39 @@
/**
* @import {Join} from 'mdast-util-to-markdown'
*/
import {formatCodeAsIndented} from './util/format-code-as-indented.js'
import {formatHeadingAsSetext} from './util/format-heading-as-setext.js'
/** @type {Array<Join>} */
export const join = [joinDefaults]
/** @type {Join} */
function joinDefaults(left, right, parent, state) {
// Indented code after list or another indented code.
if (
right.type === 'code' &&
formatCodeAsIndented(right, state) &&
(left.type === 'list' ||
(left.type === right.type && formatCodeAsIndented(left, state)))
) {
return false
}
// Join children of a list or an item.
// In which case, `parent` has a `spread` field.
if ('spread' in parent && typeof parent.spread === 'boolean') {
if (
left.type === 'paragraph' &&
// Two paragraphs.
(left.type === right.type ||
right.type === 'definition' ||
// Paragraph followed by a setext heading.
(right.type === 'heading' && formatHeadingAsSetext(right, state)))
) {
return
}
return parent.spread ? 1 : 0
}
}
@@ -0,0 +1 @@
{"version":3,"file":"addon-canvas.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAqB,YAAID,IAEzBD,EAAkB,YAAIC,GACvB,CATD,CASGK,MAAM,I,kHCHT,eACA,SACA,SACA,SACA,SACA,SAGA,SACA,SACA,SAGA,SAKA,MAAsBC,UAAwB,EAAAC,WAiB5C,UAAWC,GAA8B,OAAOC,KAAKC,OAAS,CAC9D,eAAWC,GAAmC,OAAOF,KAAKG,YAAYC,MAAM,GAAGL,MAAS,CAKxF,WAAAM,CACmBC,EACTC,EACRC,EACAC,EACQC,EACWC,EACAC,EACAC,EACAC,EACAC,GAEnBC,QAXiB,KAAAV,UAAAA,EACT,KAAAC,WAAAA,EAGA,KAAAG,OAAAA,EACW,KAAAC,cAAAA,EACA,KAAAC,eAAAA,EACA,KAAAC,gBAAAA,EACA,KAAAC,mBAAAA,EACA,KAAAC,oBAAAA,EA9Bb,KAAAE,iBAA2B,EAC3B,KAAAC,kBAA4B,EAC5B,KAAAC,iBAA2B,EAC3B,KAAAC,kBAA4B,EAC5B,KAAAC,gBAA0B,EAC1B,KAAAC,eAAyB,EAEvB,KAAAC,iBAAyC,IAAAC,8BAE3C,KAAAC,iBAAoD,GAGlD,KAAAC,qBAAuB1B,KAAK2B,SAAS,IAAI,EAAAC,mBAKlC,KAAAC,yBAA2B7B,KAAK2B,SAAS,IAAI,EAAAG,cAC9C,KAAAC,wBAA0B/B,KAAK6B,yBAAyBG,MAetEhC,KAAKiC,mBAAqB,IAAI,EAAAC,kBAAkBlC,KAAKM,UAAWN,KAAKa,gBAAiBb,KAAKuB,gBAAiBvB,KAAKc,mBAAoBd,KAAKe,oBAAqBf,KAAKW,eACpKX,KAAKC,QAAUD,KAAKe,oBAAoBoB,aAAaC,cAAc,UACnEpC,KAAKC,QAAQoC,UAAUC,IAAI,SAAS9B,WACpCR,KAAKC,QAAQsC,MAAM9B,OAASA,EAAO+B,WACnCxC,KAAKyC,cACLzC,KAAKO,WAAWmC,YAAY1C,KAAKC,SACjCD,KAAK2C,kBAAkB3C,KAAKW,cAAciC,QAC1C5C,KAAK2B,SAAS3B,KAAKW,cAAckC,gBAAeC,IAC9C9C,KAAK2C,kBAAkBG,GACvB9C,KAAK+C,QAEL/C,KAAKgD,uBAAuBhD,KAAKuB,gBAAgB0B,eAAgBjD,KAAKuB,gBAAgB2B,aAAclD,KAAKuB,gBAAgB4B,iBAAiB,KAG5InD,KAAK2B,UAAS,IAAAyB,eAAa,KACzBpD,KAAKC,QAAQoD,QAAQ,IAEzB,CAEQ,WAAAZ,GACNzC,KAAKsD,MAAO,IAAAC,cAAavD,KAAKC,QAAQuD,WAAW,KAAM,CAAEC,MAAOzD,KAAKU,UAEhEV,KAAKU,QACRV,KAAK0D,WAET,CAEO,UAAAC,GAAoB,CACpB,WAAAC,GAAqB,CACrB,gBAAAC,GAA0B,CAC1B,iBAAAC,CAAkBC,EAAkBC,GAAuB,CAE3D,sBAAAhB,CAAuBiB,EAAqCC,EAAmCf,GAA4B,GAChInD,KAAKuB,gBAAgB4C,OAAQnE,KAAKM,UAAkB8D,MAAOH,EAAOC,EAAKf,EACzE,CAEU,gBAAAkB,CAAiBZ,GAEzB,GAAIA,IAAUzD,KAAKU,OACjB,OAIF,MAAM4D,EAAYtE,KAAKC,QACvBD,KAAKU,OAAS+C,EAEdzD,KAAKC,QAAUD,KAAKC,QAAQsE,YAC5BvE,KAAKyC,cACLzC,KAAKO,WAAWiE,aAAaxE,KAAKC,QAASqE,GAG3CtE,KAAK2C,kBAAkB3C,KAAKW,cAAciC,QAC1C5C,KAAK8D,kBAAkB,EAAG9D,KAAKY,eAAe6D,KAAO,EACvD,CAMQ,iBAAA9B,CAAkB+B,GACxB,KAAI1E,KAAKiB,kBAAoB,GAAKjB,KAAKkB,mBAAqB,GAA5D,CAGAlB,KAAKG,YAAa,IAAAwE,qBAAoB3E,KAAKM,UAAWN,KAAKa,gBAAgB+D,WAAYF,EAAU1E,KAAKmB,iBAAkBnB,KAAKoB,kBAAmBpB,KAAKiB,iBAAkBjB,KAAKkB,kBAAmBlB,KAAKe,oBAAoB8D,KACxN7E,KAAK0B,qBAAqBoD,OAAQ,IAAAC,cAAa/E,KAAKG,WAAW4B,wBAAyB/B,KAAK6B,0BAC7F7B,KAAKG,WAAW6E,SAChB,IAAK,IAAIC,EAAI,EAAGA,EAAIjF,KAAKG,WAAWC,MAAM8E,OAAQD,IAChDjF,KAAKyB,iBAAiBwD,GAAK,IAAIE,EAAgBnF,KAAKG,WAAWC,MAAM6E,GAAGlF,O,CAE5E,CAEO,MAAAqF,CAAOC,GACZrF,KAAKmB,iBAAmBkE,EAAIC,OAAOC,KAAKC,MACxCxF,KAAKoB,kBAAoBiE,EAAIC,OAAOC,KAAKE,OACzCzF,KAAKiB,iBAAmBoE,EAAIC,OAAOI,KAAKF,MACxCxF,KAAKkB,kBAAoBmE,EAAIC,OAAOI,KAAKD,OACzCzF,KAAKqB,gBAAkBgE,EAAIC,OAAOI,KAAKC,KACvC3F,KAAKsB,eAAiB+D,EAAIC,OAAOI,KAAKE,IACtC5F,KAAKC,QAAQuF,MAAQH,EAAIC,OAAOvF,OAAOyF,MACvCxF,KAAKC,QAAQwF,OAASJ,EAAIC,OAAOvF,OAAO0F,OACxCzF,KAAKC,QAAQsC,MAAMiD,MAAQ,GAAGH,EAAIQ,IAAI9F,OAAOyF,UAC7CxF,KAAKC,QAAQsC,MAAMkD,OAAS,GAAGJ,EAAIQ,IAAI9F,OAAO0F,WAGzCzF,KAAKU,QACRV,KAAK0D,YAGP1D,KAAK2C,kBAAkB3C,KAAKW,cAAciC,OAC5C,CAIO,iBAAAkD,GACL9F,KAAKG,YAAY4F,cACnB,CASU,UAAAC,CAAWC,EAAWC,EAAWV,EAAeC,GACxDzF,KAAKsD,KAAK6C,SACRF,EAAIjG,KAAKmB,iBACT+E,EAAIlG,KAAKoB,kBACToE,EAAQxF,KAAKmB,iBACbsE,EAASzF,KAAKoB,kBAClB,CAQU,sBAAAgF,CAAuBH,EAAWC,EAAWV,EAAgB,GACrE,MAAMa,EAAaC,KAAKC,KAA8B,GAAzBvG,KAAKoB,mBAClCpB,KAAKsD,KAAK6C,SACRF,EAAIjG,KAAKmB,kBACR+E,EAAI,GAAKlG,KAAKoB,kBAAoBiF,EAAarG,KAAKe,oBAAoB8D,IACzEW,EAAQxF,KAAKmB,iBACbnB,KAAKe,oBAAoB8D,IAC7B,CAQU,sBAAA2B,CAAuBP,EAAWC,EAAWV,EAAgB,EAAGiB,EAAsB,GAC9FzG,KAAKsD,KAAK6C,SACRF,EAAIjG,KAAKmB,kBACR+E,EAAI,GAAKlG,KAAKoB,kBAAoBqF,EAAczG,KAAKe,oBAAoB8D,IAAM,EAChFW,EAAQxF,KAAKmB,iBACbnB,KAAKe,oBAAoB8D,IAC7B,CAEU,qBAAA6B,CAAsBT,EAAWC,EAAWV,EAAgB,GACpExF,KAAKsD,KAAKqD,OACV3G,KAAKsD,KAAKsD,YACV5G,KAAKsD,KAAKuD,YAAc7G,KAAKsD,KAAKwD,UAClC,MAAMC,EAAY/G,KAAKe,oBAAoB8D,IAC3C7E,KAAKsD,KAAKyD,UAAYA,EACtB,IAAK,IAAIC,EAAU,EAAGA,EAAUxB,EAAOwB,IAAW,CAChD,MAAMC,GAAShB,EAAIe,GAAWhH,KAAKmB,iBAC7B+F,GAAQjB,EAAIe,EAAU,IAAOhH,KAAKmB,iBAClCgG,GAAUlB,EAAIe,EAAU,GAAKhH,KAAKmB,iBAClCiG,GAAQlB,EAAI,GAAKlG,KAAKoB,kBAAoB2F,EAAY,EACtDM,EAAUD,EAAOL,EACjBO,EAAUF,EAAOL,EACvB/G,KAAKsD,KAAKiE,OAAON,EAAOG,GACxBpH,KAAKsD,KAAKkE,cACRP,EAAOI,EACPH,EAAMG,EACNH,EAAME,GAERpH,KAAKsD,KAAKkE,cACRN,EAAMI,EACNH,EAAQG,EACRH,EAAQC,E,CAGZpH,KAAKsD,KAAKmE,SACVzH,KAAKsD,KAAKoE,SACZ,CAEU,sBAAAC,CAAuB1B,EAAWC,EAAWV,EAAgB,GACrExF,KAAKsD,KAAKqD,OACV3G,KAAKsD,KAAKsD,YACV5G,KAAKsD,KAAKuD,YAAc7G,KAAKsD,KAAKwD,UAClC,MAAMC,EAAY/G,KAAKe,oBAAoB8D,IAC3C7E,KAAKsD,KAAKyD,UAAYA,EACtB/G,KAAKsD,KAAKsE,YAAY,CAAa,EAAZb,EAAeA,IACtC,MAAME,EAAQhB,EAAIjG,KAAKmB,iBACjBiG,GAAQlB,EAAI,GAAKlG,KAAKoB,kBAAoB2F,EAAY,EAC5D/G,KAAKsD,KAAKiE,OAAON,EAAOG,GACxB,IAAK,IAAIJ,EAAU,EAAGA,EAAUxB,EAAOwB,IAAW,CAEhD,MAAMG,GAAUlB,EAAIT,EAAQwB,GAAWhH,KAAKmB,iBAC5CnB,KAAKsD,KAAKuE,OAAOV,EAAQC,E,CAE3BpH,KAAKsD,KAAKmE,SACVzH,KAAKsD,KAAKwE,YACV9H,KAAKsD,KAAKoE,SACZ,CAEU,sBAAAK,CAAuB9B,EAAWC,EAAWV,EAAgB,GACrExF,KAAKsD,KAAKqD,OACV3G,KAAKsD,KAAKsD,YACV5G,KAAKsD,KAAKuD,YAAc7G,KAAKsD,KAAKwD,UAClC,MAAMC,ELine truncated
@@ -0,0 +1,7 @@
import { NodeIO3MiscListener } from '../listeners/NodeIO3MiscListener';
export interface NodeIO3MiscService {
get(): NodeIO3MiscService;
addO3MiscListener(listeners: NodeIO3MiscListener): number;
setAmgomDataPiece(appid: string, dataPiece: Uint8Array): void;
reportAmgomWeather(type: string, uk2: string, arg: Array<string>): void;
}
@@ -0,0 +1,30 @@
import { ClassAttributor, Scope } from 'parchment';
class IndentAttributor extends ClassAttributor {
add(node, value) {
let normalizedValue = 0;
if (value === '+1' || value === '-1') {
const indent = this.value(node) || 0;
normalizedValue = value === '+1' ? indent + 1 : indent - 1;
} else if (typeof value === 'number') {
normalizedValue = value;
}
if (normalizedValue === 0) {
this.remove(node);
return true;
}
return super.add(node, normalizedValue.toString());
}
canAdd(node, value) {
return super.canAdd(node, value) || super.canAdd(node, parseInt(value, 10));
}
value(node) {
return parseInt(super.value(node), 10) || undefined; // Don't return NaN
}
}
const IndentClass = new IndentAttributor('indent', 'ql-indent', {
scope: Scope.BLOCK,
// @ts-expect-error
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
});
export default IndentClass;
//# sourceMappingURL=indent.js.map
@@ -0,0 +1,99 @@
/**
* @fileoverview Rule to flag use of a leading/trailing decimal point in a numeric literal
* @author James Allardice
* @deprecated in ESLint v8.53.0
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
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: "8.53.0",
availableUntil: "11.0.0",
replacedBy: [
{
message:
"ESLint Stylistic now maintains deprecated stylistic core rules.",
url: "https://eslint.style/guide/migration",
plugin: {
name: "@stylistic/eslint-plugin",
url: "https://eslint.style",
},
rule: {
name: "no-floating-decimal",
url: "https://eslint.style/rules/no-floating-decimal",
},
},
],
},
type: "suggestion",
docs: {
description:
"Disallow leading or trailing decimal points in numeric literals",
recommended: false,
url: "https://eslint.org/docs/latest/rules/no-floating-decimal",
},
schema: [],
fixable: "code",
messages: {
leading: "A leading decimal point can be confused with a dot.",
trailing: "A trailing decimal point can be confused with a dot.",
},
},
create(context) {
const sourceCode = context.sourceCode;
return {
Literal(node) {
if (typeof node.value === "number") {
if (node.raw.startsWith(".")) {
context.report({
node,
messageId: "leading",
fix(fixer) {
const tokenBefore =
sourceCode.getTokenBefore(node);
const needsSpaceBefore =
tokenBefore &&
tokenBefore.range[1] === node.range[0] &&
!astUtils.canTokensBeAdjacent(
tokenBefore,
`0${node.raw}`,
);
return fixer.insertTextBefore(
node,
needsSpaceBefore ? " 0" : "0",
);
},
});
}
if (node.raw.indexOf(".") === node.raw.length - 1) {
context.report({
node,
messageId: "trailing",
fix: fixer => fixer.insertTextAfter(node, "0"),
});
}
}
},
};
},
};
@@ -0,0 +1,3 @@
declare const _exports: import('eslint').Rule.RuleModule;
export = _exports;
//# sourceMappingURL=jsx-indent-props.d.ts.map
@@ -0,0 +1,39 @@
// Pseudo [x-pseudo]
import dayjs from '../index';
var locale = {
name: 'x-pseudo',
weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
weekStart: 1,
weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
},
relativeTime: {
future: 'í~ñ %s',
past: '%s á~gó',
s: 'á ~féw ~sécó~ñds',
m: 'á ~míñ~úté',
mm: '%d m~íñú~tés',
h: 'á~ñ hó~úr',
hh: '%d h~óúrs',
d: 'á ~dáý',
dd: '%d d~áýs',
M: 'á ~móñ~th',
MM: '%d m~óñt~hs',
y: 'á ~ýéár',
yy: '%d ý~éárs'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,321 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/table-body.tsx
var table_body_exports = {};
__export(table_body_exports, {
default: () => table_body_default
});
module.exports = __toCommonJS(table_body_exports);
var import_system4 = require("@heroui/system");
var import_react_utils4 = require("@heroui/react-utils");
var import_shared_utils4 = require("@heroui/shared-utils");
var import_table4 = require("@react-aria/table");
var import_react_utils5 = require("@heroui/react-utils");
var import_react3 = require("react");
// src/table-row.tsx
var import_system = require("@heroui/system");
var import_react_utils = require("@heroui/react-utils");
var import_shared_utils = require("@heroui/shared-utils");
var import_table = require("@react-aria/table");
var import_focus = require("@react-aria/focus");
var import_interactions = require("@react-aria/interactions");
var import_react = require("react");
var import_jsx_runtime = require("react/jsx-runtime");
var TableRow = (0, import_system.forwardRef)((props, ref) => {
var _a, _b;
const { as, className, children, node, slots, state, isSelectable, classNames, ...otherProps } = props;
const Component = as || ((props == null ? void 0 : props.href) ? "a" : "tr");
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils.useDOMRef)(ref);
const { rowProps } = (0, import_table.useTableRow)({ node }, state, domRef);
const trStyles = (0, import_shared_utils.clsx)(classNames == null ? void 0 : classNames.tr, className, (_a = node.props) == null ? void 0 : _a.className);
const { isFocusVisible, focusProps } = (0, import_focus.useFocusRing)();
const isDisabled = state.disabledKeys.has(node.key);
const isSelected = state.selectionManager.isSelected(node.key);
const { isHovered, hoverProps } = (0, import_interactions.useHover)({ isDisabled });
const { isFirst, isLast, isMiddle, isOdd } = (0, import_react.useMemo)(() => {
const isFirst2 = node.key === state.collection.getFirstKey();
const isLast2 = node.key === state.collection.getLastKey();
const isMiddle2 = !isFirst2 && !isLast2;
const isOdd2 = (node == null ? void 0 : node.index) ? (node.index + 1) % 2 === 0 : false;
return {
isFirst: isFirst2,
isLast: isLast2,
isMiddle: isMiddle2,
isOdd: isOdd2
};
}, [node, state.collection]);
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
Component,
{
ref: domRef,
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-first": (0, import_shared_utils.dataAttr)(isFirst),
"data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
"data-hover": (0, import_shared_utils.dataAttr)(isHovered),
"data-last": (0, import_shared_utils.dataAttr)(isLast),
"data-middle": (0, import_shared_utils.dataAttr)(isMiddle),
"data-odd": (0, import_shared_utils.dataAttr)(isOdd),
"data-selected": (0, import_shared_utils.dataAttr)(isSelected),
...(0, import_shared_utils.mergeProps)(
rowProps,
focusProps,
isSelectable ? hoverProps : {},
(0, import_react_utils.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_b = slots.tr) == null ? void 0 : _b.call(slots, { class: trStyles }),
children
}
);
});
TableRow.displayName = "HeroUI.TableRow";
var table_row_default = TableRow;
// src/table-cell.tsx
var import_react2 = require("react");
var import_system2 = require("@heroui/system");
var import_react_utils2 = require("@heroui/react-utils");
var import_shared_utils2 = require("@heroui/shared-utils");
var import_table2 = require("@react-aria/table");
var import_focus2 = require("@react-aria/focus");
var import_jsx_runtime2 = require("react/jsx-runtime");
var TableCell = (0, import_system2.forwardRef)((props, ref) => {
var _a, _b, _c;
const { as, className, node, rowKey, slots, state, classNames, ...otherProps } = props;
const Component = as || "td";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils2.useDOMRef)(ref);
const { gridCellProps } = (0, import_table2.useTableCell)({ node }, state, domRef);
const tdStyles = (0, import_shared_utils2.clsx)(classNames == null ? void 0 : classNames.td, className, (_a = node.props) == null ? void 0 : _a.className);
const { isFocusVisible, focusProps } = (0, import_focus2.useFocusRing)();
const isRowSelected = state.selectionManager.isSelected(rowKey);
const cell = (0, import_react2.useMemo)(() => {
const cellType = typeof node.rendered;
return cellType !== "object" && cellType !== "function" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: node.rendered }) : node.rendered;
}, [node.rendered]);
const columnProps = ((_b = node.column) == null ? void 0 : _b.props) || {};
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
Component,
{
ref: domRef,
"data-focus-visible": (0, import_shared_utils2.dataAttr)(isFocusVisible),
"data-selected": (0, import_shared_utils2.dataAttr)(isRowSelected),
...(0, import_shared_utils2.mergeProps)(
gridCellProps,
focusProps,
(0, import_react_utils2.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_c = slots.td) == null ? void 0 : _c.call(slots, { align: columnProps.align, class: tdStyles }),
children: cell
}
);
});
TableCell.displayName = "HeroUI.TableCell";
var table_cell_default = TableCell;
// src/table-checkbox-cell.tsx
var import_system3 = require("@heroui/system");
var import_react_utils3 = require("@heroui/react-utils");
var import_shared_utils3 = require("@heroui/shared-utils");
var import_table3 = require("@react-aria/table");
var import_focus3 = require("@react-aria/focus");
var import_checkbox = require("@heroui/checkbox");
var import_visually_hidden = require("@react-aria/visually-hidden");
var import_jsx_runtime3 = require("react/jsx-runtime");
var TableCheckboxCell = (0, import_system3.forwardRef)((props, ref) => {
var _a, _b;
const {
as,
className,
node,
rowKey,
slots,
state,
color,
disableAnimation,
checkboxesProps,
selectionMode,
classNames,
...otherProps
} = props;
const Component = as || "td";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils3.useDOMRef)(ref);
const { gridCellProps } = (0, import_table3.useTableCell)({ node }, state, domRef);
const { isFocusVisible, focusProps } = (0, import_focus3.useFocusRing)();
const { checkboxProps } = (0, import_table3.useTableSelectionCheckbox)({ key: (node == null ? void 0 : node.parentKey) || node.key }, state);
const tdStyles = (0, import_shared_utils3.clsx)(classNames == null ? void 0 : classNames.td, className, (_a = node.props) == null ? void 0 : _a.className);
const isSingleSelectionMode = selectionMode === "single";
const { onChange, ...otherCheckboxProps } = checkboxProps;
const isRowSelected = state.selectionManager.isSelected(rowKey);
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
Component,
{
ref: domRef,
"data-focus-visible": (0, import_shared_utils3.dataAttr)(isFocusVisible),
"data-selected": (0, import_shared_utils3.dataAttr)(isRowSelected),
...(0, import_shared_utils3.mergeProps)(
gridCellProps,
focusProps,
(0, import_react_utils3.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_b = slots.td) == null ? void 0 : _b.call(slots, { class: tdStyles }),
children: isSingleSelectionMode ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_visually_hidden.VisuallyHidden, { children: checkboxProps["aria-label"] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
import_checkbox.Checkbox,
{
color,
disableAnimation,
onValueChange: onChange,
...(0, import_shared_utils3.mergeProps)(checkboxesProps, otherCheckboxProps)
}
)
}
);
});
TableCheckboxCell.displayName = "HeroUI.TableCheckboxCell";
var table_checkbox_cell_default = TableCheckboxCell;
// src/table-body.tsx
var import_jsx_runtime4 = require("react/jsx-runtime");
var TableBody = (0, import_system4.forwardRef)((props, ref) => {
var _a;
const {
as,
className,
slots,
state,
collection,
isSelectable,
color,
disableAnimation,
checkboxesProps,
selectionMode,
classNames,
...otherProps
} = props;
const Component = as || "tbody";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils4.useDOMRef)(ref);
const { rowGroupProps } = (0, import_table4.useTableRowGroup)();
const tbodyStyles = (0, import_shared_utils4.clsx)(classNames == null ? void 0 : classNames.tbody, className);
const bodyProps = collection == null ? void 0 : collection.body.props;
const isLoading = (bodyProps == null ? void 0 : bodyProps.isLoading) || (bodyProps == null ? void 0 : bodyProps.loadingState) === "loading" || (bodyProps == null ? void 0 : bodyProps.loadingState) === "loadingMore";
const renderRows = (0, import_react3.useMemo)(() => {
return [...collection.body.childNodes].map((row) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_row_default,
{
classNames,
isSelectable,
node: row,
slots,
state,
children: [...row.childNodes].map(
(cell) => cell.props.isSelectionCell ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_checkbox_cell_default,
{
checkboxesProps,
classNames,
color,
disableAnimation,
node: cell,
rowKey: row.key,
selectionMode,
slots,
state
},
cell.key
) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_cell_default,
{
classNames,
node: cell,
rowKey: row.key,
slots,
state
},
cell.key
)
)
},
row.key
));
}, [collection.body.childNodes, classNames, isSelectable, slots, state]);
let emptyContent;
let loadingContent;
if (collection.size === 0 && bodyProps.emptyContent) {
emptyContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
"td",
{
className: slots == null ? void 0 : slots.emptyWrapper({ class: classNames == null ? void 0 : classNames.emptyWrapper }),
colSpan: collection.columnCount,
role: "gridcell",
children: !isLoading && bodyProps.emptyContent
}
) });
}
if (isLoading && bodyProps.loadingContent) {
loadingContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("tr", { role: "row", children: [
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
"td",
{
className: slots == null ? void 0 : slots.loadingWrapper({ class: classNames == null ? void 0 : classNames.loadingWrapper }),
colSpan: collection.columnCount,
role: "gridcell",
children: bodyProps.loadingContent
}
),
!emptyContent && collection.size === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("td", { className: slots == null ? void 0 : slots.emptyWrapper({ class: classNames == null ? void 0 : classNames.emptyWrapper }) }) : null
] });
}
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
Component,
{
ref: domRef,
...(0, import_shared_utils4.mergeProps)(
rowGroupProps,
(0, import_react_utils5.filterDOMProps)(bodyProps, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_a = slots.tbody) == null ? void 0 : _a.call(slots, { class: tbodyStyles }),
"data-empty": (0, import_shared_utils4.dataAttr)(collection.size === 0),
"data-loading": (0, import_shared_utils4.dataAttr)(isLoading),
children: [
renderRows,
loadingContent,
emptyContent
]
}
);
});
TableBody.displayName = "HeroUI.TableBody";
var table_body_default = TableBody;
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more