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,4 @@
{
"main": "../../cjs/_write_only_error.cjs",
"module": "../../esm/_write_only_error.js"
}
@@ -0,0 +1,225 @@
import {gridMap as $1af922eb41e03c8f$export$e6235c0d09b995d0} from "./utils.module.js";
import {focusSafely as $j4Qbl$focusSafely, isFocusVisible as $j4Qbl$isFocusVisible} from "@react-aria/interactions";
import {getFocusableTreeWalker as $j4Qbl$getFocusableTreeWalker} from "@react-aria/focus";
import {scrollIntoViewport as $j4Qbl$scrollIntoViewport, getScrollParent as $j4Qbl$getScrollParent, mergeProps as $j4Qbl$mergeProps} from "@react-aria/utils";
import {useRef as $j4Qbl$useRef} from "react";
import {useLocale as $j4Qbl$useLocale} from "@react-aria/i18n";
import {useSelectableItem as $j4Qbl$useSelectableItem} from "@react-aria/selection";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $ab90dcbc1b5466d0$export$c7e10bfc0c59f67c(props, state, ref) {
let { node: node, isVirtualized: isVirtualized, focusMode: focusMode = 'child', shouldSelectOnPressUp: shouldSelectOnPressUp, onAction: onAction } = props;
let { direction: direction } = (0, $j4Qbl$useLocale)();
let { keyboardDelegate: keyboardDelegate, actions: { onCellAction: onCellAction } } = (0, $1af922eb41e03c8f$export$e6235c0d09b995d0).get(state);
// We need to track the key of the item at the time it was last focused so that we force
// focus to go to the item when the DOM node is reused for a different item in a virtualizer.
let keyWhenFocused = (0, $j4Qbl$useRef)(null);
// Handles focusing the cell. If there is a focusable child,
// it is focused, otherwise the cell itself is focused.
let focus = ()=>{
if (ref.current) {
let treeWalker = (0, $j4Qbl$getFocusableTreeWalker)(ref.current);
if (focusMode === 'child') {
// If focus is already on a focusable child within the cell, early return so we don't shift focus
if (ref.current.contains(document.activeElement) && ref.current !== document.activeElement) return;
let focusable = state.selectionManager.childFocusStrategy === 'last' ? $ab90dcbc1b5466d0$var$last(treeWalker) : treeWalker.firstChild();
if (focusable) {
(0, $j4Qbl$focusSafely)(focusable);
return;
}
}
if (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !ref.current.contains(document.activeElement)) (0, $j4Qbl$focusSafely)(ref.current);
}
};
let { itemProps: itemProps, isPressed: isPressed } = (0, $j4Qbl$useSelectableItem)({
selectionManager: state.selectionManager,
key: node.key,
ref: ref,
isVirtualized: isVirtualized,
focus: focus,
shouldSelectOnPressUp: shouldSelectOnPressUp,
onAction: onCellAction ? ()=>onCellAction(node.key) : onAction,
isDisabled: state.collection.size === 0
});
let onKeyDownCapture = (e)=>{
if (!e.currentTarget.contains(e.target) || state.isKeyboardNavigationDisabled || !ref.current || !document.activeElement) return;
let walker = (0, $j4Qbl$getFocusableTreeWalker)(ref.current);
walker.currentNode = document.activeElement;
switch(e.key){
case 'ArrowLeft':
{
// Find the next focusable element within the cell.
let focusable = direction === 'rtl' ? walker.nextNode() : walker.previousNode();
// Don't focus the cell itself if focusMode is "child"
if (focusMode === 'child' && focusable === ref.current) focusable = null;
e.preventDefault();
e.stopPropagation();
if (focusable) {
(0, $j4Qbl$focusSafely)(focusable);
(0, $j4Qbl$scrollIntoViewport)(focusable, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
} else {
var _keyboardDelegate_getKeyLeftOf;
// If there is no next focusable child, then move to the next cell to the left of this one.
// This will be handled by useSelectableCollection. However, if there is no cell to the left
// of this one, only one column, and the grid doesn't focus rows, then the next key will be the
// same as this one. In that case we need to handle focusing either the cell or the first/last
// child, depending on the focus mode.
let prev = (_keyboardDelegate_getKeyLeftOf = keyboardDelegate.getKeyLeftOf) === null || _keyboardDelegate_getKeyLeftOf === void 0 ? void 0 : _keyboardDelegate_getKeyLeftOf.call(keyboardDelegate, node.key);
if (prev !== node.key) {
var // We prevent the capturing event from reaching children of the cell, e.g. pickers.
// We want arrow keys to navigate to the next cell instead. We need to re-dispatch
// the event from a higher parent so it still bubbles and gets handled by useSelectableCollection.
_ref_current_parentElement;
(_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
if (focusMode === 'cell' && direction === 'rtl') {
(0, $j4Qbl$focusSafely)(ref.current);
(0, $j4Qbl$scrollIntoViewport)(ref.current, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
} else {
walker.currentNode = ref.current;
focusable = direction === 'rtl' ? walker.firstChild() : $ab90dcbc1b5466d0$var$last(walker);
if (focusable) {
(0, $j4Qbl$focusSafely)(focusable);
(0, $j4Qbl$scrollIntoViewport)(focusable, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
}
}
}
break;
}
case 'ArrowRight':
{
let focusable = direction === 'rtl' ? walker.previousNode() : walker.nextNode();
if (focusMode === 'child' && focusable === ref.current) focusable = null;
e.preventDefault();
e.stopPropagation();
if (focusable) {
(0, $j4Qbl$focusSafely)(focusable);
(0, $j4Qbl$scrollIntoViewport)(focusable, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
} else {
var _keyboardDelegate_getKeyRightOf;
let next = (_keyboardDelegate_getKeyRightOf = keyboardDelegate.getKeyRightOf) === null || _keyboardDelegate_getKeyRightOf === void 0 ? void 0 : _keyboardDelegate_getKeyRightOf.call(keyboardDelegate, node.key);
if (next !== node.key) {
var // We prevent the capturing event from reaching children of the cell, e.g. pickers.
// We want arrow keys to navigate to the next cell instead. We need to re-dispatch
// the event from a higher parent so it still bubbles and gets handled by useSelectableCollection.
_ref_current_parentElement1;
(_ref_current_parentElement1 = ref.current.parentElement) === null || _ref_current_parentElement1 === void 0 ? void 0 : _ref_current_parentElement1.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
if (focusMode === 'cell' && direction === 'ltr') {
(0, $j4Qbl$focusSafely)(ref.current);
(0, $j4Qbl$scrollIntoViewport)(ref.current, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
} else {
walker.currentNode = ref.current;
focusable = direction === 'rtl' ? $ab90dcbc1b5466d0$var$last(walker) : walker.firstChild();
if (focusable) {
(0, $j4Qbl$focusSafely)(focusable);
(0, $j4Qbl$scrollIntoViewport)(focusable, {
containingElement: (0, $j4Qbl$getScrollParent)(ref.current)
});
}
}
}
break;
}
case 'ArrowUp':
case 'ArrowDown':
// Prevent this event from reaching cell children, e.g. menu buttons. We want arrow keys to navigate
// to the cell above/below instead. We need to re-dispatch the event from a higher parent so it still
// bubbles and gets handled by useSelectableCollection.
if (!e.altKey && ref.current.contains(e.target)) {
var _ref_current_parentElement2;
e.stopPropagation();
e.preventDefault();
(_ref_current_parentElement2 = ref.current.parentElement) === null || _ref_current_parentElement2 === void 0 ? void 0 : _ref_current_parentElement2.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
}
break;
}
};
// Grid cells can have focusable elements inside them. In this case, focus should
// be marshalled to that element rather than focusing the cell itself.
let onFocus = (e)=>{
keyWhenFocused.current = node.key;
if (e.target !== ref.current) {
// useSelectableItem only handles setting the focused key when
// the focused element is the gridcell itself. We also want to
// set the focused key when a child element receives focus.
// If focus is currently visible (e.g. the user is navigating with the keyboard),
// then skip this. We want to restore focus to the previously focused row/cell
// in that case since the table should act like a single tab stop.
if (!(0, $j4Qbl$isFocusVisible)()) state.selectionManager.setFocusedKey(node.key);
return;
}
// If the cell itself is focused, wait a frame so that focus finishes propagatating
// up to the tree, and move focus to a focusable child if possible.
requestAnimationFrame(()=>{
if (focusMode === 'child' && document.activeElement === ref.current) focus();
});
};
let gridCellProps = (0, $j4Qbl$mergeProps)(itemProps, {
role: 'gridcell',
onKeyDownCapture: onKeyDownCapture,
'aria-colspan': node.colSpan,
'aria-colindex': node.colIndex != null ? node.colIndex + 1 : undefined,
colSpan: isVirtualized ? undefined : node.colSpan,
onFocus: onFocus
});
var _node_colIndex;
if (isVirtualized) gridCellProps['aria-colindex'] = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + 1; // aria-colindex is 1-based
// When pressing with a pointer and cell selection is not enabled, usePress will be applied to the
// row rather than the cell. However, when the row is draggable, usePress cannot preventDefault
// on pointer down, so the browser will try to focus the cell which has a tabIndex applied.
// To avoid this, remove the tabIndex from the cell briefly on pointer down.
if (shouldSelectOnPressUp && gridCellProps.tabIndex != null && gridCellProps.onPointerDown == null) gridCellProps.onPointerDown = (e)=>{
let el = e.currentTarget;
let tabindex = el.getAttribute('tabindex');
el.removeAttribute('tabindex');
requestAnimationFrame(()=>{
if (tabindex != null) el.setAttribute('tabindex', tabindex);
});
};
return {
gridCellProps: gridCellProps,
isPressed: isPressed
};
}
function $ab90dcbc1b5466d0$var$last(walker) {
let next = null;
let last = null;
do {
last = walker.lastChild();
if (last) next = last;
}while (last);
return next;
}
export {$ab90dcbc1b5466d0$export$c7e10bfc0c59f67c as useGridCell};
//# sourceMappingURL=useGridCell.module.js.map
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAmCM,SAAS,0CAA+B,KAAmB;IAChE,IAAI,UAAC,MAAM,kBAAE,cAAc,EAAC,GAAG;IAE/B,IAAI,iBAAiB,CAAA,GAAA,sDAAwB,EAAE;IAC/C,IAAI,eAAe,CAAA,GAAA,oBAAM,EAAE,IACzB,MAAM,YAAY,GAAG,IAAI,IAAI,MAAM,YAAY,IAAI,IAAI,OACvD;QAAC,MAAM,YAAY;KAAC;IAEtB,IAAI,UAAU,CAAA,GAAA,wBAAU,EAAE,CAAA,QAAS,SAAS,IAAI,CAAA,GAAA,wCAAa,EAAE,OAAO,UAAU,IAAI,CAAA,GAAA,wCAAa,EAAE,QAA6B;QAAC;KAAO;IACxI,IAAI,UAAU,CAAA,GAAA,oBAAM,EAAE,IAAO,CAAA;YAAC,0BAA0B,MAAM,wBAAwB;QAAA,CAAA,GAAI;QAAC,MAAM,wBAAwB;KAAC;IAE1H,IAAI,aAAa,CAAA,GAAA,4CAAY,EAAE,OAAO,SAAS;IAE/C,IAAI,mBAAmB,CAAA,GAAA,oBAAM,EAAE,IAC7B,IAAI,CAAA,GAAA,6CAAe,EAAE,YAAY,gBAAgB;4BAAC;QAAc,IAC9D;QAAC;QAAY;QAAgB;KAAe;IAGhD,iEAAiE;IACjE,MAAM,mBAAmB,CAAA,GAAA,mBAAK,EAA8B;IAC5D,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,eAAe,UAAU,IAAI,QAAQ,CAAC,WAAW,OAAO,CAAC,eAAe,UAAU,KAAK,iBAAiB,OAAO,EAAE;YACnH,MAAM,YAAY,iBAAiB,OAAO,CAAC,OAAO,CAAC,eAAe,UAAU;YAC5E,MAAM,kBAAkB;mBAAI,iBAAiB,OAAO,CAAC,OAAO;aAAG,CAAC,GAAG,CACjE,CAAA;gBACE,MAAM,WAAW,iBAAiB,OAAO,CAAE,OAAO,CAAC;gBACnD,OAAO,CAAA,qBAAA,+BAAA,SAAU,IAAI,MAAK,SAAS,WAAW;YAChD,GACA,MAAM,CAAC,CAAA,OAAQ,SAAS;YAC1B,MAAM,YAAY;mBAAI,WAAW,OAAO;aAAG,CAAC,GAAG,CAC7C,CAAA;gBACE,MAAM,WAAW,WAAW,OAAO,CAAC;gBACpC,OAAO,CAAA,qBAAA,+BAAA,SAAU,IAAI,MAAK,SAAS,WAAW;YAChD,GACA,MAAM,CAAC,CAAA,OAAQ,SAAS;gBACJ,yBAAiC;YAAvD,MAAM,OAAe,AAAC,CAAA,CAAA,0BAAA,4BAAA,sCAAA,gBAAiB,MAAM,cAAvB,qCAAA,0BAA2B,CAAA,IAAM,CAAA,CAAA,oBAAA,sBAAA,gCAAA,UAAW,MAAM,cAAjB,+BAAA,oBAAqB,CAAA;gBAI9D,kBACV,mBAED;YANH,IAAI,QAAQ,KAAK,GAAG,CAEhB,OAAO,IACP,KAAK,GAAG,CAAC,AAAC,CAAA,CAAA,mBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,8BAAA,mBAAoB,CAAA,IAAK,OAAO,GAAG,KAC7C,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB,GAEtB,AAAC,CAAA,CAAA,qBAAA,sBAAA,gCAAA,UAAW,MAAM,cAAjB,gCAAA,qBAAqB,CAAA,IAAK;YAC7B,IAAI,UAA0B;YAC9B,IAAI,qBAAqB;YACzB,MAAO,SAAS,EAAG;gBACjB,IAAI,CAAC,iBAAiB,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG;oBACtD,UAAU,SAAS,CAAC,MAAM;oBAC1B;gBACF;gBACA,gCAAgC;gBAChC,IAAI,QAAQ,UAAU,MAAM,GAAG,KAAK,CAAC,oBACnC;qBAEK;oBACL,qBAAqB;wBACR,mBACF;oBADX,IAAI,QAAS,CAAA,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB,CAAA,GAC/B,QAAS,CAAA,oBAAA,sBAAA,gCAAA,UAAW,KAAK,cAAhB,+BAAA,oBAAoB;oBAE/B;gBACF;YACF;YACA,eAAe,aAAa,CAAC,UAAU,QAAQ,GAAG,GAAG;QACvD;QACA,iBAAiB,OAAO,GAAG;IAC7B,GAAG;QAAC;QAAY;QAAkB;QAAgB,eAAe,UAAU;KAAC;IAE5E,OAAO;oBACL;sBACA;0BACA;IACF;AACF","sources":["packages/@react-stately/list/src/useListState.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Collection, CollectionStateBase, Key, LayoutDelegate, Node} from '@react-types/shared';\nimport {ListCollection} from './ListCollection';\nimport {MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection';\nimport {useCallback, useEffect, useMemo, useRef} from 'react';\nimport {useCollection} from '@react-stately/collections';\n\nexport interface ListProps<T> extends CollectionStateBase<T>, MultipleSelectionStateProps {\n /** Filter function to generate a filtered list of nodes. */\n filter?: (nodes: Iterable<Node<T>>) => Iterable<Node<T>>,\n /** @private */\n suppressTextValueWarning?: boolean,\n /**\n * A delegate object that provides layout information for items in the collection.\n * This can be used to override the behavior of shift selection.\n */\n layoutDelegate?: LayoutDelegate\n}\n\nexport interface ListState<T> {\n /** A collection of items in the list. */\n collection: Collection<Node<T>>,\n\n /** A set of items that are disabled. */\n disabledKeys: Set<Key>,\n\n /** A selection manager to read and update multiple selection state. */\n selectionManager: SelectionManager\n}\n\n/**\n * Provides state management for list-like components. Handles building a collection\n * of items from props, and manages multiple selection state.\n */\nexport function useListState<T extends object>(props: ListProps<T>): ListState<T> {\n let {filter, layoutDelegate} = props;\n\n let selectionState = useMultipleSelectionState(props);\n let disabledKeys = useMemo(() =>\n props.disabledKeys ? new Set(props.disabledKeys) : new Set<Key>()\n , [props.disabledKeys]);\n\n let factory = useCallback(nodes => filter ? new ListCollection(filter(nodes)) : new ListCollection(nodes as Iterable<Node<T>>), [filter]);\n let context = useMemo(() => ({suppressTextValueWarning: props.suppressTextValueWarning}), [props.suppressTextValueWarning]);\n\n let collection = useCollection(props, factory, Line truncated
@@ -0,0 +1,5 @@
import { copy } from 'fs-extra';
import { TransformFile } from './typings';
export declare function stringify(value: any): string;
export declare function changeName(name: string, rename?: string | ((str: string) => string)): string;
export declare function makeCopy(transform?: TransformFile): typeof copy;
@@ -0,0 +1,69 @@
import {isIOS as $7R18e$isIOS, getOwnerDocument as $7R18e$getOwnerDocument, runAfterTransition as $7R18e$runAfterTransition} from "@react-aria/utils";
/*
* 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.
*/
// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element
// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually
let $14c0b72509d70225$var$state = 'default';
let $14c0b72509d70225$var$savedUserSelect = '';
let $14c0b72509d70225$var$modifiedElementMap = new WeakMap();
function $14c0b72509d70225$export$16a4697467175487(target) {
if ((0, $7R18e$isIOS)()) {
if ($14c0b72509d70225$var$state === 'default') {
const documentObject = (0, $7R18e$getOwnerDocument)(target);
$14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
documentObject.documentElement.style.webkitUserSelect = 'none';
}
$14c0b72509d70225$var$state = 'disabled';
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
// If not iOS, store the target's original user-select and change to user-select: none
// Ignore state since it doesn't apply for non iOS
$14c0b72509d70225$var$modifiedElementMap.set(target, target.style.userSelect);
target.style.userSelect = 'none';
}
}
function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
if ((0, $7R18e$isIOS)()) {
// If the state is already default, there's nothing to do.
// If it is restoring, then there's no need to queue a second restore.
if ($14c0b72509d70225$var$state !== 'disabled') return;
$14c0b72509d70225$var$state = 'restoring';
// There appears to be a delay on iOS where selection still might occur
// after pointer up, so wait a bit before removing user-select.
setTimeout(()=>{
// Wait for any CSS transitions to complete so we don't recompute style
// for the whole page in the middle of the animation and cause jank.
(0, $7R18e$runAfterTransition)(()=>{
// Avoid race conditions
if ($14c0b72509d70225$var$state === 'restoring') {
const documentObject = (0, $7R18e$getOwnerDocument)(target);
if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || '';
$14c0b72509d70225$var$savedUserSelect = '';
$14c0b72509d70225$var$state = 'default';
}
});
}, 300);
} else if (target instanceof HTMLElement || target instanceof SVGElement) // If not iOS, restore the target's original user-select if any
// Ignore state since it doesn't apply for non iOS
{
if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);
if (target.style.userSelect === 'none') target.style.userSelect = targetOldUserSelect;
if (target.getAttribute('style') === '') target.removeAttribute('style');
$14c0b72509d70225$var$modifiedElementMap.delete(target);
}
}
}
export {$14c0b72509d70225$export$16a4697467175487 as disableTextSelection, $14c0b72509d70225$export$b0d6fa1ab32e3295 as restoreTextSelection};
//# sourceMappingURL=textSelection.module.js.map
@@ -0,0 +1,23 @@
"use strict";
// Update this array if you add/rename/remove files in this directory.
// We support Browserify by skipping automatic module discovery and requiring modules directly.
var modules = [
require("./internal"),
require("./utf32"),
require("./utf16"),
require("./utf7"),
require("./sbcs-codec"),
require("./sbcs-data"),
require("./sbcs-data-generated"),
require("./dbcs-codec"),
require("./dbcs-data"),
];
// Put all encoding/alias/codec definitions to single object and export it.
for (var i = 0; i < modules.length; i++) {
var module = modules[i];
for (var enc in module)
if (Object.prototype.hasOwnProperty.call(module, enc))
exports[enc] = module[enc];
}
@@ -0,0 +1,94 @@
import type { ParserServices, TSESTree } from '../ts-estree';
import type { ParserOptions } from './ParserOptions';
import type { Scope } from './Scope';
export declare namespace Parser {
interface ParserMeta {
/**
* The unique name of the parser.
*/
name: string;
/**
* The a string identifying the version of the parser.
*/
version?: string;
}
/**
* A loose definition of the ParserModule type for use with configs
* This type intended to relax validation of configs so that parsers that have
* different AST types or scope managers can still be passed to configs
*
* @see {@link LooseRuleDefinition}, {@link LooseProcessorModule}
*/
type LooseParserModule = {
/**
* Information about the parser to uniquely identify it when serializing.
*/
meta?: {
[K in keyof ParserMeta]?: ParserMeta[K] | undefined;
};
/**
* Parses the given text into an AST
*/
parseForESLint(text: string, options?: unknown): {
[k in keyof ParseResult]: unknown;
};
} | {
/**
* Information about the parser to uniquely identify it when serializing.
*/
meta?: {
[K in keyof ParserMeta]?: ParserMeta[K] | undefined;
};
/**
* Parses the given text into an ESTree AST
*/
parse(text: string, options?: unknown): unknown;
};
type ParserModule = {
/**
* Information about the parser to uniquely identify it when serializing.
*/
meta?: ParserMeta;
/**
* Parses the given text into an AST
*/
parseForESLint(text: string, options?: ParserOptions): ParseResult;
} | {
/**
* Information about the parser to uniquely identify it when serializing.
*/
meta?: ParserMeta;
/**
* Parses the given text into an ESTree AST
*/
parse(text: string, options?: ParserOptions): TSESTree.Program;
};
interface ParseResult {
/**
* The ESTree AST
*/
ast: TSESTree.Program;
/**
* A `ScopeManager` object.
* Custom parsers can use customized scope analysis for experimental/enhancement syntaxes.
* The default is the `ScopeManager` object which is created by `eslint-scope`.
*/
scopeManager?: Scope.ScopeManager;
/**
* Any parser-dependent services (such as type checkers for nodes).
* The value of the services property is available to rules as `context.sourceCode.parserServices`.
* The default is an empty object.
*/
services?: ParserServices;
/**
* An object to customize AST traversal.
* The keys of the object are the type of AST nodes.
* Each value is an array of the property names which should be traversed.
* The default is `KEYS` of `eslint-visitor-keys`.
*/
visitorKeys?: VisitorKeys;
}
interface VisitorKeys {
[nodeType: string]: readonly string[];
}
}
@@ -0,0 +1,63 @@
import apply from './_apply.js';
import arrayPush from './_arrayPush.js';
import baseRest from './_baseRest.js';
import castSlice from './_castSlice.js';
import toInteger from './toInteger.js';
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
/**
* Creates a function that invokes `func` with the `this` binding of the
* create function and an array of arguments much like
* [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
*
* **Note:** This method is based on the
* [spread operator](https://mdn.io/spread_operator).
*
* @static
* @memberOf _
* @since 3.2.0
* @category Function
* @param {Function} func The function to spread arguments over.
* @param {number} [start=0] The start position of the spread.
* @returns {Function} Returns the new function.
* @example
*
* var say = _.spread(function(who, what) {
* return who + ' says ' + what;
* });
*
* say(['fred', 'hello']);
* // => 'fred says hello'
*
* var numbers = Promise.all([
* Promise.resolve(40),
* Promise.resolve(36)
* ]);
*
* numbers.then(_.spread(function(x, y) {
* return x + y;
* }));
* // => a Promise of 76
*/
function spread(func, start) {
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
start = start == null ? 0 : nativeMax(toInteger(start), 0);
return baseRest(function(args) {
var array = args[start],
otherArgs = castSlice(args, 0, start);
if (array) {
arrayPush(otherArgs, array);
}
return apply(func, this, otherArgs);
});
}
export default spread;
@@ -0,0 +1 @@
export declare const arraify: <T>(value?: T | readonly T[]) => T[] | undefined;
@@ -0,0 +1,65 @@
import { secondsToMilliseconds } from 'motion-utils';
import { JSAnimation } from './JSAnimation.mjs';
import { NativeAnimation } from './NativeAnimation.mjs';
import { replaceTransitionType } from './utils/replace-transition-type.mjs';
import { replaceStringEasing } from './waapi/utils/unsupported-easing.mjs';
/**
* 10ms is chosen here as it strikes a balance between smooth
* results (more than one keyframe per frame at 60fps) and
* keyframe quantity.
*/
const sampleDelta = 10; //ms
class NativeAnimationExtended extends NativeAnimation {
constructor(options) {
/**
* The base NativeAnimation function only supports a subset
* of Motion easings, and WAAPI also only supports some
* easing functions via string/cubic-bezier definitions.
*
* This function replaces those unsupported easing functions
* with a JS easing function. This will later get compiled
* to a linear() easing function.
*/
replaceStringEasing(options);
/**
* Ensure we replace the transition type with a generator function
* before passing to WAAPI.
*
* TODO: Does this have a better home? It could be shared with
* JSAnimation.
*/
replaceTransitionType(options);
super(options);
if (options.startTime) {
this.startTime = options.startTime;
}
this.options = options;
}
/**
* WAAPI doesn't natively have any interruption capabilities.
*
* Rather than read commited styles back out of the DOM, we can
* create a renderless JS animation and sample it twice to calculate
* its current value, "previous" value, and therefore allow
* Motion to calculate velocity for any subsequent animation.
*/
updateMotionValue(value) {
const { motionValue, onUpdate, onComplete, element, ...options } = this.options;
if (!motionValue)
return;
if (value !== undefined) {
motionValue.set(value);
return;
}
const sampleAnimation = new JSAnimation({
...options,
autoplay: false,
});
const sampleTime = secondsToMilliseconds(this.finishedTime ?? this.time);
motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);
sampleAnimation.stop();
}
}
export { NativeAnimationExtended };
@@ -0,0 +1,17 @@
import {DEFAULT_VALIDATION_RESULT as $e5be200c675c3b3a$export$dad6ae84456c676a, FormValidationContext as $e5be200c675c3b3a$export$571b5131b7e65c11, mergeValidation as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, privateValidationStateProp as $e5be200c675c3b3a$export$a763b9476acd3eb, useFormValidationState as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, VALID_VALIDITY_STATE as $e5be200c675c3b3a$export$aca958c65c314e6c} from "./useFormValidationState.mjs";
/*
* Copyright 2023 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
export {$e5be200c675c3b3a$export$571b5131b7e65c11 as FormValidationContext, $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as useFormValidationState, $e5be200c675c3b3a$export$dad6ae84456c676a as DEFAULT_VALIDATION_RESULT, $e5be200c675c3b3a$export$aca958c65c314e6c as VALID_VALIDITY_STATE, $e5be200c675c3b3a$export$a763b9476acd3eb as privateValidationStateProp, $e5be200c675c3b3a$export$75ee7c75d68f5b0e as mergeValidation};
//# sourceMappingURL=module.js.map
@@ -0,0 +1,236 @@
import _typeof from "./typeof.js";
import setFunctionName from "./setFunctionName.js";
import toPropertyKey from "./toPropertyKey.js";
function old_createMetadataMethodsForProperty(e, t, a, r) {
return {
getMetadata: function getMetadata(o) {
old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o);
var i = e[o];
if (void 0 !== i) if (1 === t) {
var n = i["public"];
if (void 0 !== n) return n[a];
} else if (2 === t) {
var l = i["private"];
if (void 0 !== l) return l.get(a);
} else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor;
},
setMetadata: function setMetadata(o, i) {
old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o);
var n = e[o];
if (void 0 === n && (n = e[o] = {}), 1 === t) {
var l = n["public"];
void 0 === l && (l = n["public"] = {}), l[a] = i;
} else if (2 === t) {
var s = n.priv;
void 0 === s && (s = n["private"] = new Map()), s.set(a, i);
} else n.constructor = i;
}
};
}
function old_convertMetadataMapToFinal(e, t) {
var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
r = Object.getOwnPropertySymbols(t);
if (0 !== r.length) {
for (var o = 0; o < r.length; o++) {
var i = r[o],
n = t[i],
l = a ? a[i] : null,
s = n["public"],
c = l ? l["public"] : null;
s && c && Object.setPrototypeOf(s, c);
var d = n["private"];
if (d) {
var u = Array.from(d.values()),
f = l ? l["private"] : null;
f && (u = u.concat(f)), n["private"] = u;
}
l && Object.setPrototypeOf(n, l);
}
a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t;
}
}
function old_createAddInitializerMethod(e, t) {
return function (a) {
old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a);
};
}
function old_memberDec(e, t, a, r, o, i, n, l, s) {
var c;
switch (i) {
case 1:
c = "accessor";
break;
case 2:
c = "method";
break;
case 3:
c = "getter";
break;
case 4:
c = "setter";
break;
default:
c = "field";
}
var d,
u,
f = {
kind: c,
name: l ? "#" + t : toPropertyKey(t),
isStatic: n,
isPrivate: l
},
p = {
v: !1
};
if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) {
d = 2, u = Symbol(t);
var v = {};
0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () {
return a.value;
} : (1 !== i && 3 !== i || (v.get = function () {
return a.get.call(this);
}), 1 !== i && 4 !== i || (v.set = function (e) {
a.set.call(this, e);
})), f.access = v;
} else d = 1, u = t;
try {
return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p)));
} finally {
p.v = !0;
}
}
function old_assertNotFinished(e, t) {
if (e.v) throw Error("attempted to call " + t + " after decoration was finished");
}
function old_assertMetadataKey(e) {
if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e);
}
function old_assertCallable(e, t) {
if ("function" != typeof e) throw new TypeError(t + " must be a function");
}
function old_assertValidReturnValue(e, t) {
var a = _typeof(t);
if (1 === e) {
if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer");
} else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
}
function old_getInit(e) {
var t;
return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t;
}
function old_applyMemberDec(e, t, a, r, o, i, n, l, s) {
var c,
d,
u,
f,
p,
v,
y,
h = a[0];
if (n ? (0 === o || 1 === o ? (c = {
get: a[3],
set: a[4]
}, u = "get") : 3 === o ? (c = {
get: a[3]
}, u = "get") : 4 === o ? (c = {
set: a[3]
}, u = "set") : c = {
value: a[3]
}, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = {
get: c.get,
set: c.set
} : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
get: v,
set: y
}) : f = p);else for (var m = h.length - 1; m >= 0; m--) {
var b;
void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
get: v,
set: y
}) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b)));
}
if (0 === o || 1 === o) {
if (void 0 === d) d = function d(e, t) {
return t;
};else if ("function" != typeof d) {
var g = d;
d = function d(e, t) {
for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a);
return a;
};
} else {
var _ = d;
d = function d(e, t) {
return _.call(e, t);
};
}
e.push(d);
}
0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) {
return f.get.call(e, t);
}), e.push(function (e, t) {
return f.set.call(e, t);
})) : 2 === o ? e.push(f) : e.push(function (e, t) {
return f.call(e, t);
}) : Object.defineProperty(t, r, c));
}
function old_applyMemberDecs(e, t, a, r, o) {
for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) {
var d = o[c];
if (Array.isArray(d)) {
var u,
f,
p,
v = d[1],
y = d[2],
h = d.length > 3,
m = v >= 5;
if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) {
var b = m ? s : l,
g = b.get(y) || 0;
if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y);
!g && v > 2 ? b.set(y, v) : b.set(y, !0);
}
old_applyMemberDec(e, u, d, y, v, m, h, f, p);
}
}
old_pushInitializers(e, i), old_pushInitializers(e, n);
}
function old_pushInitializers(e, t) {
t && e.push(function (e) {
for (var a = 0; a < t.length; a++) t[a].call(e);
return e;
});
}
function old_applyClassDecs(e, t, a, r) {
if (r.length > 0) {
for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) {
var s = {
v: !1
};
try {
var c = Object.assign({
kind: "class",
name: n,
addInitializer: old_createAddInitializerMethod(o, s)
}, old_createMetadataMethodsForProperty(a, 0, n, s)),
d = r[l](i, c);
} finally {
s.v = !0;
}
void 0 !== d && (old_assertValidReturnValue(10, d), i = d);
}
e.push(i, function () {
for (var e = 0; e < o.length; e++) o[e].call(i);
});
}
}
function applyDecs(e, t, a) {
var r = [],
o = {},
i = {};
return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r;
}
export { applyDecs as default };
@@ -0,0 +1,2 @@
import type { DndMonitorListener } from './types';
export declare function useDndMonitor(listener: DndMonitorListener): void;
@@ -0,0 +1,41 @@
## Converters
NAN contains functions that convert `v8::Value`s to other `v8::Value` types and native types. Since type conversion is not guaranteed to succeed, they return `Nan::Maybe` types. These converters can be used in place of `value->ToX()` and `value->XValue()` (where `X` is one of the types, e.g. `Boolean`) in a way that provides a consistent interface across V8 versions. Newer versions of V8 use the new `v8::Maybe` and `v8::MaybeLocal` types for these conversions, older versions don't have this functionality so it is provided by NAN.
- <a href="#api_nan_to"><b><code>Nan::To()</code></b></a>
<a name="api_nan_to"></a>
### Nan::To()
Converts a `v8::Local<v8::Value>` to a different subtype of `v8::Value` or to a native data type. Returns a `Nan::MaybeLocal<>` or a `Nan::Maybe<>` accordingly.
See [maybe_types.md](./maybe_types.md) for more information on `Nan::Maybe` types.
Signatures:
```c++
// V8 types
Nan::MaybeLocal<v8::Boolean> Nan::To<v8::Boolean>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::Int32> Nan::To<v8::Int32>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::Integer> Nan::To<v8::Integer>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::Object> Nan::To<v8::Object>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::Number> Nan::To<v8::Number>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::String> Nan::To<v8::String>(v8::Local<v8::Value> val);
Nan::MaybeLocal<v8::Uint32> Nan::To<v8::Uint32>(v8::Local<v8::Value> val);
// Native types
Nan::Maybe<bool> Nan::To<bool>(v8::Local<v8::Value> val);
Nan::Maybe<double> Nan::To<double>(v8::Local<v8::Value> val);
Nan::Maybe<int32_t> Nan::To<int32_t>(v8::Local<v8::Value> val);
Nan::Maybe<int64_t> Nan::To<int64_t>(v8::Local<v8::Value> val);
Nan::Maybe<uint32_t> Nan::To<uint32_t>(v8::Local<v8::Value> val);
```
### Example
```c++
v8::Local<v8::Value> val;
Nan::MaybeLocal<v8::String> str = Nan::To<v8::String>(val);
Nan::Maybe<double> d = Nan::To<double>(val);
```
@@ -0,0 +1,323 @@
///////////////////////////////////////////////////
//////////////// TYPES ///////////////////
///////////////////////////////////////////////////
export interface $ZSF {
$zsf: { version: number };
type: string;
// default value if not defined
default: unknown;
// fallback value if validation fails
fallback: unknown;
}
export interface $ZSFString extends $ZSF {
type: "string";
min_length?: number;
max_length?: number;
pattern?: string;
}
export type NumberTypes = "float32" | "int32" | "uint32" | "float64" | "int64" | "uint64" | "bigint" | "bigdecimal";
export interface $ZSFNumber extends $ZSF {
type: "number";
format?: NumberTypes;
minimum?: number;
maximum?: number;
multiple_of?: number;
}
export interface $ZSFBoolean extends $ZSF {
type: "boolean";
}
export interface $ZSFNull extends $ZSF {
type: "null";
}
export interface $ZSFUndefined extends $ZSF {
type: "undefined";
}
export interface $ZSFOptional<T extends $ZSF = $ZSF> extends $ZSF {
type: "optional";
inner: T;
}
export interface $ZSFNever extends $ZSF {
type: "never";
}
export interface $ZSFAny extends $ZSF {
type: "any";
}
/** Supports */
export interface $ZSFEnum<Elements extends { [k: string]: $ZSFLiteral } = { [k: string]: $ZSFLiteral }> extends $ZSF {
type: "enum";
elements: Elements;
}
export interface $ZSFArray<PrefixItems extends $ZSF[] = $ZSF[], Items extends $ZSF = $ZSF> extends $ZSF {
type: "array";
prefixItems: PrefixItems;
items: Items;
}
// type $ZSFObjectProperties = { [k: string]: $ZSF };
type $ZSFObjectProperties = Array<{
key: string;
value: $ZSF;
format?: "literal" | "pattern";
ordering?: number;
}>;
export interface $ZSFObject<Properties extends $ZSFObjectProperties = $ZSFObjectProperties> extends $ZSF {
type: "object";
properties: Properties;
}
// export interface $ZSFTuple<
// Items extends $ZSF[] = $ZSF[],
// Rest extends $ZSF = $ZSF,
// > extends $ZSF {
// type: "array";
// items: Items;
// rest: Rest;
// }
/** Supports arbitrary literal values */
export interface $ZSFLiteral<T extends $ZSF = $ZSF> extends $ZSF {
type: "literal";
schema: T;
value: unknown;
}
export interface $ZSFUnion<Elements extends $ZSF[] = $ZSF[]> extends $ZSF {
type: "union";
elements: Elements;
}
export interface $ZSFIntersection extends $ZSF {
type: "intersection";
elements: $ZSF[];
}
export interface $ZSFMap<K extends $ZSF = $ZSF, V extends $ZSF = $ZSF> extends $ZSF {
type: "map";
keys: K;
values: V;
}
export interface $ZSFConditional<If extends $ZSF, Then extends $ZSF, Else extends $ZSF> extends $ZSF {
type: "conditional";
if: If;
then: Then;
else: Else;
}
/////////////////////////////////////////////////
//////////////// CHECKS ////////////////
/////////////////////////////////////////////////
// export interface $ZSFCheckRegex {
// check: "regex";
// pattern: string;
// }
// export interface $ZSFCheckEmail {
// check: "email";
// }
// export interface $ZSFCheckURL {
// check: "url";
// }
// export interface $ZSFCheckEmoji {
// check: "emoji";
// }
// export interface $ZSFCheckUUID {
// check: "uuid";
// }
// export interface $ZSFCheckUUIDv4 {
// check: "uuidv4";
// }
// export interface $ZSFCheckUUIDv6 {
// check: "uuidv6";
// }
// export interface $ZSFCheckNanoid {
// check: "nanoid";
// }
// export interface $ZSFCheckGUID {
// check: "guid";
// }
// export interface $ZSFCheckCUID {
// check: "cuid";
// }
// export interface $ZSFCheckCUID2 {
// check: "cuid2";
// }
// export interface $ZSFCheckULID {
// check: "ulid";
// }
// export interface $ZSFCheckXID {
// check: "xid";
// }
// export interface $ZSFCheckKSUID {
// check: "ksuid";
// }
// export interface $ZSFCheckISODateTime {
// check: "datetime";
// precision?: number;
// local?: boolean;
// }
// export interface $ZSFCheckISODate {
// check: "date";
// }
// export interface $ZSFCheckISOTime {
// check: "time";
// precision?: number;
// local?: boolean;
// }
// export interface $ZSFCheckDuration {
// check: "duration";
// }
// export interface $ZSFCheckIP {
// check: "ip";
// }
// export interface $ZSFCheckIPv4 {
// check: "ipv4";
// }
// export interface $ZSFCheckIPv6 {
// check: "ipv6";
// }
// export interface $ZSFCheckBase64 {
// check: "base64";
// }
// export interface $ZSFCheckJWT {
// check: "jwt";
// }
// export interface $ZSFCheckJSONString {
// check: "json_string";
// }
// export interface $ZSFCheckPrefix {
// check: "prefix";
// prefix: string;
// }
// export interface $ZSFCheckSuffix {
// check: "suffix";
// suffix: string;
// }
// export interface $ZSFCheckIncludes {
// check: "includes";
// includes: string;
// }
// export interface $ZSFCheckMinSize {
// check: "min_size";
// minimum: number;
// }
// export interface $ZSFCheckMaxSize {
// check: "max_size";
// maximum: number;
// }
// export interface $ZSFCheckSizeEquals {
// check: "size_equals";
// size: number;
// }
// export interface $ZSFCheckLessThan {
// check: "less_than";
// maximum: number | bigint | Date;
// }
// export interface $ZSFCheckLessThanOrEqual {
// check: "less_than_or_equal";
// maximum: number | bigint | Date;
// }
// export interface $ZSFCheckGreaterThan {
// check: "greater_than";
// minimum: number | bigint | Date;
// }
// export interface $ZSFCheckGreaterThanOrEqual {
// check: "greater_than_or_equal";
// minimum: number | bigint | Date;
// }
// export interface $ZSFCheckEquals {
// check: "equals";
// value: number | bigint | Date;
// }
// export interface $ZSFCheckMultipleOf {
// check: "multiple_of";
// multipleOf: number;
// }
// export type $ZSFStringFormatChecks =
// | $ZSFCheckRegex
// | $ZSFCheckEmail
// | $ZSFCheckURL
// | $ZSFCheckEmoji
// | $ZSFCheckUUID
// | $ZSFCheckUUIDv4
// | $ZSFCheckUUIDv6
// | $ZSFCheckNanoid
// | $ZSFCheckGUID
// | $ZSFCheckCUID
// | $ZSFCheckCUID2
// | $ZSFCheckULID
// | $ZSFCheckXID
// | $ZSFCheckKSUID
// | $ZSFCheckISODateTime
// | $ZSFCheckISODate
// | $ZSFCheckISOTime
// | $ZSFCheckDuration
// | $ZSFCheckIP
// | $ZSFCheckIPv4
// | $ZSFCheckIPv6
// | $ZSFCheckBase64
// | $ZSFCheckJWT
// | $ZSFCheckJSONString
// | $ZSFCheckPrefix
// | $ZSFCheckSuffix
// | $ZSFCheckIncludes;
// export type $ZSFCheck =
// | $ZSFStringFormatChecks
// | $ZSFCheckMinSize
// | $ZSFCheckMaxSize
// | $ZSFCheckSizeEquals
// | $ZSFCheckLessThan
// | $ZSFCheckLessThanOrEqual
// | $ZSFCheckGreaterThan
// | $ZSFCheckGreaterThanOrEqual
// | $ZSFCheckEquals
// | $ZSFCheckMultipleOf;
@@ -0,0 +1 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Motion={})}(this,function(t){"use strict";function e(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const s=(t,e,n)=>n>e?e:n<t?t:n;let i=()=>{};const r={},o=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function a(t){return"object"==typeof t&&null!==t}const l=t=>/^0[^.\s]+$/u.test(t);function u(t){let e;return()=>(void 0===e&&(e=t()),e)}const c=t=>t,h=(t,e)=>n=>e(t(n)),d=(...t)=>t.reduce(h),p=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s};class f{constructor(){this.subscriptions=[]}add(t){return e(this.subscriptions,t),()=>n(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const m=t=>1e3*t,g=t=>t/1e3;function y(t,e){return e?t*(1e3/e):0}const v=new Set;const w=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},b=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function T(t,e,n,s){if(t===e&&n===s)return c;const i=e=>function(t,e,n,s,i){let r,o,a=0;do{o=e+(n-e)/2,r=b(o,s,i)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:b(i(t),e,s)}const x=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,V=t=>e=>1-t(1-e),M=T(.33,1.53,.69,.99),S=V(M),A=x(S),k=t=>(t*=2)<1?.5*S(t):.5*(2-Math.pow(2,-10*(t-1))),E=t=>1-Math.sin(Math.acos(t)),P=V(E),C=x(E),O=T(.42,0,1,1),F=T(0,0,.58,1),R=T(.42,0,.58,1);const D=t=>Array.isArray(t)&&"number"!=typeof t[0];function B(t,e){return D(t)?t[w(0,t.length,e)]:t}const L=t=>Array.isArray(t)&&"number"==typeof t[0],I={linear:c,easeIn:O,easeInOut:R,easeOut:F,circIn:E,circInOut:C,circOut:P,backIn:S,backInOut:A,backOut:M,anticipate:k},W=t=>{if(L(t)){t.length;const[e,n,s,i]=t;return T(e,n,s,i)}return"string"==typeof t?I[t]:t},j=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],N={value:null,addProjectionMetrics:null};function K(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=j.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(c.schedule(e),t()),l++,e(a)}const c={schedule:(t,e=!1,r=!1)=>{const a=r&&i?n:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{a=t,i?r=!0:(i=!0,[n,s]=[s,n],n.forEach(u),e&&N.value&&N.value.frameloop[e].push(l),l=0,n.clear(),i=!1,r&&(r=!1,c.process(t)))}};return c}(o,e?n:void 0),t),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:h,update:d,preRender:p,render:f,postRender:m}=a,g=()=>{const o=r.useManualTiming?i.timestamp:performance.now();n=!1,r.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),p.process(i),f.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))};return{schedule:j.reduce((e,r)=>{const o=a[r];return e[r]=(e,r=!1,a=!1)=>(n||(n=!0,s=!0,i.isProcessing||t(g)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<j.length;e++)a[j[e]].cancel(t)},state:i,steps:a}}const{schedule:$,cancel:U,state:Y,steps:z}=K("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:c,!0);let X;function H(){X=void 0}const G={now:()=>(void 0===X&&G.set(Y.isProcessing||r.useManualTiming?Y.timestamp:performance.now()),X),set:t=>{X=t,queueMicrotask(H)}},Z={layout:0,mainThread:0,waapi:0},q=t=>e=>"string"==typeof e&&e.startsWith(t),_=q("--"),J=q("var(--"),Q=t=>!!J(t)&&tt.test(t.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},nt={...et,transform:t=>s(0,1,t)},st={...et,default:1},it=t=>Math.round(1e5*t)/1e5,rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const ot=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,at=(t,e)=>n=>Boolean("string"==typeof n&&ot.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),lt=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[i,r,o,a]=s.match(rt);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ut={...et,transform:t=>Math.round((t=>s(0,255,t))(t))},ct={test:at("rgb","red"),parse:lt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ut.transform(t)+", "+ut.transform(e)+", "+ut.transform(n)+", "+it(nt.transform(s))+")"};const ht={test:at("#"),parse:function(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=eLine truncated
@@ -0,0 +1,111 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
declare const PayloadSchema: import("@sinclair/typebox").TObject<{
category: import("@sinclair/typebox").TString;
count: import("@sinclair/typebox").TString;
}>;
type PayloadType = Static<typeof PayloadSchema>;
declare const ReturnSchema: import("@sinclair/typebox").TAny;
type ReturnType = Static<typeof ReturnSchema>;
export declare class GetCollectionList extends OneBotAction<PayloadType, ReturnType> {
actionName: "get_collection_list";
payloadSchema: import("@sinclair/typebox").TObject<{
category: import("@sinclair/typebox").TString;
count: import("@sinclair/typebox").TString;
}>;
returnSchema: import("@sinclair/typebox").TAny;
actionSummary: string;
actionTags: string[];
payloadExample: {
category: string;
count: string;
};
returnExample: {
errCode: number;
errMsg: string;
collectionSearchList: {
collectionItemList: {
cid: string;
type: number;
status: number;
author: {
type: number;
numId: string;
strId: string;
groupId: string;
groupName: string;
uid: string;
};
bid: number;
category: number;
createTime: string;
collectTime: string;
modifyTime: string;
sequence: string;
shareUrl: string;
customGroupId: number;
securityBeat: boolean;
summary: {
textSummary: null;
linkSummary: null;
gallerySummary: null;
audioSummary: null;
videoSummary: null;
fileSummary: null;
locationSummary: null;
richMediaSummary: {
title: string;
subTitle: string;
brief: string;
picList: never[];
contentType: number;
originalUri: string;
publisher: string;
richMediaVersion: number;
};
};
}[];
hasMore: boolean;
bottomTimeStamp: string;
};
};
_handle(payload: PayloadType): Promise<import("../../../napcat-core").GeneralCallResult & {
collectionSearchList: {
collectionItemList: Array<{
cid: string;
type: number;
status: number;
author: {
type: number;
numId: string;
strId: string;
groupId: string;
groupName: string;
uid: string;
};
bid: number;
category: number;
createTime: string;
collectTime: string;
modifyTime: string;
sequence: string;
shareUrl: string;
customGroupId: number;
securityBeat: boolean;
summary: {
textSummary: unknown;
linkSummary: unknown;
gallerySummary: unknown;
audioSummary: unknown;
videoSummary: unknown;
fileSummary: unknown;
locationSummary: unknown;
richMediaSummary: unknown;
};
}>;
hasMore: boolean;
bottomTimeStamp: string;
};
}>;
}
export {};
@@ -0,0 +1,19 @@
var trimmedEndIndex = require('./_trimmedEndIndex');
/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;
/**
* The base implementation of `_.trim`.
*
* @private
* @param {string} string The string to trim.
* @returns {string} Returns the trimmed string.
*/
function baseTrim(string) {
return string
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
: string;
}
module.exports = baseTrim;
@@ -0,0 +1,91 @@
{
"types": {
"problem": [],
"suggestion": [],
"layout": []
},
"deprecated": [],
"removed": [
{
"removed": "generator-star",
"replacedBy": [{ "rule": { "name": "generator-star-spacing" } }]
},
{
"removed": "global-strict",
"replacedBy": [{ "rule": { "name": "strict" } }]
},
{
"removed": "no-arrow-condition",
"replacedBy": [
{ "rule": { "name": "no-confusing-arrow" } },
{ "rule": { "name": "no-constant-condition" } }
]
},
{
"removed": "no-comma-dangle",
"replacedBy": [{ "rule": { "name": "comma-dangle" } }]
},
{
"removed": "no-empty-class",
"replacedBy": [{ "rule": { "name": "no-empty-character-class" } }]
},
{
"removed": "no-empty-label",
"replacedBy": [{ "rule": { "name": "no-labels" } }]
},
{
"removed": "no-extra-strict",
"replacedBy": [{ "rule": { "name": "strict" } }]
},
{
"removed": "no-reserved-keys",
"replacedBy": [{ "rule": { "name": "quote-props" } }]
},
{
"removed": "no-space-before-semi",
"replacedBy": [{ "rule": { "name": "semi-spacing" } }]
},
{
"removed": "no-wrap-func",
"replacedBy": [{ "rule": { "name": "no-extra-parens" } }]
},
{
"removed": "space-after-function-name",
"replacedBy": [{ "rule": { "name": "space-before-function-paren" } }]
},
{
"removed": "space-after-keywords",
"replacedBy": [{ "rule": { "name": "keyword-spacing" } }]
},
{
"removed": "space-before-function-parentheses",
"replacedBy": [{ "rule": { "name": "space-before-function-paren" } }]
},
{
"removed": "space-before-keywords",
"replacedBy": [{ "rule": { "name": "keyword-spacing" } }]
},
{
"removed": "space-in-brackets",
"replacedBy": [
{ "rule": { "name": "object-curly-spacing" } },
{ "rule": { "name": "array-bracket-spacing" } },
{ "rule": { "name": "computed-property-spacing" } }
]
},
{
"removed": "space-return-throw-case",
"replacedBy": [{ "rule": { "name": "keyword-spacing" } }]
},
{
"removed": "space-unary-word-ops",
"replacedBy": [{ "rule": { "name": "space-unary-ops" } }]
},
{
"removed": "spaced-line-comment",
"replacedBy": [{ "rule": { "name": "spaced-comment" } }]
},
{ "removed": "valid-jsdoc", "replacedBy": [] },
{ "removed": "require-jsdoc", "replacedBy": [] }
]
}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = getImplicitRoleForOl;
/**
* Returns the implicit role for an ol tag.
*/
function getImplicitRoleForOl() {
return 'list';
}
module.exports = exports.default;
@@ -0,0 +1 @@
{"version":3,"file":"resolveConstantValueBindingCallback.spec.d.ts","sourceRoot":"","sources":["../../../../src/resolution/calculations/resolveConstantValueBindingCallback.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = extractValueFromUnaryExpression;
/**
* Extractor function for a UnaryExpression type value node.
* A unary expression is an expression with a unary operator.
* For example, !"foobar" will evaluate to false, so this will return false.
*
* @param - value - AST Value object with type `UnaryExpression`
* @returns - The extracted value converted to correct type.
*/
function extractValueFromUnaryExpression(value) {
// eslint-disable-next-line global-require
var getValue = require('.').default;
var operator = value.operator,
argument = value.argument;
switch (operator) {
case '-':
return -getValue(argument);
case '+':
return +getValue(argument); // eslint-disable-line no-implicit-coercion
case '!':
return !getValue(argument);
case '~':
return ~getValue(argument); // eslint-disable-line no-bitwise
case 'delete':
// I believe delete statements evaluate to true.
return true;
case 'typeof':
case 'void':
default:
return undefined;
}
}
@@ -0,0 +1,14 @@
"use strict";
var _set_prototype_of = require("./_set_prototype_of.cjs");
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
if (superClass) _set_prototype_of._(subClass, superClass);
}
exports._ = _inherits;
@@ -0,0 +1,120 @@
var $4Z7CR$react = require("react");
var $4Z7CR$reactariautils = require("@react-aria/utils");
var $4Z7CR$reactstatelyutils = require("@react-stately/utils");
var $4Z7CR$reactarialabel = require("@react-aria/label");
var $4Z7CR$reactariafocus = require("@react-aria/focus");
var $4Z7CR$reactariaform = require("@react-aria/form");
var $4Z7CR$reactstatelyform = require("@react-stately/form");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useTextField", () => $9076f978e02df845$export$712718f7aec83d5);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $9076f978e02df845$export$712718f7aec83d5(props, ref) {
let { inputElementType: inputElementType = 'input', isDisabled: isDisabled = false, isRequired: isRequired = false, isReadOnly: isReadOnly = false, type: type = 'text', validationBehavior: validationBehavior = 'aria' } = props;
let [value, setValue] = (0, $4Z7CR$reactstatelyutils.useControlledState)(props.value, props.defaultValue || '', props.onChange);
let { focusableProps: focusableProps } = (0, $4Z7CR$reactariafocus.useFocusable)(props, ref);
let validationState = (0, $4Z7CR$reactstatelyform.useFormValidationState)({
...props,
value: value
});
let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;
let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $4Z7CR$reactarialabel.useField)({
...props,
isInvalid: isInvalid,
errorMessage: props.errorMessage || validationErrors
});
let domProps = (0, $4Z7CR$reactariautils.filterDOMProps)(props, {
labelable: true
});
const inputOnlyProps = {
type: type,
pattern: props.pattern
};
(0, $4Z7CR$reactariautils.useFormReset)(ref, value, setValue);
(0, $4Z7CR$reactariaform.useFormValidation)(props, validationState, ref);
(0, $4Z7CR$react.useEffect)(()=>{
// This works around a React/Chrome bug that prevents textarea elements from validating when controlled.
// We prevent React from updating defaultValue (i.e. children) of textarea when `value` changes,
// which causes Chrome to skip validation. Only updating `value` is ok in our case since our
// textareas are always controlled. React is planning on removing this synchronization in a
// future major version.
// https://github.com/facebook/react/issues/19474
// https://github.com/facebook/react/issues/11896
if (ref.current instanceof (0, $4Z7CR$reactariautils.getOwnerWindow)(ref.current).HTMLTextAreaElement) {
let input = ref.current;
Object.defineProperty(input, 'defaultValue', {
get: ()=>input.value,
set: ()=>{},
configurable: true
});
}
}, [
ref
]);
return {
labelProps: labelProps,
inputProps: (0, $4Z7CR$reactariautils.mergeProps)(domProps, inputElementType === 'input' ? inputOnlyProps : undefined, {
disabled: isDisabled,
readOnly: isReadOnly,
required: isRequired && validationBehavior === 'native',
'aria-required': isRequired && validationBehavior === 'aria' || undefined,
'aria-invalid': isInvalid || undefined,
'aria-errormessage': props['aria-errormessage'],
'aria-activedescendant': props['aria-activedescendant'],
'aria-autocomplete': props['aria-autocomplete'],
'aria-haspopup': props['aria-haspopup'],
value: value,
onChange: (e)=>setValue(e.target.value),
autoComplete: props.autoComplete,
autoCapitalize: props.autoCapitalize,
maxLength: props.maxLength,
minLength: props.minLength,
name: props.name,
placeholder: props.placeholder,
inputMode: props.inputMode,
// Clipboard events
onCopy: props.onCopy,
onCut: props.onCut,
onPaste: props.onPaste,
// Composition events
onCompositionEnd: props.onCompositionEnd,
onCompositionStart: props.onCompositionStart,
onCompositionUpdate: props.onCompositionUpdate,
// Selection events
onSelect: props.onSelect,
// Input events
onBeforeInput: props.onBeforeInput,
onInput: props.onInput,
...focusableProps,
...fieldProps
}),
descriptionProps: descriptionProps,
errorMessageProps: errorMessageProps,
isInvalid: isInvalid,
validationErrors: validationErrors,
validationDetails: validationDetails
};
}
//# sourceMappingURL=useTextField.main.js.map
@@ -0,0 +1,17 @@
"use strict";
const { stringifyValueForError } = require("./shared");
module.exports = function ({ ruleId, value }) {
return `
Configuration for rule "${ruleId}" is invalid. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule.
You passed '${stringifyValueForError(value, 4)}', which doesn't contain a valid severity.
If you're attempting to configure rule options, perhaps you meant:
"${ruleId}": ["error", ${stringifyValueForError(value, 8)}]
See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules.
`.trimStart();
};
@@ -0,0 +1,118 @@
# std-env
[![npm](https://img.shields.io/npm/dm/std-env.svg?style=flat-square)](http://npmjs.com/package/std-env)
[![npm](https://img.shields.io/npm/v/std-env.svg?style=flat-square)](http://npmjs.com/package/std-env)
[![bundlephobia](https://img.shields.io/bundlephobia/min/std-env/latest.svg?style=flat-square)](https://bundlephobia.com/result?p=std-env)
> Runtime agnostic JS utils
## Installation
```sh
# Using npm
npm i std-env
# Using pnpm
pnpm i std-env
# Using yarn
yarn add std-env
```
## Usage
```js
// ESM
import { env, isDevelopment, isProduction } from "std-env";
// CommonJS
const { env, isDevelopment, isProduction } = require("std-env");
```
## Flags
- `hasTTY`
- `hasWindow`
- `isDebug`
- `isDevelopment`
- `isLinux`
- `isMacOS`
- `isMinimal`
- `isProduction`
- `isTest`
- `isWindows`
- `platform`
- `isColorSupported`
- `nodeVersion`
- `nodeMajorVersion`
You can read more about how each flag works from [./src/flags.ts](./src/flags.ts).
## Provider Detection
`std-env` can automatically detect the current runtime provider based on environment variables.
You can use `isCI` and `platform` exports to detect it:
```ts
import { isCI, provider, providerInfo } from "std-env";
console.log({
isCI, // true
provider, // "github_actions"
providerInfo, // { name: "github_actions", isCI: true }
});
```
List of well known providers can be found from [./src/providers.ts](./src/providers.ts).
## Runtime Detection
`std-env` can automatically detect the current JavaScript runtime based on global variables, following the [WinterCG Runtime Keys proposal](https://runtime-keys.proposal.wintercg.org/):
```ts
import { runtime, runtimeInfo } from "std-env";
// "" | "node" | "deno" | "bun" | "workerd" ...
console.log(runtime);
// { name: "node" }
console.log(runtimeInfo);
```
You can also use individual named exports for each runtime detection:
> [!NOTE]
> When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.
>
> Use `runtime === "node"` if you need strict check for Node.js runtime.
- `isNode`
- `isBun`
- `isDeno`
- `isNetlify`
- `isEdgeLight`
- `isWorkerd`
- `isFastly`
List of well known providers can be found from [./src/runtimes.ts](./src/runtimes.ts).
## Platform-Agnostic `env`
`std-env` provides a lightweight proxy to access environment variables in a platform agnostic way.
```ts
import { env } from "std-env";
```
## Platform-Agnostic `process`
`std-env` provides a lightweight proxy to access [`process`](https://nodejs.org/api/process.html) object in a platform agnostic way.
```ts
import { process } from "std-env";
```
## License
MIT
@@ -0,0 +1,6 @@
"use strict";
function _array_with_holes(arr) {
if (Array.isArray(arr)) return arr;
}
exports._ = _array_with_holes;
@@ -0,0 +1,5 @@
import assertClassBrand from "./assertClassBrand.js";
function _classPrivateSetter(s, r, a, t) {
return r(assertClassBrand(s, a), t), t;
}
export { _classPrivateSetter as default };
@@ -0,0 +1,218 @@
import { TypeSystemPolicy } from '../../system/policy.mjs';
import { Kind, TransformKind } from '../../type/symbols/index.mjs';
import { TypeBoxError } from '../../type/error/index.mjs';
import { KeyOfPropertyKeys, KeyOfPropertyEntries } from '../../type/keyof/index.mjs';
import { Deref, Pushref } from '../deref/index.mjs';
import { Check } from '../check/index.mjs';
// ------------------------------------------------------------------
// ValueGuard
// ------------------------------------------------------------------
import { HasPropertyKey, IsObject, IsArray, IsValueType, IsUndefined as IsUndefinedValue } from '../guard/index.mjs';
// ------------------------------------------------------------------
// KindGuard
// ------------------------------------------------------------------
import { IsTransform, IsSchema, IsUndefined } from '../../type/guard/kind.mjs';
// ------------------------------------------------------------------
// Errors
// ------------------------------------------------------------------
// prettier-ignore
export class TransformEncodeCheckError extends TypeBoxError {
constructor(schema, value, error) {
super(`The encoded value does not match the expected schema`);
this.schema = schema;
this.value = value;
this.error = error;
}
}
// prettier-ignore
export class TransformEncodeError extends TypeBoxError {
constructor(schema, path, value, error) {
super(`${error instanceof Error ? error.message : 'Unknown error'}`);
this.schema = schema;
this.path = path;
this.value = value;
this.error = error;
}
}
// ------------------------------------------------------------------
// Encode
// ------------------------------------------------------------------
// prettier-ignore
function Default(schema, path, value) {
try {
return IsTransform(schema) ? schema[TransformKind].Encode(value) : value;
}
catch (error) {
throw new TransformEncodeError(schema, path, value, error);
}
}
// prettier-ignore
function FromArray(schema, references, path, value) {
const defaulted = Default(schema, path, value);
return IsArray(defaulted)
? defaulted.map((value, index) => Visit(schema.items, references, `${path}/${index}`, value))
: defaulted;
}
// prettier-ignore
function FromImport(schema, references, path, value) {
const additional = globalThis.Object.values(schema.$defs);
const target = schema.$defs[schema.$ref];
const result = Default(schema, path, value);
return Visit(target, [...references, ...additional], path, result);
}
// prettier-ignore
function FromIntersect(schema, references, path, value) {
const defaulted = Default(schema, path, value);
if (!IsObject(value) || IsValueType(value))
return defaulted;
const knownEntries = KeyOfPropertyEntries(schema);
const knownKeys = knownEntries.map(entry => entry[0]);
const knownProperties = { ...defaulted };
for (const [knownKey, knownSchema] of knownEntries)
if (knownKey in knownProperties) {
knownProperties[knownKey] = Visit(knownSchema, references, `${path}/${knownKey}`, knownProperties[knownKey]);
}
if (!IsTransform(schema.unevaluatedProperties)) {
return knownProperties;
}
const unknownKeys = Object.getOwnPropertyNames(knownProperties);
const unevaluatedProperties = schema.unevaluatedProperties;
const properties = { ...knownProperties };
for (const key of unknownKeys)
if (!knownKeys.includes(key)) {
properties[key] = Default(unevaluatedProperties, `${path}/${key}`, properties[key]);
}
return properties;
}
// prettier-ignore
function FromNot(schema, references, path, value) {
return Default(schema.not, path, Default(schema, path, value));
}
// prettier-ignore
function FromObject(schema, references, path, value) {
const defaulted = Default(schema, path, value);
if (!IsObject(defaulted))
return defaulted;
const knownKeys = KeyOfPropertyKeys(schema);
const knownProperties = { ...defaulted };
for (const key of knownKeys) {
if (!HasPropertyKey(knownProperties, key))
continue;
// if the property value is undefined, but the target is not, nor does it satisfy exact optional
// property policy, then we need to continue. This is a special case for optional property handling
// where a transforms wrapped in a optional modifiers should not run.
if (IsUndefinedValue(knownProperties[key]) && (!IsUndefined(schema.properties[key]) ||
TypeSystemPolicy.IsExactOptionalProperty(knownProperties, key)))
continue;
// encode property
knownProperties[key] = Visit(schema.properties[key], references, `${path}/${key}`, knownProperties[key]);
}
if (!IsSchema(schema.additionalProperties)) {
return knownProperties;
}
const unknownKeys = Object.getOwnPropertyNames(knownProperties);
const additionalProperties = schema.additionalProperties;
const properties = { ...knownProperties };
for (const key of unknownKeys)
if (!knownKeys.includes(key)) {
properties[key] = Default(additionalProperties, `${path}/${key}`, properties[key]);
}
return properties;
}
// prettier-ignore
function FromRecord(schema, references, path, value) {
const defaulted = Default(schema, path, value);
if (!IsObject(value))
return defaulted;
const pattern = Object.getOwnPropertyNames(schema.patternProperties)[0];
const knownKeys = new RegExp(pattern);
const knownProperties = { ...defaulted };
for (const key of Object.getOwnPropertyNames(value))
if (knownKeys.test(key)) {
knownProperties[key] = Visit(schema.patternProperties[pattern], references, `${path}/${key}`, knownProperties[key]);
}
if (!IsSchema(schema.additionalProperties)) {
return knownProperties;
}
const unknownKeys = Object.getOwnPropertyNames(knownProperties);
const additionalProperties = schema.additionalProperties;
const properties = { ...knownProperties };
for (const key of unknownKeys)
if (!knownKeys.test(key)) {
properties[key] = Default(additionalProperties, `${path}/${key}`, properties[key]);
}
return properties;
}
// prettier-ignore
function FromRef(schema, references, path, value) {
const target = Deref(schema, references);
const resolved = Visit(target, references, path, value);
return Default(schema, path, resolved);
}
// prettier-ignore
function FromThis(schema, references, path, value) {
const target = Deref(schema, references);
const resolved = Visit(target, references, path, value);
return Default(schema, path, resolved);
}
// prettier-ignore
function FromTuple(schema, references, path, value) {
const value1 = Default(schema, path, value);
return IsArray(schema.items) ? schema.items.map((schema, index) => Visit(schema, references, `${path}/${index}`, value1[index])) : [];
}
// prettier-ignore
function FromUnion(schema, references, path, value) {
// test value against union variants
for (const subschema of schema.anyOf) {
if (!Check(subschema, references, value))
continue;
const value1 = Visit(subschema, references, path, value);
return Default(schema, path, value1);
}
// test transformed value against union variants
for (const subschema of schema.anyOf) {
const value1 = Visit(subschema, references, path, value);
if (!Check(schema, references, value1))
continue;
return Default(schema, path, value1);
}
return Default(schema, path, value);
}
// prettier-ignore
function Visit(schema, references, path, value) {
const references_ = Pushref(schema, references);
const schema_ = schema;
switch (schema[Kind]) {
case 'Array':
return FromArray(schema_, references_, path, value);
case 'Import':
return FromImport(schema_, references_, path, value);
case 'Intersect':
return FromIntersect(schema_, references_, path, value);
case 'Not':
return FromNot(schema_, references_, path, value);
case 'Object':
return FromObject(schema_, references_, path, value);
case 'Record':
return FromRecord(schema_, references_, path, value);
case 'Ref':
return FromRef(schema_, references_, path, value);
case 'This':
return FromThis(schema_, references_, path, value);
case 'Tuple':
return FromTuple(schema_, references_, path, value);
case 'Union':
return FromUnion(schema_, references_, path, value);
default:
return Default(schema_, path, value);
}
}
/**
* `[Internal]` Encodes the value and returns the result. This function expects the
* caller to pass a statically checked value. This function does not check the encoded
* result, meaning the result should be passed to `Check` before use. Refer to the
* `Value.Encode()` function for implementation details.
*/
export function TransformEncode(schema, references, value) {
return Visit(schema, references, '', value);
}
@@ -0,0 +1 @@
module.exports={C:{"115":0.1747,"125":0.02096,"127":0.00699,"128":0.00699,"135":0.01398,"136":0.04892,"138":0.00699,"139":0.02096,"140":0.0559,"141":0.00699,"142":0.03494,"143":1.14603,"144":0.2935,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 137 145 146 147 3.5 3.6"},D:{"39":0.00699,"40":0.00699,"41":0.00699,"42":0.00699,"43":0.00699,"44":0.00699,"45":1.25085,"46":0.00699,"47":0.00699,"48":0.01398,"49":0.02795,"50":0.00699,"51":0.04193,"52":0.00699,"53":0.00699,"54":0.00699,"55":0.00699,"56":0.00699,"57":0.00699,"58":0.00699,"59":0.00699,"60":0.00699,"79":0.00699,"84":0.00699,"87":0.01398,"93":0.00699,"97":0.00699,"98":0.00699,"100":0.00699,"101":0.00699,"103":0.01398,"104":0.01398,"106":0.01398,"108":0.00699,"109":1.44652,"111":0.00699,"112":3.82942,"113":0.00699,"114":0.06988,"116":0.06289,"117":0.00699,"118":0.02096,"119":0.00699,"120":0.01398,"121":0.02096,"122":0.02795,"123":0.00699,"124":0.04892,"125":32.36143,"126":0.31446,"127":0.03494,"128":0.04892,"129":0.02795,"130":0.02096,"131":0.16771,"132":0.04193,"133":0.34241,"134":0.16072,"135":0.03494,"136":0.13976,"137":0.37735,"138":0.33542,"139":0.39832,"140":4.73786,"141":12.2849,"142":0.14675,"143":0.02096,_:"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 69 70 71 72 73 74 75 76 77 78 80 81 83 85 86 88 89 90 91 92 94 95 96 99 102 105 107 110 115 144 145"},F:{"83":0.00699,"90":0.01398,"91":0.00699,"92":0.00699,"95":0.02795,"116":0.00699,"119":0.01398,"120":0.13976,"121":0.03494,"122":0.78964,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00699,"109":0.02096,"114":0.06988,"131":0.00699,"132":0.00699,"133":0.04193,"134":0.06988,"135":0.00699,"137":0.02096,"138":0.08386,"139":0.01398,"140":0.25157,"141":1.67013,"142":0.00699,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 136"},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 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.5 26.2","11.1":0.00699,"14.1":0.00699,"15.6":0.07687,"16.0":0.00699,"16.1":0.00699,"16.2":0.00699,"16.3":0.01398,"16.4":0.00699,"16.6":0.06988,"17.0":0.00699,"17.1":0.02795,"17.2":0.01398,"17.3":0.02096,"17.4":0.04193,"17.5":0.03494,"17.6":0.07687,"18.0":0.02096,"18.1":0.01398,"18.2":0.25157,"18.3":0.1747,"18.4":0.06988,"18.5-18.6":0.39133,"26.0":0.50314,"26.1":0.00699},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00087,"5.0-5.1":0,"6.0-6.1":0.00346,"7.0-7.1":0.0026,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00779,"10.0-10.2":0.00087,"10.3":0.01472,"11.0-11.2":0.21814,"11.3-11.4":0.00519,"12.0-12.1":0.00173,"12.2-12.5":0.04242,"13.0-13.1":0,"13.2":0.00433,"13.3":0.00173,"13.4-13.7":0.00693,"14.0-14.4":0.01472,"14.5-14.8":0.01558,"15.0-15.1":0.01472,"15.2-15.3":0.01125,"15.4":0.01298,"15.5":0.01472,"15.6-15.8":0.19217,"16.0":0.02597,"16.1":0.04848,"16.2":0.0251,"16.3":0.04501,"16.4":0.01125,"16.5":0.01991,"16.6-16.7":0.2571,"17.0":0.01818,"17.1":0.0277,"17.2":0.01991,"17.3":0.02943,"17.4":0.05194,"17.5":0.08916,"17.6-17.7":0.22507,"18.0":0.05107,"18.1":0.10561,"18.2":0.05713,"18.3":0.18352,"18.4":0.09436,"18.5-18.6":4.81128,"26.0":0.5947,"26.1":0.02164},P:{"4":0.01026,"21":0.02051,"22":0.01026,"23":0.04103,"24":0.01026,"25":0.02051,"26":0.02051,"27":0.06154,"28":0.92307,"29":0.04103,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 19.0","7.2-7.4":0.01026,"14.0":0.01026,"18.0":0.01026},I:{"0":0.00902,"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.36662,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01677,"9":0.00839,"10":0.00839,"11":0.05031,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14156},Q:{"14.9":0.00301},O:{"0":0.04819},H:{"0":0.04},L:{"0":21.06128}};
@@ -0,0 +1,53 @@
var baseIteratee = require('./_baseIteratee'),
basePullAt = require('./_basePullAt');
/**
* Removes all elements from `array` that `predicate` returns truthy for
* and returns an array of the removed elements. The predicate is invoked
* with three arguments: (value, index, array).
*
* **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
* to pull elements from an array by value.
*
* @static
* @memberOf _
* @since 2.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the new array of removed elements.
* @example
*
* var array = [1, 2, 3, 4];
* var evens = _.remove(array, function(n) {
* return n % 2 == 0;
* });
*
* console.log(array);
* // => [1, 3]
*
* console.log(evens);
* // => [2, 4]
*/
function remove(array, predicate) {
var result = [];
if (!(array && array.length)) {
return result;
}
var index = -1,
indexes = [],
length = array.length;
predicate = baseIteratee(predicate, 3);
while (++index < length) {
var value = array[index];
if (predicate(value, index, array)) {
result.push(value);
indexes.push(index);
}
}
basePullAt(array, indexes);
return result;
}
module.exports = remove;
@@ -0,0 +1 @@
export { _ as default } from "../esm/_class_private_field_loose_base.js";
@@ -0,0 +1,19 @@
Copyright (c) 2010 Charlie Robbins
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,19 @@
import Module from '../core/module.js';
import Quill from '../core/quill.js';
export declare const TTL_FOR_VALID_SELECTION_CHANGE = 100;
declare class UINode extends Module {
isListening: boolean;
selectionChangeDeadline: number;
constructor(quill: Quill, options: Record<string, never>);
private handleArrowKeys;
private handleNavigationShortcuts;
/**
* We only listen to the `selectionchange` event when
* there is an intention of moving the caret to the beginning using shortcuts.
* This is primarily implemented to prevent infinite loops, as we are changing
* the selection within the handler of a `selectionchange` event.
*/
private ensureListeningToSelectionChange;
private handleSelectionChange;
}
export default UINode;
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_create_class.cjs",
"module": "../../esm/_create_class.js"
}
@@ -0,0 +1,261 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AssignmentExpression = AssignmentExpression;
exports.Binary = Binary;
exports.BinaryExpression = BinaryExpression;
exports.ClassExpression = ClassExpression;
exports.ArrowFunctionExpression = exports.ConditionalExpression = ConditionalExpression;
exports.DoExpression = DoExpression;
exports.FunctionExpression = FunctionExpression;
exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
exports.Identifier = Identifier;
exports.LogicalExpression = LogicalExpression;
exports.NullableTypeAnnotation = NullableTypeAnnotation;
exports.ObjectExpression = ObjectExpression;
exports.OptionalIndexedAccessType = OptionalIndexedAccessType;
exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression;
exports.SequenceExpression = SequenceExpression;
exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression;
exports.TSConditionalType = TSConditionalType;
exports.TSConstructorType = exports.TSFunctionType = TSFunctionType;
exports.TSInferType = TSInferType;
exports.TSInstantiationExpression = TSInstantiationExpression;
exports.TSIntersectionType = TSIntersectionType;
exports.UnaryLike = exports.TSTypeAssertion = UnaryLike;
exports.TSTypeOperator = TSTypeOperator;
exports.TSUnionType = TSUnionType;
exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation;
exports.UpdateExpression = UpdateExpression;
exports.AwaitExpression = exports.YieldExpression = YieldExpression;
var _t = require("@babel/types");
var _index = require("./index.js");
const {
isArrayTypeAnnotation,
isBinaryExpression,
isCallExpression,
isForOfStatement,
isIndexedAccessType,
isMemberExpression,
isObjectPattern,
isOptionalMemberExpression,
isYieldExpression,
isStatement
} = _t;
const PRECEDENCE = new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["!=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-", 8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]);
function getBinaryPrecedence(node, nodeType) {
if (nodeType === "BinaryExpression" || nodeType === "LogicalExpression") {
return PRECEDENCE.get(node.operator);
}
if (nodeType === "TSAsExpression" || nodeType === "TSSatisfiesExpression") {
return PRECEDENCE.get("in");
}
}
function isTSTypeExpression(nodeType) {
return nodeType === "TSAsExpression" || nodeType === "TSSatisfiesExpression" || nodeType === "TSTypeAssertion";
}
const isClassExtendsClause = (node, parent) => {
const parentType = parent.type;
return (parentType === "ClassDeclaration" || parentType === "ClassExpression") && parent.superClass === node;
};
const hasPostfixPart = (node, parent) => {
const parentType = parent.type;
return (parentType === "MemberExpression" || parentType === "OptionalMemberExpression") && parent.object === node || (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression") && parent.callee === node || parentType === "TaggedTemplateExpression" && parent.tag === node || parentType === "TSNonNullExpression";
};
function NullableTypeAnnotation(node, parent) {
return isArrayTypeAnnotation(parent);
}
function FunctionTypeAnnotation(node, parent, tokenContext) {
const parentType = parent.type;
return (parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || Boolean(tokenContext & _index.TokenContext.arrowFlowReturnType)
);
}
function UpdateExpression(node, parent) {
return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent);
}
function needsParenBeforeExpressionBrace(tokenContext) {
return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.arrowBody));
}
function ObjectExpression(node, parent, tokenContext) {
return needsParenBeforeExpressionBrace(tokenContext);
}
function DoExpression(node, parent, tokenContext) {
return !node.async && Boolean(tokenContext & _index.TokenContext.expressionStatement);
}
function Binary(node, parent) {
const parentType = parent.type;
if (node.type === "BinaryExpression" && node.operator === "**" && parentType === "BinaryExpression" && parent.operator === "**") {
return parent.left === node;
}
if (isClassExtendsClause(node, parent)) {
return true;
}
if (hasPostfixPart(node, parent) || parentType === "UnaryExpression" || parentType === "SpreadElement" || parentType === "AwaitExpression") {
return true;
}
const parentPos = getBinaryPrecedence(parent, parentType);
if (parentPos != null) {
const nodePos = getBinaryPrecedence(node, node.type);
if (parentPos === nodePos && parentType === "BinaryExpression" && parent.right === node || parentPos > nodePos) {
return true;
}
}
}
function UnionTypeAnnotation(node, parent) {
const parentType = parent.type;
return parentType === "ArrayTypeAnnotation" || parentType === "NullableTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "UnionTypeAnnotation";
}
function OptionalIndexedAccessType(node, parent) {
return isIndexedAccessType(parent) && parent.objectType === node;
}
function TSAsExpression(node, parent) {
if ((parent.type === "AssignmentExpression" || parent.type === "AssignmentPattern") && parent.left === node) {
return true;
}
if (parent.type === "BinaryExpression" && (parent.operator === "|" || parent.operator === "&") && node === parent.left) {
return true;
}
return Binary(node, parent);
}
function TSConditionalType(node, parent) {
const parentType = parent.type;
if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType" || parentType === "TSTypeOperator" || parentType === "TSTypeParameter") {
return true;
}
if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) {
return true;
}
if (parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node)) {
return true;
}
return false;
}
function TSUnionType(node, parent) {
const parentType = parent.type;
return parentType === "TSIntersectionType" || parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
}
function TSIntersectionType(node, parent) {
const parentType = parent.type;
return parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
}
function TSInferType(node, parent) {
const parentType = parent.type;
if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType") {
return true;
}
if (node.typeParameter.constraint) {
if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) {
return true;
}
}
return false;
}
function TSTypeOperator(node, parent) {
const parentType = parent.type;
return parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
}
function TSInstantiationExpression(node, parent) {
const parentType = parent.type;
return (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression" || parentType === "TSInstantiationExpression") && !!parent.typeParameters;
}
function TSFunctionType(node, parent) {
const parentType = parent.type;
return parentType === "TSIntersectionType" || parentType === "TSUnionType" || parentType === "TSTypeOperator" || parentType === "TSOptionalType" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node);
}
function BinaryExpression(node, parent, tokenContext) {
return node.operator === "in" && Boolean(tokenContext & _index.TokenContext.forInOrInitHeadAccumulate);
}
function SequenceExpression(node, parent) {
const parentType = parent.type;
if (parentType === "SequenceExpression" || parentType === "ParenthesizedExpression" || parentType === "MemberExpression" && parent.property === node || parentType === "OptionalMemberExpression" && parent.property === node || parentType === "TemplateLiteral") {
return false;
}
if (parentType === "ClassDeclaration") {
return true;
}
if (parentType === "ForOfStatement") {
return parent.right === node;
}
if (parentType === "ExportDefaultDeclaration") {
return true;
}
return !isStatement(parent);
}
function YieldExpression(node, parent) {
const parentType = parent.type;
return parentType === "BinaryExpression" || parentType === "LogicalExpression" || parentType === "UnaryExpression" || parentType === "SpreadElement" || hasPostfixPart(node, parent) || parentType === "AwaitExpression" && isYieldExpression(node) || parentType === "ConditionalExpression" && node === parent.test || isClassExtendsClause(node, parent) || isTSTypeExpression(parentType);
}
function ClassExpression(node, parent, tokenContext) {
return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.exportDefault));
}
function UnaryLike(node, parent) {
return hasPostfixPart(node, parent) || isBinaryExpression(parent) && parent.operator === "**" && parent.left === node || isClassExtendsClause(node, parent);
}
function FunctionExpression(node, parent, tokenContext) {
return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.exportDefault));
}
function ConditionalExpression(node, parent) {
const parentType = parent.type;
if (parentType === "UnaryExpression" || parentType === "SpreadElement" || parentType === "BinaryExpression" || parentType === "LogicalExpression" || parentType === "ConditionalExpression" && parent.test === node || parentType === "AwaitExpression" || isTSTypeExpression(parentType)) {
return true;
}
return UnaryLike(node, parent);
}
function OptionalMemberExpression(node, parent) {
return isCallExpression(parent) && parent.callee === node || isMemberExpression(parent) && parent.object === node;
}
function AssignmentExpression(node, parent, tokenContext) {
if (needsParenBeforeExpressionBrace(tokenContext) && isObjectPattern(node.left)) {
return true;
} else {
return ConditionalExpression(node, parent);
}
}
function LogicalExpression(node, parent) {
const parentType = parent.type;
if (isTSTypeExpression(parentType)) return true;
if (parentType !== "LogicalExpression") return false;
switch (node.operator) {
case "||":
return parent.operator === "??" || parent.operator === "&&";
case "&&":
return parent.operator === "??";
case "??":
return parent.operator !== "??";
}
}
function Identifier(node, parent, tokenContext, getRawIdentifier) {
var _node$extra;
const parentType = parent.type;
if ((_node$extra = node.extra) != null && _node$extra.parenthesized && parentType === "AssignmentExpression" && parent.left === node) {
const rightType = parent.right.type;
if ((rightType === "FunctionExpression" || rightType === "ClassExpression") && parent.right.id == null) {
return true;
}
}
if (getRawIdentifier && getRawIdentifier(node) !== node.name) {
return false;
}
if (node.name === "let") {
const isFollowedByBracket = isMemberExpression(parent, {
object: node,
computed: true
}) || isOptionalMemberExpression(parent, {
object: node,
computed: true,
optional: false
});
if (isFollowedByBracket && tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.forInitHead | _index.TokenContext.forInHead)) {
return true;
}
return Boolean(tokenContext & _index.TokenContext.forOfHead);
}
return node.name === "async" && isForOfStatement(parent, {
left: node,
await: false
});
}
//# sourceMappingURL=parentheses.js.map
@@ -0,0 +1,14 @@
module.exports = {
"ascending": `\u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
"ascendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
"columnSize": (args)=>`${args.value} \u{43F}\u{456}\u{43A}\u{441}.`,
"descending": `\u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
"descendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
"resizerDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{437}\u{43C}\u{456}\u{43D}\u{443} \u{440}\u{43E}\u{437}\u{43C}\u{456}\u{440}\u{443}`,
"select": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438}`,
"selectAll": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438} \u{432}\u{441}\u{435}`,
"sortable": `\u{441}\u{43E}\u{440}\u{442}\u{443}\u{432}\u{430}\u{43B}\u{44C}\u{43D}\u{438}\u{439} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{435}\u{446}\u{44C}`
};
//# sourceMappingURL=uk-UA.main.js.map
@@ -0,0 +1,2 @@
declare const equal: (a: any, b: any) => boolean;
export = equal;
@@ -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("./void"), exports);
@@ -0,0 +1,61 @@
/*
* Copyright 2024 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
import {getItemElement} from './utils';
import {Key, LayoutDelegate, Rect, RefObject, Size} from '@react-types/shared';
export class DOMLayoutDelegate implements LayoutDelegate {
private ref: RefObject<HTMLElement | null>;
constructor(ref: RefObject<HTMLElement | null>) {
this.ref = ref;
}
getItemRect(key: Key): Rect | null {
let container = this.ref.current;
if (!container) {
return null;
}
let item = key != null ? getItemElement(this.ref, key) : null;
if (!item) {
return null;
}
let containerRect = container.getBoundingClientRect();
let itemRect = item.getBoundingClientRect();
return {
x: itemRect.left - containerRect.left - container.clientLeft + container.scrollLeft,
y: itemRect.top - containerRect.top - container.clientTop + container.scrollTop,
width: itemRect.width,
height: itemRect.height
};
}
getContentSize(): Size {
let container = this.ref.current;
return {
width: container?.scrollWidth ?? 0,
height: container?.scrollHeight ?? 0
};
}
getVisibleRect(): Rect {
let container = this.ref.current;
return {
x: container?.scrollLeft ?? 0,
y: container?.scrollTop ?? 0,
width: container?.clientWidth ?? 0,
height: container?.clientHeight ?? 0
};
}
}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB 0C 1C","194":"gB hB iB jB kB lB"},D:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},E:{"1":"A B C L M G aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F 2C ZC 3C 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 F B C G N O P aB FD GD HD ID NC uC JD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD QD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:5,C:"CSS Font Loading",D:true};
@@ -0,0 +1,5 @@
export { default as UploadForwardMsg } from './UploadForwardMsg';
export { default as FetchGroupMessage } from './FetchGroupMessage';
export { default as FetchC2CMessage } from './FetchC2CMessage';
export { default as DownloadForwardMsg } from './DownloadForwardMsg';
export { default as UploadForwardMsgV2 } from './UploadForwardMsgV2';
@@ -0,0 +1,39 @@
// Faroese [fo]
import dayjs from '../index';
var locale = {
name: 'fo',
weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
weekStart: 1,
weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
weekdaysMin: 'su_má_tý_mi_hó_fr_le'.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: 'um %s',
past: '%s síðani',
s: 'fá sekund',
m: 'ein minuttur',
mm: '%d minuttir',
h: 'ein tími',
hh: '%d tímar',
d: 'ein dagur',
dd: '%d dagar',
M: 'ein mánaður',
MM: '%d mánaðir',
y: 'eitt ár',
yy: '%d ár'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1 @@
export { _ as default } from "../esm/_create_for_of_iterator_helper_loose.js";
@@ -0,0 +1,15 @@
"use client";
import {
Form
} from "./chunk-6AYLJCAO.mjs";
import {
FormContext
} from "./chunk-SLABUSGS.mjs";
import {
useSlottedContext
} from "./chunk-BSTJ7ZCN.mjs";
export {
Form,
FormContext,
useSlottedContext
};
@@ -0,0 +1,974 @@
// THIS FILE IS AUTO GENERATED
import type { IconType } from '../lib/index'
export declare const HiAcademicCap: IconType;
export declare const HiAdjustmentsHorizontal: IconType;
export declare const HiAdjustmentsVertical: IconType;
export declare const HiArchiveBoxArrowDown: IconType;
export declare const HiArchiveBoxXMark: IconType;
export declare const HiArchiveBox: IconType;
export declare const HiArrowDownCircle: IconType;
export declare const HiArrowDownLeft: IconType;
export declare const HiArrowDownOnSquareStack: IconType;
export declare const HiArrowDownOnSquare: IconType;
export declare const HiArrowDownRight: IconType;
export declare const HiArrowDownTray: IconType;
export declare const HiArrowDown: IconType;
export declare const HiArrowLeftCircle: IconType;
export declare const HiArrowLeftEndOnRectangle: IconType;
export declare const HiArrowLeftOnRectangle: IconType;
export declare const HiArrowLeftStartOnRectangle: IconType;
export declare const HiArrowLeft: IconType;
export declare const HiArrowLongDown: IconType;
export declare const HiArrowLongLeft: IconType;
export declare const HiArrowLongRight: IconType;
export declare const HiArrowLongUp: IconType;
export declare const HiArrowPathRoundedSquare: IconType;
export declare const HiArrowPath: IconType;
export declare const HiArrowRightCircle: IconType;
export declare const HiArrowRightEndOnRectangle: IconType;
export declare const HiArrowRightOnRectangle: IconType;
export declare const HiArrowRightStartOnRectangle: IconType;
export declare const HiArrowRight: IconType;
export declare const HiArrowSmallDown: IconType;
export declare const HiArrowSmallLeft: IconType;
export declare const HiArrowSmallRight: IconType;
export declare const HiArrowSmallUp: IconType;
export declare const HiArrowTopRightOnSquare: IconType;
export declare const HiArrowTrendingDown: IconType;
export declare const HiArrowTrendingUp: IconType;
export declare const HiArrowTurnDownLeft: IconType;
export declare const HiArrowTurnDownRight: IconType;
export declare const HiArrowTurnLeftDown: IconType;
export declare const HiArrowTurnLeftUp: IconType;
export declare const HiArrowTurnRightDown: IconType;
export declare const HiArrowTurnRightUp: IconType;
export declare const HiArrowTurnUpLeft: IconType;
export declare const HiArrowTurnUpRight: IconType;
export declare const HiArrowUpCircle: IconType;
export declare const HiArrowUpLeft: IconType;
export declare const HiArrowUpOnSquareStack: IconType;
export declare const HiArrowUpOnSquare: IconType;
export declare const HiArrowUpRight: IconType;
export declare const HiArrowUpTray: IconType;
export declare const HiArrowUp: IconType;
export declare const HiArrowUturnDown: IconType;
export declare const HiArrowUturnLeft: IconType;
export declare const HiArrowUturnRight: IconType;
export declare const HiArrowUturnUp: IconType;
export declare const HiArrowsPointingIn: IconType;
export declare const HiArrowsPointingOut: IconType;
export declare const HiArrowsRightLeft: IconType;
export declare const HiArrowsUpDown: IconType;
export declare const HiAtSymbol: IconType;
export declare const HiBackspace: IconType;
export declare const HiBackward: IconType;
export declare const HiBanknotes: IconType;
export declare const HiBars2: IconType;
export declare const HiBars3BottomLeft: IconType;
export declare const HiBars3BottomRight: IconType;
export declare const HiBars3CenterLeft: IconType;
export declare const HiBars3: IconType;
export declare const HiBars4: IconType;
export declare const HiBarsArrowDown: IconType;
export declare const HiBarsArrowUp: IconType;
export declare const HiBattery0: IconType;
export declare const HiBattery100: IconType;
export declare const HiBattery50: IconType;
export declare const HiBeaker: IconType;
export declare const HiBellAlert: IconType;
export declare const HiBellSlash: IconType;
export declare const HiBellSnooze: IconType;
export declare const HiBell: IconType;
export declare const HiBold: IconType;
export declare const HiBoltSlash: IconType;
export declare const HiBolt: IconType;
export declare const HiBookOpen: IconType;
export declare const HiBookmarkSlash: IconType;
export declare const HiBookmarkSquare: IconType;
export declare const HiBookmark: IconType;
export declare const HiBriefcase: IconType;
export declare const HiBugAnt: IconType;
export declare const HiBuildingLibrary: IconType;
export declare const HiBuildingOffice2: IconType;
export declare const HiBuildingOffice: IconType;
export declare const HiBuildingStorefront: IconType;
export declare const HiCake: IconType;
export declare const HiCalculator: IconType;
export declare const HiCalendarDateRange: IconType;
export declare const HiCalendarDays: IconType;
export declare const HiCalendar: IconType;
export declare const HiCamera: IconType;
export declare const HiChartBarSquare: IconType;
export declare const HiChartBar: IconType;
export declare const HiChartPie: IconType;
export declare const HiChatBubbleBottomCenterText: IconType;
export declare const HiChatBubbleBottomCenter: IconType;
export declare const HiChatBubbleLeftEllipsis: IconType;
export declare const HiChatBubbleLeftRight: IconType;
export declare const HiChatBubbleLeft: IconType;
export declare const HiChatBubbleOvalLeftEllipsis: IconType;
export declare const HiChatBubbleOvalLeft: IconType;
export declare const HiCheckBadge: IconType;
export declare const HiCheckCircle: IconType;
export declare const HiCheck: IconType;
export declare const HiChevronDoubleDown: IconType;
export declare const HiChevronDoubleLeft: IconType;
export declare const HiChevronDoubleRight: IconType;
export declare const HiChevronDoubleUp: IconType;
export declare const HiChevronDown: IconType;
export declare const HiChevronLeft: IconType;
export declare const HiChevronRight: IconType;
export declare const HiChevronUpDown: IconType;
export declare const HiChevronUp: IconType;
export declare const HiCircleStack: IconType;
export declare const HiClipboardDocumentCheck: IconType;
export declare const HiClipboardDocumentList: IconType;
export declare const HiClipboardDocument: IconType;
export declare const HiClipboard: IconType;
export declare const HiClock: IconType;
export declare const HiCloudArrowDown: IconType;
export declare const HiCloudArrowUp: IconType;
export declare const HiCloud: IconType;
export declare const HiCodeBracketSquare: IconType;
export declare const HiCodeBracket: IconType;
export declare const HiCog6Tooth: IconType;
export declare const HiCog8Tooth: IconType;
export declare const HiCog: IconType;
export declare const HiCommandLine: IconType;
export declare const HiComputerDesktop: IconType;
export declare const HiCpuChip: IconType;
export declare const HiCreditCard: IconType;
export declare const HiCubeTransparent: IconType;
export declare const HiCube: IconType;
export declare const HiCurrencyBangladeshi: IconType;
export declare const HiCurrencyDollar: IconType;
export declare const HiCurrencyEuro: IconType;
export declare const HiCurrencyPound: IconType;
export declare const HiCurrencyRupee: IconType;
export declare const HiCurrencyYen: IconType;
export declare const HiCursorArrowRays: IconType;
export declare const HiCursorArrowRipple: IconType;
export declare const HiDevicePhoneMobile: IconType;
export declare const HiDeviceTablet: IconType;
export declare const HiDivide: IconType;
export declare const HiDocumentArrowDown: IconType;
export declare const HiDocumentArrowUp: IconType;
export declare const HiDocumentChartBar: IconType;
export declare const HiDocumentCheck: IconType;
export declare const HiDocumentCurrencyBangladeshi: IconType;
export declare const HiDocumentCurrencyDollar: IconType;
export declare const HiDocumentCurrencyEuro: IconType;
export declare const HiDocumentCurrencyPound: IconType;
export declare const HiDocumentCurrencyRupee: IconType;
export declare const HiDocumentCurrencyYen: IconType;
export declare const HiDocumentDuplicate: IconType;
export declare const HiDocumentMagnifyingGlass: IconType;
export declare const HiDocumentMinus: IconType;
export declare const HiDocumentPlus: IconType;
export declare const HiDocumentText: IconType;
export declare const HiDocument: IconType;
export declare const HiEllipsisHorizontalCircle: IconType;
export declare const HiEllipsisHorizontal: IconType;
export declare const HiEllipsisVertical: IconType;
export declare const HiEnvelopeOpen: IconType;
export declare const HiEnvelope: IconType;
export declare const HiEquals: IconType;
export declare const HiExclamationCircle: IconType;
export declare const HiExclamationTriangle: IconType;
export declare const HiEyeDropper: IconType;
export declare const HiEyeSlash: IconType;
export declare const HiEye: IconType;
export declare const HiFaceFrown: IconType;
export declare const HiFaceSmile: IconType;
export declare const HiFilm: IconType;
export declare const HiFingerPrint: IconType;
export declare const HiFire: IconType;
export declare const HiFlag: IconType;
export declare const HiFolderArrowDown: IconType;
export declare const HiFolderMinus: IconType;
export declare const HiFolderOpen: IconType;
export declare const HiFolderPlus: IconType;
export declare const HiFolder: IconType;
export declare const HiForward: IconType;
export declare const HiFunnel: IconType;
export declare const HiGif: IconType;
export declare const HiGiftTop: IconType;
export declare const HiGift: IconType;
export declare const HiGlobeAlt: IconType;
export declare const HiGlobeAmericas: IconType;
export declare const HiGlobeAsiaAustralia: IconType;
export declare const HiGlobeEuropeAfrica: IconType;
export declare const HiH1: IconType;
export declare const HiH2: IconType;
export declare const HiH3: IconType;
export declare const HiHandRaised: IconType;
export declare const HiHandThumbDown: IconType;
export declare const HiHandThumbUp: IconType;
export declare const HiHashtag: IconType;
export declare const HiHeart: IconType;
export declare const HiHomeModern: IconType;
export declare const HiHome: IconType;
export declare const HiIdentification: IconType;
export declare const HiInboxArrowDown: IconType;
export declare const HiInboxStack: IconType;
export declare const HiInbox: IconType;
export declare const HiInformationCircle: IconType;
export declare const HiItalic: IconType;
export declare const HiKey: IconType;
export declare const HiLanguage: IconType;
export declare const HiLifebuoy: IconType;
export declare const HiLightBulb: IconType;
export declare const HiLinkSlash: IconType;
export declare const HiLink: IconType;
export declare const HiListBullet: IconType;
export declare const HiLockClosed: IconType;
export declare const HiLockOpen: IconType;
export declare const HiMagnifyingGlassCircle: IconType;
export declare const HiMagnifyingGlassMinus: IconType;
export declare const HiMagnifyingGlassPlus: IconType;
export declare const HiMagnifyingGlass: IconType;
export declare const HiMapPin: IconType;
export declare const HiMap: IconType;
export declare const HiMegaphone: IconType;
export declare const HiMicrophone: IconType;
export declare const HiMinusCircle: IconType;
export declare const HiMinusSmall: IconType;
export declare const HiMinus: IconType;
export declare const HiMoon: IconType;
export declare const HiMusicalNote: IconType;
export declare const HiNewspaper: IconType;
export declare const HiNoSymbol: IconType;
export declare const HiNumberedList: IconType;
export declare const HiPaintBrush: IconType;
export declare const HiPaperAirplane: IconType;
export declare const HiPaperClip: IconType;
export declare const HiPauseCircle: IconType;
export declare const HiPause: IconType;
export declare const HiPencilSquare: IconType;
export declare const HiPencil: IconType;
export declare const HiPercentBadge: IconType;
export declare const HiPhoneArrowDownLeft: IconType;
export declare const HiPhoneArrowUpRight: IconType;
export declare const HiPhoneXMark: IconType;
export declare const HiPhone: IconType;
export declare const HiPhoto: IconType;
export declare const HiPlayCircle: IconType;
export declare const HiPlayPause: IconType;
export declare const HiPlay: IconType;
export declare const HiPlusCircle: IconType;
export declare const HiPlusSmall: IconType;
export declare const HiPlus: IconType;
export declare const HiPower: IconType;
export declare const HiPresentationChartBar: IconType;
export declare const HiPresentationChartLine: IconType;
export declare const HiPrinter: IconType;
export declare const HiPuzzlePiece: IconType;
export declare const HiQrCode: IconType;
export declare const HiQuestionMarkCircle: IconType;
export declare const HiQueueList: IconType;
export declare const HiRadio: IconType;
export declare const HiReceiptPercent: IconType;
export declare const HiReceiptRefund: IconType;
export declare const HiRectangleGroup: IconType;
export declare const HiRectangleStack: IconType;
export declare const HiRocketLaunch: IconType;
export declare const HiRss: IconType;
export declare const HiScale: IconType;
export declare const HiScissors: IconType;
export declare const HiServerStack: IconType;
export declare const HiServer: IconType;
export declare const HiShare: IconType;
export declare const HiShieldCheck: IconType;
export declare const HiShieldExclamation: IconType;
export declare const HiShoppingBag: IconType;
export declare const HiShoppingCart: IconType;
export declare const HiSignalSlash: IconType;
export declare const HiSignal: IconType;
export declare const HiSlash: IconType;
export declare const HiSparkles: IconType;
export declare const HiSpeakerWave: IconType;
export declare const HiSpeakerXMark: IconType;
export declare const HiSquare2Stack: IconType;
export declare const HiSquare3Stack3D: IconType;
export declare const HiSquares2X2: IconType;
export declare const HiSquaresPlus: IconType;
export declare const HiStar: IconType;
export declare const HiStopCircle: IconType;
export declare const HiStop: IconType;
export declare const HiStrikethrough: IconType;
export declare const HiSun: IconType;
export declare const HiSwatch: IconType;
export declare const HiTableCells: IconType;
export declare const HiTag: IconType;
export declare const HiTicket: IconType;
export declare const HiTrash: IconType;
export declare const HiTrophy: IconType;
export declare const HiTruck: IconType;
export declare const HiTv: IconType;
export declare const HiUnderline: IconType;
export declare const HiUserCircle: IconType;
export declare const HiUserGroup: IconType;
export declare const HiUserMinus: IconType;
export declare const HiUserPlus: IconType;
export declare const HiUser: IconType;
export declare const HiUsers: IconType;
export declare const HiVariable: IconType;
export declare const HiVideoCameraSlash: IconType;
export declare const HiVideoCamera: IconType;
export declare const HiViewColumns: IconType;
export declare const HiViewfinderCircle: IconType;
export declare const HiWallet: IconType;
export declare const HiWifi: IconType;
export declare const HiWindow: IconType;
export declare const HiWrenchScrewdriver: IconType;
export declare const HiWrench: IconType;
export declare const HiXCircle: IconType;
export declare const HiXMark: IconType;
export declare const HiOutlineAcademicCap: IconType;
export declare const HiOutlineAdjustmentsHorizontal: IconType;
export declare const HiOutlineAdjustmentsVertical: IconType;
export declare const HiOutlineArchiveBoxArrowDown: IconType;
export declare const HiOutlineArchiveBoxXMark: IconType;
export declare const HiOutlineArchiveBox: IconType;
export declare const HiOutlineArrowDownCircle: IconType;
export declare const HiOutlineArrowDownLeft: IconType;
export declare const HiOutlineArrowDownOnSquareStack: IconType;
export declare const HiOutlineArrowDownOnSquare: IconType;
export declare const HiOutlineArrowDownRight: IconType;
export declare const HiOutlineArrowDownTray: IconType;
export declare const HiOutlineArrowDown: IconType;
export declare const HiOutlineArrowLeftCircle: IconType;
export declare const HiOutlineArrowLeftEndOnRectangle: IconType;
export declare const HiOutlineArrowLeftOnRectangle: IconType;
export declare const HiOutlineArrowLeftStartOnRectangle: IconType;
export declare const HiOutlineArrowLeft: IconType;
export declare const HiOutlineArrowLongDown: IconType;
export declare const HiOutlineArrowLongLeft: IconType;
export declare const HiOutlineArrowLongRight: IconType;
export declare const HiOutlineArrowLongUp: IconType;
export declare const HiOutlineArrowPathRoundedSquare: IconType;
export declare const HiOutlineArrowPath: IconType;
export declare const HiOutlineArrowRightCircle: IconType;
export declare const HiOutlineArrowRightEndOnRectangle: IconType;
export declare const HiOutlineArrowRightOnRectangle: IconType;
export declare const HiOutlineArrowRightStartOnRectangle: IconType;
export declare const HiOutlineArrowRight: IconType;
export declare const HiOutlineArrowSmallDown: IconType;
export declare const HiOutlineArrowSmallLeft: IconType;
export declare const HiOutlineArrowSmallRight: IconType;
export declare const HiOutlineArrowSmallUp: IconType;
export declare const HiOutlineArrowTopRightOnSquare: IconType;
export declare const HiOutlineArrowTrendingDown: IconType;
export declare const HiOutlineArrowTrendingUp: IconType;
export declare const HiOutlineArrowTurnDownLeft: IconType;
export declare const HiOutlineArrowTurnDownRight: IconType;
export declare const HiOutlineArrowTurnLeftDown: IconType;
export declare const HiOutlineArrowTurnLeftUp: IconType;
export declare const HiOutlineArrowTurnRightDown: IconType;
export declare const HiOutlineArrowTurnRightUp: IconType;
export declare const HiOutlineArrowTurnUpLeft: IconType;
export declare const HiOutlineArrowTurnUpRight: IconType;
export declare const HiOutlineArrowUpCircle: IconType;
export declare const HiOutlineArrowUpLeft: IconType;
export declare const HiOutlineArrowUpOnSquareStack: IconType;
export declare const HiOutlineArrowUpOnSquare: IconType;
export declare const HiOutlineArrowUpRight: IconType;
export declare const HiOutlineArrowUpTray: IconType;
export declare const HiOutlineArrowUp: IconType;
export declare const HiOutlineArrowUturnDown: IconType;
export declare const HiOutlineArrowUturnLeft: IconType;
export declare const HiOutlineArrowUturnRight: IconType;
export declare const HiOutlineArrowUturnUp: IconType;
export declare const HiOutlineArrowsPointingIn: IconType;
export declare const HiOutlineArrowsPointingOut: IconType;
export declare const HiOutlineArrowsRightLeft: IconType;
export declare const HiOutlineArrowsUpDown: IconType;
export declare const HiOutlineAtSymbol: IconType;
export declare const HiOutlineBackspace: IconType;
export declare const HiOutlineBackward: IconType;
export declare const HiOutlineBanknotes: IconType;
export declare const HiOutlineBars2: IconType;
export declare const HiOutlineBars3BottomLeft: IconType;
export declare const HiOutlineBars3BottomRight: IconType;
export declare const HiOutlineBars3CenterLeft: IconType;
export declare const HiOutlineBars3: IconType;
export declare const HiOutlineBars4: IconType;
export declare const HiOutlineBarsArrowDown: IconType;
export declare const HiOutlineBarsArrowUp: IconType;
export declare const HiOutlineBattery0: IconType;
export declare const HiOutlineBattery100: IconType;
export declare const HiOutlineBattery50: IconType;
export declare const HiOutlineBeaker: IconType;
export declare const HiOutlineBellAlert: IconType;
export declare const HiOutlineBellSlash: IconType;
export declare const HiOutlineBellSnooze: IconType;
export declare const HiOutlineBell: IconType;
export declare const HiOutlineBold: IconType;
export declare const HiOutlineBoltSlash: IconType;
export declare const HiOutlineBolt: IconType;
export declare const HiOutlineBookOpen: IconType;
export declare const HiOutlineBookmarkSlash: IconType;
export declare const HiOutlineBookmarkSquare: IconType;
export declare const HiOutlineBookmark: IconType;
export declare const HiOutlineBriefcase: IconType;
export declare const HiOutlineBugAnt: IconType;
export declare const HiOutlineBuildingLibrary: IconType;
export declare const HiOutlineBuildingOffice2: IconType;
export declare const HiOutlineBuildingOffice: IconType;
export declare const HiOutlineBuildingStorefront: IconType;
export declare const HiOutlineCake: IconType;
export declare const HiOutlineCalculator: IconType;
export declare const HiOutlineCalendarDateRange: IconType;
export declare const HiOutlineCalendarDays: IconType;
export declare const HiOutlineCalendar: IconType;
export declare const HiOutlineCamera: IconType;
export declare const HiOutlineChartBarSquare: IconType;
export declare const HiOutlineChartBar: IconType;
export declare const HiOutlineChartPie: IconType;
export declare const HiOutlineChatBubbleBottomCenterText: IconType;
export declare const HiOutlineChatBubbleBottomCenter: IconType;
export declare const HiOutlineChatBubbleLeftEllipsis: IconType;
export declare const HiOutlineChatBubbleLeftRight: IconType;
export declare const HiOutlineChatBubbleLeft: IconType;
export declare const HiOutlineChatBubbleOvalLeftEllipsis: IconType;
export declare const HiOutlineChatBubbleOvalLeft: IconType;
export declare const HiOutlineCheckBadge: IconType;
export declare const HiOutlineCheckCircle: IconType;
export declare const HiOutlineCheck: IconType;
export declare const HiOutlineChevronDoubleDown: IconType;
export declare const HiOutlineChevronDoubleLeft: IconType;
export declare const HiOutlineChevronDoubleRight: IconType;
export declare const HiOutlineChevronDoubleUp: IconType;
export declare const HiOutlineChevronDown: IconType;
export declare const HiOutlineChevronLeft: IconType;
export declare const HiOutlineChevronRight: IconType;
export declare const HiOutlineChevronUpDown: IconType;
export declare const HiOutlineChevronUp: IconType;
export declare const HiOutlineCircleStack: IconType;
export declare const HiOutlineClipboardDocumentCheck: IconType;
export declare const HiOutlineClipboardDocumentList: IconType;
export declare const HiOutlineClipboardDocument: IconType;
export declare const HiOutlineClipboard: IconType;
export declare const HiOutlineClock: IconType;
export declare const HiOutlineCloudArrowDown: IconType;
export declare const HiOutlineCloudArrowUp: IconType;
export declare const HiOutlineCloud: IconType;
export declare const HiOutlineCodeBracketSquare: IconType;
export declare const HiOutlineCodeBracket: IconType;
export declare const HiOutlineCog6Tooth: IconType;
export declare const HiOutlineCog8Tooth: IconType;
export declare const HiOutlineCog: IconType;
export declare const HiOutlineCommandLine: IconType;
export declare const HiOutlineComputerDesktop: IconType;
export declare const HiOutlineCpuChip: IconType;
export declare const HiOutlineCreditCard: IconType;
export declare const HiOutlineCubeTransparent: IconType;
export declare const HiOutlineCube: IconType;
export declare const HiOutlineCurrencyBangladeshi: IconType;
export declare const HiOutlineCurrencyDollar: IconType;
export declare const HiOutlineCurrencyEuro: IconType;
export declare const HiOutlineCurrencyPound: IconType;
export declare const HiOutlineCurrencyRupee: IconType;
export declare const HiOutlineCurrencyYen: IconType;
export declare const HiOutlineCursorArrowRays: IconType;
export declare const HiOutlineCursorArrowRipple: IconType;
export declare const HiOutlineDevicePhoneMobile: IconType;
export declare const HiOutlineDeviceTablet: IconType;
export declare const HiOutlineDivide: IconType;
export declare const HiOutlineDocumentArrowDown: IconType;
export declare const HiOutlineDocumentArrowUp: IconType;
export declare const HiOutlineDocumentChartBar: IconType;
export declare const HiOutlineDocumentCheck: IconType;
export declare const HiOutlineDocumentCurrencyBangladeshi: IconType;
export declare const HiOutlineDocumentCurrencyDollar: IconType;
export declare const HiOutlineDocumentCurrencyEuro: IconType;
export declare const HiOutlineDocumentCurrencyPound: IconType;
export declare const HiOutlineDocumentCurrencyRupee: IconType;
export declare const HiOutlineDocumentCurrencyYen: IconType;
export declare const HiOutlineDocumentDuplicate: IconType;
export declare const HiOutlineDocumentMagnifyingGlass: IconType;
export declare const HiOutlineDocumentMinus: IconType;
export declare const HiOutlineDocumentPlus: IconType;
export declare const HiOutlineDocumentText: IconType;
export declare const HiOutlineDocument: IconType;
export declare const HiOutlineEllipsisHorizontalCircle: IconType;
export declare const HiOutlineEllipsisHorizontal: IconType;
export declare const HiOutlineEllipsisVertical: IconType;
export declare const HiOutlineEnvelopeOpen: IconType;
export declare const HiOutlineEnvelope: IconType;
export declare const HiOutlineEquals: IconType;
export declare const HiOutlineExclamationCircle: IconType;
export declare const HiOutlineExclamationTriangle: IconType;
export declare const HiOutlineEyeDropper: IconType;
export declare const HiOutlineEyeSlash: IconType;
export declare const HiOutlineEye: IconType;
export declare const HiOutlineFaceFrown: IconType;
export declare const HiOutlineFaceSmile: IconType;
export declare const HiOutlineFilm: IconType;
export declare const HiOutlineFingerPrint: IconType;
export declare const HiOutlineFire: IconType;
export declare const HiOutlineFlag: IconType;
export declare const HiOutlineFolderArrowDown: IconType;
export declare const HiOutlineFolderMinus: IconType;
export declare const HiOutlineFolderOpen: IconType;
export declare const HiOutlineFolderPlus: IconType;
export declare const HiOutlineFolder: IconType;
export declare const HiOutlineForward: IconType;
export declare const HiOutlineFunnel: IconType;
export declare const HiOutlineGif: IconType;
export declare const HiOutlineGiftTop: IconType;
export declare const HiOutlineGift: IconType;
export declare const HiOutlineGlobeAlt: IconType;
export declare const HiOutlineGlobeAmericas: IconType;
export declare const HiOutlineGlobeAsiaAustralia: IconType;
export declare const HiOutlineGlobeEuropeAfrica: IconType;
export declare const HiOutlineH1: IconType;
export declare const HiOutlineH2: IconType;
export declare const HiOutlineH3: IconType;
export declare const HiOutlineHandRaised: IconType;
export declare const HiOutlineHandThumbDown: IconType;
export declare const HiOutlineHandThumbUp: IconType;
export declare const HiOutlineHashtag: IconType;
export declare const HiOutlineHeart: IconType;
export declare const HiOutlineHomeModern: IconType;
export declare const HiOutlineHome: IconType;
export declare const HiOutlineIdentification: IconType;
export declare const HiOutlineInboxArrowDown: IconType;
export declare const HiOutlineInboxStack: IconType;
export declare const HiOutlineInbox: IconType;
export declare const HiOutlineInformationCircle: IconType;
export declare const HiOutlineItalic: IconType;
export declare const HiOutlineKey: IconType;
export declare const HiOutlineLanguage: IconType;
export declare const HiOutlineLifebuoy: IconType;
export declare const HiOutlineLightBulb: IconType;
export declare const HiOutlineLinkSlash: IconType;
export declare const HiOutlineLink: IconType;
export declare const HiOutlineListBullet: IconType;
export declare const HiOutlineLockClosed: IconType;
export declare const HiOutlineLockOpen: IconType;
export declare const HiOutlineMagnifyingGlassCircle: IconType;
export declare const HiOutlineMagnifyingGlassMinus: IconType;
export declare const HiOutlineMagnifyingGlassPlus: IconType;
export declare const HiOutlineMagnifyingGlass: IconType;
export declare const HiOutlineMapPin: IconType;
export declare const HiOutlineMap: IconType;
export declare const HiOutlineMegaphone: IconType;
export declare const HiOutlineMicrophone: IconType;
export declare const HiOutlineMinusCircle: IconType;
export declare const HiOutlineMinusSmall: IconType;
export declare const HiOutlineMinus: IconType;
export declare const HiOutlineMoon: IconType;
export declare const HiOutlineMusicalNote: IconType;
export declare const HiOutlineNewspaper: IconType;
export declare const HiOutlineNoSymbol: IconType;
export declare const HiOutlineNumberedList: IconType;
export declare const HiOutlinePaintBrush: IconType;
export declare const HiOutlinePaperAirplane: IconType;
export declare const HiOutlinePaperClip: IconType;
export declare const HiOutlinePauseCircle: IconType;
export declare const HiOutlinePause: IconType;
export declare const HiOutlinePencilSquare: IconType;
export declare const HiOutlinePencil: IconType;
export declare const HiOutlinePercentBadge: IconType;
export declare const HiOutlinePhoneArrowDownLeft: IconType;
export declare const HiOutlinePhoneArrowUpRight: IconType;
export declare const HiOutlinePhoneXMark: IconType;
export declare const HiOutlinePhone: IconType;
export declare const HiOutlinePhoto: IconType;
export declare const HiOutlinePlayCircle: IconType;
export declare const HiOutlinePlayPause: IconType;
export declare const HiOutlinePlay: IconType;
export declare const HiOutlinePlusCircle: IconType;
export declare const HiOutlinePlusSmall: IconType;
export declare const HiOutlinePlus: IconType;
export declare const HiOutlinePower: IconType;
export declare const HiOutlinePresentationChartBar: IconType;
export declare const HiOutlinePresentationChartLine: IconType;
export declare const HiOutlinePrinter: IconType;
export declare const HiOutlinePuzzlePiece: IconType;
export declare const HiOutlineQrCode: IconType;
export declare const HiOutlineQuestionMarkCircle: IconType;
export declare const HiOutlineQueueList: IconType;
export declare const HiOutlineRadio: IconType;
export declare const HiOutlineReceiptPercent: IconType;
export declare const HiOutlineReceiptRefund: IconType;
export declare const HiOutlineRectangleGroup: IconType;
export declare const HiOutlineRectangleStack: IconType;
export declare const HiOutlineRocketLaunch: IconType;
export declare const HiOutlineRss: IconType;
export declare const HiOutlineScale: IconType;
export declare const HiOutlineScissors: IconType;
export declare const HiOutlineServerStack: IconType;
export declare const HiOutlineServer: IconType;
export declare const HiOutlineShare: IconType;
export declare const HiOutlineShieldCheck: IconType;
export declare const HiOutlineShieldExclamation: IconType;
export declare const HiOutlineShoppingBag: IconType;
export declare const HiOutlineShoppingCart: IconType;
export declare const HiOutlineSignalSlash: IconType;
export declare const HiOutlineSignal: IconType;
export declare const HiOutlineSlash: IconType;
export declare const HiOutlineSparkles: IconType;
export declare const HiOutlineSpeakerWave: IconType;
export declare const HiOutlineSpeakerXMark: IconType;
export declare const HiOutlineSquare2Stack: IconType;
export declare const HiOutlineSquare3Stack3D: IconType;
export declare const HiOutlineSquares2X2: IconType;
export declare const HiOutlineSquaresPlus: IconType;
export declare const HiOutlineStar: IconType;
export declare const HiOutlineStopCircle: IconType;
export declare const HiOutlineStop: IconType;
export declare const HiOutlineStrikethrough: IconType;
export declare const HiOutlineSun: IconType;
export declare const HiOutlineSwatch: IconType;
export declare const HiOutlineTableCells: IconType;
export declare const HiOutlineTag: IconType;
export declare const HiOutlineTicket: IconType;
export declare const HiOutlineTrash: IconType;
export declare const HiOutlineTrophy: IconType;
export declare const HiOutlineTruck: IconType;
export declare const HiOutlineTv: IconType;
export declare const HiOutlineUnderline: IconType;
export declare const HiOutlineUserCircle: IconType;
export declare const HiOutlineUserGroup: IconType;
export declare const HiOutlineUserMinus: IconType;
export declare const HiOutlineUserPlus: IconType;
export declare const HiOutlineUser: IconType;
export declare const HiOutlineUsers: IconType;
export declare const HiOutlineVariable: IconType;
export declare const HiOutlineVideoCameraSlash: IconType;
export declare const HiOutlineVideoCamera: IconType;
export declare const HiOutlineViewColumns: IconType;
export declare const HiOutlineViewfinderCircle: IconType;
export declare const HiOutlineWallet: IconType;
export declare const HiOutlineWifi: IconType;
export declare const HiOutlineWindow: IconType;
export declare const HiOutlineWrenchScrewdriver: IconType;
export declare const HiOutlineWrench: IconType;
export declare const HiOutlineXCircle: IconType;
export declare const HiOutlineXMark: IconType;
export declare const HiMiniAcademicCap: IconType;
export declare const HiMiniAdjustmentsHorizontal: IconType;
export declare const HiMiniAdjustmentsVertical: IconType;
export declare const HiMiniArchiveBoxArrowDown: IconType;
export declare const HiMiniArchiveBoxXMark: IconType;
export declare const HiMiniArchiveBox: IconType;
export declare const HiMiniArrowDownCircle: IconType;
export declare const HiMiniArrowDownLeft: IconType;
export declare const HiMiniArrowDownOnSquareStack: IconType;
export declare const HiMiniArrowDownOnSquare: IconType;
export declare const HiMiniArrowDownRight: IconType;
export declare const HiMiniArrowDownTray: IconType;
export declare const HiMiniArrowDown: IconType;
export declare const HiMiniArrowLeftCircle: IconType;
export declare const HiMiniArrowLeftEndOnRectangle: IconType;
export declare const HiMiniArrowLeftOnRectangle: IconType;
export declare const HiMiniArrowLeftStartOnRectangle: IconType;
export declare const HiMiniArrowLeft: IconType;
export declare const HiMiniArrowLongDown: IconType;
export declare const HiMiniArrowLongLeft: IconType;
export declare const HiMiniArrowLongRight: IconType;
export declare const HiMiniArrowLongUp: IconType;
export declare const HiMiniArrowPathRoundedSquare: IconType;
export declare const HiMiniArrowPath: IconType;
export declare const HiMiniArrowRightCircle: IconType;
export declare const HiMiniArrowRightEndOnRectangle: IconType;
export declare const HiMiniArrowRightOnRectangle: IconType;
export declare const HiMiniArrowRightStartOnRectangle: IconType;
export declare const HiMiniArrowRight: IconType;
export declare const HiMiniArrowSmallDown: IconType;
export declare const HiMiniArrowSmallLeft: IconType;
export declare const HiMiniArrowSmallRight: IconType;
export declare const HiMiniArrowSmallUp: IconType;
export declare const HiMiniArrowTopRightOnSquare: IconType;
export declare const HiMiniArrowTrendingDown: IconType;
export declare const HiMiniArrowTrendingUp: IconType;
export declare const HiMiniArrowTurnDownLeft: IconType;
export declare const HiMiniArrowTurnDownRight: IconType;
export declare const HiMiniArrowTurnLeftDown: IconType;
export declare const HiMiniArrowTurnLeftUp: IconType;
export declare const HiMiniArrowTurnRightDown: IconType;
export declare const HiMiniArrowTurnRightUp: IconType;
export declare const HiMiniArrowTurnUpLeft: IconType;
export declare const HiMiniArrowTurnUpRight: IconType;
export declare const HiMiniArrowUpCircle: IconType;
export declare const HiMiniArrowUpLeft: IconType;
export declare const HiMiniArrowUpOnSquareStack: IconType;
export declare const HiMiniArrowUpOnSquare: IconType;
export declare const HiMiniArrowUpRight: IconType;
export declare const HiMiniArrowUpTray: IconType;
export declare const HiMiniArrowUp: IconType;
export declare const HiMiniArrowUturnDown: IconType;
export declare const HiMiniArrowUturnLeft: IconType;
export declare const HiMiniArrowUturnRight: IconType;
export declare const HiMiniArrowUturnUp: IconType;
export declare const HiMiniArrowsPointingIn: IconType;
export declare const HiMiniArrowsPointingOut: IconType;
export declare const HiMiniArrowsRightLeft: IconType;
export declare const HiMiniArrowsUpDown: IconType;
export declare const HiMiniAtSymbol: IconType;
export declare const HiMiniBackspace: IconType;
export declare const HiMiniBackward: IconType;
export declare const HiMiniBanknotes: IconType;
export declare const HiMiniBars2: IconType;
export declare const HiMiniBars3BottomLeft: IconType;
export declare const HiMiniBars3BottomRight: IconType;
export declare const HiMiniBars3CenterLeft: IconType;
export declare const HiMiniBars3: IconType;
export declare const HiMiniBars4: IconType;
export declare const HiMiniBarsArrowDown: IconType;
export declare const HiMiniBarsArrowUp: IconType;
export declare const HiMiniBattery0: IconType;
export declare const HiMiniBattery100: IconType;
export declare const HiMiniBattery50: IconType;
export declare const HiMiniBeaker: IconType;
export declare const HiMiniBellAlert: IconType;
export declare const HiMiniBellSlash: IconType;
export declare const HiMiniBellSnooze: IconType;
export declare const HiMiniBell: IconType;
export declare const HiMiniBold: IconType;
export declare const HiMiniBoltSlash: IconType;
export declare const HiMiniBolt: IconType;
export declare const HiMiniBookOpen: IconType;
export declare const HiMiniBookmarkSlash: IconType;
export declare const HiMiniBookmarkSquare: IconType;
export declare const HiMiniBookmark: IconType;
export declare const HiMiniBriefcase: IconType;
export declare const HiMiniBugAnt: IconType;
export declare const HiMiniBuildingLibrary: IconType;
export declare const HiMiniBuildingOffice2: IconType;
export declare const HiMiniBuildingOffice: IconType;
export declare const HiMiniBuildingStorefront: IconType;
export declare const HiMiniCake: IconType;
export declare const HiMiniCalculator: IconType;
export declare const HiMiniCalendarDateRange: IconType;
export declare const HiMiniCalendarDays: IconType;
export declare const HiMiniCalendar: IconType;
export declare const HiMiniCamera: IconType;
export declare const HiMiniChartBarSquare: IconType;
export declare const HiMiniChartBar: IconType;
export declare const HiMiniChartPie: IconType;
export declare const HiMiniChatBubbleBottomCenterText: IconType;
export declare const HiMiniChatBubbleBottomCenter: IconType;
export declare const HiMiniChatBubbleLeftEllipsis: IconType;
export declare const HiMiniChatBubbleLeftRight: IconType;
export declare const HiMiniChatBubbleLeft: IconType;
export declare const HiMiniChatBubbleOvalLeftEllipsis: IconType;
export declare const HiMiniChatBubbleOvalLeft: IconType;
export declare const HiMiniCheckBadge: IconType;
export declare const HiMiniCheckCircle: IconType;
export declare const HiMiniCheck: IconType;
export declare const HiMiniChevronDoubleDown: IconType;
export declare const HiMiniChevronDoubleLeft: IconType;
export declare const HiMiniChevronDoubleRight: IconType;
export declare const HiMiniChevronDoubleUp: IconType;
export declare const HiMiniChevronDown: IconType;
export declare const HiMiniChevronLeft: IconType;
export declare const HiMiniChevronRight: IconType;
export declare const HiMiniChevronUpDown: IconType;
export declare const HiMiniChevronUp: IconType;
export declare const HiMiniCircleStack: IconType;
export declare const HiMiniClipboardDocumentCheck: IconType;
export declare const HiMiniClipboardDocumentList: IconType;
export declare const HiMiniClipboardDocument: IconType;
export declare const HiMiniClipboard: IconType;
export declare const HiMiniClock: IconType;
export declare const HiMiniCloudArrowDown: IconType;
export declare const HiMiniCloudArrowUp: IconType;
export declare const HiMiniCloud: IconType;
export declare const HiMiniCodeBracketSquare: IconType;
export declare const HiMiniCodeBracket: IconType;
export declare const HiMiniCog6Tooth: IconType;
export declare const HiMiniCog8Tooth: IconType;
export declare const HiMiniCog: IconType;
export declare const HiMiniCommandLine: IconType;
export declare const HiMiniComputerDesktop: IconType;
export declare const HiMiniCpuChip: IconType;
export declare const HiMiniCreditCard: IconType;
export declare const HiMiniCubeTransparent: IconType;
export declare const HiMiniCube: IconType;
export declare const HiMiniCurrencyBangladeshi: IconType;
export declare const HiMiniCurrencyDollar: IconType;
export declare const HiMiniCurrencyEuro: IconType;
export declare const HiMiniCurrencyPound: IconType;
export declare const HiMiniCurrencyRupee: IconType;
export declare const HiMiniCurrencyYen: IconType;
export declare const HiMiniCursorArrowRays: IconType;
export declare const HiMiniCursorArrowRipple: IconType;
export declare const HiMiniDevicePhoneMobile: IconType;
export declare const HiMiniDeviceTablet: IconType;
export declare const HiMiniDivide: IconType;
export declare const HiMiniDocumentArrowDown: IconType;
export declare const HiMiniDocumentArrowUp: IconType;
export declare const HiMiniDocumentChartBar: IconType;
export declare const HiMiniDocumentCheck: IconType;
export declare const HiMiniDocumentCurrencyBangladeshi: IconType;
export declare const HiMiniDocumentCurrencyDollar: IconType;
export declare const HiMiniDocumentCurrencyEuro: IconType;
export declare const HiMiniDocumentCurrencyPound: IconType;
export declare const HiMiniDocumentCurrencyRupee: IconType;
export declare const HiMiniDocumentCurrencyYen: IconType;
export declare const HiMiniDocumentDuplicate: IconType;
export declare const HiMiniDocumentMagnifyingGlass: IconType;
export declare const HiMiniDocumentMinus: IconType;
export declare const HiMiniDocumentPlus: IconType;
export declare const HiMiniDocumentText: IconType;
export declare const HiMiniDocument: IconType;
export declare const HiMiniEllipsisHorizontalCircle: IconType;
export declare const HiMiniEllipsisHorizontal: IconType;
export declare const HiMiniEllipsisVertical: IconType;
export declare const HiMiniEnvelopeOpen: IconType;
export declare const HiMiniEnvelope: IconType;
export declare const HiMiniEquals: IconType;
export declare const HiMiniExclamationCircle: IconType;
export declare const HiMiniExclamationTriangle: IconType;
export declare const HiMiniEyeDropper: IconType;
export declare const HiMiniEyeSlash: IconType;
export declare const HiMiniEye: IconType;
export declare const HiMiniFaceFrown: IconType;
export declare const HiMiniFaceSmile: IconType;
export declare const HiMiniFilm: IconType;
export declare const HiMiniFingerPrint: IconType;
export declare const HiMiniFire: IconType;
export declare const HiMiniFlag: IconType;
export declare const HiMiniFolderArrowDown: IconType;
export declare const HiMiniFolderMinus: IconType;
export declare const HiMiniFolderOpen: IconType;
export declare const HiMiniFolderPlus: IconType;
export declare const HiMiniFolder: IconType;
export declare const HiMiniForward: IconType;
export declare const HiMiniFunnel: IconType;
export declare const HiMiniGif: IconType;
export declare const HiMiniGiftTop: IconType;
export declare const HiMiniGift: IconType;
export declare const HiMiniGlobeAlt: IconType;
export declare const HiMiniGlobeAmericas: IconType;
export declare const HiMiniGlobeAsiaAustralia: IconType;
export declare const HiMiniGlobeEuropeAfrica: IconType;
export declare const HiMiniH1: IconType;
export declare const HiMiniH2: IconType;
export declare const HiMiniH3: IconType;
export declare const HiMiniHandRaised: IconType;
export declare const HiMiniHandThumbDown: IconType;
export declare const HiMiniHandThumbUp: IconType;
export declare const HiMiniHashtag: IconType;
export declare const HiMiniHeart: IconType;
export declare const HiMiniHomeModern: IconType;
export declare const HiMiniHome: IconType;
export declare const HiMiniIdentification: IconType;
export declare const HiMiniInboxArrowDown: IconType;
export declare const HiMiniInboxStack: IconType;
export declare const HiMiniInbox: IconType;
export declare const HiMiniInformationCircle: IconType;
export declare const HiMiniItalic: IconType;
export declare const HiMiniKey: IconType;
export declare const HiMiniLanguage: IconType;
export declare const HiMiniLifebuoy: IconType;
export declare const HiMiniLightBulb: IconType;
export declare const HiMiniLinkSlash: IconType;
export declare const HiMiniLink: IconType;
export declare const HiMiniListBullet: IconType;
export declare const HiMiniLockClosed: IconType;
export declare const HiMiniLockOpen: IconType;
export declare const HiMiniMagnifyingGlassCircle: IconType;
export declare const HiMiniMagnifyingGlassMinus: IconType;
export declare const HiMiniMagnifyingGlassPlus: IconType;
export declare const HiMiniMagnifyingGlass: IconType;
export declare const HiMiniMapPin: IconType;
export declare const HiMiniMap: IconType;
export declare const HiMiniMegaphone: IconType;
export declare const HiMiniMicrophone: IconType;
export declare const HiMiniMinusCircle: IconType;
export declare const HiMiniMinusSmall: IconType;
export declare const HiMiniMinus: IconType;
export declare const HiMiniMoon: IconType;
export declare const HiMiniMusicalNote: IconType;
export declare const HiMiniNewspaper: IconType;
export declare const HiMiniNoSymbol: IconType;
export declare const HiMiniNumberedList: IconType;
export declare const HiMiniPaintBrush: IconType;
export declare const HiMiniPaperAirplane: IconType;
export declare const HiMiniPaperClip: IconType;
export declare const HiMiniPauseCircle: IconType;
export declare const HiMiniPause: IconType;
export declare const HiMiniPencilSquare: IconType;
export declare const HiMiniPencil: IconType;
export declare const HiMiniPercentBadge: IconType;
export declare const HiMiniPhoneArrowDownLeft: IconType;
export declare const HiMiniPhoneArrowUpRight: IconType;
export declare const HiMiniPhoneXMark: IconType;
export declare const HiMiniPhone: IconType;
export declare const HiMiniPhoto: IconType;
export declare const HiMiniPlayCircle: IconType;
export declare const HiMiniPlayPause: IconType;
export declare const HiMiniPlay: IconType;
export declare const HiMiniPlusCircle: IconType;
export declare const HiMiniPlusSmall: IconType;
export declare const HiMiniPlus: IconType;
export declare const HiMiniPower: IconType;
export declare const HiMiniPresentationChartBar: IconType;
export declare const HiMiniPresentationChartLine: IconType;
export declare const HiMiniPrinter: IconType;
export declare const HiMiniPuzzlePiece: IconType;
export declare const HiMiniQrCode: IconType;
export declare const HiMiniQuestionMarkCircle: IconType;
export declare const HiMiniQueueList: IconType;
export declare const HiMiniRadio: IconType;
export declare const HiMiniReceiptPercent: IconType;
export declare const HiMiniReceiptRefund: IconType;
export declare const HiMiniRectangleGroup: IconType;
export declare const HiMiniRectangleStack: IconType;
export declare const HiMiniRocketLaunch: IconType;
export declare const HiMiniRss: IconType;
export declare const HiMiniScale: IconType;
export declare const HiMiniScissors: IconType;
export declare const HiMiniServerStack: IconType;
export declare const HiMiniServer: IconType;
export declare const HiMiniShare: IconType;
export declare const HiMiniShieldCheck: IconType;
export declare const HiMiniShieldExclamation: IconType;
export declare const HiMiniShoppingBag: IconType;
export declare const HiMiniShoppingCart: IconType;
export declare const HiMiniSignalSlash: IconType;
export declare const HiMiniSignal: IconType;
export declare const HiMiniSlash: IconType;
export declare const HiMiniSparkles: IconType;
export declare const HiMiniSpeakerWave: IconType;
export declare const HiMiniSpeakerXMark: IconType;
export declare const HiMiniSquare2Stack: IconType;
export declare const HiMiniSquare3Stack3D: IconType;
export declare const HiMiniSquares2X2: IconType;
export declare const HiMiniSquaresPlus: IconType;
export declare const HiMiniStar: IconType;
export declare const HiMiniStopCircle: IconType;
export declare const HiMiniStop: IconType;
export declare const HiMiniStrikethrough: IconType;
export declare const HiMiniSun: IconType;
export declare const HiMiniSwatch: IconType;
export declare const HiMiniTableCells: IconType;
export declare const HiMiniTag: IconType;
export declare const HiMiniTicket: IconType;
export declare const HiMiniTrash: IconType;
export declare const HiMiniTrophy: IconType;
export declare const HiMiniTruck: IconType;
export declare const HiMiniTv: IconType;
export declare const HiMiniUnderline: IconType;
export declare const HiMiniUserCircle: IconType;
export declare const HiMiniUserGroup: IconType;
export declare const HiMiniUserMinus: IconType;
export declare const HiMiniUserPlus: IconType;
export declare const HiMiniUser: IconType;
export declare const HiMiniUsers: IconType;
export declare const HiMiniVariable: IconType;
export declare const HiMiniVideoCameraSlash: IconType;
export declare const HiMiniVideoCamera: IconType;
export declare const HiMiniViewColumns: IconType;
export declare const HiMiniViewfinderCircle: IconType;
export declare const HiMiniWallet: IconType;
export declare const HiMiniWifi: IconType;
export declare const HiMiniWindow: IconType;
export declare const HiMiniWrenchScrewdriver: IconType;
export declare const HiMiniWrench: IconType;
export declare const HiMiniXCircle: IconType;
export declare const HiMiniXMark: IconType;
@@ -0,0 +1 @@
{"name":"es-module-lexer","version":"1.7.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532092269,"integrity":"sha512-L5YMBxs5ABVJkvp4O1+CaGSR19fyARZthnJeMfKfLKen3iIo93h1sAWEhURaEjk2Bm1bBSiWfYRYlHgrdEFoXg==","mode":420,"size":1095},"dist/lexer.cjs":{"checkedAt":1794532092269,"integrity":"sha512-Qqxgdwqm+CZXckboWGzCspF2M2Z2dcAp12UWe304JWyiiBDt1/Ycr1PjwdlA5JVfF7pAOHk7qObq4dMtt50H1A==","mode":420,"size":14323},"dist/lexer.asm.js":{"checkedAt":1794532092270,"integrity":"sha512-0+UfZ+pxmv8U56HdjCkK2qQQPv76KQ3cIco7ZSBc5tcnGiPAWBzVnBwg9MfC5PFfd9YJt7k7XAA39+aO8ttH/Q==","mode":420,"size":20560},"dist/lexer.js":{"checkedAt":1794532092270,"integrity":"sha512-Q9Vbis4BjovjfDsPMPjw3D3zgxjZ8PkI2bF5ZrOLObhuqDVnPuGJbO+DSnTg+uihRtoEEiRDtAz4Z2eB2AG7QA==","mode":420,"size":14204},"lexer.js":{"checkedAt":1794532092270,"integrity":"sha512-JY9s07ltZID5EQJsK6zlgqorQCKT2aYtnp0OHa/tF4Smxsdq83GD2B9Q4MA3NHJnf8s9vjeFZPGkRbKm4tDXtg==","mode":420,"size":26309},"package.json":{"checkedAt":1794532092270,"integrity":"sha512-ixJCzlc52noSS/jnX9hMAJoYGm6w15KdnPNQUHNJVTOA65uoWY90c37YivULQ0uyA8ivWgrjUKocTx9qugDZsQ==","mode":420,"size":1464},"README.md":{"checkedAt":1794532092270,"integrity":"sha512-rMNVkT1/ySdyhcs1Hppw6HFVMbh5FghwzXixGYV2iMBag8hLTOs+DFFPm/Fj03aUWBdXpFIXdTC9nchcij/PlA==","mode":420,"size":10042},"types/lexer.d.ts":{"checkedAt":1794532092271,"integrity":"sha512-iYMaWK7yB1jiT3E4MyFv/HileHsGLB3Wd44Ne6Y/GiW/r5nGBLXW+e+kuhbTZaSrPE038wqmjDf/oS0jBwta9w==","mode":420,"size":5443}}}
@@ -0,0 +1,92 @@
// Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import gulp from 'gulp';
import mocha from 'gulp-mocha';
import eslint from 'gulp-eslint';
import minimist from 'minimist';
import git from 'gulp-git';
import bump from 'gulp-bump';
import filter from 'gulp-filter';
import tagVersion from 'gulp-tag-version';
import 'babel-register';
const SOURCE = [
'*.js'
];
let ESLINT_OPTION = {
parser: 'babel-eslint',
parserOptions: {
'sourceType': 'module'
},
rules: {
'quotes': 0,
'eqeqeq': 0,
'no-use-before-define': 0,
'no-shadow': 0,
'no-new': 0,
'no-underscore-dangle': 0,
'no-multi-spaces': 0,
'no-native-reassign': 0,
'no-loop-func': 0
},
env: {
'node': true
}
};
gulp.task('test', function() {
let options = minimist(process.argv.slice(2), {
string: 'test',
default: {
test: 'test/*.js'
}
}
);
return gulp.src(options.test).pipe(mocha({reporter: 'spec'}));
});
gulp.task('lint', () =>
gulp.src(SOURCE)
.pipe(eslint(ESLINT_OPTION))
.pipe(eslint.formatEach('stylish', process.stderr))
.pipe(eslint.failOnError())
);
let inc = importance =>
gulp.src(['./package.json'])
.pipe(bump({type: importance}))
.pipe(gulp.dest('./'))
.pipe(git.commit('Bumps package version'))
.pipe(filter('package.json'))
.pipe(tagVersion({
prefix: ''
}))
;
gulp.task('travis', [ 'lint', 'test' ]);
gulp.task('default', [ 'travis' ]);
gulp.task('patch', [ ], () => inc('patch'));
gulp.task('minor', [ ], () => inc('minor'));
gulp.task('major', [ ], () => inc('major'));
@@ -0,0 +1,42 @@
/**
* cli.js: Config that conform to commonly used CLI logging levels.
*
* (C) 2010 Charlie Robbins
* MIT LICENCE
*/
'use strict';
/**
* Default levels for the CLI configuration.
* @type {Object}
*/
exports.levels = {
error: 0,
warn: 1,
help: 2,
data: 3,
info: 4,
debug: 5,
prompt: 6,
verbose: 7,
input: 8,
silly: 9
};
/**
* Default colors for the CLI configuration.
* @type {Object}
*/
exports.colors = {
error: 'red',
warn: 'yellow',
help: 'cyan',
data: 'grey',
info: 'green',
debug: 'blue',
prompt: 'grey',
verbose: 'cyan',
input: 'grey',
silly: 'magenta'
};
@@ -0,0 +1,40 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// SEE https://typescript-eslint.io/users/configs
//
// For developers working in the typescript-eslint monorepo:
// You can regenerate it using `yarn generate-configs`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = __importDefault(require("./base"));
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
/**
* Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
* @see {@link https://typescript-eslint.io/users/configs#stylistic}
*/
exports.default = (plugin, parser) => [
(0, base_1.default)(plugin, parser),
(0, eslint_recommended_1.default)(plugin, parser),
{
name: 'typescript-eslint/stylistic',
rules: {
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/ban-tslint-comment': 'error',
'@typescript-eslint/class-literal-property-style': 'error',
'@typescript-eslint/consistent-generic-constructors': 'error',
'@typescript-eslint/consistent-indexed-object-style': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
},
},
];
@@ -0,0 +1,11 @@
/**
* Extractor function for a SpreadElement type value node.
* We can't statically evaluate an array spread, so just return
* undefined.
*
* @param - value - AST Value object with type `SpreadElement`
* @returns - An prototypeless object.
*/
export default function extractValueFromSpreadElement() {
return undefined;
}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=updateMaybeClassMetadataPostConstructor.spec.d.ts.map
@@ -0,0 +1,97 @@
{
"name": "es-to-primitive",
"version": "1.3.0",
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"description": "ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.",
"license": "MIT",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc && attw -P",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git://github.com/ljharb/es-to-primitive.git"
},
"keywords": [
"primitive",
"abstract",
"ecmascript",
"es5",
"es6",
"es2015",
"toPrimitive",
"coerce",
"type",
"object",
"string",
"number",
"boolean",
"symbol",
"null",
"undefined"
],
"dependencies": {
"is-callable": "^1.2.7",
"is-date-object": "^1.0.5",
"is-symbol": "^1.0.4"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.0",
"@types/for-each": "^0.3.3",
"@types/function.prototype.name": "^1.1.3",
"@types/is-callable": "^1.1.2",
"@types/is-date-object": "^1.0.4",
"@types/is-symbol": "^1.0.2",
"@types/object-inspect": "^1.13.0",
"@types/object-is": "^1.1.0",
"@types/tape": "^5.6.4",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"es-value-fixtures": "^1.5.0",
"eslint": "=8.8.0",
"for-each": "^0.3.3",
"function.prototype.name": "^1.1.6",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.13.3",
"object-is": "^1.1.6",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"testling": {
"files": "test/index.js"
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "1.2.2"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}
@@ -0,0 +1,34 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
declare const ReturnSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
uin: import("@sinclair/typebox").TNumber;
uid: import("@sinclair/typebox").TString;
nick_name: import("@sinclair/typebox").TString;
age: import("@sinclair/typebox").TNumber;
source: import("@sinclair/typebox").TString;
}>>;
type ReturnType = Static<typeof ReturnSchema>;
export declare class GetUnidirectionalFriendList extends OneBotAction<void, ReturnType> {
actionName: "get_unidirectional_friend_list";
payloadSchema: import("@sinclair/typebox").TObject<{}>;
returnSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
uin: import("@sinclair/typebox").TNumber;
uid: import("@sinclair/typebox").TString;
nick_name: import("@sinclair/typebox").TString;
age: import("@sinclair/typebox").TNumber;
source: import("@sinclair/typebox").TString;
}>>;
actionSummary: string;
actionTags: string[];
payloadExample: {};
returnExample: {
uin: number;
uid: string;
nick_name: string;
age: number;
source: string;
}[];
pack_data(data: string): Promise<Uint8Array>;
_handle(): Promise<ReturnType>;
}
export {};
@@ -0,0 +1,10 @@
"use client";
import {
menu_section_default
} from "./chunk-SYFLXYW3.mjs";
import "./chunk-6GUQKX6L.mjs";
import "./chunk-7C7K3AST.mjs";
import "./chunk-DQ5FVIN3.mjs";
export {
menu_section_default as default
};
@@ -0,0 +1 @@
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAqBM,SAAS,0CAAe,QAA4B,CAAC,CAAC;IAC3D,IAAI,cAAC,UAAU,EAAC,GAAG;IAEnB,8EAA8E;IAC9E,+FAA+F;IAC/F,IAAI,CAAC,YAAY,YAAY,GAAG,CAAA,GAAA,yBAAiB,EAAE,MAAM,UAAU,EAAE,MAAM,eAAe,IAAI,OAAO,MAAM,QAAQ;IAEnH,SAAS,eAAe,KAAK;QAC3B,IAAI,CAAC,YACH,YAAY;IAEhB;IAEA,SAAS;QACP,IAAI,CAAC,YACH,YAAY,CAAC;IAEjB;IAEA,OAAO;oBACL;QACA,aAAa;QACb,QAAQ;IACV;AACF","sources":["packages/@react-stately/toggle/src/useToggleState.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 {ToggleStateOptions} from '@react-types/checkbox';\nimport {useControlledState} from '@react-stately/utils';\n\nexport type {ToggleStateOptions};\n\nexport interface ToggleState {\n /** Whether the toggle is selected. */\n readonly isSelected: boolean,\n\n /** Updates selection state. */\n setSelected(isSelected: boolean): void,\n\n /** Toggle the selection state. */\n toggle(): void\n}\n\n/**\n * Provides state management for toggle components like checkboxes and switches.\n */\nexport function useToggleState(props: ToggleStateOptions = {}): ToggleState {\n let {isReadOnly} = props;\n\n // have to provide an empty function so useControlledState doesn't throw a fit\n // can't use useControlledState's prop calling because we need the event object from the change\n let [isSelected, setSelected] = useControlledState(props.isSelected, props.defaultSelected || false, props.onChange);\n\n function updateSelected(value) {\n if (!isReadOnly) {\n setSelected(value);\n }\n }\n\n function toggleState() {\n if (!isReadOnly) {\n setSelected(!isSelected);\n }\n }\n\n return {\n isSelected,\n setSelected: updateSelected,\n toggle: toggleState\n };\n}\n"],"names":[],"version":3,"file":"useToggleState.module.js.map"}
@@ -0,0 +1,559 @@
"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/components/listbox.ts
var listbox_exports = {};
__export(listbox_exports, {
listbox: () => menu,
listboxItem: () => menuItem,
listboxSection: () => menuSection
});
module.exports = __toCommonJS(listbox_exports);
// src/utils/tv.ts
var import_tailwind_variants = require("tailwind-variants");
// src/utils/tw-merge-config.ts
var COMMON_UNITS = ["small", "medium", "large"];
var twMergeConfig = {
theme: {
opacity: ["disabled"],
spacing: ["divider"],
borderWidth: COMMON_UNITS,
borderRadius: COMMON_UNITS
},
classGroups: {
shadow: [{ shadow: COMMON_UNITS }],
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
"bg-image": [
"bg-stripe-gradient-default",
"bg-stripe-gradient-primary",
"bg-stripe-gradient-secondary",
"bg-stripe-gradient-success",
"bg-stripe-gradient-warning",
"bg-stripe-gradient-danger"
]
}
};
// src/utils/tv.ts
var tv = (options, config) => {
var _a, _b, _c;
return (0, import_tailwind_variants.tv)(options, {
...config,
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
twMergeConfig: {
...config == null ? void 0 : config.twMergeConfig,
theme: {
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
...twMergeConfig.theme
},
classGroups: {
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
...twMergeConfig.classGroups
}
}
});
};
// src/utils/classes.ts
var dataFocusVisibleClasses = [
"outline-none",
"data-[focus-visible=true]:z-10",
"data-[focus-visible=true]:outline-2",
"data-[focus-visible=true]:outline-focus",
"data-[focus-visible=true]:outline-offset-2"
];
// src/components/menu.ts
var menu = tv({
slots: {
base: "w-full relative flex flex-col gap-1 p-1 overflow-clip",
list: "w-full flex flex-col gap-0.5 outline-none",
emptyContent: [
"h-10",
"px-2",
"py-1.5",
"w-full",
"h-full",
"text-foreground-400",
"text-start"
]
}
});
var menuItem = tv({
slots: {
base: [
"flex",
"group",
"gap-2",
"items-center",
"justify-between",
"relative",
"px-2",
"py-1.5",
"w-full",
"h-full",
"box-border",
"rounded-small",
"subpixel-antialiased",
"outline-none",
"cursor-pointer",
"tap-highlight-transparent",
...dataFocusVisibleClasses,
"data-[focus-visible=true]:dark:ring-offset-background-content1"
],
wrapper: "w-full flex flex-col items-start justify-center",
title: "flex-1 text-small font-normal",
description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
shortcut: [
"px-1",
"py-0.5",
"rounded",
"font-sans",
"text-foreground-500",
"text-tiny",
"border-small",
"border-default-300",
"group-hover:border-current"
]
},
variants: {
variant: {
solid: {
base: ""
},
bordered: {
base: "border-medium border-transparent bg-transparent"
},
light: {
base: "bg-transparent"
},
faded: {
base: [
"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100",
"data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"
]
},
flat: {
base: ""
},
shadow: {
base: "data-[hover=true]:shadow-lg"
}
},
color: {
default: {},
primary: {},
secondary: {},
success: {},
warning: {},
danger: {}
},
showDivider: {
true: {
base: [
"mb-1.5",
"after:content-['']",
"after:absolute",
"after:-bottom-1",
"after:left-0",
"after:right-0",
"after:h-divider",
"after:bg-divider"
]
},
false: {}
},
isDisabled: {
true: {
base: "opacity-disabled pointer-events-none"
}
},
disableAnimation: {
true: {},
false: {
base: "data-[hover=true]:transition-colors"
}
},
hasTitleTextChild: {
true: {
title: "truncate"
}
},
hasDescriptionTextChild: {
true: {
description: "truncate"
}
}
},
defaultVariants: {
variant: "solid",
color: "default",
showDivider: false
},
compoundVariants: [
{
variant: "solid",
color: "default",
class: {
base: [
"data-[hover=true]:bg-default",
"data-[hover=true]:text-default-foreground",
"data-[selectable=true]:focus:bg-default",
"data-[selectable=true]:focus:text-default-foreground"
]
}
},
{
variant: "solid",
color: "primary",
class: {
base: [
"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
"data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
]
}
},
{
variant: "solid",
color: "secondary",
class: {
base: [
"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
"data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
]
}
},
{
variant: "solid",
color: "success",
class: {
base: [
"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
"data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
]
}
},
{
variant: "solid",
color: "warning",
class: {
base: [
"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
"data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
]
}
},
{
variant: "solid",
color: "danger",
class: {
base: [
"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
"data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
]
}
},
{
variant: "shadow",
color: "default",
class: {
base: [
"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground",
"data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"
]
}
},
{
variant: "shadow",
color: "primary",
class: {
base: [
"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
"data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
]
}
},
{
variant: "shadow",
color: "secondary",
class: {
base: [
"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
"data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
]
}
},
{
variant: "shadow",
color: "success",
class: {
base: [
"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
"data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
]
}
},
{
variant: "shadow",
color: "warning",
class: {
base: [
"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
"data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
]
}
},
{
variant: "shadow",
color: "danger",
class: {
base: [
"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
"data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
]
}
},
{
variant: "bordered",
color: "default",
class: {
base: ["data-[hover=true]:border-default", "data-[selectable=true]:focus:border-default"]
}
},
{
variant: "bordered",
color: "primary",
class: {
base: [
"data-[hover=true]:border-primary data-[hover=true]:text-primary",
"data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"
]
}
},
{
variant: "bordered",
color: "secondary",
class: {
base: [
"data-[hover=true]:border-secondary data-[hover=true]:text-secondary",
"data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"
]
}
},
{
variant: "bordered",
color: "success",
class: {
base: [
"data-[hover=true]:border-success data-[hover=true]:text-success",
"data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"
]
}
},
{
variant: "bordered",
color: "warning",
class: {
base: [
"data-[hover=true]:border-warning data-[hover=true]:text-warning",
"data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"
]
}
},
{
variant: "bordered",
color: "danger",
class: {
base: [
"data-[hover=true]:border-danger data-[hover=true]:text-danger",
"data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"
]
}
},
{
variant: "flat",
color: "default",
class: {
base: [
"data-[hover=true]:bg-default/40",
"data-[hover=true]:text-default-foreground",
"data-[selectable=true]:focus:bg-default/40",
"data-[selectable=true]:focus:text-default-foreground"
]
}
},
{
variant: "flat",
color: "primary",
class: {
base: [
"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary",
"data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"
]
}
},
{
variant: "flat",
color: "secondary",
class: {
base: [
"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary",
"data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"
]
}
},
{
variant: "flat",
color: "success",
class: {
base: [
"data-[hover=true]:bg-success/20 data-[hover=true]:text-success",
"data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"
]
}
},
{
variant: "flat",
color: "warning",
class: {
base: [
"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning",
"data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"
]
}
},
{
variant: "flat",
color: "danger",
class: {
base: [
"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger",
"data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"
]
}
},
{
variant: "faded",
color: "default",
class: {
base: [
"data-[hover=true]:text-default-foreground",
"data-[selectable=true]:focus:text-default-foreground"
]
}
},
{
variant: "faded",
color: "primary",
class: {
base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
}
},
{
variant: "faded",
color: "secondary",
class: {
base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
}
},
{
variant: "faded",
color: "success",
class: {
base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
}
},
{
variant: "faded",
color: "warning",
class: {
base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
}
},
{
variant: "faded",
color: "danger",
class: {
base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
}
},
{
variant: "light",
color: "default",
class: {
base: [
"data-[hover=true]:text-default-500",
"data-[selectable=true]:focus:text-default-500"
]
}
},
{
variant: "light",
color: "primary",
class: {
base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
}
},
{
variant: "light",
color: "secondary",
class: {
base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
}
},
{
variant: "light",
color: "success",
class: {
base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
}
},
{
variant: "light",
color: "warning",
class: {
base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
}
},
{
variant: "light",
color: "danger",
class: {
base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
}
}
]
});
var menuSection = tv({
slots: {
base: "relative mb-2",
heading: "pl-1 text-tiny text-foreground-500",
group: "data-[has-title=true]:pt-1",
divider: "mt-2"
}
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
listbox,
listboxItem,
listboxSection
});
@@ -0,0 +1,491 @@
// src/demi/react19/getInertValue.ts
var getInertValue = (v) => {
return v;
};
// src/common/assertion.ts
var __DEV__ = process.env.NODE_ENV !== "production";
var __TEST__ = process.env.NODE_ENV === "test";
function isArray(value) {
return Array.isArray(value);
}
function isEmptyArray(value) {
return isArray(value) && value.length === 0;
}
function isObject(value) {
const type = typeof value;
return value != null && (type === "object" || type === "function") && !isArray(value);
}
function isEmptyObject(value) {
return isObject(value) && Object.keys(value).length === 0;
}
function isEmpty(value) {
if (isArray(value)) return isEmptyArray(value);
if (isObject(value)) return isEmptyObject(value);
if (value == null || value === "") return true;
return false;
}
function isFunction(value) {
return typeof value === "function";
}
var dataAttr = (condition) => condition ? "true" : void 0;
var isNumeric = (value) => value != null && parseInt(value.toString(), 10) > 0;
// src/common/clsx.ts
function toVal(mix) {
var k, y, str = "";
if (typeof mix === "string" || typeof mix === "number") {
str += mix;
} else if (typeof mix === "object") {
if (Array.isArray(mix)) {
for (k = 0; k < mix.length; k++) {
if (mix[k]) {
if (y = toVal(mix[k])) {
str && (str += " ");
str += y;
}
}
}
} else {
for (k in mix) {
if (mix[k]) {
str && (str += " ");
str += k;
}
}
}
}
return str;
}
function clsx(...args) {
var i = 0, tmp, x, str = "";
while (i < args.length) {
if (tmp = args[i++]) {
if (x = toVal(tmp)) {
str && (str += " ");
str += x;
}
}
}
return str;
}
// src/common/object.ts
var renameProp = (oldProp, newProp, { [oldProp]: old, ...others }) => ({
[newProp]: old,
...others
});
var copyObject = (obj) => {
if (!isObject(obj)) return obj;
if (obj instanceof Array) return [...obj];
return { ...obj };
};
var omitObject = (obj, omitKeys) => {
if (!isObject(obj)) return obj;
if (obj instanceof Array) return [...obj];
const newObj = { ...obj };
omitKeys.forEach((key) => newObj[key] && delete newObj[key]);
return newObj;
};
var cleanObject = (obj) => {
if (!isObject(obj)) return obj;
if (obj instanceof Array) return [...obj];
const newObj = { ...obj };
Object.keys(newObj).forEach((key) => {
if (newObj[key] === void 0 || newObj[key] === null) {
delete newObj[key];
}
});
return newObj;
};
var cleanObjectKeys = (obj, keys = []) => {
if (!isObject(obj)) return obj;
if (obj instanceof Array) return [...obj];
const newObj = { ...obj };
keys.forEach((key) => {
if (newObj[key]) {
delete newObj[key];
}
});
return newObj;
};
var getKeyValue = (obj, key) => {
if (!isObject(obj)) return obj;
if (obj instanceof Array) return [...obj];
return obj[key];
};
var getProp = (obj, path, fallback, index) => {
const key = typeof path === "string" ? path.split(".") : [path];
for (index = 0; index < key.length; index += 1) {
if (!obj) break;
obj = obj[key[index]];
}
return obj === void 0 ? fallback : obj;
};
var arrayToObject = (arr) => {
if (!arr.length || !Array.isArray(arr)) return {};
return arr.reduce((acc, item) => {
return { ...acc, ...item };
}, {});
};
function compact(object) {
const clone = Object.assign({}, object);
for (let key in clone) {
if (clone[key] === void 0) delete clone[key];
}
return clone;
}
// src/common/text.ts
var safeText = (text) => {
if ((text == null ? void 0 : text.length) <= 4) return text;
return text == null ? void 0 : text.slice(0, 3);
};
var safeInitials = (text) => {
const initials = (text == null ? void 0 : text.trim().split(/[\s\-_.]+/).filter(Boolean).map((word) => word.charAt(0).toUpperCase()).join("")) || "";
return safeText(initials);
};
var safeAriaLabel = (...texts) => {
let ariaLabel = " ";
for (const text of texts) {
if (typeof text === "string" && text.length > 0) {
ariaLabel = text;
break;
}
}
return ariaLabel;
};
// src/common/dimensions.ts
var getMargin = (num) => {
return `calc(${num * 15.25}pt + 1px * ${num - 1})`;
};
// src/common/functions.ts
var capitalize = (s) => {
return s ? s.charAt(0).toUpperCase() + s.slice(1).toLowerCase() : "";
};
function callAllHandlers(...fns) {
return function func(event) {
fns.some((fn) => {
fn == null ? void 0 : fn(event);
return event == null ? void 0 : event.defaultPrevented;
});
};
}
function callAll(...fns) {
return function mergedFn(arg) {
fns.forEach((fn) => {
fn == null ? void 0 : fn(arg);
});
};
}
function extractProperty(key, defaultValue, ...objs) {
let result = defaultValue;
for (const obj of objs) {
if (obj && key in obj && !!obj[key]) {
result = obj[key];
}
}
return result;
}
function getUniqueID(prefix) {
return `${prefix}-${Math.floor(Math.random() * 1e6)}`;
}
function removeEvents(input) {
for (const key in input) {
if (key.startsWith("on")) {
delete input[key];
}
}
return input;
}
function objectToDeps(obj) {
if (!obj || typeof obj !== "object") {
return "";
}
try {
return JSON.stringify(obj);
} catch {
return "";
}
}
function debounce(func, waitMilliseconds = 0) {
let timeout;
return function(...args) {
const later = () => {
timeout = void 0;
func.apply(this, args);
};
if (timeout !== void 0) {
clearTimeout(timeout);
}
timeout = setTimeout(later, waitMilliseconds);
};
}
function uniqBy(arr, iteratee) {
if (typeof iteratee === "string") {
iteratee = (item) => item[iteratee];
}
return arr.filter((x, i, self) => i === self.findIndex((y) => iteratee(x) === iteratee(y)));
}
var omit = (obj, keys) => {
const res = Object.assign({}, obj);
keys.forEach((key) => {
delete res[key];
});
return res;
};
var kebabCase = (s) => {
return s.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
};
var mapKeys = (obj, iteratee) => {
return Object.fromEntries(
Object.entries(obj).map(([key, value]) => [iteratee(value, key), value])
);
};
var get = (object, path, defaultValue) => {
const keys = Array.isArray(path) ? path : path.replace(/\[(\d+)\]/g, ".$1").split(".");
let res = object;
for (const key of keys) {
res = res == null ? void 0 : res[key];
if (res === void 0) {
return defaultValue;
}
}
return res;
};
var intersectionBy = (...args) => {
if (args.length < 2) {
throw new Error("intersectionBy requires at least two arrays and an iteratee");
}
const iteratee = args[args.length - 1];
const arrays = args.slice(0, -1);
if (arrays.length === 0) {
return [];
}
const getIterateeValue = (item) => {
if (typeof iteratee === "function") {
return iteratee(item);
} else if (typeof iteratee === "string") {
return item[iteratee];
} else {
throw new Error("Iteratee must be a function or a string key of the array elements");
}
};
const [first, ...rest] = arrays;
const transformedFirst = first.map((item) => getIterateeValue(item));
const transformedSets = rest.map(
(array) => new Set(array.map((item) => getIterateeValue(item)))
);
const res = [];
const seen = /* @__PURE__ */ new Set();
for (let i = 0; i < first.length; i++) {
const item = first[i];
const transformed = transformedFirst[i];
if (seen.has(transformed)) {
continue;
}
const existsInAll = transformedSets.every((set) => set.has(transformed));
if (existsInAll) {
res.push(item);
seen.add(transformed);
}
}
return res;
};
// src/common/numbers.ts
function range(start, end) {
const length = end - start + 1;
return Array.from({ length }, (_, index) => index + start);
}
function clamp(value, min, max) {
return Math.min(Math.max(value, min), max);
}
function clampPercentage(value, max = 100) {
return Math.min(Math.max(value, 0), max);
}
// src/common/console.ts
var warningStack = {};
function warn(message, component, ...args) {
const tag = component ? ` [${component}]` : " ";
const log = `[Hero UI]${tag}: ${message}`;
if (typeof console === "undefined") return;
if (warningStack[log]) return;
warningStack[log] = true;
if (process.env.NODE_ENV !== "production") {
return console.warn(log, args);
}
}
// src/common/dates.ts
function getGregorianYearOffset(identifier) {
switch (identifier) {
case "buddhist":
return 543;
case "ethiopic":
case "ethioaa":
return -8;
case "coptic":
return -284;
case "hebrew":
return 3760;
case "indian":
return -78;
case "islamic-civil":
case "islamic-tbla":
case "islamic-umalqura":
return -579;
case "persian":
return -600;
case "roc":
case "japanese":
case "gregory":
default:
return 0;
}
}
// src/common/regex.ts
var isPatternNumeric = (pattern) => {
const numericPattern = /(^|\W)[0-9](\W|$)/;
return numericPattern.test(pattern) && !/[^\d\^$\[\]\(\)\*\+\-\.\|]/.test(pattern);
};
// src/common/ra.ts
function chain(...callbacks) {
return (...args) => {
for (let callback of callbacks) {
if (typeof callback === "function") {
callback(...args);
}
}
};
}
var idsUpdaterMap = /* @__PURE__ */ new Map();
function mergeIds(idA, idB) {
if (idA === idB) {
return idA;
}
let setIdsA = idsUpdaterMap.get(idA);
if (setIdsA) {
setIdsA.forEach((ref) => ref.current = idB);
return idB;
}
let setIdsB = idsUpdaterMap.get(idB);
if (setIdsB) {
setIdsB.forEach((ref) => ref.current = idA);
return idA;
}
return idB;
}
function mergeProps(...args) {
let result = { ...args[0] };
for (let i = 1; i < args.length; i++) {
let props = args[i];
for (let key in props) {
let a = result[key];
let b = props[key];
if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
65 && key.charCodeAt(2) <= /* 'Z' */
90) {
result[key] = chain(a, b);
} else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") {
result[key] = clsx(a, b);
} else if (key === "id" && a && b) {
result.id = mergeIds(a, b);
} else {
result[key] = b !== void 0 ? b : a;
}
}
}
return result;
}
function mergeRefs(...refs) {
if (refs.length === 1 && refs[0]) {
return refs[0];
}
return (value) => {
let hasCleanup = false;
const cleanups = refs.map((ref) => {
const cleanup = setRef(ref, value);
hasCleanup || (hasCleanup = typeof cleanup == "function");
return cleanup;
});
if (hasCleanup) {
return () => {
cleanups.forEach((cleanup, i) => {
if (typeof cleanup === "function") {
cleanup == null ? void 0 : cleanup();
} else {
setRef(refs[i], null);
}
});
};
}
};
}
function setRef(ref, value) {
if (typeof ref === "function") {
return () => ref(value);
} else if (ref != null) {
if ("current" in ref) {
ref.current = value;
}
}
}
export {
__DEV__,
__TEST__,
arrayToObject,
callAll,
callAllHandlers,
capitalize,
chain,
clamp,
clampPercentage,
cleanObject,
cleanObjectKeys,
clsx,
compact,
copyObject,
dataAttr,
debounce,
extractProperty,
get,
getGregorianYearOffset,
getInertValue,
getKeyValue,
getMargin,
getProp,
getUniqueID,
idsUpdaterMap,
intersectionBy,
isArray,
isEmpty,
isEmptyArray,
isEmptyObject,
isFunction,
isNumeric,
isObject,
isPatternNumeric,
kebabCase,
mapKeys,
mergeIds,
mergeProps,
mergeRefs,
objectToDeps,
omit,
omitObject,
range,
removeEvents,
renameProp,
safeAriaLabel,
safeInitials,
safeText,
uniqBy,
warn
};
@@ -0,0 +1,3 @@
declare const _exports: import('eslint').Rule.RuleModule;
export = _exports;
//# sourceMappingURL=no-set-state.d.ts.map
@@ -0,0 +1 @@
{"version":3,"names":["_checkInRHS","value","Object","TypeError"],"sources":["../../src/helpers/checkInRHS.ts"],"sourcesContent":["/* @minVersion 7.20.5 */\n\nexport default function _checkInRHS(value: unknown) {\n if (Object(value) !== value) {\n throw TypeError(\n \"right-hand side of 'in' should be an object, got \" +\n (value !== null ? typeof value : \"null\"),\n );\n }\n return value;\n}\n"],"mappings":";;;;;;AAEe,SAASA,WAAWA,CAACC,KAAc,EAAE;EAClD,IAAIC,MAAM,CAACD,KAAK,CAAC,KAAKA,KAAK,EAAE;IAC3B,MAAME,SAAS,CACb,mDAAmD,IAChDF,KAAK,KAAK,IAAI,GAAG,OAAOA,KAAK,GAAG,MAAM,CAC3C,CAAC;EACH;EACA,OAAOA,KAAK;AACd","ignoreList":[]}
@@ -0,0 +1,6 @@
{
"private": true,
"types": "../dist/react.d.ts",
"main": "../dist/cjs/react.js",
"module": "../dist/es/react.mjs"
}
@@ -0,0 +1,588 @@
// parse a single path portion
import { parseClass } from './brace-expressions.js';
import { unescape } from './unescape.js';
const types = new Set(['!', '?', '+', '*', '@']);
const isExtglobType = (c) => types.has(c);
// Patterns that get prepended to bind to the start of either the
// entire string, or just a single path portion, to prevent dots
// and/or traversal patterns, when needed.
// Exts don't need the ^ or / bit, because the root binds that already.
const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
const startNoDot = '(?!\\.)';
// characters that indicate a start of pattern needs the "no dots" bit,
// because a dot *might* be matched. ( is not in the list, because in
// the case of a child extglob, it will handle the prevention itself.
const addPatternStart = new Set(['[', '.']);
// cases where traversal is A-OK, no dot prevention needed
const justDots = new Set(['..', '.']);
const reSpecials = new Set('().*{}+?[]^$\\!');
const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
// any single thing other than /
const qmark = '[^/]';
// * => any number of characters
const star = qmark + '*?';
// use + when we need to ensure that *something* matches, because the * is
// the only thing in the path portion.
const starNoEmpty = qmark + '+?';
// remove the \ chars that we added if we end up doing a nonmagic compare
// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
export class AST {
type;
#root;
#hasMagic;
#uflag = false;
#parts = [];
#parent;
#parentIndex;
#negs;
#filledNegs = false;
#options;
#toString;
// set to true if it's an extglob with no children
// (which really means one child of '')
#emptyExt = false;
constructor(type, parent, options = {}) {
this.type = type;
// extglobs are inherently magical
if (type)
this.#hasMagic = true;
this.#parent = parent;
this.#root = this.#parent ? this.#parent.#root : this;
this.#options = this.#root === this ? options : this.#root.#options;
this.#negs = this.#root === this ? [] : this.#root.#negs;
if (type === '!' && !this.#root.#filledNegs)
this.#negs.push(this);
this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
}
get hasMagic() {
/* c8 ignore start */
if (this.#hasMagic !== undefined)
return this.#hasMagic;
/* c8 ignore stop */
for (const p of this.#parts) {
if (typeof p === 'string')
continue;
if (p.type || p.hasMagic)
return (this.#hasMagic = true);
}
// note: will be undefined until we generate the regexp src and find out
return this.#hasMagic;
}
// reconstructs the pattern
toString() {
if (this.#toString !== undefined)
return this.#toString;
if (!this.type) {
return (this.#toString = this.#parts.map(p => String(p)).join(''));
}
else {
return (this.#toString =
this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
}
}
#fillNegs() {
/* c8 ignore start */
if (this !== this.#root)
throw new Error('should only call on root');
if (this.#filledNegs)
return this;
/* c8 ignore stop */
// call toString() once to fill this out
this.toString();
this.#filledNegs = true;
let n;
while ((n = this.#negs.pop())) {
if (n.type !== '!')
continue;
// walk up the tree, appending everthing that comes AFTER parentIndex
let p = n;
let pp = p.#parent;
while (pp) {
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
for (const part of n.#parts) {
/* c8 ignore start */
if (typeof part === 'string') {
throw new Error('string part in extglob AST??');
}
/* c8 ignore stop */
part.copyIn(pp.#parts[i]);
}
}
p = pp;
pp = p.#parent;
}
}
return this;
}
push(...parts) {
for (const p of parts) {
if (p === '')
continue;
/* c8 ignore start */
if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
throw new Error('invalid part: ' + p);
}
/* c8 ignore stop */
this.#parts.push(p);
}
}
toJSON() {
const ret = this.type === null
? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
: [this.type, ...this.#parts.map(p => p.toJSON())];
if (this.isStart() && !this.type)
ret.unshift([]);
if (this.isEnd() &&
(this === this.#root ||
(this.#root.#filledNegs && this.#parent?.type === '!'))) {
ret.push({});
}
return ret;
}
isStart() {
if (this.#root === this)
return true;
// if (this.type) return !!this.#parent?.isStart()
if (!this.#parent?.isStart())
return false;
if (this.#parentIndex === 0)
return true;
// if everything AHEAD of this is a negation, then it's still the "start"
const p = this.#parent;
for (let i = 0; i < this.#parentIndex; i++) {
const pp = p.#parts[i];
if (!(pp instanceof AST && pp.type === '!')) {
return false;
}
}
return true;
}
isEnd() {
if (this.#root === this)
return true;
if (this.#parent?.type === '!')
return true;
if (!this.#parent?.isEnd())
return false;
if (!this.type)
return this.#parent?.isEnd();
// if not root, it'll always have a parent
/* c8 ignore start */
const pl = this.#parent ? this.#parent.#parts.length : 0;
/* c8 ignore stop */
return this.#parentIndex === pl - 1;
}
copyIn(part) {
if (typeof part === 'string')
this.push(part);
else
this.push(part.clone(this));
}
clone(parent) {
const c = new AST(this.type, parent);
for (const p of this.#parts) {
c.copyIn(p);
}
return c;
}
static #parseAST(str, ast, pos, opt) {
let escaping = false;
let inBrace = false;
let braceStart = -1;
let braceNeg = false;
if (ast.type === null) {
// outside of a extglob, append until we find a start
let i = pos;
let acc = '';
while (i < str.length) {
const c = str.charAt(i++);
// still accumulate escapes at this point, but we do ignore
// starts that are escaped
if (escaping || c === '\\') {
escaping = !escaping;
acc += c;
continue;
}
if (inBrace) {
if (i === braceStart + 1) {
if (c === '^' || c === '!') {
braceNeg = true;
}
}
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
inBrace = false;
}
acc += c;
continue;
}
else if (c === '[') {
inBrace = true;
braceStart = i;
braceNeg = false;
acc += c;
continue;
}
if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
ast.push(acc);
acc = '';
const ext = new AST(c, ast);
i = AST.#parseAST(str, ext, i, opt);
ast.push(ext);
continue;
}
acc += c;
}
ast.push(acc);
return i;
}
// some kind of extglob, pos is at the (
// find the next | or )
let i = pos + 1;
let part = new AST(null, ast);
const parts = [];
let acc = '';
while (i < str.length) {
const c = str.charAt(i++);
// still accumulate escapes at this point, but we do ignore
// starts that are escaped
if (escaping || c === '\\') {
escaping = !escaping;
acc += c;
continue;
}
if (inBrace) {
if (i === braceStart + 1) {
if (c === '^' || c === '!') {
braceNeg = true;
}
}
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
inBrace = false;
}
acc += c;
continue;
}
else if (c === '[') {
inBrace = true;
braceStart = i;
braceNeg = false;
acc += c;
continue;
}
if (isExtglobType(c) && str.charAt(i) === '(') {
part.push(acc);
acc = '';
const ext = new AST(c, part);
part.push(ext);
i = AST.#parseAST(str, ext, i, opt);
continue;
}
if (c === '|') {
part.push(acc);
acc = '';
parts.push(part);
part = new AST(null, ast);
continue;
}
if (c === ')') {
if (acc === '' && ast.#parts.length === 0) {
ast.#emptyExt = true;
}
part.push(acc);
acc = '';
ast.push(...parts, part);
return i;
}
acc += c;
}
// unfinished extglob
// if we got here, it was a malformed extglob! not an extglob, but
// maybe something else in there.
ast.type = null;
ast.#hasMagic = undefined;
ast.#parts = [str.substring(pos - 1)];
return i;
}
static fromGlob(pattern, options = {}) {
const ast = new AST(null, undefined, options);
AST.#parseAST(pattern, ast, 0, options);
return ast;
}
// returns the regular expression if there's magic, or the unescaped
// string if not.
toMMPattern() {
// should only be called on root
/* c8 ignore start */
if (this !== this.#root)
return this.#root.toMMPattern();
/* c8 ignore stop */
const glob = this.toString();
const [re, body, hasMagic, uflag] = this.toRegExpSource();
// if we're in nocase mode, and not nocaseMagicOnly, then we do
// still need a regular expression if we have to case-insensitively
// match capital/lowercase characters.
const anyMagic = hasMagic ||
this.#hasMagic ||
(this.#options.nocase &&
!this.#options.nocaseMagicOnly &&
glob.toUpperCase() !== glob.toLowerCase());
if (!anyMagic) {
return body;
}
const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
return Object.assign(new RegExp(`^${re}$`, flags), {
_src: re,
_glob: glob,
});
}
get options() {
return this.#options;
}
// returns the string match, the regexp source, whether there's magic
// in the regexp (so a regular expression is required) and whether or
// not the uflag is needed for the regular expression (for posix classes)
// TODO: instead of injecting the start/end at this point, just return
// the BODY of the regexp, along with the start/end portions suitable
// for binding the start/end in either a joined full-path makeRe context
// (where we bind to (^|/), or a standalone matchPart context (where
// we bind to ^, and not /). Otherwise slashes get duped!
//
// In part-matching mode, the start is:
// - if not isStart: nothing
// - if traversal possible, but not allowed: ^(?!\.\.?$)
// - if dots allowed or not possible: ^
// - if dots possible and not allowed: ^(?!\.)
// end is:
// - if not isEnd(): nothing
// - else: $
//
// In full-path matching mode, we put the slash at the START of the
// pattern, so start is:
// - if first pattern: same as part-matching mode
// - if not isStart(): nothing
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
// - if dots allowed or not possible: /
// - if dots possible and not allowed: /(?!\.)
// end is:
// - if last pattern, same as part-matching mode
// - else nothing
//
// Always put the (?:$|/) on negated tails, though, because that has to be
// there to bind the end of the negated pattern portion, and it's easier to
// just stick it in now rather than try to inject it later in the middle of
// the pattern.
//
// We can just always return the same end, and leave it up to the caller
// to know whether it's going to be used joined or in parts.
// And, if the start is adjusted slightly, can do the same there:
// - if not isStart: nothing
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
// - if dots allowed or not possible: (?:/|^)
// - if dots possible and not allowed: (?:/|^)(?!\.)
//
// But it's better to have a simpler binding without a conditional, for
// performance, so probably better to return both start options.
//
// Then the caller just ignores the end if it's not the first pattern,
// and the start always gets applied.
//
// But that's always going to be $ if it's the ending pattern, or nothing,
// so the caller can just attach $ at the end of the pattern when building.
//
// So the todo is:
// - better detect what kind of start is needed
// - return both flavors of starting pattern
// - attach $ at the end of the pattern when creating the actual RegExp
//
// Ah, but wait, no, that all only applies to the root when the first pattern
// is not an extglob. If the first pattern IS an extglob, then we need all
// that dot prevention biz to live in the extglob portions, because eg
// +(*|.x*) can match .xy but not .yx.
//
// So, return the two flavors if it's #root and the first child is not an
// AST, otherwise leave it to the child AST to handle it, and there,
// use the (?:^|/) style of start binding.
//
// Even simplified further:
// - Since the start for a join is eg /(?!\.) and the start for a part
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
// or start or whatever) and prepend ^ or / at the Regexp construction.
toRegExpSource(allowDot) {
const dot = allowDot ?? !!this.#options.dot;
if (this.#root === this)
this.#fillNegs();
if (!this.type) {
const noEmpty = this.isStart() && this.isEnd();
const src = this.#parts
.map(p => {
const [re, _, hasMagic, uflag] = typeof p === 'string'
? AST.#parseGlob(p, this.#hasMagic, noEmpty)
: p.toRegExpSource(allowDot);
this.#hasMagic = this.#hasMagic || hasMagic;
this.#uflag = this.#uflag || uflag;
return re;
})
.join('');
let start = '';
if (this.isStart()) {
if (typeof this.#parts[0] === 'string') {
// this is the string that will match the start of the pattern,
// so we need to protect against dots and such.
// '.' and '..' cannot match unless the pattern is that exactly,
// even if it starts with . or dot:true is set.
const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
if (!dotTravAllowed) {
const aps = addPatternStart;
// check if we have a possibility of matching . or ..,
// and prevent that.
const needNoTrav =
// dots are allowed, and the pattern starts with [ or .
(dot && aps.has(src.charAt(0))) ||
// the pattern starts with \., and then [ or .
(src.startsWith('\\.') && aps.has(src.charAt(2))) ||
// the pattern starts with \.\., and then [ or .
(src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
// no need to prevent dots if it can't match a dot, or if a
// sub-pattern will be preventing it anyway.
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
}
}
}
// append the "end of path portion" pattern to negation tails
let end = '';
if (this.isEnd() &&
this.#root.#filledNegs &&
this.#parent?.type === '!') {
end = '(?:$|\\/)';
}
const final = start + src + end;
return [
final,
unescape(src),
(this.#hasMagic = !!this.#hasMagic),
this.#uflag,
];
}
// We need to calculate the body *twice* if it's a repeat pattern
// at the start, once in nodot mode, then again in dot mode, so a
// pattern like *(?) can match 'x.y'
const repeated = this.type === '*' || this.type === '+';
// some kind of extglob
const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
let body = this.#partsToRegExp(dot);
if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
// invalid extglob, has to at least be *something* present, if it's
// the entire path portion.
const s = this.toString();
this.#parts = [s];
this.type = null;
this.#hasMagic = undefined;
return [s, unescape(this.toString()), false, false];
}
// XXX abstract out this map method
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
? ''
: this.#partsToRegExp(true);
if (bodyDotAllowed === body) {
bodyDotAllowed = '';
}
if (bodyDotAllowed) {
body = `(?:${body})(?:${bodyDotAllowed})*?`;
}
// an empty !() is exactly equivalent to a starNoEmpty
let final = '';
if (this.type === '!' && this.#emptyExt) {
final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
}
else {
const close = this.type === '!'
? // !() must match something,but !(x) can match ''
'))' +
(this.isStart() && !dot && !allowDot ? startNoDot : '') +
star +
')'
: this.type === '@'
? ')'
: this.type === '?'
? ')?'
: this.type === '+' && bodyDotAllowed
? ')'
: this.type === '*' && bodyDotAllowed
? `)?`
: `)${this.type}`;
final = start + body + close;
}
return [
final,
unescape(body),
(this.#hasMagic = !!this.#hasMagic),
this.#uflag,
];
}
#partsToRegExp(dot) {
return this.#parts
.map(p => {
// extglob ASTs should only contain parent ASTs
/* c8 ignore start */
if (typeof p === 'string') {
throw new Error('string type in extglob ast??');
}
/* c8 ignore stop */
// can ignore hasMagic, because extglobs are already always magic
const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
this.#uflag = this.#uflag || uflag;
return re;
})
.filter(p => !(this.isStart() && this.isEnd()) || !!p)
.join('|');
}
static #parseGlob(glob, hasMagic, noEmpty = false) {
let escaping = false;
let re = '';
let uflag = false;
for (let i = 0; i < glob.length; i++) {
const c = glob.charAt(i);
if (escaping) {
escaping = false;
re += (reSpecials.has(c) ? '\\' : '') + c;
continue;
}
if (c === '\\') {
if (i === glob.length - 1) {
re += '\\\\';
}
else {
escaping = true;
}
continue;
}
if (c === '[') {
const [src, needUflag, consumed, magic] = parseClass(glob, i);
if (consumed) {
re += src;
uflag = uflag || needUflag;
i += consumed - 1;
hasMagic = hasMagic || magic;
continue;
}
}
if (c === '*') {
if (noEmpty && glob === '*')
re += starNoEmpty;
else
re += star;
hasMagic = true;
continue;
}
if (c === '?') {
re += qmark;
hasMagic = true;
continue;
}
re += regExpEscape(c);
}
return [re, unescape(glob), !!hasMagic, uflag];
}
}
//# sourceMappingURL=ast.js.map
@@ -0,0 +1,6 @@
tasks:
- init: yarn install && yarn run build
command: yarn run start
ports:
- port: 8080
onOpen: open-preview
@@ -0,0 +1,44 @@
import { __assign, __read, __rest, __spreadArray } from "tslib";
import { useMemo } from 'react';
import useMemoizedFn from '../useMemoizedFn';
import useRequest from '../useRequest';
var usePagination = function (service, options) {
var _a;
if (options === void 0) { options = {}; }
var _b = options.defaultPageSize, defaultPageSize = _b === void 0 ? 10 : _b, _c = options.defaultCurrent, defaultCurrent = _c === void 0 ? 1 : _c, rest = __rest(options, ["defaultPageSize", "defaultCurrent"]);
var result = useRequest(service, __assign({ defaultParams: [{ current: defaultCurrent, pageSize: defaultPageSize }], refreshDepsAction: function () {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
changeCurrent(1);
} }, rest));
var _d = result.params[0] || {}, _e = _d.current, current = _e === void 0 ? 1 : _e, _f = _d.pageSize, pageSize = _f === void 0 ? defaultPageSize : _f;
var total = ((_a = result.data) === null || _a === void 0 ? void 0 : _a.total) || 0;
var totalPage = useMemo(function () { return Math.ceil(total / pageSize); }, [pageSize, total]);
var onChange = function (c, p) {
var toCurrent = c <= 0 ? 1 : c;
var toPageSize = p <= 0 ? 1 : p;
var tempTotalPage = Math.ceil(total / toPageSize);
if (toCurrent > tempTotalPage) {
toCurrent = Math.max(1, tempTotalPage);
}
var _a = __read(result.params || []), _b = _a[0], oldPaginationParams = _b === void 0 ? {} : _b, restParams = _a.slice(1);
result.run.apply(result, __spreadArray([], __read(__spreadArray([
__assign(__assign({}, oldPaginationParams), { current: toCurrent, pageSize: toPageSize })
], __read(restParams), false)), false));
};
var changeCurrent = function (c) {
onChange(c, pageSize);
};
var changePageSize = function (p) {
onChange(current, p);
};
return __assign(__assign({}, result), { pagination: {
current: current,
pageSize: pageSize,
total: total,
totalPage: totalPage,
onChange: useMemoizedFn(onChange),
changeCurrent: useMemoizedFn(changeCurrent),
changePageSize: useMemoizedFn(changePageSize),
} });
};
export default usePagination;
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=UnmanagedClassElementMetadata.js.map
@@ -0,0 +1,459 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = applyDecs;
var _setFunctionName = require("setFunctionName");
var _toPropertyKey = require("toPropertyKey");
function old_createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
return {
getMetadata: function (key) {
old_assertNotFinished(decoratorFinishedRef, "getMetadata");
old_assertMetadataKey(key);
var metadataForKey = metadataMap[key];
if (metadataForKey === void 0) return void 0;
if (kind === 1) {
var pub = metadataForKey.public;
if (pub !== void 0) {
return pub[property];
}
} else if (kind === 2) {
var priv = metadataForKey.private;
if (priv !== void 0) {
return priv.get(property);
}
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) {
return metadataForKey.constructor;
}
},
setMetadata: function (key, value) {
old_assertNotFinished(decoratorFinishedRef, "setMetadata");
old_assertMetadataKey(key);
var metadataForKey = metadataMap[key];
if (metadataForKey === void 0) {
metadataForKey = metadataMap[key] = {};
}
if (kind === 1) {
var pub = metadataForKey.public;
if (pub === void 0) {
pub = metadataForKey.public = {};
}
pub[property] = value;
} else if (kind === 2) {
var priv = metadataForKey.priv;
if (priv === void 0) {
priv = metadataForKey.private = new Map();
}
priv.set(property, value);
} else {
metadataForKey.constructor = value;
}
}
};
}
function old_convertMetadataMapToFinal(obj, metadataMap) {
var parentMetadataMap = obj[Symbol.metadata || Symbol.for("Symbol.metadata")];
var metadataKeys = Object.getOwnPropertySymbols(metadataMap);
if (metadataKeys.length === 0) return;
for (var i = 0; i < metadataKeys.length; i++) {
var key = metadataKeys[i];
var metaForKey = metadataMap[key];
var parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null;
var pub = metaForKey.public;
var parentPub = parentMetaForKey ? parentMetaForKey.public : null;
if (pub && parentPub) {
Object.setPrototypeOf(pub, parentPub);
}
var priv = metaForKey.private;
if (priv) {
var privArr = Array.from(priv.values());
var parentPriv = parentMetaForKey ? parentMetaForKey.private : null;
if (parentPriv) {
privArr = privArr.concat(parentPriv);
}
metaForKey.private = privArr;
}
if (parentMetaForKey) {
Object.setPrototypeOf(metaForKey, parentMetaForKey);
}
}
if (parentMetadataMap) {
Object.setPrototypeOf(metadataMap, parentMetadataMap);
}
obj[Symbol.metadata || Symbol.for("Symbol.metadata")] = metadataMap;
}
function old_createAddInitializerMethod(initializers, decoratorFinishedRef) {
return function addInitializer(initializer) {
old_assertNotFinished(decoratorFinishedRef, "addInitializer");
old_assertCallable(initializer, "An initializer");
initializers.push(initializer);
};
}
function old_memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
var kindStr;
switch (kind) {
case 1:
kindStr = "accessor";
break;
case 2:
kindStr = "method";
break;
case 3:
kindStr = "getter";
break;
case 4:
kindStr = "setter";
break;
default:
kindStr = "field";
}
var ctx = {
kind: kindStr,
name: isPrivate ? "#" + name : _toPropertyKey(name),
isStatic: isStatic,
isPrivate: isPrivate
};
var decoratorFinishedRef = {
v: false
};
if (kind !== 0) {
ctx.addInitializer = old_createAddInitializerMethod(initializers, decoratorFinishedRef);
}
var metadataKind, metadataName;
if (isPrivate) {
metadataKind = 2;
metadataName = Symbol(name);
var access = {};
if (kind === 0) {
access.get = desc.get;
access.set = desc.set;
} else if (kind === 2) {
access.get = function () {
return desc.value;
};
} else {
if (kind === 1 || kind === 3) {
access.get = function () {
return desc.get.call(this);
};
}
if (kind === 1 || kind === 4) {
access.set = function (v) {
desc.set.call(this, v);
};
}
}
ctx.access = access;
} else {
metadataKind = 1;
metadataName = name;
}
try {
return dec(value, Object.assign(ctx, old_createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
} finally {
decoratorFinishedRef.v = true;
}
}
function old_assertNotFinished(decoratorFinishedRef, fnName) {
if (decoratorFinishedRef.v) {
throw new Error("attempted to call " + fnName + " after decoration was finished");
}
}
function old_assertMetadataKey(key) {
if (typeof key !== "symbol") {
throw new TypeError("Metadata keys must be symbols, received: " + key);
}
}
function old_assertCallable(fn, hint) {
if (typeof fn !== "function") {
throw new TypeError(hint + " must be a function");
}
}
function old_assertValidReturnValue(kind, value) {
var type = typeof value;
if (kind === 1) {
if (type !== "object" || value === null) {
throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
}
if (value.get !== undefined) {
old_assertCallable(value.get, "accessor.get");
}
if (value.set !== undefined) {
old_assertCallable(value.set, "accessor.set");
}
if (value.init !== undefined) {
old_assertCallable(value.init, "accessor.init");
}
if (value.initializer !== undefined) {
old_assertCallable(value.initializer, "accessor.initializer");
}
} else if (type !== "function") {
var hint;
if (kind === 0) {
hint = "field";
} else if (kind === 10) {
hint = "class";
} else {
hint = "method";
}
throw new TypeError(hint + " decorators must return a function or void 0");
}
}
function old_getInit(desc) {
var initializer;
if ((initializer = desc.init) == null && (initializer = desc.initializer) && typeof console !== "undefined") {
console.warn(".initializer has been renamed to .init as of March 2022");
}
return initializer;
}
function old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
var decs = decInfo[0];
var desc, initializer, prefix, value;
if (isPrivate) {
if (kind === 0 || kind === 1) {
desc = {
get: decInfo[3],
set: decInfo[4]
};
prefix = "get";
} else if (kind === 3) {
desc = {
get: decInfo[3]
};
prefix = "get";
} else if (kind === 4) {
desc = {
set: decInfo[3]
};
prefix = "set";
} else {
desc = {
value: decInfo[3]
};
}
if (kind !== 0) {
if (kind === 1) {
_setFunctionName(decInfo[4], "#" + name, "set");
}
_setFunctionName(decInfo[3], "#" + name, prefix);
}
} else if (kind !== 0) {
desc = Object.getOwnPropertyDescriptor(base, name);
}
if (kind === 1) {
value = {
get: desc.get,
set: desc.set
};
} else if (kind === 2) {
value = desc.value;
} else if (kind === 3) {
value = desc.get;
} else if (kind === 4) {
value = desc.set;
}
var newValue, get, set;
if (typeof decs === "function") {
newValue = old_memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value);
if (newValue !== void 0) {
old_assertValidReturnValue(kind, newValue);
if (kind === 0) {
initializer = newValue;
} else if (kind === 1) {
initializer = old_getInit(newValue);
get = newValue.get || value.get;
set = newValue.set || value.set;
value = {
get: get,
set: set
};
} else {
value = newValue;
}
}
} else {
for (var i = decs.length - 1; i >= 0; i--) {
var dec = decs[i];
newValue = old_memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value);
if (newValue !== void 0) {
old_assertValidReturnValue(kind, newValue);
var newInit;
if (kind === 0) {
newInit = newValue;
} else if (kind === 1) {
newInit = old_getInit(newValue);
get = newValue.get || value.get;
set = newValue.set || value.set;
value = {
get: get,
set: set
};
} else {
value = newValue;
}
if (newInit !== void 0) {
if (initializer === void 0) {
initializer = newInit;
} else if (typeof initializer === "function") {
initializer = [initializer, newInit];
} else {
initializer.push(newInit);
}
}
}
}
}
if (kind === 0 || kind === 1) {
if (initializer === void 0) {
initializer = function (instance, init) {
return init;
};
} else if (typeof initializer !== "function") {
var ownInitializers = initializer;
initializer = function (instance, init) {
var value = init;
for (var i = 0; i < ownInitializers.length; i++) {
value = ownInitializers[i].call(instance, value);
}
return value;
};
} else {
var originalInitializer = initializer;
initializer = function (instance, init) {
return originalInitializer.call(instance, init);
};
}
ret.push(initializer);
}
if (kind !== 0) {
if (kind === 1) {
desc.get = value.get;
desc.set = value.set;
} else if (kind === 2) {
desc.value = value;
} else if (kind === 3) {
desc.get = value;
} else if (kind === 4) {
desc.set = value;
}
if (isPrivate) {
if (kind === 1) {
ret.push(function (instance, args) {
return value.get.call(instance, args);
});
ret.push(function (instance, args) {
return value.set.call(instance, args);
});
} else if (kind === 2) {
ret.push(value);
} else {
ret.push(function (instance, args) {
return value.call(instance, args);
});
}
} else {
Object.defineProperty(base, name, desc);
}
}
}
function old_applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
var protoInitializers;
var staticInitializers;
var existingProtoNonFields = new Map();
var existingStaticNonFields = new Map();
for (var i = 0; i < decInfos.length; i++) {
var decInfo = decInfos[i];
if (!Array.isArray(decInfo)) continue;
var kind = decInfo[1];
var name = decInfo[2];
var isPrivate = decInfo.length > 3;
var isStatic = kind >= 5;
var base;
var metadataMap;
var initializers;
if (isStatic) {
base = Class;
metadataMap = staticMetadataMap;
kind = kind - 5;
if (kind !== 0) {
staticInitializers = staticInitializers || [];
initializers = staticInitializers;
}
} else {
base = Class.prototype;
metadataMap = protoMetadataMap;
if (kind !== 0) {
protoInitializers = protoInitializers || [];
initializers = protoInitializers;
}
}
if (kind !== 0 && !isPrivate) {
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields;
var existingKind = existingNonFields.get(name) || 0;
if (existingKind === true || existingKind === 3 && kind !== 4 || existingKind === 4 && kind !== 3) {
throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
} else if (!existingKind && kind > 2) {
existingNonFields.set(name, kind);
} else {
existingNonFields.set(name, true);
}
}
old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
}
old_pushInitializers(ret, protoInitializers);
old_pushInitializers(ret, staticInitializers);
}
function old_pushInitializers(ret, initializers) {
if (initializers) {
ret.push(function (instance) {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(instance);
}
return instance;
});
}
}
function old_applyClassDecs(ret, targetClass, metadataMap, classDecs) {
if (classDecs.length > 0) {
var initializers = [];
var newClass = targetClass;
var name = targetClass.name;
for (var i = classDecs.length - 1; i >= 0; i--) {
var decoratorFinishedRef = {
v: false
};
try {
var ctx = Object.assign({
kind: "class",
name: name,
addInitializer: old_createAddInitializerMethod(initializers, decoratorFinishedRef)
}, old_createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef));
var nextNewClass = classDecs[i](newClass, ctx);
} finally {
decoratorFinishedRef.v = true;
}
if (nextNewClass !== undefined) {
old_assertValidReturnValue(10, nextNewClass);
newClass = nextNewClass;
}
}
ret.push(newClass, function () {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(newClass);
}
});
}
}
function applyDecs(targetClass, memberDecs, classDecs) {
var ret = [];
var staticMetadataMap = {};
var protoMetadataMap = {};
old_applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs);
old_convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap);
old_applyClassDecs(ret, targetClass, staticMetadataMap, classDecs);
old_convertMetadataMapToFinal(targetClass, staticMetadataMap);
return ret;
}
//# sourceMappingURL=applyDecs.js.map
@@ -0,0 +1,20 @@
import arrayPush from './_arrayPush.js';
import isArray from './isArray.js';
/**
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
* symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Function} keysFunc The function to get the keys of `object`.
* @param {Function} symbolsFunc The function to get the symbols of `object`.
* @returns {Array} Returns the array of property names and symbols.
*/
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
var result = keysFunc(object);
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}
export default baseGetAllKeys;
@@ -0,0 +1,17 @@
import identity from './identity.js';
import metaMap from './_metaMap.js';
/**
* The base implementation of `setData` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to associate metadata with.
* @param {*} data The metadata.
* @returns {Function} Returns `func`.
*/
var baseSetData = !metaMap ? identity : function(func, data) {
metaMap.set(func, data);
return func;
};
export default baseSetData;
@@ -0,0 +1 @@
export { _ as default } from "../esm/_class_apply_descriptor_update.js";
@@ -0,0 +1,43 @@
import type { ScrollBlot } from 'parchment';
import Delta from 'quill-delta';
import type { EmitterSource } from '../core/emitter.js';
import Module from '../core/module.js';
import Quill from '../core/quill.js';
import type { Range } from '../core/selection.js';
type Selector = string | Node['TEXT_NODE'] | Node['ELEMENT_NODE'];
type Matcher = (node: Node, delta: Delta, scroll: ScrollBlot) => Delta;
interface ClipboardOptions {
matchers: [Selector, Matcher][];
}
declare class Clipboard extends Module<ClipboardOptions> {
static DEFAULTS: ClipboardOptions;
matchers: [Selector, Matcher][];
constructor(quill: Quill, options: Partial<ClipboardOptions>);
addMatcher(selector: Selector, matcher: Matcher): void;
convert({ html, text }: {
html?: string;
text?: string;
}, formats?: Record<string, unknown>): Delta;
protected normalizeHTML(doc: Document): void;
protected convertHTML(html: string): Delta;
dangerouslyPasteHTML(html: string, source?: EmitterSource): void;
dangerouslyPasteHTML(index: number, html: string, source?: EmitterSource): void;
onCaptureCopy(e: ClipboardEvent, isCut?: boolean): void;
private normalizeURIList;
onCapturePaste(e: ClipboardEvent): void;
onCopy(range: Range, isCut: boolean): {
html: string;
text: string;
};
onPaste(range: Range, { text, html }: {
text?: string;
html?: string;
}): void;
prepareMatching(container: Element, nodeMatches: WeakMap<Node, Matcher[]>): Matcher[][];
}
declare function traverse(scroll: ScrollBlot, node: ChildNode, elementMatchers: Matcher[], textMatchers: Matcher[], nodeMatches: WeakMap<Node, Matcher[]>): Delta;
declare function matchAttributor(node: HTMLElement, delta: Delta, scroll: ScrollBlot): Delta;
declare function matchBlot(node: Node, delta: Delta, scroll: ScrollBlot): Delta;
declare function matchNewline(node: Node, delta: Delta, scroll: ScrollBlot): Delta;
declare function matchText(node: HTMLElement, delta: Delta, scroll: ScrollBlot): Delta;
export { Clipboard as default, matchAttributor, matchBlot, matchNewline, matchText, traverse, };
@@ -0,0 +1,19 @@
'use strict';
var $TypeError = require('es-errors/type');
var callBound = require('call-bound');
var $dataViewByteOffset = callBound('DataView.prototype.byteOffset', true);
var isDataView = require('is-data-view');
// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter
/** @type {import('.')} */
module.exports = $dataViewByteOffset || function byteOffset(x) {
if (!isDataView(x)) {
throw new $TypeError('not a DataView');
}
return x.byteOffset;
};
@@ -0,0 +1,10 @@
"use strict";
var _class_apply_descriptor_update = require("./_class_apply_descriptor_update.cjs");
var _class_extract_field_descriptor = require("./_class_extract_field_descriptor.cjs");
function _class_private_field_update(receiver, privateMap) {
var descriptor = _class_extract_field_descriptor._(receiver, privateMap, "update");
return _class_apply_descriptor_update._(receiver, descriptor);
}
exports._ = _class_private_field_update;
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "cloneDeep", {
enumerable: true,
get: function() {
return cloneDeep;
}
});
function cloneDeep(value) {
if (Array.isArray(value)) {
return value.map((child)=>cloneDeep(child));
}
if (typeof value === "object" && value !== null) {
return Object.fromEntries(Object.entries(value).map(([k, v])=>[
k,
cloneDeep(v)
]));
}
return value;
}
@@ -0,0 +1,261 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assertSimpleType = assertSimpleType;
exports.makeStrongCache = makeStrongCache;
exports.makeStrongCacheSync = makeStrongCacheSync;
exports.makeWeakCache = makeWeakCache;
exports.makeWeakCacheSync = makeWeakCacheSync;
function _gensync() {
const data = require("gensync");
_gensync = function () {
return data;
};
return data;
}
var _async = require("../gensync-utils/async.js");
var _util = require("./util.js");
const synchronize = gen => {
return _gensync()(gen).sync;
};
function* genTrue() {
return true;
}
function makeWeakCache(handler) {
return makeCachedFunction(WeakMap, handler);
}
function makeWeakCacheSync(handler) {
return synchronize(makeWeakCache(handler));
}
function makeStrongCache(handler) {
return makeCachedFunction(Map, handler);
}
function makeStrongCacheSync(handler) {
return synchronize(makeStrongCache(handler));
}
function makeCachedFunction(CallCache, handler) {
const callCacheSync = new CallCache();
const callCacheAsync = new CallCache();
const futureCache = new CallCache();
return function* cachedFunction(arg, data) {
const asyncContext = yield* (0, _async.isAsync)();
const callCache = asyncContext ? callCacheAsync : callCacheSync;
const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data);
if (cached.valid) return cached.value;
const cache = new CacheConfigurator(data);
const handlerResult = handler(arg, cache);
let finishLock;
let value;
if ((0, _util.isIterableIterator)(handlerResult)) {
value = yield* (0, _async.onFirstPause)(handlerResult, () => {
finishLock = setupAsyncLocks(cache, futureCache, arg);
});
} else {
value = handlerResult;
}
updateFunctionCache(callCache, cache, arg, value);
if (finishLock) {
futureCache.delete(arg);
finishLock.release(value);
}
return value;
};
}
function* getCachedValue(cache, arg, data) {
const cachedValue = cache.get(arg);
if (cachedValue) {
for (const {
value,
valid
} of cachedValue) {
if (yield* valid(data)) return {
valid: true,
value
};
}
}
return {
valid: false,
value: null
};
}
function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) {
const cached = yield* getCachedValue(callCache, arg, data);
if (cached.valid) {
return cached;
}
if (asyncContext) {
const cached = yield* getCachedValue(futureCache, arg, data);
if (cached.valid) {
const value = yield* (0, _async.waitFor)(cached.value.promise);
return {
valid: true,
value
};
}
}
return {
valid: false,
value: null
};
}
function setupAsyncLocks(config, futureCache, arg) {
const finishLock = new Lock();
updateFunctionCache(futureCache, config, arg, finishLock);
return finishLock;
}
function updateFunctionCache(cache, config, arg, value) {
if (!config.configured()) config.forever();
let cachedValue = cache.get(arg);
config.deactivate();
switch (config.mode()) {
case "forever":
cachedValue = [{
value,
valid: genTrue
}];
cache.set(arg, cachedValue);
break;
case "invalidate":
cachedValue = [{
value,
valid: config.validator()
}];
cache.set(arg, cachedValue);
break;
case "valid":
if (cachedValue) {
cachedValue.push({
value,
valid: config.validator()
});
} else {
cachedValue = [{
value,
valid: config.validator()
}];
cache.set(arg, cachedValue);
}
}
}
class CacheConfigurator {
constructor(data) {
this._active = true;
this._never = false;
this._forever = false;
this._invalidate = false;
this._configured = false;
this._pairs = [];
this._data = void 0;
this._data = data;
}
simple() {
return makeSimpleConfigurator(this);
}
mode() {
if (this._never) return "never";
if (this._forever) return "forever";
if (this._invalidate) return "invalidate";
return "valid";
}
forever() {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._never) {
throw new Error("Caching has already been configured with .never()");
}
this._forever = true;
this._configured = true;
}
never() {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._forever) {
throw new Error("Caching has already been configured with .forever()");
}
this._never = true;
this._configured = true;
}
using(handler) {
if (!this._active) {
throw new Error("Cannot change caching after evaluation has completed.");
}
if (this._never || this._forever) {
throw new Error("Caching has already been configured with .never or .forever()");
}
this._configured = true;
const key = handler(this._data);
const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`);
if ((0, _async.isThenable)(key)) {
return key.then(key => {
this._pairs.push([key, fn]);
return key;
});
}
this._pairs.push([key, fn]);
return key;
}
invalidate(handler) {
this._invalidate = true;
return this.using(handler);
}
validator() {
const pairs = this._pairs;
return function* (data) {
for (const [key, fn] of pairs) {
if (key !== (yield* fn(data))) return false;
}
return true;
};
}
deactivate() {
this._active = false;
}
configured() {
return this._configured;
}
}
function makeSimpleConfigurator(cache) {
function cacheFn(val) {
if (typeof val === "boolean") {
if (val) cache.forever();else cache.never();
return;
}
return cache.using(() => assertSimpleType(val()));
}
cacheFn.forever = () => cache.forever();
cacheFn.never = () => cache.never();
cacheFn.using = cb => cache.using(() => assertSimpleType(cb()));
cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb()));
return cacheFn;
}
function assertSimpleType(value) {
if ((0, _async.isThenable)(value)) {
throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`);
}
if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") {
throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
}
return value;
}
class Lock {
constructor() {
this.released = false;
this.promise = void 0;
this._resolve = void 0;
this.promise = new Promise(resolve => {
this._resolve = resolve;
});
}
release(value) {
this.released = true;
this._resolve(value);
}
}
0 && 0;
//# sourceMappingURL=caching.js.map
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`
};
//# sourceMappingURL=pt-BR.main.js.map
@@ -0,0 +1,80 @@
{
"name": "side-channel-map",
"version": "1.0.1",
"description": "Store information about any JS value in a side channel, using a Map",
"main": "index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"types": "./index.d.ts",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && attw -P",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>= 10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ljharb/side-channel-map.git"
},
"keywords": [],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/side-channel-map/issues"
},
"homepage": "https://github.com/ljharb/side-channel-map#readme",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.2",
"@types/get-intrinsic": "^1.2.3",
"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.6.5",
"auto-changelog": "^2.5.0",
"eclint": "^2.8.1",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
},
"engines": {
"node": ">= 0.4"
}
}
@@ -0,0 +1,17 @@
var $8b5d459f86e9b23c$exports = {};
$8b5d459f86e9b23c$exports = {
"deselectedItem": (args)=>`${args.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
"longPressToSelect": `\u{9577}\u{62BC}\u{3057}\u{3057}\u{3066}\u{9078}\u{629E}\u{30E2}\u{30FC}\u{30C9}\u{3092}\u{958B}\u{304D}\u{307E}\u{3059}\u{3002}`,
"select": `\u{9078}\u{629E}`,
"selectedAll": `\u{3059}\u{3079}\u{3066}\u{306E}\u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`,
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
"=0": `\u{9805}\u{76EE}\u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}`,
one: ()=>`${formatter.number(args.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,
other: ()=>`${formatter.number(args.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`
})}\u{3002}`,
"selectedItem": (args)=>`${args.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
export {$8b5d459f86e9b23c$exports as default};
//# sourceMappingURL=ja-JP.module.js.map
@@ -0,0 +1,31 @@
"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/menu-item-base.tsx
var menu_item_base_exports = {};
__export(menu_item_base_exports, {
default: () => menu_item_base_default
});
module.exports = __toCommonJS(menu_item_base_exports);
var import_aria_utils = require("@heroui/aria-utils");
var MenuItemBase = import_aria_utils.BaseItem;
var menu_item_base_default = MenuItemBase;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
@@ -0,0 +1 @@
{"version":3,"file":"MetadataName.js","sourceRoot":"","sources":["../../../../src/metadata/models/MetadataName.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
import { createRule } from '../utils/index.js';
export default createRule({
name: 'no-mutable-exports',
meta: {
type: 'suggestion',
docs: {
category: 'Helpful warnings',
description: 'Forbid the use of mutable exports with `var` or `let`.',
},
schema: [],
messages: {
noMutable: "Exporting mutable '{{kind}}' binding, use 'const' instead.",
},
},
defaultOptions: [],
create(context) {
function checkDeclaration(node) {
if ('kind' in node && (node.kind === 'var' || node.kind === 'let')) {
context.report({
node,
messageId: 'noMutable',
data: {
kind: node.kind,
},
});
}
}
function checkDeclarationsInScope({ variables }, name) {
for (const variable of variables) {
if (variable.name === name) {
for (const def of variable.defs) {
if (def.type === 'Variable' && def.parent) {
checkDeclaration(def.parent);
}
}
}
}
}
return {
ExportDefaultDeclaration(node) {
const scope = context.sourceCode.getScope(node);
if ('name' in node.declaration) {
checkDeclarationsInScope(scope, node.declaration.name);
}
},
ExportNamedDeclaration(node) {
const scope = context.sourceCode.getScope(node);
if (node.declaration) {
checkDeclaration(node.declaration);
}
else if (!node.source) {
for (const specifier of node.specifiers) {
checkDeclarationsInScope(scope, specifier.local.name);
}
}
},
};
},
});
//# sourceMappingURL=no-mutable-exports.js.map
@@ -0,0 +1,39 @@
/**
* @typedef { import('estree').Node} Node
* @typedef {{
* skip: () => void;
* remove: () => void;
* replace: (node: Node) => void;
* }} WalkerContext
*/
export class WalkerBase {
/** @type {boolean} */
should_skip: boolean;
/** @type {boolean} */
should_remove: boolean;
/** @type {Node | null} */
replacement: Node | null;
/** @type {WalkerContext} */
context: WalkerContext;
/**
* @template {Node} Parent
* @param {Parent | null | undefined} parent
* @param {keyof Parent | null | undefined} prop
* @param {number | null | undefined} index
* @param {Node} node
*/
replace<Parent extends import("estree").Node>(parent: Parent | null | undefined, prop: keyof Parent | null | undefined, index: number | null | undefined, node: Node): void;
/**
* @template {Node} Parent
* @param {Parent | null | undefined} parent
* @param {keyof Parent | null | undefined} prop
* @param {number | null | undefined} index
*/
remove<Parent_1 extends import("estree").Node>(parent: Parent_1 | null | undefined, prop: keyof Parent_1 | null | undefined, index: number | null | undefined): void;
}
export type Node = import('estree').Node;
export type WalkerContext = {
skip: () => void;
remove: () => void;
replace: (node: Node) => void;
};
@@ -0,0 +1,178 @@
'use strict';
const eslint = require('eslint');
const semver = require('semver');
const convertConfig = require('./shared/eslint-compat-utils.503aeaae.cjs');
const getUnsupported = require('./shared/eslint-compat-utils.cb53cf36.cjs');
require('module');
function _interopNamespaceCompat(e) {
if (e && typeof e === 'object' && 'default' in e) return e;
const n = Object.create(null);
if (e) {
for (const k in e) {
n[k] = e[k];
}
}
n.default = e;
return n;
}
const eslint__namespace = /*#__PURE__*/_interopNamespaceCompat(eslint);
const semver__namespace = /*#__PURE__*/_interopNamespaceCompat(semver);
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
let cacheESLint, cacheLegacyESLint;
function getESLint() {
return cacheESLint != null ? cacheESLint : cacheESLint = getESLintInternal();
function getESLintInternal() {
if (semver__namespace.gte(eslint__namespace.Linter.version, "9.0.0-0")) {
return eslint__namespace.ESLint;
}
return getUnsupported.getUnsupported().FlatESLint || (eslint__namespace.ESLint ? getESLintClassFromLegacyESLint(eslint__namespace.ESLint) : getESLintClassFromLegacyESLint(getLegacyESLintClassFromCLIEngine()));
}
}
function getLegacyESLint() {
return cacheLegacyESLint != null ? cacheLegacyESLint : cacheLegacyESLint = getLegacyESLintInternal();
function getLegacyESLintInternal() {
return getUnsupported.getUnsupported().LegacyESLint || eslint__namespace.ESLint || getLegacyESLintClassFromCLIEngine();
}
}
function getESLintClassFromLegacyESLint(legacyESLintClass) {
return class ESLintFromLegacyESLint extends legacyESLintClass {
static get version() {
return legacyESLintClass.version;
}
constructor(options) {
super(adjustOptions(options));
}
};
function adjustOptions(options) {
const {
baseConfig: originalBaseConfig,
overrideConfig: originalOverrideConfig,
overrideConfigFile,
...newOptions
} = options || {};
if (originalBaseConfig) {
const [baseConfig, plugins] = convertConfig$1(originalBaseConfig);
newOptions.baseConfig = baseConfig;
if (plugins) {
newOptions.plugins = plugins;
}
}
if (originalOverrideConfig) {
const [overrideConfig, plugins] = convertConfig$1(originalOverrideConfig);
newOptions.overrideConfig = overrideConfig;
if (plugins) {
newOptions.plugins = plugins;
}
}
if (overrideConfigFile) {
if (overrideConfigFile === true) {
newOptions.useEslintrc = false;
} else {
newOptions.overrideConfigFile = overrideConfigFile;
}
}
return newOptions;
}
function convertConfig$1(config) {
const pluginDefs = {};
const newConfigs = [];
for (const configItem of Array.isArray(config) ? config : [config]) {
const { plugins, ...otherConfig } = configItem;
if (typeof otherConfig.processor !== "string")
delete otherConfig.processor;
const newConfig = {
files: ["**/*.*", "*.*", "**/*", "*"],
...convertConfig.convertConfigToRc(otherConfig)
};
if (plugins) {
newConfig.plugins = Object.keys(plugins);
}
Object.assign(pluginDefs, plugins);
newConfigs.push(newConfig);
}
return [{ overrides: newConfigs }, pluginDefs];
}
}
function getLegacyESLintClassFromCLIEngine() {
const CLIEngine = eslint__namespace.CLIEngine;
class LegacyESLintFromCLIEngine {
constructor(options) {
__publicField(this, "engine");
const {
overrideConfig: {
plugins,
globals,
rules,
overrides,
...overrideConfig
} = {
plugins: [],
globals: {},
rules: {},
overrides: []
},
fix,
reportUnusedDisableDirectives,
plugins: pluginsMap,
...otherOptions
} = options || {};
const cliEngineOptions = {
baseConfig: {
...overrides ? {
overrides
} : {}
},
fix: Boolean(fix),
reportUnusedDisableDirectives: reportUnusedDisableDirectives ? reportUnusedDisableDirectives !== "off" : void 0,
...otherOptions,
globals: globals ? Object.keys(globals).filter((n) => globals[n]) : void 0,
plugins: plugins || [],
rules: rules ? Object.fromEntries(
Object.entries(rules).flatMap(
([ruleId, opt]) => opt ? [[ruleId, opt]] : []
)
) : void 0,
...overrideConfig
};
this.engine = new CLIEngine(cliEngineOptions);
for (const [name, plugin] of Object.entries(pluginsMap || {})) {
this.engine.addPlugin(name, plugin);
}
}
static get version() {
return CLIEngine.version;
}
// eslint-disable-next-line @typescript-eslint/require-await -- ignore
async lintText(...params) {
var _a;
const result = this.engine.executeOnText(params[0], (_a = params[1]) == null ? void 0 : _a.filePath);
return result.results;
}
// eslint-disable-next-line @typescript-eslint/require-await -- ignore
async lintFiles(...params) {
const result = this.engine.executeOnFiles(
Array.isArray(params[0]) ? params[0] : [params[0]]
);
return result.results;
}
// eslint-disable-next-line @typescript-eslint/require-await -- ignore
static async outputFixes(...params) {
return CLIEngine.outputFixes({
results: params[0]
});
}
}
return LegacyESLintFromCLIEngine;
}
exports.getESLint = getESLint;
exports.getLegacyESLint = getLegacyESLint;
@@ -0,0 +1,30 @@
type ScrollValue = {
x: number;
y: number;
};
interface UseScrollPositionOptions {
/**
* The wait time in milliseconds before triggering the callback.
* @default 30
*/
delay?: number;
/**
* Whether the scroll position should be tracked or not.
* @default true
*/
isEnabled?: boolean;
/**
* The element to track the scroll position for.
*/
elementRef?: React.RefObject<HTMLElement> | null;
/**
* The callback function to be called when the scroll position changes.
*/
callback?: ({ prevPos, currPos }: {
prevPos: ScrollValue;
currPos: ScrollValue;
}) => void;
}
declare const useScrollPosition: (props: UseScrollPositionOptions) => ScrollValue;
export { ScrollValue, UseScrollPositionOptions, useScrollPosition };
@@ -0,0 +1,72 @@
var $8TwZf$reactariautils = require("@react-aria/utils");
var $8TwZf$reactariafocus = require("@react-aria/focus");
var $8TwZf$reactariainteractions = require("@react-aria/interactions");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useLink", () => $fbe6b19572273b2f$export$dcf14c9974fe2767);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $fbe6b19572273b2f$export$dcf14c9974fe2767(props, ref) {
let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, // @ts-ignore
onClick: deprecatedOnClick, isDisabled: isDisabled, ...otherProps } = props;
let linkProps = {};
if (elementType !== 'a') linkProps = {
role: 'link',
tabIndex: !isDisabled ? 0 : undefined
};
let { focusableProps: focusableProps } = (0, $8TwZf$reactariafocus.useFocusable)(props, ref);
let { pressProps: pressProps, isPressed: isPressed } = (0, $8TwZf$reactariainteractions.usePress)({
onPress: onPress,
onPressStart: onPressStart,
onPressEnd: onPressEnd,
isDisabled: isDisabled,
ref: ref
});
let domProps = (0, $8TwZf$reactariautils.filterDOMProps)(otherProps, {
labelable: true
});
let interactionHandlers = (0, $8TwZf$reactariautils.mergeProps)(focusableProps, pressProps);
let router = (0, $8TwZf$reactariautils.useRouter)();
let routerLinkProps = (0, $8TwZf$reactariautils.useLinkProps)(props);
return {
isPressed: isPressed,
linkProps: (0, $8TwZf$reactariautils.mergeProps)(domProps, routerLinkProps, {
...interactionHandlers,
...linkProps,
'aria-disabled': isDisabled || undefined,
'aria-current': props['aria-current'],
onClick: (e)=>{
var _pressProps_onClick;
(_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);
if (deprecatedOnClick) {
deprecatedOnClick(e);
console.warn('onClick is deprecated, please use onPress');
}
// If a custom router is provided, prevent default and forward if this link should client navigate.
if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
!e.isDefaultPrevented() && (0, $8TwZf$reactariautils.shouldClientNavigate)(e.currentTarget, e) && props.href) {
e.preventDefault();
router.open(e.currentTarget, e, props.href, props.routerOptions);
}
}
})
};
}
//# sourceMappingURL=useLink.main.js.map
@@ -0,0 +1,26 @@
'use strict';
var test = require('tape');
var defineProperties = require('define-properties');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var missing = {};
var theGlobal = typeof globalThis === 'object' ? globalThis : missing;
var runTests = require('./tests');
test('native', { todo: theGlobal === missing }, function (t) {
if (theGlobal !== missing) {
t.equal(typeof theGlobal, 'object', 'globalThis is an object');
t.equal('globalThis' in theGlobal, true, 'globalThis is in globalThis');
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(theGlobal, 'globalThis'), 'globalThis is not enumerable');
et.end();
});
runTests(theGlobal, t);
}
t.end();
});
@@ -0,0 +1,65 @@
/**
* @fileoverview Define the cursor which iterates tokens and comments.
* @author Toru Nagashima
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const Cursor = require("./cursor");
const { getFirstIndex, search } = require("./utils");
//------------------------------------------------------------------------------
// Exports
//------------------------------------------------------------------------------
/**
* The cursor which iterates tokens and comments.
*/
module.exports = class ForwardTokenCommentCursor extends Cursor {
/**
* Initializes this cursor.
* @param {Token[]} tokens The array of tokens.
* @param {Comment[]} comments The array of comments.
* @param {Object} indexMap The map from locations to indices in `tokens`.
* @param {number} startLoc The start location of the iteration range.
* @param {number} endLoc The end location of the iteration range.
*/
constructor(tokens, comments, indexMap, startLoc, endLoc) {
super();
this.tokens = tokens;
this.comments = comments;
this.tokenIndex = getFirstIndex(tokens, indexMap, startLoc);
this.commentIndex = search(comments, startLoc);
this.border = endLoc;
}
/** @inheritdoc */
moveNext() {
const token =
this.tokenIndex < this.tokens.length
? this.tokens[this.tokenIndex]
: null;
const comment =
this.commentIndex < this.comments.length
? this.comments[this.commentIndex]
: null;
if (token && (!comment || token.range[0] < comment.range[0])) {
this.current = token;
this.tokenIndex += 1;
} else if (comment) {
this.current = comment;
this.commentIndex += 1;
} else {
this.current = null;
}
return (
Boolean(this.current) &&
(this.border === -1 || this.current.range[1] <= this.border)
);
}
};
@@ -0,0 +1,42 @@
'use strict';
var $pow = require('math-intrinsics/pow');
module.exports = function bytesAsFloat64(rawBytes) {
// return new $Float64Array(new $Uint8Array(rawBytes).buffer)[0];
/*
Let value be the byte elements of rawBytes concatenated and interpreted as a little-endian bit string encoding of an IEEE 754-2008 binary64 value.
If value is an IEEE 754-2008 binary64 NaN value, return the NaN Number value.
Return the Number value that corresponds to value.
*/
var sign = rawBytes[7] & 0x80 ? -1 : 1; // first bit
var exponent = ((rawBytes[7] & 0x7F) << 4) // 7 bits from index 7
| ((rawBytes[6] & 0xF0) >> 4); // 4 bits from index 6
var mantissa = ((rawBytes[6] & 0x0F) * 0x1000000000000) // 4 bits from index 6
+ (rawBytes[5] * 0x10000000000) // 8 bits from index 5
+ (rawBytes[4] * 0x100000000) // 8 bits from index 4
+ (rawBytes[3] * 0x1000000) // 8 bits from index 3
+ (rawBytes[2] * 0x10000) // 8 bits from index 2
+ (rawBytes[1] * 0x100) // 8 bits from index 1
+ rawBytes[0]; // 8 bits from index 0
if (exponent === 0 && mantissa === 0) {
return sign * 0;
}
if (exponent === 0x7FF && mantissa !== 0) {
return NaN;
}
if (exponent === 0x7FF && mantissa === 0) {
return sign * Infinity;
}
exponent -= 1023; // subtract the bias
// Handle subnormal numbers
if (exponent === -1023) {
return sign * mantissa * 5e-324; // $pow(2, -1022 - 52)
}
return sign * (1 + (mantissa / 0x10000000000000)) * $pow(2, exponent);
};
@@ -0,0 +1,11 @@
/**
* @import {Options, State} from 'mdast-util-to-markdown'
*/
/**
* @param {State} state
* @returns {Exclude<Options['ruleRepetition'], null | undefined>}
*/
export function checkRuleRepetition(state: State): Exclude<Options["ruleRepetition"], null | undefined>;
import type { State } from 'mdast-util-to-markdown';
import type { Options } from 'mdast-util-to-markdown';
//# sourceMappingURL=check-rule-repetition.d.ts.map
@@ -0,0 +1 @@
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAQM,SAAS,0CAA6C,OAAmC;IAC9F,IAAI,CAAC,SACH,OAAO;IAGT,IAAI,wBAAwB;IAC5B,OAAO,CAAC;QACN,IAAI,QAAsB;YACxB,GAAG,CAAC;YACJ;gBACE,EAAE,cAAc;YAClB;YACA;gBACE,OAAO,EAAE,kBAAkB;YAC7B;YACA;gBACE,QAAQ,KAAK,CAAC;YAChB;YACA;gBACE,wBAAwB;YAC1B;QACF;QAEA,QAAQ;QAER,IAAI,uBACF,EAAE,eAAe;IAErB;AACF","sources":["packages/@react-aria/interactions/src/createEventHandler.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 {BaseEvent} from '@react-types/shared';\nimport {SyntheticEvent} from 'react';\n\n/**\n * This function wraps a React event handler to make stopPropagation the default, and support continuePropagation instead.\n */\nexport function createEventHandler<T extends SyntheticEvent>(handler?: (e: BaseEvent<T>) => void): ((e: T) => void) | undefined {\n if (!handler) {\n return undefined;\n }\n\n let shouldStopPropagation = true;\n return (e: T) => {\n let event: BaseEvent<T> = {\n ...e,\n preventDefault() {\n e.preventDefault();\n },\n isDefaultPrevented() {\n return e.isDefaultPrevented();\n },\n stopPropagation() {\n console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');\n },\n continuePropagation() {\n shouldStopPropagation = false;\n }\n };\n\n handler(event);\n\n if (shouldStopPropagation) {\n e.stopPropagation();\n }\n };\n}\n"],"names":[],"version":3,"file":"createEventHandler.main.js.map"}
@@ -0,0 +1,16 @@
/**
* Subtracts a specified number of months from a date.
* 从日期中减去指定数量的月份。
*
* @param date - The date to subtract months from. (要减去月份的日期。)
* @param months - The number of months to subtract. (要减去的月份数。)
* @returns A new date with the subtracted months. (减去月份后的新日期。)
* @example
* ```ts
* //Subtracting 2 months from a date (从日期中减去2)
* const date = new Date('2023-10-31T12:00:00Z');
* subMonths(date, 2);
* // Returns: 2023-08-31T12:00:00Z (返回: 2023-08-31T12:00:00Z)
* ```
*/
export default function subMonths(date: Date, months: number): Date;
@@ -0,0 +1,31 @@
/**
* Creates an array with all falsey values removed. The values `false`, `null`,
* `0`, `""`, `undefined`, and `NaN` are falsey.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to compact.
* @returns {Array} Returns the new array of filtered values.
* @example
*
* _.compact([0, 1, false, 2, '', 3]);
* // => [1, 2, 3]
*/
function compact(array) {
var index = -1,
length = array == null ? 0 : array.length,
resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (value) {
result[resIndex++] = value;
}
}
return result;
}
module.exports = compact;
@@ -0,0 +1,50 @@
export interface NumberFormatOptions extends Intl.NumberFormatOptions {
/** Overrides default numbering system for the current locale. */
numberingSystem?: string;
}
interface NumberRangeFormatPart extends Intl.NumberFormatPart {
source: 'startRange' | 'endRange' | 'shared';
}
/**
* A wrapper around Intl.NumberFormat providing additional options, polyfills, and caching for performance.
*/
export class NumberFormatter implements Intl.NumberFormat {
constructor(locale: string, options?: NumberFormatOptions);
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
format(value: number): string;
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
formatToParts(value: number): Intl.NumberFormatPart[];
/** Formats a number range as a string. */
formatRange(start: number, end: number): string;
/** Formats a number range as an array of parts. */
formatRangeToParts(start: number, end: number): NumberRangeFormatPart[];
/** Returns the resolved formatting options based on the values passed to the constructor. */
resolvedOptions(): Intl.ResolvedNumberFormatOptions;
}
/**
* A NumberParser can be used to perform locale-aware parsing of numbers from Unicode strings,
* as well as validation of partial user input. It automatically detects the numbering system
* used in the input, and supports parsing decimals, percentages, currency values, and units
* according to the locale.
*/
export class NumberParser {
constructor(locale: string, options?: Intl.NumberFormatOptions);
/**
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
*/
parse(value: string): number;
/**
* Returns whether the given string could potentially be a valid number. This should be used to
* validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
* of the minus/plus sign characters can be checked.
*/
isValidPartialNumber(value: string, minValue?: number, maxValue?: number): boolean;
/**
* Returns a numbering system for which the given string is valid in the current locale.
* If no numbering system could be detected, the default numbering system for the current
* locale is returned.
*/
getNumberingSystem(value: string): string;
}
//# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,15 @@
import copyArray from './_copyArray.js';
import shuffleSelf from './_shuffleSelf.js';
/**
* A specialized version of `_.shuffle` for arrays.
*
* @private
* @param {Array} array The array to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function arrayShuffle(array) {
return shuffleSelf(copyArray(array));
}
export default arrayShuffle;
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,eAAe,CAAC,qBAAqB,CAAC;AAC1D","sources":["packages/@react-aria/breadcrumbs/intl/pl-PL.json"],"sourcesContent":["{\n \"breadcrumbs\": \"Struktura nawigacyjna\"\n}\n"],"names":[],"version":3,"file":"pl-PL.module.js.map"}
@@ -0,0 +1,47 @@
var isFunction = require('./isFunction'),
isMasked = require('./_isMasked'),
isObject = require('./isObject'),
toSource = require('./_toSource');
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
module.exports = baseIsNative;
@@ -0,0 +1 @@
{"name":"chownr","version":"1.1.4","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532125942,"integrity":"sha512-P6dI5Z+zrwxSk1MIRPqpYG2ScYNkidLIATQXd50QzBgBh/XmcEd/nsd9NB4O9k6rfc+4dsY5DwJ7xvhpoS0PRg==","mode":420,"size":765},"chownr.js":{"checkedAt":1794532120974,"integrity":"sha512-Nt0k8esm95bvhBRZhQxMi6KClqyzVw/oZDricDhMzXIWNe1yjiBXPL/LQ+5JzvUM3t4mmdTHcUeYhHvkOi076w==","mode":420,"size":4275},"package.json":{"checkedAt":1794532125942,"integrity":"sha512-M6dcpI16w3bh2GjZ1UOIFlycsbj4uaVWHC9PBsS0M9PyhQFwkbt3BuVlMYvIqDcrhmWGIcJMfQGaxFWqASgo4A==","mode":420,"size":610},"README.md":{"checkedAt":1794532120974,"integrity":"sha512-vqdNEilOm5EwruM2pTz4GrYaWgGKmCvxtBxLB7EpusCmrpfarm0JV2bJaJNZsXi1C1R56eKRz2q7DiQiC9ghLw==","mode":420,"size":59}}}
@@ -0,0 +1,13 @@
import * as react from 'react';
import { ContextType } from './use-card.js';
import '@heroui/system';
import '@react-types/shared';
import '@heroui/theme';
import '@heroui/ripple';
import '@react-aria/interactions';
import '@heroui/react-utils';
declare const CardProvider: react.Provider<ContextType>;
declare const useCardContext: () => ContextType;
export { CardProvider, useCardContext };
@@ -0,0 +1,17 @@
var copyObject = require('./_copyObject'),
keys = require('./keys');
/**
* The base implementation of `_.assign` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssign(object, source) {
return object && copyObject(source, keys(source), object);
}
module.exports = baseAssign;
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more