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,8 @@
var $de104bf355206bcf$exports = {};
$de104bf355206bcf$exports = {
"breadcrumbs": `Putanje navigacije`
};
export {$de104bf355206bcf$exports as default};
//# sourceMappingURL=sr-SP.module.js.map
@@ -0,0 +1,22 @@
var createCaseFirst = require('./_createCaseFirst');
/**
* Converts the first character of `string` to lower case.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the converted string.
* @example
*
* _.lowerFirst('Fred');
* // => 'fred'
*
* _.lowerFirst('FRED');
* // => 'fRED'
*/
var lowerFirst = createCaseFirst('toLowerCase');
module.exports = lowerFirst;
@@ -0,0 +1,427 @@
"use strict";
/* This file is automatically generated and should not be manually edited. */
/* To modify this file, please run the `npm run build` command instead. */
0 && (module.exports = {
/* @Annotate_start: the CommonJS named exports for ESM import in node */
_apply_decorated_descriptor: null,
_apply_decs_2203_r: null,
_array_like_to_array: null,
_array_with_holes: null,
_array_without_holes: null,
_assert_this_initialized: null,
_async_generator: null,
_async_generator_delegate: null,
_async_iterator: null,
_async_to_generator: null,
_await_async_generator: null,
_await_value: null,
_call_super: null,
_check_private_redeclaration: null,
_class_apply_descriptor_destructure: null,
_class_apply_descriptor_get: null,
_class_apply_descriptor_set: null,
_class_apply_descriptor_update: null,
_class_call_check: null,
_class_check_private_static_access: null,
_class_check_private_static_field_descriptor: null,
_class_extract_field_descriptor: null,
_class_name_tdz_error: null,
_class_private_field_destructure: null,
_class_private_field_get: null,
_class_private_field_init: null,
_class_private_field_loose_base: null,
_class_private_field_loose_key: null,
_class_private_field_set: null,
_class_private_field_update: null,
_class_private_method_get: null,
_class_private_method_init: null,
_class_private_method_set: null,
_class_static_private_field_destructure: null,
_class_static_private_field_spec_get: null,
_class_static_private_field_spec_set: null,
_class_static_private_field_update: null,
_class_static_private_method_get: null,
_construct: null,
_create_class: null,
_create_for_of_iterator_helper_loose: null,
_create_super: null,
_decorate: null,
_defaults: null,
_define_enumerable_properties: null,
_define_property: null,
_dispose: null,
_export_star: null,
_extends: null,
_get: null,
_get_prototype_of: null,
_identity: null,
_inherits: null,
_inherits_loose: null,
_initializer_define_property: null,
_initializer_warning_helper: null,
_instanceof: null,
_interop_require_default: null,
_interop_require_wildcard: null,
_is_native_function: null,
_is_native_reflect_construct: null,
_iterable_to_array: null,
_iterable_to_array_limit: null,
_iterable_to_array_limit_loose: null,
_jsx: null,
_new_arrow_check: null,
_non_iterable_rest: null,
_non_iterable_spread: null,
_object_destructuring_empty: null,
_object_spread: null,
_object_spread_props: null,
_object_without_properties: null,
_object_without_properties_loose: null,
_overload_yield: null,
_possible_constructor_return: null,
_read_only_error: null,
_set: null,
_set_prototype_of: null,
_skip_first_generator_next: null,
_sliced_to_array: null,
_sliced_to_array_loose: null,
_super_prop_base: null,
_tagged_template_literal: null,
_tagged_template_literal_loose: null,
_throw: null,
_to_array: null,
_to_consumable_array: null,
_to_primitive: null,
_to_property_key: null,
_ts_add_disposable_resource: null,
_ts_decorate: null,
_ts_dispose_resources: null,
_ts_generator: null,
_ts_metadata: null,
_ts_param: null,
_ts_values: null,
_type_of: null,
_unsupported_iterable_to_array: null,
_update: null,
_using: null,
_using_ctx: null,
_wrap_async_generator: null,
_wrap_native_super: null,
_write_only_error: null
/* @Annotate_end */
});
module.exports = {
get _apply_decorated_descriptor() {
return require("./_apply_decorated_descriptor.cjs")._;
},
get _apply_decs_2203_r() {
return require("./_apply_decs_2203_r.cjs")._;
},
get _array_like_to_array() {
return require("./_array_like_to_array.cjs")._;
},
get _array_with_holes() {
return require("./_array_with_holes.cjs")._;
},
get _array_without_holes() {
return require("./_array_without_holes.cjs")._;
},
get _assert_this_initialized() {
return require("./_assert_this_initialized.cjs")._;
},
get _async_generator() {
return require("./_async_generator.cjs")._;
},
get _async_generator_delegate() {
return require("./_async_generator_delegate.cjs")._;
},
get _async_iterator() {
return require("./_async_iterator.cjs")._;
},
get _async_to_generator() {
return require("./_async_to_generator.cjs")._;
},
get _await_async_generator() {
return require("./_await_async_generator.cjs")._;
},
get _await_value() {
return require("./_await_value.cjs")._;
},
get _call_super() {
return require("./_call_super.cjs")._;
},
get _check_private_redeclaration() {
return require("./_check_private_redeclaration.cjs")._;
},
get _class_apply_descriptor_destructure() {
return require("./_class_apply_descriptor_destructure.cjs")._;
},
get _class_apply_descriptor_get() {
return require("./_class_apply_descriptor_get.cjs")._;
},
get _class_apply_descriptor_set() {
return require("./_class_apply_descriptor_set.cjs")._;
},
get _class_apply_descriptor_update() {
return require("./_class_apply_descriptor_update.cjs")._;
},
get _class_call_check() {
return require("./_class_call_check.cjs")._;
},
get _class_check_private_static_access() {
return require("./_class_check_private_static_access.cjs")._;
},
get _class_check_private_static_field_descriptor() {
return require("./_class_check_private_static_field_descriptor.cjs")._;
},
get _class_extract_field_descriptor() {
return require("./_class_extract_field_descriptor.cjs")._;
},
get _class_name_tdz_error() {
return require("./_class_name_tdz_error.cjs")._;
},
get _class_private_field_destructure() {
return require("./_class_private_field_destructure.cjs")._;
},
get _class_private_field_get() {
return require("./_class_private_field_get.cjs")._;
},
get _class_private_field_init() {
return require("./_class_private_field_init.cjs")._;
},
get _class_private_field_loose_base() {
return require("./_class_private_field_loose_base.cjs")._;
},
get _class_private_field_loose_key() {
return require("./_class_private_field_loose_key.cjs")._;
},
get _class_private_field_set() {
return require("./_class_private_field_set.cjs")._;
},
get _class_private_field_update() {
return require("./_class_private_field_update.cjs")._;
},
get _class_private_method_get() {
return require("./_class_private_method_get.cjs")._;
},
get _class_private_method_init() {
return require("./_class_private_method_init.cjs")._;
},
get _class_private_method_set() {
return require("./_class_private_method_set.cjs")._;
},
get _class_static_private_field_destructure() {
return require("./_class_static_private_field_destructure.cjs")._;
},
get _class_static_private_field_spec_get() {
return require("./_class_static_private_field_spec_get.cjs")._;
},
get _class_static_private_field_spec_set() {
return require("./_class_static_private_field_spec_set.cjs")._;
},
get _class_static_private_field_update() {
return require("./_class_static_private_field_update.cjs")._;
},
get _class_static_private_method_get() {
return require("./_class_static_private_method_get.cjs")._;
},
get _construct() {
return require("./_construct.cjs")._;
},
get _create_class() {
return require("./_create_class.cjs")._;
},
get _create_for_of_iterator_helper_loose() {
return require("./_create_for_of_iterator_helper_loose.cjs")._;
},
get _create_super() {
return require("./_create_super.cjs")._;
},
get _decorate() {
return require("./_decorate.cjs")._;
},
get _defaults() {
return require("./_defaults.cjs")._;
},
get _define_enumerable_properties() {
return require("./_define_enumerable_properties.cjs")._;
},
get _define_property() {
return require("./_define_property.cjs")._;
},
get _dispose() {
return require("./_dispose.cjs")._;
},
get _export_star() {
return require("./_export_star.cjs")._;
},
get _extends() {
return require("./_extends.cjs")._;
},
get _get() {
return require("./_get.cjs")._;
},
get _get_prototype_of() {
return require("./_get_prototype_of.cjs")._;
},
get _identity() {
return require("./_identity.cjs")._;
},
get _inherits() {
return require("./_inherits.cjs")._;
},
get _inherits_loose() {
return require("./_inherits_loose.cjs")._;
},
get _initializer_define_property() {
return require("./_initializer_define_property.cjs")._;
},
get _initializer_warning_helper() {
return require("./_initializer_warning_helper.cjs")._;
},
get _instanceof() {
return require("./_instanceof.cjs")._;
},
get _interop_require_default() {
return require("./_interop_require_default.cjs")._;
},
get _interop_require_wildcard() {
return require("./_interop_require_wildcard.cjs")._;
},
get _is_native_function() {
return require("./_is_native_function.cjs")._;
},
get _is_native_reflect_construct() {
return require("./_is_native_reflect_construct.cjs")._;
},
get _iterable_to_array() {
return require("./_iterable_to_array.cjs")._;
},
get _iterable_to_array_limit() {
return require("./_iterable_to_array_limit.cjs")._;
},
get _iterable_to_array_limit_loose() {
return require("./_iterable_to_array_limit_loose.cjs")._;
},
get _jsx() {
return require("./_jsx.cjs")._;
},
get _new_arrow_check() {
return require("./_new_arrow_check.cjs")._;
},
get _non_iterable_rest() {
return require("./_non_iterable_rest.cjs")._;
},
get _non_iterable_spread() {
return require("./_non_iterable_spread.cjs")._;
},
get _object_destructuring_empty() {
return require("./_object_destructuring_empty.cjs")._;
},
get _object_spread() {
return require("./_object_spread.cjs")._;
},
get _object_spread_props() {
return require("./_object_spread_props.cjs")._;
},
get _object_without_properties() {
return require("./_object_without_properties.cjs")._;
},
get _object_without_properties_loose() {
return require("./_object_without_properties_loose.cjs")._;
},
get _overload_yield() {
return require("./_overload_yield.cjs")._;
},
get _possible_constructor_return() {
return require("./_possible_constructor_return.cjs")._;
},
get _read_only_error() {
return require("./_read_only_error.cjs")._;
},
get _set() {
return require("./_set.cjs")._;
},
get _set_prototype_of() {
return require("./_set_prototype_of.cjs")._;
},
get _skip_first_generator_next() {
return require("./_skip_first_generator_next.cjs")._;
},
get _sliced_to_array() {
return require("./_sliced_to_array.cjs")._;
},
get _sliced_to_array_loose() {
return require("./_sliced_to_array_loose.cjs")._;
},
get _super_prop_base() {
return require("./_super_prop_base.cjs")._;
},
get _tagged_template_literal() {
return require("./_tagged_template_literal.cjs")._;
},
get _tagged_template_literal_loose() {
return require("./_tagged_template_literal_loose.cjs")._;
},
get _throw() {
return require("./_throw.cjs")._;
},
get _to_array() {
return require("./_to_array.cjs")._;
},
get _to_consumable_array() {
return require("./_to_consumable_array.cjs")._;
},
get _to_primitive() {
return require("./_to_primitive.cjs")._;
},
get _to_property_key() {
return require("./_to_property_key.cjs")._;
},
get _ts_add_disposable_resource() {
return require("./_ts_add_disposable_resource.cjs")._;
},
get _ts_decorate() {
return require("./_ts_decorate.cjs")._;
},
get _ts_dispose_resources() {
return require("./_ts_dispose_resources.cjs")._;
},
get _ts_generator() {
return require("./_ts_generator.cjs")._;
},
get _ts_metadata() {
return require("./_ts_metadata.cjs")._;
},
get _ts_param() {
return require("./_ts_param.cjs")._;
},
get _ts_values() {
return require("./_ts_values.cjs")._;
},
get _type_of() {
return require("./_type_of.cjs")._;
},
get _unsupported_iterable_to_array() {
return require("./_unsupported_iterable_to_array.cjs")._;
},
get _update() {
return require("./_update.cjs")._;
},
get _using() {
return require("./_using.cjs")._;
},
get _using_ctx() {
return require("./_using_ctx.cjs")._;
},
get _wrap_async_generator() {
return require("./_wrap_async_generator.cjs")._;
},
get _wrap_native_super() {
return require("./_wrap_native_super.cjs")._;
},
get _write_only_error() {
return require("./_write_only_error.cjs")._;
}
};
@@ -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("./symbols"), exports);
@@ -0,0 +1 @@
{"mappings":";;;AAAA;;;;;;;;;;CAUC,GAED,kEAAkE;AAClE,2DAA2D;AAC3D,yDAAyD;AACzD,kHAAkH;;;AAkB3G,SAAS,0CAAmB,KAA2B;IAC5D,IAAI,OAAC,GAAG,qBAAE,iBAAiB,cAAE,UAAU,0BAAE,sBAAsB,EAAC,GAAG;IACnE,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;QACpB,eAAe;QACf,2BAA2B;IAC7B;IAEA,IAAI,gBAAgB,CAAA,GAAA,qBAAa,EAAE,CAAC;QAClC,IAAI,qBAAqB,mCAAa,GAAG,MAAM;YAC7C,IAAI,wBACF,uBAAuB;YAEzB,SAAS,OAAO,CAAC,aAAa,GAAG;QACnC;IACF;IAEA,IAAI,yBAAyB,CAAA,GAAA,qBAAa,EAAE,CAAC;QAC3C,IAAI,mBACF,kBAAkB;IAEtB;IAEA,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,QAAQ,SAAS,OAAO;QAC5B,IAAI,YACF;QAGF,MAAM,UAAU,IAAI,OAAO;QAC3B,MAAM,iBAAiB,CAAA,GAAA,uBAAe,EAAE;QAExC,mFAAmF;QACnF,IAAI,OAAO,iBAAiB,aAAa;YACvC,IAAI,cAAc,CAAC;gBACjB,IAAI,MAAM,aAAa,IAAI,mCAAa,GAAG,MACzC,uBAAuB;gBAEzB,MAAM,aAAa,GAAG;YACxB;YAEA,iDAAiD;YACjD,eAAe,gBAAgB,CAAC,eAAe,eAAe;YAC9D,eAAe,gBAAgB,CAAC,aAAa,aAAa;YAE1D,OAAO;gBACL,eAAe,mBAAmB,CAAC,eAAe,eAAe;gBACjE,eAAe,mBAAmB,CAAC,aAAa,aAAa;YAC/D;QACF,OAAO;YACL,IAAI,YAAY,CAAC;gBACf,IAAI,MAAM,yBAAyB,EACjC,MAAM,yBAAyB,GAAG;qBAC7B,IAAI,MAAM,aAAa,IAAI,mCAAa,GAAG,MAChD,uBAAuB;gBAEzB,MAAM,aAAa,GAAG;YACxB;YAEA,IAAI,aAAa,CAAC;gBAChB,MAAM,yBAAyB,GAAG;gBAClC,IAAI,MAAM,aAAa,IAAI,mCAAa,GAAG,MACzC,uBAAuB;gBAEzB,MAAM,aAAa,GAAG;YACxB;YAEA,eAAe,gBAAgB,CAAC,aAAa,eAAe;YAC5D,eAAe,gBAAgB,CAAC,WAAW,WAAW;YACtD,eAAe,gBAAgB,CAAC,cAAc,eAAe;YAC7D,eAAe,gBAAgB,CAAC,YAAY,YAAY;YAExD,OAAO;gBACL,eAAe,mBAAmB,CAAC,aAAa,eAAe;gBAC/D,eAAe,mBAAmB,CAAC,WAAW,WAAW;gBACzD,eAAe,mBAAmB,CAAC,cAAc,eAAe;gBAChE,eAAe,mBAAmB,CAAC,YAAY,YAAY;YAC7D;QACF;IACF,GAAG;QAAC;QAAK;QAAY;QAAe;KAAuB;AAC7D;AAEA,SAAS,mCAAa,KAAK,EAAE,GAAG;IAC9B,IAAI,MAAM,MAAM,GAAG,GACjB,OAAO;IAGT,IAAI,MAAM,MAAM,EAAE;QAChB,2DAA2D;QAC3D,MAAM,gBAAgB,MAAM,MAAM,CAAC,aAAa;QAChD,IAAI,CAAC,iBAAiB,CAAC,cAAc,eAAe,CAAC,QAAQ,CAAC,MAAM,MAAM,GACxE,OAAO;QAGT,qEAAqE;QACrE,IAAI,MAAM,MAAM,CAAC,OAAO,CAAC,gCACvB,OAAO;IAEX;IAEA,OAAO,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,MAAM;AAC1D","sources":["packages/@react-aria/interactions/src/useInteractOutside.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\n// Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\nimport {getOwnerDocument, useEffectEvent} from '@react-aria/utils';\nimport {RefObject} from '@react-types/shared';\nimport {useEffect, useRef} from 'react';\n\nexport interface InteractOutsideProps {\n ref: RefObject<Element | null>,\n onInteractOutside?: (e: PointerEvent) => void,\n onInteractOutsideStart?: (e: PointerEvent) => void,\n /** Whether the interact outside events should be disabled. */\n isDisabled?: boolean\n}\n\n/**\n * Example, used in components like Dialogs and Popovers so they can close\n * when a user clicks outside them.\n */\nexport function useInteractOutside(props: InteractOutsideProps) {\n let {ref, onInteractOutside, isDisabled, onInteractOutsideStart} = props;\n let stateRef = useRef({\n isPointerDown: false,\n ignoreEmulatedMouseEvents: false\n });\n\n let onPointerDown = useEffectEvent((e) => {\n if (onInteractOutside && isValidEvent(e, ref)) {\n if (onInteractOutsideStart) {\n onInteractOutsideStart(e);\n }\n stateRef.current.isPointerDown = true;\n }\n });\n\n let triggerInteractOutside = useEffectEvent((e: PointerEvent) => {\n if (onInteractOutside) {\n onInteractOutside(e);\n }\n });\n\n useEffect(() => {\n let state = stateRef.current;\n if (isDisabled) {\n return;\n }\n\n const element = ref.current;\n const documentObject = getOwnerDocument(element);\n\n // Use pointer events if available. Otherwise, fall back to mouse and touch events.\n if (typeof PointerEvent !== 'undefined') {\n let onPointerUp = (e) => {\n if (state.isPointerDown && isValidEvent(e, ref)) {\n triggerInteractOutside(e);\n }\n state.isPointerDown = false;\n };\n\n // changing these to capture phase fixed combobox\n documentObject.addEventListener('pointerdown', onPointerDown, true);\n documentObject.addEventListener('pointerup', onPointerUp, true);\n\n return () => {\n documentObject.removeEventListener('pointerdown', onPointerDown, true);\n documentObject.removeEventListener('pointerup', onPointerUp, true);\Line truncated
@@ -0,0 +1,9 @@
/**
* @param {Heading} node
* @param {State} state
* @returns {boolean}
*/
export function formatHeadingAsSetext(node: Heading, state: State): boolean;
import type { Heading } from 'mdast';
import type { State } from 'mdast-util-to-markdown';
//# sourceMappingURL=format-heading-as-setext.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resolveServiceDeactivations.js","sourceRoot":"","sources":["../../../../src/resolution/actions/resolveServiceDeactivations.ts"],"names":[],"mappings":";;AAMA,kEAQC;AAVD,iFAA8E;AAE9E,SAAgB,2BAA2B,CACzC,MAA0B,EAC1B,iBAAoC;IAEpC,MAAM,QAAQ,GACZ,MAAM,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAExC,OAAO,IAAA,2DAA4B,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,30 @@
import { complex } from './index.mjs';
import { floatRegex } from '../utils/float-regex.mjs';
/**
* Properties that should default to 1 or 100%
*/
const maxDefaults = new Set(["brightness", "contrast", "saturate", "opacity"]);
function applyDefaultFilter(v) {
const [name, value] = v.slice(0, -1).split("(");
if (name === "drop-shadow")
return v;
const [number] = value.match(floatRegex) || [];
if (!number)
return v;
const unit = value.replace(number, "");
let defaultValue = maxDefaults.has(name) ? 1 : 0;
if (number !== value)
defaultValue *= 100;
return name + "(" + defaultValue + unit + ")";
}
const functionRegex = /\b([a-z-]*)\(.*?\)/gu;
const filter = {
...complex,
getAnimatableNone: (v) => {
const functions = v.match(functionRegex);
return functions ? functions.map(applyDefaultFilter).join(" ") : v;
},
};
export { filter };
@@ -0,0 +1 @@
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../src/watch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG/E,KAAK,SAAS,CACZ,YAAY,SAAS,WAAW,EAChC,WAAW,SAAS,SAAS,SAAS,CAAC,YAAY,CAAC,EAAE,GAAG,SAAS,EAAE,IAClE,WAAW,SAAS,SAAS;IAC/B,MAAM,IAAI,SAAS,SAAS,CAAC,YAAY,CAAC;IAC1C,GAAG,MAAM,cAAc;CACxB,GACG,cAAc,SAAS,SAAS,SAAS,CAAC,YAAY,CAAC,EAAE,GACvD,SAAS;IACP,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC;IAClC,GAAG,SAAS,CAAC,YAAY,EAAE,cAAc,CAAC;CAC3C,GACD,KAAK,GACP,WAAW,SAAS,SAAS,CAAC,MAAM,IAAI,SAAS,SAAS,CAAC,YAAY,CAAC,CAAC,GACvE,SAAS,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,GAC7C,WAAW,SAAS,SAAS,EAAE,GAC7B,SAAS,EAAE,GACX,KAAK,CAAC;AAEd,MAAM,MAAM,UAAU,CACpB,WAAW,SAAS,SAAS,SAAS,CAAC,YAAY,CAAC,EAAE,EACtD,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EACd,kBAAkB,GAAG,YAAY,IAC/B;IACF,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAC7D,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,EAAE,WAAW,CAAC,KAAK,SAAS,CAAC;CACrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,KAAK,GAChB,KAAK,CAAC,WAAW,SAAS,SAAS,SAAS,CAAC,YAAY,CAAC,EAAE,EAC5D,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EACd,kBAAkB,GAAG,YAAY,EACjC,6BAIC,UAAU,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,CAAC,cAGnE,CAAC"}
@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var SearchBoxRole = {
relatedConcepts: [{
module: 'ARIA',
concept: {
name: 'searchbox'
}
}, {
module: 'HTML',
concept: {
name: 'input',
attributes: [{
name: 'type',
value: 'search'
}]
}
}],
type: 'widget'
};
var _default = SearchBoxRole;
exports.default = _default;
@@ -0,0 +1,214 @@
/*
* Copyright 2022 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 {getChildNodes, getFirstItem} from '@react-stately/collections';
import {GridKeyboardDelegate} from '@react-aria/grid';
import {Key, Node} from '@react-types/shared';
import {TableCollection} from '@react-types/table';
export class TableKeyboardDelegate<T> extends GridKeyboardDelegate<T, TableCollection<T>> {
protected isCell(node: Node<T>): boolean {
return node.type === 'cell' || node.type === 'rowheader' || node.type === 'column';
}
getKeyBelow(key: Key): Key | null {
let startItem = this.collection.getItem(key);
if (!startItem) {
return null;
}
// If focus was on a column, then focus the first child column if any,
// or find the corresponding cell in the first row.
if (startItem.type === 'column') {
let child = getFirstItem(getChildNodes(startItem, this.collection));
if (child) {
return child.key;
}
let firstKey = this.getFirstKey();
if (firstKey == null) {
return null;
}
let firstItem = this.collection.getItem(firstKey);
if (!firstItem) {
return null;
}
return super.getKeyForItemInRowByIndex(firstKey, startItem.index);
}
return super.getKeyBelow(key);
}
getKeyAbove(key: Key): Key | null {
let startItem = this.collection.getItem(key);
if (!startItem) {
return null;
}
// If focus was on a column, focus the parent column if any
if (startItem.type === 'column') {
let parent = startItem.parentKey != null ? this.collection.getItem(startItem.parentKey) : null;
if (parent && parent.type === 'column') {
return parent.key;
}
return null;
}
// only return above row key if not header row
let superKey = super.getKeyAbove(key);
let superItem = superKey != null ? this.collection.getItem(superKey) : null;
if (superItem && superItem.type !== 'headerrow') {
return superKey;
}
// If no item was found, and focus was on a cell, then focus the
// corresponding column header.
if (this.isCell(startItem)) {
return this.collection.columns[startItem.index].key;
}
// If focus was on a row, then focus the first column header.
return this.collection.columns[0].key;
}
private findNextColumnKey(column: Node<T>): Key | null {
// Search following columns
let key = this.findNextKey(column.key, item => item.type === 'column');
if (key != null) {
return key;
}
// Wrap around to the first column
let row = this.collection.headerRows[column.level];
for (let item of getChildNodes(row, this.collection)) {
if (item.type === 'column') {
return item.key;
}
}
return null;
}
private findPreviousColumnKey(column: Node<T>): Key | null {
// Search previous columns
let key = this.findPreviousKey(column.key, item => item.type === 'column');
if (key != null) {
return key;
}
// Wrap around to the last column
let row = this.collection.headerRows[column.level];
let childNodes = [...getChildNodes(row, this.collection)];
for (let i = childNodes.length - 1; i >= 0; i--) {
let item = childNodes[i];
if (item.type === 'column') {
return item.key;
}
}
return null;
}
getKeyRightOf(key: Key): Key | null {
let item = this.collection.getItem(key);
if (!item) {
return null;
}
// If focus was on a column, then focus the next column
if (item.type === 'column') {
return this.direction === 'rtl'
? this.findPreviousColumnKey(item)
: this.findNextColumnKey(item);
}
return super.getKeyRightOf(key);
}
getKeyLeftOf(key: Key): Key | null {
let item = this.collection.getItem(key);
if (!item) {
return null;
}
// If focus was on a column, then focus the previous column
if (item.type === 'column') {
return this.direction === 'rtl'
? this.findNextColumnKey(item)
: this.findPreviousColumnKey(item);
}
return super.getKeyLeftOf(key);
}
getKeyForSearch(search: string, fromKey?: Key): Key | null {
if (!this.collator) {
return null;
}
let collection = this.collection;
let key = fromKey ?? this.getFirstKey();
if (key == null) {
return null;
}
// If the starting key is a cell, search from its parent row.
let startItem = collection.getItem(key);
if (startItem?.type === 'cell') {
key = startItem.parentKey ?? null;
}
let hasWrapped = false;
while (key != null) {
let item = collection.getItem(key);
if (!item) {
return null;
}
if (item.textValue) {
let substring = item.textValue.slice(0, search.length);
if (this.collator.compare(substring, search) === 0) {
return item.key;
}
}
// Check each of the row header cells in this row for a match
for (let cell of getChildNodes(item, this.collection)) {
let column = collection.columns[cell.index];
if (collection.rowHeaderColumnKeys.has(column.key) && cell.textValue) {
let substring = cell.textValue.slice(0, search.length);
if (this.collator.compare(substring, search) === 0) {
// If we started on a cell, end on the matching cell. Otherwise, end on the row.
let fromItem = fromKey != null ? collection.getItem(fromKey) : startItem;
return fromItem?.type === 'cell'
? cell.key
: item.key;
}
}
}
key = this.getKeyBelow(key);
// Wrap around when reaching the end of the collection
if (key == null && !hasWrapped) {
key = this.getFirstKey();
hasWrapped = true;
}
}
return null;
}
}
@@ -0,0 +1,41 @@
import { Collection, Key, Node, CollectionStateBase, DisabledBehavior, Expandable, MultipleSelection } from "@react-types/shared";
import { SelectionManager } from "@react-stately/selection";
export class TreeCollection<T> implements Collection<Node<T>> {
constructor(nodes: Iterable<Node<T>>, { expandedKeys }?: {
expandedKeys?: Set<Key>;
});
[Symbol.iterator](): Generator<Node<T>, void, undefined>;
get size(): number;
getKeys(): IterableIterator<Key>;
getKeyBefore(key: Key): Key | null;
getKeyAfter(key: Key): Key | null;
getFirstKey(): Key | null;
getLastKey(): Key | null;
getItem(key: Key): Node<T> | null;
at(idx: number): Node<T> | null;
}
export interface TreeProps<T> extends CollectionStateBase<T>, Expandable, MultipleSelection {
/** Whether `disabledKeys` applies to all interactions, or only selection. */
disabledBehavior?: DisabledBehavior;
}
export interface TreeState<T> {
/** A collection of items in the tree. */
readonly collection: Collection<Node<T>>;
/** A set of keys for items that are disabled. */
readonly disabledKeys: Set<Key>;
/** A set of keys for items that are expanded. */
readonly expandedKeys: Set<Key>;
/** Toggles the expanded state for an item by its key. */
toggleKey(key: Key): void;
/** Replaces the set of expanded keys. */
setExpandedKeys(keys: Set<Key>): void;
/** A selection manager to read and update multiple selection state. */
readonly selectionManager: SelectionManager;
}
/**
* Provides state management for tree-like components. Handles building a collection
* of items from props, item expanded state, and manages multiple selection state.
*/
export function useTreeState<T extends object>(props: TreeProps<T>): TreeState<T>;
//# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,25 @@
"use strict";
var _define_property = require("./_define_property.cjs");
function _object_spread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === "function") {
ownKeys = ownKeys.concat(
Object.getOwnPropertySymbols(source).filter(function(sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
})
);
}
ownKeys.forEach(function(key) {
_define_property._(target, key, source[key]);
});
}
return target;
}
exports._ = _object_spread;
@@ -0,0 +1,92 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.curryBuildServiceNodeBindings = curryBuildServiceNodeBindings;
const BindingConstraintsImplementation_1 = require("../../binding/models/BindingConstraintsImplementation");
const BindingType_1 = require("../../binding/models/BindingType");
const buildFilteredServiceBindings_1 = require("../calculations/buildFilteredServiceBindings");
const isPlanServiceRedirectionBindingNode_1 = require("../calculations/isPlanServiceRedirectionBindingNode");
function curryBuildServiceNodeBindings(subplan) {
const buildInstancePlanBindingNode = curryBuildInstancePlanBindingNode(subplan);
const buildResolvedValuePlanBindingNode = curryBuildResolvedValuePlanBindingNode(subplan);
const buildServiceNodeBindings = (params, bindingConstraintsList, serviceBindings, parentNode, chainedBindings) => {
const serviceIdentifier = (0, isPlanServiceRedirectionBindingNode_1.isPlanServiceRedirectionBindingNode)(parentNode)
? parentNode.binding.targetServiceIdentifier
: parentNode.serviceIdentifier;
params.servicesBranch.push(serviceIdentifier);
const planBindingNodes = [];
for (const binding of serviceBindings) {
switch (binding.type) {
case BindingType_1.bindingTypeValues.Instance: {
planBindingNodes.push(buildInstancePlanBindingNode(params, binding, bindingConstraintsList));
break;
}
case BindingType_1.bindingTypeValues.ResolvedValue: {
planBindingNodes.push(buildResolvedValuePlanBindingNode(params, binding, bindingConstraintsList));
break;
}
case BindingType_1.bindingTypeValues.ServiceRedirection: {
const planBindingNode = buildServiceRedirectionPlanBindingNode(params, bindingConstraintsList, binding, chainedBindings);
planBindingNodes.push(planBindingNode);
break;
}
default:
planBindingNodes.push({
binding: binding,
});
}
}
params.servicesBranch.pop();
return planBindingNodes;
};
const buildServiceRedirectionPlanBindingNode = curryBuildServiceRedirectionPlanBindingNode(buildServiceNodeBindings);
return buildServiceNodeBindings;
}
function curryBuildInstancePlanBindingNode(subplan) {
return (params, binding, bindingConstraintsList) => {
const classMetadata = params.operations.getClassMetadata(binding.implementationType);
const childNode = {
binding: binding,
classMetadata,
constructorParams: [],
propertyParams: new Map(),
};
const subplanParams = {
autobindOptions: params.autobindOptions,
node: childNode,
operations: params.operations,
servicesBranch: params.servicesBranch,
};
return subplan(subplanParams, bindingConstraintsList);
};
}
function curryBuildResolvedValuePlanBindingNode(subplan) {
return (params, binding, bindingConstraintsList) => {
const childNode = {
binding: binding,
params: [],
};
const subplanParams = {
autobindOptions: params.autobindOptions,
node: childNode,
operations: params.operations,
servicesBranch: params.servicesBranch,
};
return subplan(subplanParams, bindingConstraintsList);
};
}
function curryBuildServiceRedirectionPlanBindingNode(buildServiceNodeBindings) {
return (params, bindingConstraintsList, binding, chainedBindings) => {
const childNode = {
binding,
redirections: [],
};
const bindingConstraints = new BindingConstraintsImplementation_1.BindingConstraintsImplementation(bindingConstraintsList.last);
const filteredServiceBindings = (0, buildFilteredServiceBindings_1.buildFilteredServiceBindings)(params, bindingConstraints, {
chained: chainedBindings,
customServiceIdentifier: binding.targetServiceIdentifier,
});
childNode.redirections.push(...buildServiceNodeBindings(params, bindingConstraintsList, filteredServiceBindings, childNode, chainedBindings));
return childNode;
};
}
//# sourceMappingURL=curryBuildServiceNodeBindings.js.map
@@ -0,0 +1,69 @@
import {IdentifierRole, isTopLevelDeclaration} from "../parser/tokenizer";
import Transformer from "./Transformer";
export default class ReactHotLoaderTransformer extends Transformer {
__init() {this.extractedDefaultExportName = null}
constructor( tokens, filePath) {
super();this.tokens = tokens;this.filePath = filePath;ReactHotLoaderTransformer.prototype.__init.call(this);;
}
setExtractedDefaultExportName(extractedDefaultExportName) {
this.extractedDefaultExportName = extractedDefaultExportName;
}
getPrefixCode() {
return `
(function () {
var enterModule = require('react-hot-loader').enterModule;
enterModule && enterModule(module);
})();`
.replace(/\s+/g, " ")
.trim();
}
getSuffixCode() {
const topLevelNames = new Set();
for (const token of this.tokens.tokens) {
if (
!token.isType &&
isTopLevelDeclaration(token) &&
token.identifierRole !== IdentifierRole.ImportDeclaration
) {
topLevelNames.add(this.tokens.identifierNameForToken(token));
}
}
const namesToRegister = Array.from(topLevelNames).map((name) => ({
variableName: name,
uniqueLocalName: name,
}));
if (this.extractedDefaultExportName) {
namesToRegister.push({
variableName: this.extractedDefaultExportName,
uniqueLocalName: "default",
});
}
return `
;(function () {
var reactHotLoader = require('react-hot-loader').default;
var leaveModule = require('react-hot-loader').leaveModule;
if (!reactHotLoader) {
return;
}
${namesToRegister
.map(
({variableName, uniqueLocalName}) =>
` reactHotLoader.register(${variableName}, "${uniqueLocalName}", ${JSON.stringify(
this.filePath || "",
)});`,
)
.join("\n")}
leaveModule(module);
})();`;
}
process() {
return false;
}
}
@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var applicationRole = {
abstract: false,
accessibleNameRequired: true,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
prohibitedProps: [],
props: {
'aria-activedescendant': null,
'aria-disabled': null,
'aria-errormessage': null,
'aria-expanded': null,
'aria-haspopup': null,
'aria-invalid': null
},
relatedConcepts: [{
concept: {
name: 'Device Independence Delivery Unit'
}
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure']]
};
var _default = exports.default = applicationRole;
@@ -0,0 +1 @@
{"version":3,"file":"index.react-server.d.ts","sourceRoot":"","sources":["../src/index.react-server.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,33 @@
/**
* Bounding boxes tend to be defined as top, left, right, bottom. For various operations
* it's easier to consider each axis individually. This function returns a bounding box
* as a map of single-axis min/max values.
*/
function convertBoundingBoxToBox({ top, left, right, bottom, }) {
return {
x: { min: left, max: right },
y: { min: top, max: bottom },
};
}
function convertBoxToBoundingBox({ x, y }) {
return { top: y.min, right: x.max, bottom: y.max, left: x.min };
}
/**
* Applies a TransformPoint function to a bounding box. TransformPoint is usually a function
* provided by Framer to allow measured points to be corrected for device scaling. This is used
* when measuring DOM elements and DOM event points.
*/
function transformBoxPoints(point, transformPoint) {
if (!transformPoint)
return point;
const topLeft = transformPoint({ x: point.left, y: point.top });
const bottomRight = transformPoint({ x: point.right, y: point.bottom });
return {
top: topLeft.y,
left: topLeft.x,
bottom: bottomRight.y,
right: bottomRight.x,
};
}
export { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };
@@ -0,0 +1,118 @@
const Constants = {
space: 32,
tab: 9
}
class BufferSource{
constructor(bytesArr){
this.line = 1;
this.cols = 0;
this.buffer = bytesArr;
this.startIndex = 0;
}
readCh() {
return String.fromCharCode(this.buffer[this.startIndex++]);
}
readChAt(index) {
return String.fromCharCode(this.buffer[this.startIndex+index]);
}
readStr(n,from){
if(typeof from === "undefined") from = this.startIndex;
return this.buffer.slice(from, from + n).toString();
}
readUpto(stopStr) {
const inputLength = this.buffer.length;
const stopLength = stopStr.length;
const stopBuffer = Buffer.from(stopStr);
for (let i = this.startIndex; i < inputLength; i++) {
let match = true;
for (let j = 0; j < stopLength; j++) {
if (this.buffer[i + j] !== stopBuffer[j]) {
match = false;
break;
}
}
if (match) {
const result = this.buffer.slice(this.startIndex, i).toString();
this.startIndex = i + stopLength;
return result;
}
}
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
}
readUptoCloseTag(stopStr) { //stopStr: "</tagname"
const inputLength = this.buffer.length;
const stopLength = stopStr.length;
const stopBuffer = Buffer.from(stopStr);
let stopIndex = 0;
//0: non-matching, 1: matching stop string, 2: matching closing
let match = 0;
for (let i = this.startIndex; i < inputLength; i++) {
if(match === 1){//initial part matched
if(stopIndex === 0) stopIndex = i;
if(this.buffer[i] === Constants.space || this.buffer[i] === Constants.tab) continue;
else if(this.buffer[i] === '>'){ //TODO: if it should be equivalent ASCII
match = 2;
//tag boundary found
// this.startIndex
}
}else{
match = 1;
for (let j = 0; j < stopLength; j++) {
if (this.buffer[i + j] !== stopBuffer[j]) {
match = 0;
break;
}
}
}
if (match === 2) {//matched closing part
const result = this.buffer.slice(this.startIndex, stopIndex - 1 ).toString();
this.startIndex = i + 1;
return result;
}
}
throw new Error(`Unexpected end of source. Reading '${stopStr}'`);
}
readFromBuffer(n, shouldUpdate) {
let ch;
if (n === 1) {
ch = this.buffer[this.startIndex];
if (ch === 10) {
this.line++;
this.cols = 1;
} else {
this.cols++;
}
ch = String.fromCharCode(ch);
} else {
this.cols += n;
ch = this.buffer.slice(this.startIndex, this.startIndex + n).toString();
}
if (shouldUpdate) this.updateBuffer(n);
return ch;
}
updateBufferBoundary(n = 1) { //n: number of characters read
this.startIndex += n;
}
canRead(n){
n = n || this.startIndex;
return this.buffer.length - n + 1 > 0;
}
}
module.exports = BufferSource;
@@ -0,0 +1,36 @@
# Installation
> `npm install --save @types/triple-beam`
# Summary
This package contains type definitions for triple-beam (https://github.com/winstonjs/triple-beam).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/triple-beam.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/triple-beam/index.d.ts)
````ts
export as namespace TripleBeam;
export const LEVEL: unique symbol;
export const MESSAGE: unique symbol;
export const SPLAT: unique symbol;
export const configs: Configs;
export interface Config {
readonly levels: { [k: string]: number };
readonly colors: { [k: string]: string };
}
export interface Configs {
readonly cli: Config;
readonly npm: Config;
readonly syslog: Config;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: none
# Credits
These definitions were written by [Daniel Byrne](https://github.com/danwbyrne).
@@ -0,0 +1,43 @@
{
"name": "@alloc/quick-lru",
"version": "5.2.0",
"description": "Simple “Least Recently Used” (LRU) cache",
"license": "MIT",
"repository": "sindresorhus/quick-lru",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=10"
},
"scripts": {
"test": "xo && nyc ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"lru",
"quick",
"cache",
"caching",
"least",
"recently",
"used",
"fast",
"map",
"hash",
"buffer"
],
"devDependencies": {
"ava": "^2.0.0",
"coveralls": "^3.0.3",
"nyc": "^15.0.0",
"tsd": "^0.11.0",
"xo": "^0.26.0"
}
}
@@ -0,0 +1,18 @@
"use strict";
var GeneralNames_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeneralNames = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const general_name_1 = require("./general_name");
const asn1_schema_2 = require("@peculiar/asn1-schema");
let GeneralNames = GeneralNames_1 = class GeneralNames extends asn1_schema_2.AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, GeneralNames_1.prototype);
}
};
exports.GeneralNames = GeneralNames;
exports.GeneralNames = GeneralNames = GeneralNames_1 = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: general_name_1.GeneralName })
], GeneralNames);
@@ -0,0 +1,149 @@
// 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;
};
export {
callAll,
callAllHandlers,
capitalize,
debounce,
extractProperty,
get,
getUniqueID,
intersectionBy,
kebabCase,
mapKeys,
objectToDeps,
omit,
removeEvents,
uniqBy
};
@@ -0,0 +1,23 @@
"use strict";
var _object_without_properties_loose = require("./_object_without_properties_loose.cjs");
function _object_without_properties(source, excluded) {
if (source == null) return {};
var target = _object_without_properties_loose._(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
exports._ = _object_without_properties;
@@ -0,0 +1,16 @@
var IssueAlternativeName_1;
import { __decorate } from "tslib";
import { AsnType, AsnTypeTypes } from "@peculiar/asn1-schema";
import { GeneralNames } from "../general_names";
import { id_ce } from "../object_identifiers";
export const id_ce_issuerAltName = `${id_ce}.18`;
let IssueAlternativeName = IssueAlternativeName_1 = class IssueAlternativeName extends GeneralNames {
constructor(items) {
super(items);
Object.setPrototypeOf(this, IssueAlternativeName_1.prototype);
}
};
IssueAlternativeName = IssueAlternativeName_1 = __decorate([
AsnType({ type: AsnTypeTypes.Sequence })
], IssueAlternativeName);
export { IssueAlternativeName };
@@ -0,0 +1,602 @@
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex" }] */
'use strict';
const { Duplex } = require('stream');
const { randomFillSync } = require('crypto');
const PerMessageDeflate = require('./permessage-deflate');
const { EMPTY_BUFFER, kWebSocket, NOOP } = require('./constants');
const { isBlob, isValidStatusCode } = require('./validation');
const { mask: applyMask, toBuffer } = require('./buffer-util');
const kByteLength = Symbol('kByteLength');
const maskBuffer = Buffer.alloc(4);
const RANDOM_POOL_SIZE = 8 * 1024;
let randomPool;
let randomPoolPointer = RANDOM_POOL_SIZE;
const DEFAULT = 0;
const DEFLATING = 1;
const GET_BLOB_DATA = 2;
/**
* HyBi Sender implementation.
*/
class Sender {
/**
* Creates a Sender instance.
*
* @param {Duplex} socket The connection socket
* @param {Object} [extensions] An object containing the negotiated extensions
* @param {Function} [generateMask] The function used to generate the masking
* key
*/
constructor(socket, extensions, generateMask) {
this._extensions = extensions || {};
if (generateMask) {
this._generateMask = generateMask;
this._maskBuffer = Buffer.alloc(4);
}
this._socket = socket;
this._firstFragment = true;
this._compress = false;
this._bufferedBytes = 0;
this._queue = [];
this._state = DEFAULT;
this.onerror = NOOP;
this[kWebSocket] = undefined;
}
/**
* Frames a piece of data according to the HyBi WebSocket protocol.
*
* @param {(Buffer|String)} data The data to frame
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN bit
* @param {Function} [options.generateMask] The function used to generate the
* masking key
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
* `data`
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
* key
* @param {Number} options.opcode The opcode
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
* modified
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
* RSV1 bit
* @return {(Buffer|String)[]} The framed data
* @public
*/
static frame(data, options) {
let mask;
let merge = false;
let offset = 2;
let skipMasking = false;
if (options.mask) {
mask = options.maskBuffer || maskBuffer;
if (options.generateMask) {
options.generateMask(mask);
} else {
if (randomPoolPointer === RANDOM_POOL_SIZE) {
/* istanbul ignore else */
if (randomPool === undefined) {
//
// This is lazily initialized because server-sent frames must not
// be masked so it may never be used.
//
randomPool = Buffer.alloc(RANDOM_POOL_SIZE);
}
randomFillSync(randomPool, 0, RANDOM_POOL_SIZE);
randomPoolPointer = 0;
}
mask[0] = randomPool[randomPoolPointer++];
mask[1] = randomPool[randomPoolPointer++];
mask[2] = randomPool[randomPoolPointer++];
mask[3] = randomPool[randomPoolPointer++];
}
skipMasking = (mask[0] | mask[1] | mask[2] | mask[3]) === 0;
offset = 6;
}
let dataLength;
if (typeof data === 'string') {
if (
(!options.mask || skipMasking) &&
options[kByteLength] !== undefined
) {
dataLength = options[kByteLength];
} else {
data = Buffer.from(data);
dataLength = data.length;
}
} else {
dataLength = data.length;
merge = options.mask && options.readOnly && !skipMasking;
}
let payloadLength = dataLength;
if (dataLength >= 65536) {
offset += 8;
payloadLength = 127;
} else if (dataLength > 125) {
offset += 2;
payloadLength = 126;
}
const target = Buffer.allocUnsafe(merge ? dataLength + offset : offset);
target[0] = options.fin ? options.opcode | 0x80 : options.opcode;
if (options.rsv1) target[0] |= 0x40;
target[1] = payloadLength;
if (payloadLength === 126) {
target.writeUInt16BE(dataLength, 2);
} else if (payloadLength === 127) {
target[2] = target[3] = 0;
target.writeUIntBE(dataLength, 4, 6);
}
if (!options.mask) return [target, data];
target[1] |= 0x80;
target[offset - 4] = mask[0];
target[offset - 3] = mask[1];
target[offset - 2] = mask[2];
target[offset - 1] = mask[3];
if (skipMasking) return [target, data];
if (merge) {
applyMask(data, mask, target, offset, dataLength);
return [target];
}
applyMask(data, mask, data, 0, dataLength);
return [target, data];
}
/**
* Sends a close message to the other peer.
*
* @param {Number} [code] The status code component of the body
* @param {(String|Buffer)} [data] The message component of the body
* @param {Boolean} [mask=false] Specifies whether or not to mask the message
* @param {Function} [cb] Callback
* @public
*/
close(code, data, mask, cb) {
let buf;
if (code === undefined) {
buf = EMPTY_BUFFER;
} else if (typeof code !== 'number' || !isValidStatusCode(code)) {
throw new TypeError('First argument must be a valid error code number');
} else if (data === undefined || !data.length) {
buf = Buffer.allocUnsafe(2);
buf.writeUInt16BE(code, 0);
} else {
const length = Buffer.byteLength(data);
if (length > 123) {
throw new RangeError('The message must not be greater than 123 bytes');
}
buf = Buffer.allocUnsafe(2 + length);
buf.writeUInt16BE(code, 0);
if (typeof data === 'string') {
buf.write(data, 2);
} else {
buf.set(data, 2);
}
}
const options = {
[kByteLength]: buf.length,
fin: true,
generateMask: this._generateMask,
mask,
maskBuffer: this._maskBuffer,
opcode: 0x08,
readOnly: false,
rsv1: false
};
if (this._state !== DEFAULT) {
this.enqueue([this.dispatch, buf, false, options, cb]);
} else {
this.sendFrame(Sender.frame(buf, options), cb);
}
}
/**
* Sends a ping message to the other peer.
*
* @param {*} data The message to send
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
* @param {Function} [cb] Callback
* @public
*/
ping(data, mask, cb) {
let byteLength;
let readOnly;
if (typeof data === 'string') {
byteLength = Buffer.byteLength(data);
readOnly = false;
} else if (isBlob(data)) {
byteLength = data.size;
readOnly = false;
} else {
data = toBuffer(data);
byteLength = data.length;
readOnly = toBuffer.readOnly;
}
if (byteLength > 125) {
throw new RangeError('The data size must not be greater than 125 bytes');
}
const options = {
[kByteLength]: byteLength,
fin: true,
generateMask: this._generateMask,
mask,
maskBuffer: this._maskBuffer,
opcode: 0x09,
readOnly,
rsv1: false
};
if (isBlob(data)) {
if (this._state !== DEFAULT) {
this.enqueue([this.getBlobData, data, false, options, cb]);
} else {
this.getBlobData(data, false, options, cb);
}
} else if (this._state !== DEFAULT) {
this.enqueue([this.dispatch, data, false, options, cb]);
} else {
this.sendFrame(Sender.frame(data, options), cb);
}
}
/**
* Sends a pong message to the other peer.
*
* @param {*} data The message to send
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
* @param {Function} [cb] Callback
* @public
*/
pong(data, mask, cb) {
let byteLength;
let readOnly;
if (typeof data === 'string') {
byteLength = Buffer.byteLength(data);
readOnly = false;
} else if (isBlob(data)) {
byteLength = data.size;
readOnly = false;
} else {
data = toBuffer(data);
byteLength = data.length;
readOnly = toBuffer.readOnly;
}
if (byteLength > 125) {
throw new RangeError('The data size must not be greater than 125 bytes');
}
const options = {
[kByteLength]: byteLength,
fin: true,
generateMask: this._generateMask,
mask,
maskBuffer: this._maskBuffer,
opcode: 0x0a,
readOnly,
rsv1: false
};
if (isBlob(data)) {
if (this._state !== DEFAULT) {
this.enqueue([this.getBlobData, data, false, options, cb]);
} else {
this.getBlobData(data, false, options, cb);
}
} else if (this._state !== DEFAULT) {
this.enqueue([this.dispatch, data, false, options, cb]);
} else {
this.sendFrame(Sender.frame(data, options), cb);
}
}
/**
* Sends a data message to the other peer.
*
* @param {*} data The message to send
* @param {Object} options Options object
* @param {Boolean} [options.binary=false] Specifies whether `data` is binary
* or text
* @param {Boolean} [options.compress=false] Specifies whether or not to
* compress `data`
* @param {Boolean} [options.fin=false] Specifies whether the fragment is the
* last one
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
* `data`
* @param {Function} [cb] Callback
* @public
*/
send(data, options, cb) {
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
let opcode = options.binary ? 2 : 1;
let rsv1 = options.compress;
let byteLength;
let readOnly;
if (typeof data === 'string') {
byteLength = Buffer.byteLength(data);
readOnly = false;
} else if (isBlob(data)) {
byteLength = data.size;
readOnly = false;
} else {
data = toBuffer(data);
byteLength = data.length;
readOnly = toBuffer.readOnly;
}
if (this._firstFragment) {
this._firstFragment = false;
if (
rsv1 &&
perMessageDeflate &&
perMessageDeflate.params[
perMessageDeflate._isServer
? 'server_no_context_takeover'
: 'client_no_context_takeover'
]
) {
rsv1 = byteLength >= perMessageDeflate._threshold;
}
this._compress = rsv1;
} else {
rsv1 = false;
opcode = 0;
}
if (options.fin) this._firstFragment = true;
const opts = {
[kByteLength]: byteLength,
fin: options.fin,
generateMask: this._generateMask,
mask: options.mask,
maskBuffer: this._maskBuffer,
opcode,
readOnly,
rsv1
};
if (isBlob(data)) {
if (this._state !== DEFAULT) {
this.enqueue([this.getBlobData, data, this._compress, opts, cb]);
} else {
this.getBlobData(data, this._compress, opts, cb);
}
} else if (this._state !== DEFAULT) {
this.enqueue([this.dispatch, data, this._compress, opts, cb]);
} else {
this.dispatch(data, this._compress, opts, cb);
}
}
/**
* Gets the contents of a blob as binary data.
*
* @param {Blob} blob The blob
* @param {Boolean} [compress=false] Specifies whether or not to compress
* the data
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN bit
* @param {Function} [options.generateMask] The function used to generate the
* masking key
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
* `data`
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
* key
* @param {Number} options.opcode The opcode
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
* modified
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
* RSV1 bit
* @param {Function} [cb] Callback
* @private
*/
getBlobData(blob, compress, options, cb) {
this._bufferedBytes += options[kByteLength];
this._state = GET_BLOB_DATA;
blob
.arrayBuffer()
.then((arrayBuffer) => {
if (this._socket.destroyed) {
const err = new Error(
'The socket was closed while the blob was being read'
);
//
// `callCallbacks` is called in the next tick to ensure that errors
// that might be thrown in the callbacks behave like errors thrown
// outside the promise chain.
//
process.nextTick(callCallbacks, this, err, cb);
return;
}
this._bufferedBytes -= options[kByteLength];
const data = toBuffer(arrayBuffer);
if (!compress) {
this._state = DEFAULT;
this.sendFrame(Sender.frame(data, options), cb);
this.dequeue();
} else {
this.dispatch(data, compress, options, cb);
}
})
.catch((err) => {
//
// `onError` is called in the next tick for the same reason that
// `callCallbacks` above is.
//
process.nextTick(onError, this, err, cb);
});
}
/**
* Dispatches a message.
*
* @param {(Buffer|String)} data The message to send
* @param {Boolean} [compress=false] Specifies whether or not to compress
* `data`
* @param {Object} options Options object
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
* FIN bit
* @param {Function} [options.generateMask] The function used to generate the
* masking key
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
* `data`
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
* key
* @param {Number} options.opcode The opcode
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
* modified
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
* RSV1 bit
* @param {Function} [cb] Callback
* @private
*/
dispatch(data, compress, options, cb) {
if (!compress) {
this.sendFrame(Sender.frame(data, options), cb);
return;
}
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
this._bufferedBytes += options[kByteLength];
this._state = DEFLATING;
perMessageDeflate.compress(data, options.fin, (_, buf) => {
if (this._socket.destroyed) {
const err = new Error(
'The socket was closed while data was being compressed'
);
callCallbacks(this, err, cb);
return;
}
this._bufferedBytes -= options[kByteLength];
this._state = DEFAULT;
options.readOnly = false;
this.sendFrame(Sender.frame(buf, options), cb);
this.dequeue();
});
}
/**
* Executes queued send operations.
*
* @private
*/
dequeue() {
while (this._state === DEFAULT && this._queue.length) {
const params = this._queue.shift();
this._bufferedBytes -= params[3][kByteLength];
Reflect.apply(params[0], this, params.slice(1));
}
}
/**
* Enqueues a send operation.
*
* @param {Array} params Send operation parameters.
* @private
*/
enqueue(params) {
this._bufferedBytes += params[3][kByteLength];
this._queue.push(params);
}
/**
* Sends a frame.
*
* @param {(Buffer | String)[]} list The frame to send
* @param {Function} [cb] Callback
* @private
*/
sendFrame(list, cb) {
if (list.length === 2) {
this._socket.cork();
this._socket.write(list[0]);
this._socket.write(list[1], cb);
this._socket.uncork();
} else {
this._socket.write(list[0], cb);
}
}
}
module.exports = Sender;
/**
* Calls queued callbacks with an error.
*
* @param {Sender} sender The `Sender` instance
* @param {Error} err The error to call the callbacks with
* @param {Function} [cb] The first callback
* @private
*/
function callCallbacks(sender, err, cb) {
if (typeof cb === 'function') cb(err);
for (let i = 0; i < sender._queue.length; i++) {
const params = sender._queue[i];
const callback = params[params.length - 1];
if (typeof callback === 'function') callback(err);
}
}
/**
* Handles a `Sender` error.
*
* @param {Sender} sender The `Sender` instance
* @param {Error} err The error
* @param {Function} [cb] The first pending callback
* @private
*/
function onError(sender, err, cb) {
callCallbacks(sender, err, cb);
sender.onerror(err);
}
@@ -0,0 +1,82 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _a = _interopRequireDefault(require("./a"));
var _area = _interopRequireDefault(require("./area"));
var _article = _interopRequireDefault(require("./article"));
var _aside = _interopRequireDefault(require("./aside"));
var _body = _interopRequireDefault(require("./body"));
var _button = _interopRequireDefault(require("./button"));
var _datalist = _interopRequireDefault(require("./datalist"));
var _details = _interopRequireDefault(require("./details"));
var _dialog = _interopRequireDefault(require("./dialog"));
var _form = _interopRequireDefault(require("./form"));
var _h = _interopRequireDefault(require("./h1"));
var _h2 = _interopRequireDefault(require("./h2"));
var _h3 = _interopRequireDefault(require("./h3"));
var _h4 = _interopRequireDefault(require("./h4"));
var _h5 = _interopRequireDefault(require("./h5"));
var _h6 = _interopRequireDefault(require("./h6"));
var _hr = _interopRequireDefault(require("./hr"));
var _img = _interopRequireDefault(require("./img"));
var _input = _interopRequireDefault(require("./input"));
var _li = _interopRequireDefault(require("./li"));
var _link = _interopRequireDefault(require("./link"));
var _menu = _interopRequireDefault(require("./menu"));
var _menuitem = _interopRequireDefault(require("./menuitem"));
var _meter = _interopRequireDefault(require("./meter"));
var _nav = _interopRequireDefault(require("./nav"));
var _ol = _interopRequireDefault(require("./ol"));
var _option = _interopRequireDefault(require("./option"));
var _output = _interopRequireDefault(require("./output"));
var _progress = _interopRequireDefault(require("./progress"));
var _section = _interopRequireDefault(require("./section"));
var _select = _interopRequireDefault(require("./select"));
var _tbody = _interopRequireDefault(require("./tbody"));
var _textarea = _interopRequireDefault(require("./textarea"));
var _tfoot = _interopRequireDefault(require("./tfoot"));
var _thead = _interopRequireDefault(require("./thead"));
var _ul = _interopRequireDefault(require("./ul"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var _default = exports["default"] = {
a: _a["default"],
area: _area["default"],
article: _article["default"],
aside: _aside["default"],
body: _body["default"],
button: _button["default"],
datalist: _datalist["default"],
details: _details["default"],
dialog: _dialog["default"],
form: _form["default"],
h1: _h["default"],
h2: _h2["default"],
h3: _h3["default"],
h4: _h4["default"],
h5: _h5["default"],
h6: _h6["default"],
hr: _hr["default"],
img: _img["default"],
input: _input["default"],
li: _li["default"],
link: _link["default"],
menu: _menu["default"],
menuitem: _menuitem["default"],
meter: _meter["default"],
nav: _nav["default"],
ol: _ol["default"],
option: _option["default"],
output: _output["default"],
progress: _progress["default"],
section: _section["default"],
select: _select["default"],
tbody: _tbody["default"],
textarea: _textarea["default"],
tfoot: _tfoot["default"],
thead: _thead["default"],
ul: _ul["default"]
};
module.exports = exports.default;
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=ServiceIdentifier.spec-d.d.ts.map
@@ -0,0 +1,70 @@
import path from 'node:path';
import fs from 'node:fs';
import { isInNodeModules, makePromise } from './util.js';
/**
* find the closest tsconfig.json file
*
* @param {string} filename - path to file to find tsconfig for (absolute or relative to cwd)
* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options
* @returns {Promise<string|null>} absolute path to closest tsconfig.json or null if not found
*/
export async function find(filename, options) {
let dir = path.dirname(path.resolve(filename));
if (options?.ignoreNodeModules && isInNodeModules(dir)) {
return null;
}
const cache = options?.cache;
const configName = options?.configName ?? 'tsconfig.json';
if (cache?.hasConfigPath(dir, configName)) {
return cache.getConfigPath(dir, configName);
}
const { /** @type {Promise<string|null>} */ promise, resolve, reject } = makePromise();
if (options?.root && !path.isAbsolute(options.root)) {
options.root = path.resolve(options.root);
}
findUp(dir, { promise, resolve, reject }, options);
return promise;
}
/**
*
* @param {string} dir
* @param {{promise:Promise<string|null>,resolve:(result:string|null)=>void,reject:(err:any)=>void}} madePromise
* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options
*/
function findUp(dir, { resolve, reject, promise }, options) {
const { cache, root, configName } = options ?? {};
if (cache) {
if (cache.hasConfigPath(dir, configName)) {
let cached;
try {
cached = cache.getConfigPath(dir, configName);
} catch (e) {
reject(e);
return;
}
if (cached?.then) {
cached.then(resolve).catch(reject);
} else {
resolve(cached);
}
} else {
cache.setConfigPath(dir, promise, configName);
}
}
const tsconfig = path.join(dir, options?.configName ?? 'tsconfig.json');
fs.stat(tsconfig, (err, stats) => {
if (stats && (stats.isFile() || stats.isFIFO())) {
resolve(tsconfig);
} else if (err?.code !== 'ENOENT') {
reject(err);
} else {
let parent;
if (root === dir || (parent = path.dirname(dir)) === dir) {
resolve(null);
} else {
findUp(parent, { promise, resolve, reject }, options);
}
}
});
}
@@ -0,0 +1,10 @@
import { NapCatCore } from '../index';
export declare class PacketClientSession {
private readonly context;
constructor(core: NapCatCore);
init(pid: number, recv: string, send: string): Promise<void>;
get clientLogStack(): string;
get available(): boolean;
get operation(): import("./context/operationContext").PacketOperationContext;
get msgConverter(): import("./message/converter").PacketMsgConverter;
}
@@ -0,0 +1,44 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("eslint-utils")
module.exports = {
meta: {
docs: {
description:
"disallow the `Object.getOwnPropertyDescriptors` method.",
category: "ES2017",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-object-getownpropertydescriptors.html",
},
fixable: null,
messages: {
forbidden: "ES2017 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"() {
const tracker = new ReferenceTracker(context.getScope())
for (const { node, path } of tracker.iterateGlobalReferences({
Object: {
getOwnPropertyDescriptors: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1,16 @@
import type { TSchema, SchemaOptions } from '../schema/index.mjs';
import type { Static } from '../static/index.mjs';
import { Kind } from '../symbols/index.mjs';
type TupleStatic<T extends TSchema[], P extends unknown[], Acc extends unknown[] = []> = T extends [infer L extends TSchema, ...infer R extends TSchema[]] ? TupleStatic<R, P, [...Acc, Static<L, P>]> : Acc;
export interface TTuple<T extends TSchema[] = TSchema[]> extends TSchema {
[Kind]: 'Tuple';
static: TupleStatic<T, this['params']>;
type: 'array';
items: T;
additionalItems?: false;
minItems: T['length'];
maxItems: T['length'];
}
/** `[Json]` Creates a Tuple type */
export declare function Tuple<Types extends TSchema[]>(types: [...Types], options?: SchemaOptions): TTuple<Types>;
export {};
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAoBM,SAAS,0CAAc,KAAyB;IACrD,IAAI,aAAC,SAAS,EAAE,GAAG,YAAW,GAAG;IACjC,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAEhE,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE,YAAY,gBAAgB,MAAM,CAAC;IAE1D,IAAI,UAAU;QACZ,IAAI,WACF;IAEJ;IAEA,qBACE,gCAAC,CAAA,GAAA,qBAAa,uBACZ,gCAAC;QACE,GAAG,MAAM;QACV,UAAU;QACV,SAAS;QACT,OAAO;YAAC,OAAO;YAAG,QAAQ;QAAC;;AAGnC","sources":["packages/@react-aria/overlays/src/DismissButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {JSX} from 'react';\nimport {useLabels} from '@react-aria/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {VisuallyHidden} from '@react-aria/visually-hidden';\n\nexport interface DismissButtonProps extends AriaLabelingProps, DOMProps {\n /** Called when the dismiss button is activated. */\n onDismiss?: () => void\n}\n\n/**\n * A visually hidden button that can be used to allow screen reader\n * users to dismiss a modal or popup when there is no visual\n * affordance to do so.\n */\nexport function DismissButton(props: DismissButtonProps): JSX.Element {\n let {onDismiss, ...otherProps} = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/overlays');\n\n let labels = useLabels(otherProps, stringFormatter.format('dismiss'));\n\n let onClick = () => {\n if (onDismiss) {\n onDismiss();\n }\n };\n\n return (\n <VisuallyHidden>\n <button\n {...labels}\n tabIndex={-1}\n onClick={onClick}\n style={{width: 1, height: 1}} />\n </VisuallyHidden>\n );\n}\n"],"names":[],"version":3,"file":"DismissButton.module.js.map"}
@@ -0,0 +1,11 @@
/**
* Get the count of the longest repeating streak of `substring` in `value`.
*
* @param {string} value
* Content to search in.
* @param {string} substring
* Substring to look for, typically one character.
* @returns {number}
* Count of most frequent adjacent `substring`s in `value`.
*/
export function longestStreak(value: string, substring: string): number
@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = getImplicitRoleForInput;
var _jsxAstUtils = require("jsx-ast-utils");
/**
* Returns the implicit role for an input tag.
*/
function getImplicitRoleForInput(attributes) {
var type = (0, _jsxAstUtils.getProp)(attributes, 'type');
if (type) {
var value = (0, _jsxAstUtils.getLiteralPropValue)(type) || '';
switch (typeof value === 'string' && value.toUpperCase()) {
case 'BUTTON':
case 'IMAGE':
case 'RESET':
case 'SUBMIT':
return 'button';
case 'CHECKBOX':
return 'checkbox';
case 'RADIO':
return 'radio';
case 'RANGE':
return 'slider';
case 'EMAIL':
case 'PASSWORD':
case 'SEARCH': // with [list] selector it's combobox
case 'TEL': // with [list] selector it's combobox
case 'URL': // with [list] selector it's combobox
default:
return 'textbox';
}
}
return 'textbox';
}
module.exports = exports.default;
@@ -0,0 +1,11 @@
"use client";
import {
pagination_default
} from "./chunk-APIAPHLK.mjs";
import "./chunk-KLIPPDN4.mjs";
import "./chunk-CNAEJLFQ.mjs";
import "./chunk-AQ7H3LB5.mjs";
import "./chunk-DSTL7ZRK.mjs";
export {
pagination_default as default
};
@@ -0,0 +1 @@
{"name":"is-module","version":"1.0.0","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532090213,"integrity":"sha512-KAAD/Q4uk4NS+pBGP4mw1CtN9SwjXMBCGYyM1Dl4/1LIjBksKTUsImx6D/9kA3GEPOdiO60jDydX+qrMuL27ww==","mode":420,"size":489},".npmignore":{"checkedAt":1794532090213,"integrity":"sha512-Dj51I0q8aPQ3ioaz9LMqGYujAYRbDNblAQbodDRXAMxmY6hsHqEl3F6SvhfJj5oPhcqdX1ldsgEvfMNXGUXBIw==","mode":420,"size":5},"README.md":{"checkedAt":1794532090213,"integrity":"sha512-SKGRp5rPFCQN6Zgi0jacsRaxGJtI4RvVcK99J6Mygcznrx/d2yW5STB2y1+uk4M3WOmTiXRyqn/rRZVeJ4EQ8A==","mode":420,"size":1575},"index.js":{"checkedAt":1794532090213,"integrity":"sha512-yOafwUnrG3H1qHgdS7TVqlIg0V/TwaN04LBDdunaRGTAPzbM04Dy7vAXatX4yuThpvfyVCGhRqOhqtvS6rGOOA==","mode":420,"size":568},"component.json":{"checkedAt":1794532090214,"integrity":"sha512-fhAlwt+jI9VYA6N5YbZfg8guY/9RBJEJ08PMu3ttN7kL6S7MjmqOc6NX/0j+kEGGrG8MNz7K13ow5xfT7Qpckw==","mode":420,"size":242}}}
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "OptionValidator", {
enumerable: true,
get: function () {
return _validator.OptionValidator;
}
});
Object.defineProperty(exports, "findSuggestion", {
enumerable: true,
get: function () {
return _findSuggestion.findSuggestion;
}
});
var _validator = require("./validator.js");
var _findSuggestion = require("./find-suggestion.js");
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"name":"@types/estree-jsx","version":"1.0.5","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532089978,"integrity":"sha512-HQaIQk9pwOcyKutyDk4o2a87WnotwYuLGYFW43emGm4FvIJFKPyg+OYaw5sTegKAKf+C5SKa1ACjzCLivbaHrQ==","mode":420,"size":1141},"README.md":{"checkedAt":1794532112769,"integrity":"sha512-wEfy1W/dEQVdOoebwBU7PFogOV6roh/DyP+sDM6MlqNuSsws4WZNjfpKSgYM8rlgsMiw4xdUa5jSxxnb7DCE4w==","mode":420,"size":519},"index.d.ts":{"checkedAt":1794532112769,"integrity":"sha512-J8Kwx8jDVzB51Ra3LilGOQ7U+q5AqD2Gu1gzDEiqTl99Psp8L2B71sxuoY3am2EHxStzFqCxX12HvNdwD273Pw==","mode":420,"size":3286},"package.json":{"checkedAt":1794532112770,"integrity":"sha512-ZApc4tAX1ebsbf3Eq2aZVF/S+78HwxSlVSOhJeVVjrXhBTrgAQ+BV+t88ixvpsGRmPkfuxXwI99QeFNMZKTMPw==","mode":420,"size":827}}}
@@ -0,0 +1 @@
{"name":"@react-aria/selection","version":"3.21.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532109034,"integrity":"sha512-cil7stSp3ik41Hdv2Dj+GMcbvUfs1q+MZ2Yte0804py9i6oJJN/diCiIr/brcQOZ5ZqwAI6dgaHA7l8FZheQBw==","mode":420,"size":11335},"dist/DOMLayoutDelegate.main.js":{"checkedAt":1794532109034,"integrity":"sha512-AwreUVArp8eipcr9u2aBH+7yUZdxSo/XYKvv8Yo+TX1x6zoI2VJ7ct6Vbrix8dI+tcqD6ah1UMJBseoDert0nQ==","mode":420,"size":3160},"dist/DOMLayoutDelegate.module.js":{"checkedAt":1794532109034,"integrity":"sha512-DcJhGiofSsQfCcvMzvaY1MCIuIMb9JAoi+kFDISV6k2B3NPJvtUlz9CYADMccF+1JnTTZ3NTUXXBObBWXJhwig==","mode":420,"size":3004},"dist/ListKeyboardDelegate.main.js":{"checkedAt":1794532107085,"integrity":"sha512-AcCHXs0XOksPL1HzYIVNAO/R79qGcny5mnN83Mv301Q4Dd7G/HLJNSRjhhpcOQMlPAGS15Z+lL8pPcxdQyuJHA==","mode":420,"size":9673},"dist/ListKeyboardDelegate.module.js":{"checkedAt":1794532107085,"integrity":"sha512-I6+OxUzmVZ71km5/UFZrJCOCUXCtYfq4unBZAEkSwx4Pu8d8yZ8kpJEwVyPS0VBeC6UA5sVwWi8jw+F9lpi0dQ==","mode":420,"size":9534},"dist/main.js":{"checkedAt":1794532107085,"integrity":"sha512-v79wU+ec/JnxdM++4uUXNbYsLPP1xufZOisJzNv3Jy30W6xu/SI6Hf5yC0vcSKS50cc0zwpGOi8ogue/KmxR0A==","mode":420,"size":1862},"dist/module.js":{"checkedAt":1794532107085,"integrity":"sha512-9asTpsfmGzsIttIiHvs2nvLrLeV59rjSKa/Q2V03wPpJjyv1uPew8nGp/oWuZOhGHiVCDfe4fqQECId6bFss3g==","mode":420,"size":1732},"dist/useSelectableCollection.main.js":{"checkedAt":1794532109034,"integrity":"sha512-q52TDuMg8H1h6HPbAWtXIsw6h7GwX7vZXcqHTfBXzOE59Gsyjkq/TKj1iPNGiezHnf5hNUyw8Of33yU0aqTwZg==","mode":420,"size":21180},"dist/useSelectableCollection.module.js":{"checkedAt":1794532109035,"integrity":"sha512-2Dd19CL/Ln5TTI7IJoo13LkJg3LPx8/vhQBOEdOjFLOwjEISmXZRrktCuhXYVESSqeKFS5qM1Jbsw8I8W+okkA==","mode":420,"size":21230},"dist/useSelectableItem.main.js":{"checkedAt":1794532109035,"integrity":"sha512-1zbzWiCw7PVmXZkUluNAFnxhQGABUvvxBbEXaFfm/iLUlUL6KLNmxVHS7IGAf0EDKwQlqyasQEr4iiIo7Tq6PA==","mode":420,"size":12205},"dist/useSelectableItem.module.js":{"checkedAt":1794532109035,"integrity":"sha512-xO2ZvvjBJ6CIncIpdW1UlirtOpRFP95vuT3LoKFlgCf0OBw4qCTyLkrdlaybsn9xxpFXRpkRN58ub0T/Gy6EKg==","mode":420,"size":12175},"dist/useSelectableList.main.js":{"checkedAt":1794532107086,"integrity":"sha512-nSSQMUrxVgGg8LmjEBk4rYlzZYSWL6nv3W7nDN4TnrjenYPttayZjd24V7DDs7T+Gv0jwW/wJz1yTArodiVsgQ==","mode":420,"size":2602},"dist/useSelectableList.module.js":{"checkedAt":1794532107086,"integrity":"sha512-4u+wmq74ddRbJXBayv5dZY1Sy6o8GpWaqRWOBMkDGdhUn2GqjinkIjTgjgvGWcdkB1HI513iPrNXwsNZJVE0kg==","mode":420,"size":2522},"dist/useTypeSelect.main.js":{"checkedAt":1794532109035,"integrity":"sha512-IysXACHJZjQUTWqlNQYvXqKu57suso/EbLiuZFPzFxlUT7fU5SBBlq3rxeXb5vBpvv1DSKae3zgcH/9IVRXfDA==","mode":420,"size":3548},"dist/useTypeSelect.module.js":{"checkedAt":1794532109035,"integrity":"sha512-1v8ls1595MfUsEakHsAZxoRmR0MGFduh4v9M6Rj+vdoLnCE6st4Dbdlp7XH2PYY6qhwQ9Qga5ZK9GsrqxXtZlg==","mode":420,"size":3396},"dist/utils.main.js":{"checkedAt":1794532109036,"integrity":"sha512-WLnQ8aTVG5gv4Lz9IB0xcbq9G2u4GWg99jkNF1Ar48y2+JYFzkWdrs4gkuDSKPlx1n7Fuokgf2THBnsjMAm1AQ==","mode":420,"size":1505},"dist/utils.module.js":{"checkedAt":1794532109036,"integrity":"sha512-6dxOFrod0iz01pYH4bkOVFJ11smbMK8QLV9WLVAuFc8H6LptczkGLTP4YIDmoR84dwEfvqEYqE4V/RtUh7yOlw==","mode":420,"size":1319},"package.json":{"checkedAt":1794532109036,"integrity":"sha512-30Sw9XQDS6XLwDC4B4VJS+uuB8K0LIJtg2fC4/qbAPA+Z6B4rS61bFqCS9KoUwGO3eEwUA9prKON/Q5Gtm6Exg==","mode":420,"size":1091},"dist/DOMLayoutDelegate.main.js.map":{"checkedAt":1794532109036,"integrity":"sha512-j7El28JRkz/AjjddP8JowvXtKcWb0dSOV0ra1/pRUtCl5kpiOpUbC+jx4lSvEV0MofqSFagKuXS9x2XgxubQEw==","mode":420,"size":3232},"dist/DOMLayoutDelegate.module.js.map":{"checkedAt":1794532109036,"integrity":"sha512-K1e7xLRh60GavfWIMKUtbrvF0JMyf9uV/bUomcs+oeJGeISFJ/07sTS9tt424KNIN1Hc6TVEpO4o2Os8rKEG8w==","mode":420,"size":3228},"dist/ListKeyboardDelegate.main.js.map":{"checkedAt":1794532109036,"integrity":"sha512-doX+1mObbYytO4IRYseDrTQO/rh+sJq+3eSbnanoqpWdrTMjCsyxNG/Gez8REZN7eIzfmgg81u6P7rqSGrOF1A==","mode":420,"size":16827},"dist/ListKeyboardDelegate.module.js.map":{"checkedAt":1794532109037,"integrity":"sha512-lqEQw3ZMGEx/YpQo/FvCi7hzqlac/IJWCP2u3KOxK23a1R5CN6ESgPEkIDf52N8FXm2Cs+p+H+OEkyl3FzJ9cw==","mode":420,"size":16823},"dist/main.js.map":{"checkedAt":1794532107088,"integrity":"sha512-Lz7BxlQ5Gnx2fkgugUMqiEgb+ue8feWivjL6OAbDxpjKYMDy1YzwPNBAKEgqr6gcFG9yG0hXBxp4CxIc0MXOoA==","mode":420,"size":1540},"dist/module.js.map":{"checkedAt":1794532107088,"integrity":"sha512-4SqLtqAT1Bs8tSdHr8hyQioQlFDvkINKDgYKThXNEim9v3x6Bm+yZnBFoDfr+VBXBwp1eo4zgN0Xtsz4pkfTug==","mode":420,"size":1531},"dist/types.d.ts.map":{"checkedAt":1794532109037,"integrity":"sha512-9Xmdqh+31gTbplaE3uSrlQxyzyk5vbYkDTyduruFZHb3ilNkwq0xBfnuhGXPx1BnmI7aMEG0RvELJFbx4TBmsg==","mode":420,"size":5692},"dist/useSelectableCollection.main.js.map":{"checkedAt":1794532109037,"integrity":"sha512-27cpj71QJ2l+cmHH7SI7AzJuu9/XFAqpdB3xBvXaX3toJOKzADO/TFobLine truncated
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resolveProviderBindingCallback.spec.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/decode.ts"],"names":[],"mappings":";;;AAugBA,0CA2CC;AAYD,gCAKC;AAQD,kDAEC;AAQD,4CAEC;AAQD,8BAEC;AAjmBD,yEAAiE;AACjE,uEAA+D;AAC/D,+DAAwE;AAExE,IAAW,SAaV;AAbD,WAAW,SAAS;IAChB,wCAAQ,CAAA;IACR,0CAAS,CAAA;IACT,8CAAW,CAAA;IACX,0CAAS,CAAA;IACT,0CAAS,CAAA;IACT,gDAAY,CAAA;IACZ,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,gDAAY,CAAA;IACZ,gDAAY,CAAA;IACZ,gDAAY,CAAA;AAChB,CAAC,EAbU,SAAS,KAAT,SAAS,QAanB;AAED,sFAAsF;AACtF,MAAM,YAAY,GAAG,EAAS,CAAC;AAE/B,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mEAAoC,CAAA;IACpC,qEAAqC,CAAA;IACrC,6DAAkC,CAAA;AACtC,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,SAAS,QAAQ,CAAC,IAAY;IAC1B,OAAO,IAAI,IAAI,SAAS,CAAC,IAAI,IAAI,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC;AAC5D,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAY;IACxC,OAAO,CACH,CAAC,IAAI,IAAI,SAAS,CAAC,OAAO,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC;QACxD,CAAC,IAAI,IAAI,SAAS,CAAC,OAAO,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,CAC3D,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAY;IACrC,OAAO,CACH,CAAC,IAAI,IAAI,SAAS,CAAC,OAAO,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC;QACxD,CAAC,IAAI,IAAI,SAAS,CAAC,OAAO,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC;QACxD,QAAQ,CAAC,IAAI,CAAC,CACjB,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,SAAS,6BAA6B,CAAC,IAAY;IAC/C,OAAO,IAAI,KAAK,SAAS,CAAC,MAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC;AAED,IAAW,kBAMV;AAND,WAAW,kBAAkB;IACzB,yEAAW,CAAA;IACX,2EAAY,CAAA;IACZ,+EAAc,CAAA;IACd,uEAAU,CAAA;IACV,yEAAW,CAAA;AACf,CAAC,EANU,kBAAkB,KAAlB,kBAAkB,QAM5B;AAED,IAAY,YAOX;AAPD,WAAY,YAAY;IACpB,8DAA8D;IAC9D,mDAAU,CAAA;IACV,uDAAuD;IACvD,mDAAU,CAAA;IACV,oEAAoE;IACpE,yDAAa,CAAA;AACjB,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAaD;;GAEG;AACH,MAAa,aAAa;IACtB;IACI,wCAAwC;IACvB,UAAuB;IACxC;;;;;;;;OAQG;IACc,aAAqD;IACtE,gDAAgD;IAC/B,MAAwC;QAZxC,eAAU,GAAV,UAAU,CAAa;QAUvB,kBAAa,GAAb,aAAa,CAAwC;QAErD,WAAM,GAAN,MAAM,CAAkC;QAG7D,wCAAwC;QAChC,UAAK,GAAG,kBAAkB,CAAC,WAAW,CAAC;QAC/C,6DAA6D;QACrD,aAAQ,GAAG,CAAC,CAAC;QACrB;;;;;WAKG;QACK,WAAM,GAAG,CAAC,CAAC;QAEnB,4CAA4C;QACpC,cAAS,GAAG,CAAC,CAAC;QACtB,6DAA6D;QACrD,WAAM,GAAG,CAAC,CAAC;QACnB,kDAAkD;QAC1C,eAAU,GAAG,YAAY,CAAC,MAAM,CAAC;IAnBtC,CAAC;IAqBJ,+CAA+C;IAC/C,WAAW,CAAC,UAAwB;QAChC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,WAAW,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACtB,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAa,EAAE,MAAc;QAC/B,QAAQ,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC;gBAClC,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,GAAG,EAAE,CAAC;oBAC7C,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,YAAY,CAAC;oBAC7C,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;oBACnB,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;gBACrD,CAAC;gBACD,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,WAAW,CAAC;gBAC5C,OAAO,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAChD,CAAC;YAED,KAAK,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;gBACnC,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YACjD,CAAC;YAED,KAAK,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC;gBACrC,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YACnD,CAAC;YAED,KAAK,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;gBACjC,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC/C,CAAC;YAED,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC;gBAClC,OAAO,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACK,iBAAiB,CAAC,KAAa,EAAE,MAAc;QACnD,IAAI,MAAM,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACzB,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,KAAK,SAAS,CAAC,OAAO,EAAE,CAAC;YAClE,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC;YAC3C,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;YACnB,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,cAAc,CAAC;QAC/C,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IAEO,kBAAkB,CACtB,KAAa,EACb,KAAa,EACb,GAAW,EACX,IAAY;QAEZ,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;YAChB,MAAM,UAAU,GAAG,GAAG,GAAG,KAAK,CAAC;YAC/B,IAAI,CAAC,MAAM;gBACP,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC;oBACxC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC;YAC3D,IAAI,CAAC,QAAQ,IAAI,UAAU,CAAC;QAChC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACK,eAAe,CAAC,KAAa,EAAE,MAAc;QACjD,MAAM,UAAU,GAAG,MAAM,CAAC;QAE1B,OAAO,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC;gBACjD,MAAM,IAAI,CAAC,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;gBACvD,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC3C,CAAC;QACL,CAAC;QAED,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAEvD,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED;;;;;;;;OAQG;IACK,mBAAmB,CAAC,KAAa,EAAE,MAAc;QACrD,MAAM,UAAU,GAAG,MAAM,CAAC;QAE1B,OAAO,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACtC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBACjB,MAAM,IAAI,CAAC,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,kBAAkB,CAAC,KLine truncated
@@ -0,0 +1,31 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
declare const PayloadSchema: import("@sinclair/typebox").TObject<{
message_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
emoji_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
set: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TString]>>;
}>;
type PayloadType = Static<typeof PayloadSchema>;
declare const ReturnSchema: import("@sinclair/typebox").TAny;
type ReturnType = Static<typeof ReturnSchema>;
export declare class SetMsgEmojiLike extends OneBotAction<PayloadType, ReturnType> {
actionName: "set_msg_emoji_like";
actionSummary: string;
actionTags: string[];
payloadExample: {
message_id: number;
emoji_id: string;
set: boolean;
};
returnExample: {
result: boolean;
};
payloadSchema: import("@sinclair/typebox").TObject<{
message_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
emoji_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
set: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TString]>>;
}>;
returnSchema: import("@sinclair/typebox").TAny;
_handle(payload: PayloadType): Promise<unknown>;
}
export {};
@@ -0,0 +1 @@
{"name":"qface","version":"1.4.1","requiresBuild":false,"files":{"README.md":{"checkedAt":1794532111694,"integrity":"sha512-wrep0oqpMsV9dfP00ZiItB6dQijgTHh5lVKAwqrpwPBwnkkDptfns1oZ9koKSjTCeus4PJgVxqU91c874wAwoA==","mode":438,"size":443},"package.json":{"checkedAt":1794532111694,"integrity":"sha512-0qyRgnCcrxMA44FqiNJki2s0/e2JnKwFYcQtVXLMxPIMPFV9nUHwfZjJTOnq2BjlHtb2UakxPv37sje5YrrRRA==","mode":438,"size":349},"lib/data.json":{"checkedAt":1794532111694,"integrity":"sha512-N6gqHCNgZzIUkhcAzfdfjeEQSyXRgkvoo7Tlb8CUYVQM+7zBcToMd4123yFt+zHkNFKSHHKiuPxRd3cZXyLAxg==","mode":438,"size":50053},"lib/index.d.ts":{"checkedAt":1794532111695,"integrity":"sha512-lLiWbJHq1nOdEqz0Um51jo+cSlHYrWO25QyR+uOCzzXlfAxTtaFbrCcJKufmomCBD3/Dpt83socufZhcjoD/Cg==","mode":438,"size":464},"lib/index.js":{"checkedAt":1794532111695,"integrity":"sha512-YFNtGzYxUR0W8+ZLcVe2xZSZ1K8rDzBVmNFD9yvWo82OiiiRljh1wE2dysMa3XLm1u4bJSGCfsdfcnDtN9C2Sw==","mode":438,"size":692}}}
@@ -0,0 +1,75 @@
{
"name": "@tokenizer/inflate",
"version": "0.3.1",
"description": "Tokenized zip support",
"type": "module",
"exports": "./lib/index.js",
"files": [
"lib/**/*.js",
"lib/**/*.d.ts"
],
"scripts": {
"clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'",
"compile-src": "tsc -p lib",
"compile-test": "tsc -p test",
"compile": "yarn run compile-src && yarn run compile-test",
"build": "yarn run clean && yarn run compile",
"eslint": "eslint lib test",
"lint:md": "remark -u preset-lint-recommended .",
"lint:ts": "biome check",
"fix": "yarn run biome lint --write",
"test": "mocha",
"start": "yarn run compile && yarn run lint && yarn run cover-test"
},
"engines": {
"node": ">=18"
},
"author": {
"name": "Borewit",
"url": "https://github.com/Borewit"
},
"license": "MIT",
"packageManager": "yarn@4.9.1",
"devDependencies": {
"@aws-sdk/client-s3": "^3.787.0",
"@biomejs/biome": "=1.9.4",
"@tokenizer/s3": "^1.0.1",
"@types/chai": "^5.2.2",
"@types/debug": "^4",
"@types/mocha": "^10.0.10",
"@types/node": "^22.15.30",
"chai": "^5.2.0",
"del-cli": "^6.0.0",
"file-type": "^21.0.0",
"mocha": "^11.5.0",
"strtok3": "^10.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
},
"dependencies": {
"debug": "^4.4.1",
"fflate": "^0.8.2",
"token-types": "^6.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/Borewit/tokenizer-inflate.git"
},
"bugs": {
"url": "hhttps://github.com/Borewit/tokenizer-inflate/issues"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Borewit"
},
"keywords": [
"zip",
"unzip",
"decompress",
"inflate",
"strtok3",
"tokenizer",
"stream",
"S3"
]
}
@@ -0,0 +1,70 @@
# FlushWritable [![Build Status](https://travis-ci.org/TomFrost/FlushWritable.svg?branch=master)](https://travis-ci.org/TomFrost/FlushWritable)
A Writable stream that flushes before emitting finish.
Sponsored by [Leadnomics](http://www.leadnomics.com).
## What it is
Node.js's Streams API is a fantastic tool, but has a nagging shortcoming:
while the Transform stream implements a `_flush` method that is called before
its final events are fired, the Writable stream does not. So if you're
buffering rows to be INSERTed into a SQL table rather than slowly writing one
at a time, or you're buffering bytes for a transfer to S3, there is no way of
flushing those buffers to the target data store before the `finish` event is
emitted.
**FlushWritable is a drop-in replacement for stream.Writable** that implements
a `_flush` call that behaves exactly how Transform._flush does. It's called
with a callback, waits for the callback to be called, and _then_ fires
`finish` (or `error` if an error was passed). No additional execution after
the `finish` event, no implementing nonstandard event types, no chaining a
shell Transform stream before the Writable to hijack its `_flush` call. And
it's fully futureproof against the Node.js team actually adding a `_flush`
method to the native stream.Writable in a later version of Node, so you don't
have to worry about your code breaking on upgrade.
## How does it work?
It's pretty simple. Writable is an EventEmitter. FlushWritable extends
Writable and overrides EventEmitter.emit in its own prototype, listening for a
request that `finish` be emitted. When that comes in, it blocks that event
from emitting, and calls `_flush` if it's defined.
The callback it passes to `_flush` will trigger `finish` to actually be
emitted. If that callback is called with a truthy first argument, `error` is
emitted instead. All other events pass right through and are emitted as
expected. If a future version of node adds a `Writable.prototype._flush`
method, the whole thing short-circuits and native functionality takes over.
## Installation
In your project folder, type:
npm install flushwritable --save
## Usage
Just extend FlushWritable instead of stream.Writable in your write stream, and
feel free to define a `_flush(cb)` function!
```javascript
var FlushWritable = require('flushwritable'),
util = require('util');
function MyWriteStream(opts) {
FlushWritable.call(this, opts);
this._buffer = [];
}
util.inherits(MyWriteStream, FlushWritable);
MyWriteStream.prototype._flush = function(cb) {
writeBufferSomewhere(this._buffer, cb);
};
MyWriteStream.prototype._write = function(data, encoding, cb) {
this._buffer.push(data);
cb();
};
```
## License
FlushWritable is distributed under the MIT license.
## Credits
FlushWritable was created by Tom Frost at Leadnomics in 2014.
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAIM,SAAS,0CAAiB,IAAa,EAAE,UAA+B;IAC7E,0DAA0D;IAC1D,IAAI,OAAO,WAAW,WAAW,KAAK,YACpC,OAAO,WAAW,WAAW,CAAC,KAAK,GAAG;IAGxC,uCAAuC;IACvC,OAAO,KAAK,UAAU;AACxB;AAEO,SAAS,0CAAgB,QAAqB;IACnD,OAAO,0CAAW,UAAU;AAC9B;AAEO,SAAS,0CAAc,QAAqB,EAAE,KAAa;IAChE,IAAI,QAAQ,GACV,OAAO;IAGT,IAAI,IAAI;IACR,KAAK,IAAI,QAAQ,SAAU;QACzB,IAAI,MAAM,OACR,OAAO;QAGT;IACF;AACF;AAEO,SAAS,0CAAe,QAAqB;IAClD,IAAI,WAA0B;IAC9B,KAAK,IAAI,SAAS,SAChB,WAAW;IAGb,OAAO;AACT;AAEO,SAAS,yCAAoB,UAA+B,EAAE,CAAU,EAAE,CAAU;IACzF,gEAAgE;IAChE,IAAI,EAAE,SAAS,KAAK,EAAE,SAAS,EAC7B,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK;IAG1B,4HAA4H;IAC5H,6IAA6I;IAC7I,6BAA6B;IAC7B,IAAI,aAAa;WAAI,mCAAa,YAAY;QAAI;KAAE;IACpD,IAAI,aAAa;WAAI,mCAAa,YAAY;QAAI;KAAE;IACpD,IAAI,2BAA2B,WAAW,KAAK,CAAC,GAAG,WAAW,MAAM,EAAE,SAAS,CAAC,CAAC,GAAG,IAAM,MAAM,UAAU,CAAC,EAAE;IAC7G,IAAI,6BAA6B,IAAI;QACnC,kEAAkE;QAClE,IAAI,UAAU,CAAC,yBAAyB;QACxC,IAAI,UAAU,CAAC,yBAAyB;QACxC,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK;IAC1B;IAEA,qHAAqH;IACrH,IAAI,WAAW,SAAS,CAAC,CAAA,OAAQ,SAAS,MAAM,GAC9C,OAAO;SACF,IAAI,WAAW,SAAS,CAAC,CAAA,OAAQ,SAAS,MAAM,GACrD,OAAO;IAGT,KAAK;IACL,OAAO;AACT;AAEA,SAAS,mCAAgB,UAA+B,EAAE,IAAa;IACrE,IAAI,UAAqB,EAAE;IAE3B,IAAI,WAA2B;IAC/B,MAAO,CAAA,qBAAA,+BAAA,SAAU,SAAS,KAAI,KAAM;QAClC,WAAW,WAAW,OAAO,CAAC,SAAS,SAAS;QAChD,IAAI,UACF,QAAQ,OAAO,CAAC;IAEpB;IAEA,OAAO;AACT","sources":["packages/@react-stately/collections/src/getChildNodes.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 type {Collection, Node} from '@react-types/shared';\n\nexport function getChildNodes<T>(node: Node<T>, collection: Collection<Node<T>>): Iterable<Node<T>> {\n // New API: call collection.getChildren with the node key.\n if (typeof collection.getChildren === 'function') {\n return collection.getChildren(node.key);\n }\n\n // Old API: access childNodes directly.\n return node.childNodes;\n}\n\nexport function getFirstItem<T>(iterable: Iterable<T>): T | undefined {\n return getNthItem(iterable, 0);\n}\n\nexport function getNthItem<T>(iterable: Iterable<T>, index: number): T | undefined {\n if (index < 0) {\n return undefined;\n }\n\n let i = 0;\n for (let item of iterable) {\n if (i === index) {\n return item;\n }\n\n i++;\n }\n}\n\nexport function getLastItem<T>(iterable: Iterable<T>): T | undefined {\n let lastItem: T | undefined = undefined;\n for (let value of iterable) {\n lastItem = value;\n }\n\n return lastItem;\n}\n\nexport function compareNodeOrder<T>(collection: Collection<Node<T>>, a: Node<T>, b: Node<T>): number {\n // If the two nodes have the same parent, compare their indices.\n if (a.parentKey === b.parentKey) {\n return a.index - b.index;\n }\n\n // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n // ancestor of the same level\n let aAncestors = [...getAncestors(collection, a), a];\n let bAncestors = [...getAncestors(collection, b), b];\n let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i) => a !== bAncestors[i]);\n if (firstNonMatchingAncestor !== -1) {\n // Compare the indices of two children within the common ancestor.\n a = aAncestors[firstNonMatchingAncestor];\n b = bAncestors[firstNonMatchingAncestor];\n return a.index - b.index;\n }\n\n // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n if (aAncestors.findIndex(node => node === b) >= 0) {\n return 1;\n } else if (bAncestors.findIndex(node => node === a) >= 0) {\n return -1;\n }\n\n // 🤷\n return -1;\n}\n\nfunction getAncestors<T>(collection: Collection<Node<T>>, node: Node<T>): Node<T>[] {\n let parents: Node<T>[] = [];\n\n let currNode: Node<T> | null = node;\n while (currNode?.parentKey != null) {\n currNode = collection.getItem(currNode.parentKey);\n if (currNode) {\n parents.unshift(currNode);\n }\n }\n\n return parents;\n}\n"],"names":[],"version":3,"file":"getChildNodes.main.js.map"}
@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getParserServices = getParserServices;
const parserSeemsToBeTSESLint_1 = require("./parserSeemsToBeTSESLint");
const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.";
const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';
function getParserServices(context, allowWithoutFullTypeInformation = false) {
const parser = context.parserPath || context.languageOptions.parser?.meta?.name;
// This check is unnecessary if the user is using the latest version of our parser.
//
// However the world isn't perfect:
// - Users often use old parser versions.
// Old versions of the parser would not return any parserServices unless parserOptions.project was set.
// - Users sometimes use parsers that aren't @typescript-eslint/parser
// Other parsers won't return the parser services we expect (if they return any at all).
//
// This check allows us to handle bad user setups whilst providing a nice user-facing
// error message explaining the problem.
if (context.sourceCode.parserServices?.esTreeNodeToTSNodeMap == null ||
context.sourceCode.parserServices.tsNodeToESTreeNodeMap == null) {
throwError(parser);
}
// if a rule requires full type information, then hard fail if it doesn't exist
// this forces the user to supply parserOptions.project
if (context.sourceCode.parserServices.program == null &&
!allowWithoutFullTypeInformation) {
throwError(parser);
}
return context.sourceCode.parserServices;
}
/* eslint-enable @typescript-eslint/unified-signatures */
function throwError(parser) {
const messages = [
ERROR_MESSAGE_REQUIRES_PARSER_SERVICES,
`Parser: ${parser || '(unknown)'}`,
!(0, parserSeemsToBeTSESLint_1.parserSeemsToBeTSESLint)(parser) && ERROR_MESSAGE_UNKNOWN_PARSER,
].filter(Boolean);
throw new Error(messages.join('\n'));
}
@@ -0,0 +1,46 @@
{
"name": "to-through",
"version": "2.0.0",
"description": "Wrap a ReadableStream in a TransformStream.",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"contributors": [
"Blaine Bublitz <blaine.bublitz@gmail.com>"
],
"repository": "gulpjs/to-through",
"license": "MIT",
"engines": {
"node": ">= 0.10"
},
"main": "index.js",
"files": [
"LICENSE",
"index.js"
],
"scripts": {
"lint": "eslint index.js test/ && jscs index.js test/",
"pretest": "npm run lint",
"test": "mocha --async-only",
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls"
},
"dependencies": {
"through2": "^2.0.3"
},
"devDependencies": {
"eslint": "^1.10.3",
"eslint-config-gulp": "^2.0.0",
"expect": "^1.20.2",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.4.0",
"jscs-preset-gulp": "^1.0.0",
"mississippi": "^1.3.0",
"mocha": "^3.2.0"
},
"keywords": [
"transform",
"readable",
"through",
"wrap"
]
}
@@ -0,0 +1,8 @@
# `@peculiar/asn1-pkcs9`
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/asn1-schema/master/packages/pkcs9/LICENSE.md)
[![npm version](https://badge.fury.io/js/%40peculiar%2Fasn1-pkcs9.svg)](https://badge.fury.io/js/%40peculiar%2Fasn1-pkcs9)
[![NPM](https://nodei.co/npm/@peculiar/asn1-pkcs9.png)](https://nodei.co/npm/@peculiar/asn1-pkcs9/)
[RFC 2985](https://tools.ietf.org/html/rfc2985) PKCS #9: Selected Object Classes and Attribute Types Version 2.0
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/checkbox/src/index.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 */\nexport type {CheckboxAria} from './useCheckbox';\nexport {useCheckbox} from './useCheckbox';\nexport {useCheckboxGroup} from './useCheckboxGroup';\nexport {useCheckboxGroupItem} from './useCheckboxGroupItem';\nexport type {AriaCheckboxGroupItemProps, AriaCheckboxGroupProps, AriaCheckboxProps} from '@react-types/checkbox';\nexport type {CheckboxGroupAria} from './useCheckboxGroup';\n"],"names":[],"version":3,"file":"main.js.map"}
@@ -0,0 +1,218 @@
import { Accessibility, Argument, ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentPattern, AssignmentPatternProperty, AssignmentProperty, AwaitExpression, BigIntLiteral, BinaryExpression, BindingIdentifier, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CatchClause, Class, ClassDeclaration, ClassExpression, ClassMember, ClassMethod, ClassProperty, ComputedPropName, ConditionalExpression, Constructor, ContinueStatement, DebuggerStatement, Declaration, Decorator, DefaultDecl, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultExpression, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, ExprOrSpread, Expression, ExpressionStatement, Fn, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, GetterProperty, Identifier, IfStatement, Import, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, JSXAttrValue, JSXAttribute, JSXAttributeName, JSXAttributeOrSpread, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpression, JSXExpressionContainer, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, KeyValuePatternProperty, KeyValueProperty, LabeledStatement, MemberExpression, MetaProperty, MethodProperty, Module, ModuleDeclaration, ModuleExportName, ModuleItem, NamedExportSpecifier, NamedImportSpecifier, NewExpression, NullLiteral, NumericLiteral, ObjectExpression, ObjectPattern, ObjectPatternProperty, OptionalChainingCall, OptionalChainingExpression, Param, ParenthesisExpression, Pattern, PrivateMethod, PrivateName, PrivateProperty, Program, Property, PropertyName, RegExpLiteral, RestElement, ReturnStatement, Script, SequenceExpression, SetterProperty, SpreadElement, Statement, StaticBlock, StringLiteral, Super, SuperPropExpression, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateLiteral, ThisExpression, ThrowStatement, TryStatement, TsAsExpression, TsCallSignatureDeclaration, TsConstAssertion, TsConstructSignatureDeclaration, TsEntityName, TsEnumDeclaration, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExpressionWithTypeArguments, TsExternalModuleReference, TsFnParameter, TsGetterSignature, TsImportEqualsDeclaration, TsIndexSignature, TsInstantiation, TsInterfaceBody, TsInterfaceDeclaration, TsMethodSignature, TsModuleBlock, TsModuleDeclaration, TsModuleName, TsModuleReference, TsNamespaceBody, TsNamespaceDeclaration, TsNamespaceExportDeclaration, TsNonNullExpression, TsParameterProperty, TsParameterPropertyParameter, TsPropertySignature, TsQualifiedName, TsSatisfiesExpression, TsSetterSignature, TsType, TsTypeAliasDeclaration, TsTypeAnnotation, TsTypeAssertion, TsTypeElement, TsTypeParameter, TsTypeParameterDeclaration, TsTypeParameterInstantiation, UnaryExpression, UpdateExpression, VariableDeclaration, VariableDeclarator, WhileStatement, WithStatement, YieldExpression } from "@swc/types";
/**
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
*/
export declare class Visitor {
visitProgram(n: Program): Program;
visitModule(m: Module): Module;
visitScript(m: Script): Script;
visitModuleItems(items: ModuleItem[]): ModuleItem[];
visitModuleItem(n: ModuleItem): ModuleItem;
visitModuleDeclaration(n: ModuleDeclaration): ModuleDeclaration;
visitTsNamespaceExportDeclaration(n: TsNamespaceExportDeclaration): ModuleDeclaration;
visitTsExportAssignment(n: TsExportAssignment): TsExportAssignment;
visitTsImportEqualsDeclaration(n: TsImportEqualsDeclaration): ModuleDeclaration;
visitTsModuleReference(n: TsModuleReference): TsModuleReference;
visitTsExternalModuleReference(n: TsExternalModuleReference): TsExternalModuleReference;
visitExportAllDeclaration(n: ExportAllDeclaration): ModuleDeclaration;
visitExportDefaultExpression(n: ExportDefaultExpression): ModuleDeclaration;
visitExportNamedDeclaration(n: ExportNamedDeclaration): ModuleDeclaration;
visitExportSpecifiers(nodes: ExportSpecifier[]): ExportSpecifier[];
visitExportSpecifier(n: ExportSpecifier): ExportSpecifier;
visitNamedExportSpecifier(n: NamedExportSpecifier): ExportSpecifier;
visitModuleExportName(n: ModuleExportName): ModuleExportName;
visitExportNamespaceSpecifier(n: ExportNamespaceSpecifier): ExportSpecifier;
visitExportDefaultSpecifier(n: ExportDefaultSpecifier): ExportSpecifier;
visitOptionalStringLiteral(n: StringLiteral | undefined): StringLiteral | undefined;
visitExportDefaultDeclaration(n: ExportDefaultDeclaration): ModuleDeclaration;
visitDefaultDeclaration(n: DefaultDecl): DefaultDecl;
visitFunctionExpression(n: FunctionExpression): FunctionExpression;
visitClassExpression(n: ClassExpression): ClassExpression;
visitExportDeclaration(n: ExportDeclaration): ModuleDeclaration;
visitArrayExpression(e: ArrayExpression): Expression;
visitArrayElement(e: ExprOrSpread | undefined): ExprOrSpread | undefined;
visitExprOrSpread(e: ExprOrSpread): ExprOrSpread;
visitExprOrSpreads(nodes: ExprOrSpread[]): ExprOrSpread[];
visitSpreadElement(e: SpreadElement): SpreadElement;
visitOptionalExpression(e: Expression | undefined): Expression | undefined;
visitArrowFunctionExpression(e: ArrowFunctionExpression): Expression;
visitArrowBody(body: BlockStatement | Expression): BlockStatement | Expression;
visitBlockStatement(block: BlockStatement): BlockStatement;
visitStatements(stmts: Statement[]): Statement[];
visitStatement(stmt: Statement): Statement;
visitSwitchStatement(stmt: SwitchStatement): Statement;
visitSwitchCases(cases: SwitchCase[]): SwitchCase[];
visitSwitchCase(c: SwitchCase): SwitchCase;
visitIfStatement(stmt: IfStatement): Statement;
visitOptionalStatement(stmt: Statement | undefined): Statement | undefined;
visitBreakStatement(stmt: BreakStatement): Statement;
visitWhileStatement(stmt: WhileStatement): Statement;
visitTryStatement(stmt: TryStatement): Statement;
visitCatchClause(handler: CatchClause | undefined): CatchClause | undefined;
visitThrowStatement(stmt: ThrowStatement): Statement;
visitReturnStatement(stmt: ReturnStatement): Statement;
visitLabeledStatement(stmt: LabeledStatement): Statement;
visitForStatement(stmt: ForStatement): Statement;
visitForOfStatement(stmt: ForOfStatement): Statement;
visitForInStatement(stmt: ForInStatement): Statement;
visitEmptyStatement(stmt: EmptyStatement): EmptyStatement;
visitDoWhileStatement(stmt: DoWhileStatement): Statement;
visitDebuggerStatement(stmt: DebuggerStatement): Statement;
visitWithStatement(stmt: WithStatement): Statement;
visitDeclaration(decl: Declaration): Declaration;
visitVariableDeclaration(n: VariableDeclaration): VariableDeclaration;
visitVariableDeclarators(nodes: VariableDeclarator[]): VariableDeclarator[];
visitVariableDeclarator(n: VariableDeclarator): VariableDeclarator;
visitTsTypeAliasDeclaration(n: TsTypeAliasDeclaration): Declaration;
visitTsModuleDeclaration(n: TsModuleDeclaration): Declaration;
visitTsModuleName(n: TsModuleName): TsModuleName;
visitTsNamespaceBody(n: TsNamespaceBody): TsNamespaceBody | undefined;
visitTsNamespaceDeclaration(n: TsNamespaceDeclaration): TsModuleBlock | TsNamespaceDeclaration;
visitTsModuleBlock(n: TsModuleBlock): TsModuleBlock | TsNamespaceDeclaration;
visitTsInterfaceDeclaration(n: TsInterfaceDeclaration): TsInterfaceDeclaration;
visitTsInterfaceBody(n: TsInterfaceBody): TsInterfaceBody;
visitTsTypeElements(nodes: TsTypeElement[]): TsTypeElement[];
visitTsTypeElement(n: TsTypeElement): TsTypeElement;
visitTsCallSignatureDeclaration(n: TsCallSignatureDeclaration): TsCallSignatureDeclaration;
visitTsConstructSignatureDeclaration(n: TsConstructSignatureDeclaration): TsConstructSignatureDeclaration;
visitTsPropertySignature(n: TsPropertySignature): TsPropertySignature;
visitTsGetterSignature(n: TsGetterSignature): TsGetterSignature;
visitTsSetterSignature(n: TsSetterSignature): TsSetterSignature;
visitTsMethodSignature(n: TsMethodSignature): TsMethodSignature;
visitTsEnumDeclaration(n: TsEnumDeclaration): Declaration;
visitTsEnumMembers(nodes: TsEnumMember[]): TsEnumMember[];
visitTsEnumMember(n: TsEnumMember): TsEnumMember;
visitTsEnumMemberId(n: TsEnumMemberId): TsEnumMemberId;
visitFunctionDeclaration(decl: FunctionDeclaration): Declaration;
visitClassDeclaration(decl: ClassDeclaration): Declaration;
visitClassBody(members: ClassMember[]): ClassMember[];
visitClassMember(member: ClassMember): ClassMember;
visitTsIndexSignature(n: TsIndexSignature): TsIndexSignature;
visitTsFnParameters(params: TsFnParameter[]): TsFnParameter[];
visitTsFnParameter(n: TsFnParameter): TsFnParameter;
visitPrivateProperty(n: PrivateProperty): ClassMember;
visitPrivateMethod(n: PrivateMethod): ClassMember;
visitPrivateName(n: PrivateName): PrivateName;
visitConstructor(n: Constructor): ClassMember;
visitConstructorParameters(nodes: (Param | TsParameterProperty)[]): (Param | TsParameterProperty)[];
visitConstructorParameter(n: Param | TsParameterProperty): Param | TsParameterProperty;
visitStaticBlock(n: StaticBlock): StaticBlock;
visitTsParameterProperty(n: TsParameterProperty): TsParameterProperty | Param;
visitTsParameterPropertyParameter(n: TsParameterPropertyParameter): TsParameterPropertyParameter;
visitPropertyName(key: PropertyName): PropertyName;
visitAccessibility(n: Accessibility | undefined): Accessibility | undefined;
visitClassProperty(n: ClassProperty): ClassMember;
visitClassMethod(n: ClassMethod): ClassMember;
visitComputedPropertyKey(n: ComputedPropName): ComputedPropName;
visitClass<T extends Class>(n: T): T;
visitFunction<T extends Fn>(n: T): T;
visitTsExpressionsWithTypeArguments(nodes: TsExpressionWithTypeArguments[]): TsExpressionWithTypeArguments[];
visitTsExpressionWithTypeArguments(n: TsExpressionWithTypeArguments): TsExpressionWithTypeArguments;
visitTsTypeParameterInstantiation(n: TsTypeParameterInstantiation | undefined): TsTypeParameterInstantiation | undefined;
visitTsTypes(nodes: TsType[]): TsType[];
visitTsEntityName(n: TsEntityName): TsEntityName;
visitTsQualifiedName(n: TsQualifiedName): TsQualifiedName;
visitDecorators(nodes: Decorator[] | undefined): Decorator[] | undefined;
visitDecorator(n: Decorator): Decorator;
visitExpressionStatement(stmt: ExpressionStatement): Statement;
visitContinueStatement(stmt: ContinueStatement): Statement;
visitExpression(n: Expression): Expression;
visitOptionalChainingExpression(n: OptionalChainingExpression): Expression;
visitMemberExpressionOrOptionalChainingCall(n: MemberExpression | OptionalChainingCall): MemberExpression | OptionalChainingCall;
visitOptionalChainingCall(n: OptionalChainingCall): OptionalChainingCall;
visitAssignmentExpression(n: AssignmentExpression): Expression;
visitPatternOrExpression(n: Pattern | Expression): Pattern | Expression;
visitYieldExpression(n: YieldExpression): Expression;
visitUpdateExpression(n: UpdateExpression): Expression;
visitUnaryExpression(n: UnaryExpression): Expression;
visitTsTypeAssertion(n: TsTypeAssertion): Expression;
visitTsConstAssertion(n: TsConstAssertion): Expression;
visitTsInstantiation(n: TsInstantiation): TsInstantiation;
visitTsNonNullExpression(n: TsNonNullExpression): Expression;
visitTsAsExpression(n: TsAsExpression): Expression;
visitTsSatisfiesExpression(n: TsSatisfiesExpression): Expression;
visitThisExpression(n: ThisExpression): Expression;
visitTemplateLiteral(n: TemplateLiteral): Expression;
visitParameters(n: Param[]): Param[];
visitParameter(n: Param): Param;
visitTaggedTemplateExpression(n: TaggedTemplateExpression): Expression;
visitSequenceExpression(n: SequenceExpression): Expression;
visitRegExpLiteral(n: RegExpLiteral): Expression;
visitParenthesisExpression(n: ParenthesisExpression): Expression;
visitObjectExpression(n: ObjectExpression): Expression;
visitObjectProperties(nodes: (Property | SpreadElement)[]): (Property | SpreadElement)[];
visitObjectProperty(n: Property | SpreadElement): Property | SpreadElement;
visitProperty(n: Property): Property | SpreadElement;
visitSetterProperty(n: SetterProperty): Property | SpreadElement;
visitMethodProperty(n: MethodProperty): Property | SpreadElement;
visitKeyValueProperty(n: KeyValueProperty): Property | SpreadElement;
visitGetterProperty(n: GetterProperty): Property | SpreadElement;
visitAssignmentProperty(n: AssignmentProperty): Property | SpreadElement;
visitNullLiteral(n: NullLiteral): NullLiteral;
visitNewExpression(n: NewExpression): Expression;
visitTsTypeArguments(n: TsTypeParameterInstantiation | undefined): TsTypeParameterInstantiation | undefined;
visitArguments(nodes: Argument[]): Argument[];
visitArgument(n: Argument): Argument;
visitMetaProperty(n: MetaProperty): Expression;
visitMemberExpression(n: MemberExpression): MemberExpression;
visitSuperPropExpression(n: SuperPropExpression): Expression;
visitCallee(n: Expression | Super | Import): Expression | Super | Import;
visitJSXText(n: JSXText): JSXText;
visitJSXNamespacedName(n: JSXNamespacedName): JSXNamespacedName;
visitJSXMemberExpression(n: JSXMemberExpression): JSXMemberExpression;
visitJSXObject(n: JSXObject): JSXObject;
visitJSXFragment(n: JSXFragment): JSXFragment;
visitJSXClosingFragment(n: JSXClosingFragment): JSXClosingFragment;
visitJSXElementChildren(nodes: JSXElementChild[]): JSXElementChild[];
visitJSXElementChild(n: JSXElementChild): JSXElementChild;
visitJSXExpressionContainer(n: JSXExpressionContainer): JSXExpressionContainer;
visitJSXSpreadChild(n: JSXSpreadChild): JSXElementChild;
visitJSXOpeningFragment(n: JSXOpeningFragment): JSXOpeningFragment;
visitJSXEmptyExpression(n: JSXEmptyExpression): Expression;
visitJSXElement(n: JSXElement): JSXElement;
visitJSXClosingElement(n: JSXClosingElement | undefined): JSXClosingElement | undefined;
visitJSXElementName(n: JSXElementName): JSXElementName;
visitJSXOpeningElement(n: JSXOpeningElement): JSXOpeningElement;
visitJSXAttributes(attrs: JSXAttributeOrSpread[] | undefined): JSXAttributeOrSpread[] | undefined;
visitJSXAttributeOrSpread(n: JSXAttributeOrSpread): JSXAttributeOrSpread;
visitJSXAttributeOrSpreads(nodes: JSXAttributeOrSpread[]): JSXAttributeOrSpread[];
visitJSXAttribute(n: JSXAttribute): JSXAttributeOrSpread;
visitJSXAttributeValue(n: JSXAttrValue | undefined): JSXAttrValue | undefined;
visitJSXAttributeName(n: JSXAttributeName): JSXAttributeName;
visitConditionalExpression(n: ConditionalExpression): Expression;
visitCallExpression(n: CallExpression): Expression;
visitBooleanLiteral(n: BooleanLiteral): BooleanLiteral;
visitBinaryExpression(n: BinaryExpression): Expression;
visitAwaitExpression(n: AwaitExpression): Expression;
visitTsTypeParameterDeclaration(n: TsTypeParameterDeclaration | undefined): TsTypeParameterDeclaration | undefined;
visitTsTypeParameters(nodes: TsTypeParameter[]): TsTypeParameter[];
visitTsTypeParameter(n: TsTypeParameter): TsTypeParameter;
visitTsTypeAnnotation(a: TsTypeAnnotation | undefined): TsTypeAnnotation | undefined;
visitTsType(n: TsType): TsType;
visitPatterns(nodes: Pattern[]): Pattern[];
visitImportDeclaration(n: ImportDeclaration): ImportDeclaration;
visitImportSpecifiers(nodes: ImportSpecifier[]): ImportSpecifier[];
visitImportSpecifier(node: ImportSpecifier): ImportSpecifier;
visitNamedImportSpecifier(node: NamedImportSpecifier): NamedImportSpecifier;
visitImportNamespaceSpecifier(node: ImportNamespaceSpecifier): ImportNamespaceSpecifier;
visitImportDefaultSpecifier(node: ImportDefaultSpecifier): ImportSpecifier;
visitBindingIdentifier(i: BindingIdentifier): BindingIdentifier;
visitIdentifierReference(i: Identifier): Identifier;
visitLabelIdentifier(label: Identifier): Identifier;
visitIdentifier(n: Identifier): Identifier;
visitStringLiteral(n: StringLiteral): StringLiteral;
visitNumericLiteral(n: NumericLiteral): NumericLiteral;
visitBigIntLiteral(n: BigIntLiteral): BigIntLiteral;
visitPattern(n: Pattern): Pattern;
visitRestElement(n: RestElement): RestElement;
visitAssignmentPattern(n: AssignmentPattern): Pattern;
visitObjectPattern(n: ObjectPattern): Pattern;
visitObjectPatternProperties(nodes: ObjectPatternProperty[]): ObjectPatternProperty[];
visitObjectPatternProperty(n: ObjectPatternProperty): ObjectPatternProperty;
visitKeyValuePatternProperty(n: KeyValuePatternProperty): ObjectPatternProperty;
visitAssignmentPatternProperty(n: AssignmentPatternProperty): ObjectPatternProperty;
visitArrayPattern(n: ArrayPattern): Pattern;
visitArrayPatternElements(nodes: (Pattern | undefined)[]): (Pattern | undefined)[];
visitArrayPatternElement(n: Pattern | undefined): Pattern | undefined;
}
export default Visitor;
@@ -0,0 +1,8 @@
var $7e23baec8a14f309$exports = {};
$7e23baec8a14f309$exports = {
"breadcrumbs": `Categorias`
};
export {$7e23baec8a14f309$exports as default};
//# sourceMappingURL=pt-PT.module.js.map
@@ -0,0 +1,38 @@
import {getOwnerDocument as $hpDQO$getOwnerDocument, getActiveElement as $hpDQO$getActiveElement} from "@react-aria/utils";
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
let from = $55f9b1ae81f22853$export$759df0d867455a91((0, $hpDQO$getOwnerDocument)(to));
if (from !== to) {
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
}
}
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
from.dispatchEvent(new FocusEvent('blur', {
relatedTarget: to
}));
from.dispatchEvent(new FocusEvent('focusout', {
bubbles: true,
relatedTarget: to
}));
}
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
to.dispatchEvent(new FocusEvent('focus', {
relatedTarget: from
}));
to.dispatchEvent(new FocusEvent('focusin', {
bubbles: true,
relatedTarget: from
}));
}
function $55f9b1ae81f22853$export$759df0d867455a91(document) {
let activeElement = (0, $hpDQO$getActiveElement)(document);
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute('aria-activedescendant');
if (activeDescendant) return document.getElementById(activeDescendant) || activeElement;
return activeElement;
}
export {$55f9b1ae81f22853$export$76e4e37e5339496d as moveVirtualFocus, $55f9b1ae81f22853$export$759df0d867455a91 as getVirtuallyFocusedElement, $55f9b1ae81f22853$export$6c5dc7e81d2cc29a as dispatchVirtualBlur, $55f9b1ae81f22853$export$2b35b76d2e30e129 as dispatchVirtualFocus};
//# sourceMappingURL=virtualFocus.module.js.map
@@ -0,0 +1,219 @@
module.exports.IconsManifest = [
{
"id": "ci",
"name": "Circum Icons",
"projectUrl": "https://circumicons.com/",
"license": "MPL-2.0 license",
"licenseUrl": "https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE"
},
{
"id": "fa",
"name": "Font Awesome 5",
"projectUrl": "https://fontawesome.com/",
"license": "CC BY 4.0 License",
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
},
{
"id": "fa6",
"name": "Font Awesome 6",
"projectUrl": "https://fontawesome.com/",
"license": "CC BY 4.0 License",
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
},
{
"id": "io",
"name": "Ionicons 4",
"projectUrl": "https://ionicons.com/",
"license": "MIT",
"licenseUrl": "https://github.com/ionic-team/ionicons/blob/master/LICENSE"
},
{
"id": "io5",
"name": "Ionicons 5",
"projectUrl": "https://ionicons.com/",
"license": "MIT",
"licenseUrl": "https://github.com/ionic-team/ionicons/blob/master/LICENSE"
},
{
"id": "md",
"name": "Material Design icons",
"projectUrl": "http://google.github.io/material-design-icons/",
"license": "Apache License Version 2.0",
"licenseUrl": "https://github.com/google/material-design-icons/blob/master/LICENSE"
},
{
"id": "ti",
"name": "Typicons",
"projectUrl": "http://s-ings.com/typicons/",
"license": "CC BY-SA 3.0",
"licenseUrl": "https://creativecommons.org/licenses/by-sa/3.0/"
},
{
"id": "go",
"name": "Github Octicons icons",
"projectUrl": "https://octicons.github.com/",
"license": "MIT",
"licenseUrl": "https://github.com/primer/octicons/blob/master/LICENSE"
},
{
"id": "fi",
"name": "Feather",
"projectUrl": "https://feathericons.com/",
"license": "MIT",
"licenseUrl": "https://github.com/feathericons/feather/blob/master/LICENSE"
},
{
"id": "lu",
"name": "Lucide",
"projectUrl": "https://lucide.dev/",
"license": "ISC",
"licenseUrl": "https://github.com/lucide-icons/lucide/blob/main/LICENSE"
},
{
"id": "gi",
"name": "Game Icons",
"projectUrl": "https://game-icons.net/",
"license": "CC BY 3.0",
"licenseUrl": "https://creativecommons.org/licenses/by/3.0/"
},
{
"id": "wi",
"name": "Weather Icons",
"projectUrl": "https://erikflowers.github.io/weather-icons/",
"license": "SIL OFL 1.1",
"licenseUrl": "http://scripts.sil.org/OFL"
},
{
"id": "di",
"name": "Devicons",
"projectUrl": "https://vorillaz.github.io/devicons/",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "ai",
"name": "Ant Design Icons",
"projectUrl": "https://github.com/ant-design/ant-design-icons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "bs",
"name": "Bootstrap Icons",
"projectUrl": "https://github.com/twbs/icons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "ri",
"name": "Remix Icon",
"projectUrl": "https://github.com/Remix-Design/RemixIcon",
"license": "Apache License Version 2.0",
"licenseUrl": "http://www.apache.org/licenses/"
},
{
"id": "fc",
"name": "Flat Color Icons",
"projectUrl": "https://github.com/icons8/flat-color-icons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "gr",
"name": "Grommet-Icons",
"projectUrl": "https://github.com/grommet/grommet-icons",
"license": "Apache License Version 2.0",
"licenseUrl": "http://www.apache.org/licenses/"
},
{
"id": "hi",
"name": "Heroicons",
"projectUrl": "https://github.com/tailwindlabs/heroicons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "hi2",
"name": "Heroicons 2",
"projectUrl": "https://github.com/tailwindlabs/heroicons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "si",
"name": "Simple Icons",
"projectUrl": "https://simpleicons.org/",
"license": "CC0 1.0 Universal",
"licenseUrl": "https://creativecommons.org/publicdomain/zero/1.0/"
},
{
"id": "sl",
"name": "Simple Line Icons",
"projectUrl": "https://thesabbir.github.io/simple-line-icons/",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "im",
"name": "IcoMoon Free",
"projectUrl": "https://github.com/Keyamoon/IcoMoon-Free",
"license": "CC BY 4.0 License",
"licenseUrl": "https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt"
},
{
"id": "bi",
"name": "BoxIcons",
"projectUrl": "https://github.com/atisawd/boxicons",
"license": "MIT",
"licenseUrl": "https://github.com/atisawd/boxicons/blob/master/LICENSE"
},
{
"id": "cg",
"name": "css.gg",
"projectUrl": "https://github.com/astrit/css.gg",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "vsc",
"name": "VS Code Icons",
"projectUrl": "https://github.com/microsoft/vscode-codicons",
"license": "CC BY 4.0",
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
},
{
"id": "tb",
"name": "Tabler Icons",
"projectUrl": "https://github.com/tabler/tabler-icons",
"license": "MIT",
"licenseUrl": "https://opensource.org/licenses/MIT"
},
{
"id": "tfi",
"name": "Themify Icons",
"projectUrl": "https://github.com/lykmapipo/themify-icons",
"license": "MIT",
"licenseUrl": "https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE"
},
{
"id": "rx",
"name": "Radix Icons",
"projectUrl": "https://icons.radix-ui.com",
"license": "MIT",
"licenseUrl": "https://github.com/radix-ui/icons/blob/master/LICENSE"
},
{
"id": "pi",
"name": "Phosphor Icons",
"projectUrl": "https://github.com/phosphor-icons/core",
"license": "MIT",
"licenseUrl": "https://github.com/phosphor-icons/core/blob/main/LICENSE"
},
{
"id": "lia",
"name": "Icons8 Line Awesome",
"projectUrl": "https://icons8.com/line-awesome",
"license": "MIT",
"licenseUrl": "https://github.com/icons8/line-awesome/blob/master/LICENSE.md"
}
]
@@ -0,0 +1,3 @@
import { IBackOffOptions } from "../options";
import { IDelay } from "./delay.interface";
export declare function DelayFactory(options: IBackOffOptions, attempt: number): IDelay;
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const reflection_helpers_1 = require("../reflection-helpers");
function injectAllWithTransform(token, transformer, ...args) {
const data = {
token,
multiple: true,
transform: transformer,
transformArgs: args
};
return reflection_helpers_1.defineInjectionTokenMetadata(data);
}
exports.default = injectAllWithTransform;
@@ -0,0 +1,522 @@
flf2a$ 5 4 9 -1 11 0 8192 0
Author : LG Beard
Date : 2004/6/6 16:04:53
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
$ #
$ #
$ #
$ #
$ ##
_ #
) | #
|_( #
)_/ #
##
_ _ #
/ / ( #
)_/_/ #
#
##
##
#
#
#
##
$#
#
#
#
##
_ _ #
(_)/ ( #
/ /_ #
)_/(_)#
##
&#
#
#
#
##
)| #
#
#
#
##
_ #
) / #
( ( #
)_\ #
##
_ #
\ ( #
) ) #
/_( #
##
*#
#
#
#
##
_ #
_/ (_ #
)_ _(#
)_/ #
##
#
#
#
)/ #
##
#
____ #
)____( #
#
##
#
#
_ #
(_) #
##
_ #
/ ( #
/ / #
)_/ #
##
___ #
/ _ \ #
))_(( #
\___/ #
##
_ #
/_ ( #
) | #
/__( #
##
___ #
/__ ( #
( / #
/___\ #
##
___ #
(__ \ #
(_ | #
(___/ #
##
_ _ #
) () ( #
\_ | #
)_( #
##
___ #
) __\ #
'- ) #
)___\ #
##
_ #
) |_ #
| ( \ #
\___/ #
##
___ #
\_ ( #
/ | #
)_( #
##
___ #
/ _ \ #
) _ ( #
\___/ #
##
___ #
/ _ \ #
`-_(( #
)_/ #
##
_ #
(_) #
_ #
(_) #
##
_ #
(_) #
_ #
)_( #
##
__ #
.' _/ #
'.__\ #
#
##
____ #
)____( #
____ #
)____( #
##
__ #
\_ `. #
/__.` #
#
##
___ #
/ _ \ #
`-'(( #
)/ #
##
@#
#
#
#
##
_ #
)_\ #
/( )\ #
)_/ \_(#
##
___ #
\ _) #
| ( #
/__o) #
##
___ #
/ _( #
))_ #
\__( #
##
___ #
\ \ #
| ) ( #
/___/ #
##
___ #
) __( #
| _) #
)___( #
##
___ #
) __( #
| _) #
)_( #
##
____ #
).-._( #
|( ,-. #
)_`__( #
##
_ _ #
) () ( #
| -- | #
)_()_( #
##
___ #
)_ _( #
_| |_ #
)_____(#
##
___ #
)_ _( #
_) | #
)___( #
##
_ _ #
) |) / #
| ( ( #
)_|)_\ #
##
_ #
) | #
| (__ #
)____( #
##
_ _ #
) \_/ (#
| _ |#
)_( )_(#
##
_ _ #
) \/ ( #
| \ | #
)_()_( #
##
____ #
/ __ \ #
))__(( #
\____/ #
##
____ #
) _)\ #
| '__/ #
)_( #
##
____ #
/ __ \ #
))__(( #
\___\( #
##
____ #
/ _ \ #
) ' / #
|_()_\ #
##
___ #
( _( #
_) \ #
)____) #
##
_____ #
)__ __(#
| | #
)_( #
##
_ _ #
) () ( #
| \/ | #
)____( #
##
_ _ #
\ ( ) /#
)\_/( #
\_/ #
##
__ __#
) (_) (#
\ _ /#
)/ \( #
##
_ _ #
) ( ) (#
) | ( #
)_( )_(#
##
_ _ #
) () ( #
'. / #
/_( #
##
____ #
)___ ( #
/ /_ #
)____(#
##
__ #
) _| #
|(_ #
)__| #
##
_ #
) \ #
\ \ #
\_( #
##
__ #
|_ ( #
_)| #
|__( #
##
^#
#
#
#
##
#
#
#
_____ #
)_____(##
\( #
#
#
#
##
_ #
)_\ #
/( )\ #
)_/ \_(#
##
___ #
\ _) #
| ( #
/__o) #
##
___ #
/ _( #
))_ #
\__( #
##
___ #
\ \ #
| ) ( #
/___/ #
##
___ #
) __( #
| _) #
)___( #
##
___ #
) __( #
| _) #
)_( #
##
____ #
).-._( #
|( ,-. #
)_`__( #
##
_ _ #
) () ( #
| -- | #
)_()_( #
##
___ #
)_ _( #
_| |_ #
)_____(#
##
___ #
)_ _( #
_) | #
)___( #
##
_ _ #
) |) / #
| ( ( #
)_|)_\ #
##
_ #
) | #
| (__ #
)____( #
##
_ _ #
) \_/ (#
| _ |#
)_( )_(#
##
_ _ #
) \/ ( #
| \ | #
)_()_( #
##
____ #
/ __ \ #
))__(( #
\____/ #
##
____ #
) _)\ #
| '__/ #
)_( #
##
____ #
/ __ \ #
))__(( #
\___\( #
##
____ #
/ _ \ #
) ' / #
|_()_\ #
##
___ #
( _( #
_) \ #
)____) #
##
_____ #
)__ __(#
| | #
)_( #
##
_ _ #
) () ( #
| \/ | #
)____( #
##
_ _ #
\ ( ) /#
)\_/( #
\_/ #
##
__ __#
) (_) (#
\ _ /#
)/ \( #
##
_ _ #
) ( ) (#
) | ( #
)_( )_(#
##
_ _ #
) () ( #
'. / #
/_( #
##
____ #
)___ ( #
/ /_ #
)____(#
##
_ #
) | #
( ( #
)_| #
##
_ #
) | #
| ( #
)_| #
##
_ #
| ( #
) ) #
|_( #
##
#
)`-._ #
`-._( #
#
##
_ #
)_\ #
/( )\ #
)_/ \_(#
##
____ #
/ __ \ #
))__(( #
\____/ #
##
_ _ #
) () ( #
| \/ | #
)____( #
##
_ #
)_\ #
/( )\ #
)_/ \_(#
##
____ #
/ __ \ #
))__(( #
\____/ #
##
_ _ #
) () ( #
| \/ | #
)____( #
##
ß#
#
#
#
##
@@ -0,0 +1,3 @@
import CryptoJS = require("./index");
export = CryptoJS.pad.NoPadding;
@@ -0,0 +1,62 @@
import {styleTags, tags as t} from "@lezer/highlight"
export const jsHighlight = styleTags({
"get set async static": t.modifier,
"for while do if else switch try catch finally return throw break continue default case defer": t.controlKeyword,
"in of await yield void typeof delete instanceof as satisfies": t.operatorKeyword,
"let var const using function class extends": t.definitionKeyword,
"import export from": t.moduleKeyword,
"with debugger new": t.keyword,
TemplateString: t.special(t.string),
super: t.atom,
BooleanLiteral: t.bool,
this: t.self,
null: t.null,
Star: t.modifier,
VariableName: t.variableName,
"CallExpression/VariableName TaggedTemplateExpression/VariableName": t.function(t.variableName),
VariableDefinition: t.definition(t.variableName),
Label: t.labelName,
PropertyName: t.propertyName,
PrivatePropertyName: t.special(t.propertyName),
"CallExpression/MemberExpression/PropertyName": t.function(t.propertyName),
"FunctionDeclaration/VariableDefinition": t.function(t.definition(t.variableName)),
"ClassDeclaration/VariableDefinition": t.definition(t.className),
"NewExpression/VariableName": t.className,
PropertyDefinition: t.definition(t.propertyName),
PrivatePropertyDefinition: t.definition(t.special(t.propertyName)),
UpdateOp: t.updateOperator,
"LineComment Hashbang": t.lineComment,
BlockComment: t.blockComment,
Number: t.number,
String: t.string,
Escape: t.escape,
ArithOp: t.arithmeticOperator,
LogicOp: t.logicOperator,
BitOp: t.bitwiseOperator,
CompareOp: t.compareOperator,
RegExp: t.regexp,
Equals: t.definitionOperator,
Arrow: t.function(t.punctuation),
": Spread": t.punctuation,
"( )": t.paren,
"[ ]": t.squareBracket,
"{ }": t.brace,
"InterpolationStart InterpolationEnd": t.special(t.brace),
".": t.derefOperator,
", ;": t.separator,
"@": t.meta,
TypeName: t.typeName,
TypeDefinition: t.definition(t.typeName),
"type enum interface implements namespace module declare": t.definitionKeyword,
"abstract global Privacy readonly override": t.modifier,
"is keyof unique infer asserts": t.operatorKeyword,
JSXAttributeValue: t.attributeValue,
JSXText: t.content,
"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": t.angleBracket,
"JSXIdentifier JSXNameSpacedName": t.tagName,
"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": t.attributeName,
"JSXBuiltin/JSXIdentifier": t.standard(t.tagName)
})
@@ -0,0 +1,64 @@
#through
[![build status](https://secure.travis-ci.org/dominictarr/through.png)](http://travis-ci.org/dominictarr/through)
[![testling badge](https://ci.testling.com/dominictarr/through.png)](https://ci.testling.com/dominictarr/through)
Easy way to create a `Stream` that is both `readable` and `writable`.
* Pass in optional `write` and `end` methods.
* `through` takes care of pause/resume logic if you use `this.queue(data)` instead of `this.emit('data', data)`.
* Use `this.pause()` and `this.resume()` to manage flow.
* Check `this.paused` to see current flow state. (`write` always returns `!this.paused`).
This function is the basis for most of the synchronous streams in
[event-stream](http://github.com/dominictarr/event-stream).
``` js
var through = require('through')
through(function write(data) {
this.queue(data) //data *must* not be null
},
function end () { //optional
this.queue(null)
})
```
Or, can also be used _without_ buffering on pause, use `this.emit('data', data)`,
and this.emit('end')
``` js
var through = require('through')
through(function write(data) {
this.emit('data', data)
//this.pause()
},
function end () { //optional
this.emit('end')
})
```
## Extended Options
You will probably not need these 99% of the time.
### autoDestroy=false
By default, `through` emits close when the writable
and readable side of the stream has ended.
If that is not desired, set `autoDestroy=false`.
``` js
var through = require('through')
//like this
var ts = through(write, end, {autoDestroy: false})
//or like this
var ts = through(write, end)
ts.autoDestroy = false
```
## License
MIT / Apache2
@@ -0,0 +1 @@
{"name":"has-property-descriptors","version":"1.0.2","requiresBuild":false,"files":{".eslintrc":{"checkedAt":1794532096437,"integrity":"sha512-bi9Znl1Zx/YWlbSV211Lm3LJZ9wpI5Ysaw8p+9WkxhUhGqYbjqpuNzniwYzjECmMnrTveIoeFEOvE8T6jhn//Q==","mode":420,"size":173},".nycrc":{"checkedAt":1794532096438,"integrity":"sha512-2vm1RFz8Ajl/OYrfoCWPJIm3Bpnf7Gyn5bha/lZx/cq+We3uMy9xj15XeP6x4wF3jf/pO7KMHAkU9mllm605xg==","mode":420,"size":139},"LICENSE":{"checkedAt":1794532096438,"integrity":"sha512-16Lw2sQpq8QINLGIfL/+xkhzMDKK7+1KhO0tqPzWh6SJx+JcmBuZ7w7FwLce+/bDBInYIE8pUEWvqkiN2Y1kTg==","mode":420,"size":1067},"index.js":{"checkedAt":1794532096438,"integrity":"sha512-m49cLwUwbkRGuY6/B+vidhsv2PTfT+Wr5W+fiFYYWsj+r1RTVenDaCK6o2c+6yrGQ8SbBvctrMeIxhGn5fpIZQ==","mode":420,"size":588},"test/index.js":{"checkedAt":1794532096438,"integrity":"sha512-bLTQbnUDxLO90N8dEt2ejGM2LFlK7DCe8TSeVJleERdI43/H8hi9oFO6+7SoL/00H1joC+w8s9tdFWxA881MJg==","mode":420,"size":1405},"package.json":{"checkedAt":1794532096438,"integrity":"sha512-auM68PT4f5DEgkgkVmlE7zdTNgzOdJedUyu8yY2ZWurycK5+edazpZ1srm8piSUMej2EozO1K2ykzHYkAdbARg==","mode":420,"size":2090},"CHANGELOG.md":{"checkedAt":1794532096438,"integrity":"sha512-PzxpiVMMCH04iOWPJd4mVny4Mh8hjzAcNsLQ8FwgctSl5oUKoTBBFco87ke6Z9+i1EIzyo8sxAT0+UMTZmkOjQ==","mode":420,"size":2648},"README.md":{"checkedAt":1794532096438,"integrity":"sha512-QyB8VEyzLjh04u0vI9QRNlvyHgSk9x/DIrvb+v2GYQWUHZjXRLVnuTZS2UxdYSGm8rasx2yQFPRQt+mHBRz0uQ==","mode":420,"size":2206},".github/FUNDING.yml":{"checkedAt":1794532096439,"integrity":"sha512-3pikds1D59yg6EcDor3Ugx9/RcsnQyeU+NzFYLjvbcKWcyjEioOwCi/7fJVSdHvWacEgjtWsO6PNceShogHEUw==","mode":420,"size":595}}}
@@ -0,0 +1 @@
export { _ as default } from "../esm/_interop_require_default.js";
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/has-proto
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,726 @@
flf2a$ 7 6 17 0 11 0 8256 0
Author : Bateau (lbm)
Date : 2005/2/4 10:36:48
Version: 1.01
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
$ #
$ #
$ #
$ #
$ #
$ #
$ ##
#
___ #
| | #
|___| #
|___| #
#
##
____ #
\_\_| #
#
#
#
#
##
##
#
#
#
#
#
##
$#
#
#
#
#
#
##
%#
#
#
#
#
#
##
&#
#
#
#
#
#
##
_ #
|_| #
#
#
#
#
##
__ #
| _| #
| | #
| | #
| |_ #
|__| #
##
__ #
|_ | #
| | #
| | #
_| | #
|__| #
##
*#
#
#
#
#
#
##
#
_ #
| | #
| | #
|_| #
#
##
#
#
#
__ #
/_/ #
#
##
#
#
___ #
|___| #
#
#
##
#
#
#
_ #
|_| #
#
##
_ #
/ | #
/ / #
|_/ #
#
#
##
#
_____ #
/ | #
| / | #
|_____/ #
#
##
#
_____ #
|_ | #
| | #
|____| #
#
##
#
______ #
|____ | #
| --| #
|______| #
#
##
#
______ #
|___ | #
|___ | #
|______| #
#
##
#
__ _ #
| | | | #
| |_| | #
'----__| #
#
##
#
______ #
| ____| #
|___ \ #
|______/ #
#
##
#
____ #
/ /_ #
| _ | #
|______| #
#
##
#
______ #
|___ | #
/ / #
|___| #
#
##
#
_____ #
< - > #
/ _ \ #
\_____/ #
#
##
#
______ #
| _ | #
|____ | #
|__| #
#
##
#
_ #
|_| #
_ #
|_| #
#
##
#
_ #
|_| #
__ #
/_/ #
#
##
#
__ #
/ / #
\ \ #
\_\ #
#
##
#
___ #
|___| #
___ #
|___| #
#
##
#
__ #
\ \ #
\ \ #
/_/ #
#
##
?#
#
#
#
#
#
##
@#
#
#
#
#
#
##
_____ #
__|_ |__ #
| \ | #
| \ | #
|__|\__\ __| #
|_____| #
##
_____ #
__|___ |__ #
| > | #
| < | #
|______> __| #
|_____| #
##
_____ #
__|___ |__ #
| ___| | #
| |__ | #
|______| __| #
|_____| #
##
_____ #
__|__ |__ #
| \ | #
| \ | #
|______/ __| #
|_____| #
##
_____ #
__|___ |__ #
| ___| | #
| ___| | #
|______| __| #
|_____| #
##
_____ #
__|___ |__ #
| ___| | #
| ___| | #
|___| __| #
|_____| #
##
_____ #
__|___ |__ #
| ___| | #
| | | | #
|______| __| #
|_____| #
##
_____ #
__| _ |__ #
| |_| | | #
| _ | | #
|__| |_| __| #
|_____| #
##
_____ #
__|_ |__ #
| | | #
| | | #
|____| __| #
|_____| #
##
_____ #
__|_ |__ #
| | |#
_| | |#
|______| __|#
|_____| #
##
_____ #
__| __ |__ #
| |/ / | #
| \ | #
|__|\__\ __| #
|_____| #
##
_____ #
__|_ |__ #
| | | #
| |_ | #
|______| __| #
|_____| #
##
_____ #
___| _|__ #
| \ / | | #
| \/ | | #
|__/\__/|__|_| #
|_____| #
##
_____ #
___| _ |__ #
| \ | | | #
| \| | | #
|__/\____| __| #
|_____| #
##
_____ #
__|__ |__ #
/ \ | #
| | | #
\_____/ __| #
|_____| #
##
_____ #
__|__ |__ #
| | | #
| _| | #
|___| __| #
|_____| #
##
_____ #
__|__ |__ #
/ \ | #
| | | #
\___/\_\ __| #
|_____| #
##
_____ #
__|__ |__ #
| | | #
| \ | #
|__|\__\ __| #
|_____| #
##
_____ #
__|___ |__ #
| ___| | #
`-.`-. | #
|______| __| #
|_____| #
##
_____ #
___|__ |__ #
|_ _| | #
| | | #
|____| __| #
|_____| #
##
_____ #
__| _ |__ #
| | | | | #
| |_| | | #
|______| __| #
|_____| #
##
_____ #
__| _ |__ #
\ \ // | #
|\ \// | #
|_\__/ __| #
|_____| #
##
_____ #
___|__ _|__ #
| \/ \| | | #
| /\ | | #
|____/ \__|_| #
|_____| #
##
_____ #
__|__ |__ #
\ ` / | #
/ \ | #
/__/\_\ __| #
|_____| #
##
_____ #
___| _ |__ #
\ \ // | #
|\ \// | #
|/__/ __| #
|_____| #
##
_____ #
__|___ |__ #
|___ | | #
.-`.-` | #
|______| __| #
|_____| #
##
__ #
| _| #
| | #
| | #
| | #
|__| #
##
_ #
| \ #
\ \ #
\_\ #
#
#
##
__ #
|_ | #
| | #
| | #
| | #
|__| #
##
^#
#
#
#
#
#
##
#
#
#
#
___ #
|___| #
##
__ #
\_| #
#
#
#
#
##
#
____ #
| \ #
| \ #
|__|\__\ #
#
##
#
______ #
| > #
| < #
|______> #
#
##
#
______ #
| ___| #
| |__ #
|______| #
#
##
#
_____ #
| \ #
| \ #
|______/ #
#
##
#
______ #
| ___| #
| ___| #
|______| #
#
##
#
______ #
| ___| #
| ___| #
|___| #
#
##
#
______ #
| ___| #
| | | #
|______| #
#
##
#
__ _ #
| |_| | #
| _ | #
|__| |_| #
#
##
#
____ #
| | #
| | #
|____| #
#
##
#
____ #
| | #
_| | #
|______| #
#
##
#
__ __ #
| |/ / #
| \ #
|__|\__\ #
#
##
#
____ #
| | #
| |_ #
|______| #
#
##
#
____ __ #
| \ / | #
| \/ | #
|__/\__/|__| #
#
##
#
____ _ #
| \ | | #
| \| | #
|__/\____| #
#
##
#
_____ #
/ \ #
| | #
\_____/ #
#
##
#
_____ #
| | #
| _| #
|___| #
#
##
#
_____ #
/ \ #
| | #
\___/\_\ #
#
##
#
_____ #
| | #
| \ #
|__|\__\ #
#
##
#
______ #
| ___| #
`-.`-. #
|______| #
#
##
#
__ #
_| |_ #
|_ _| #
|__| #
#
##
#
__ _ #
| | | | #
| |_| | #
|______| #
#
##
#
__ _ #
\ \ // #
\ \// #
\__/ #
#
##
#
__ __ __ #
| \/ \| | #
| /\ | #
|____/ \__| #
#
##
#
__ __ #
\ ` / #
/ \ #
/__/\_\ #
#
##
#
__ _ #
\ \ // #
\ \// #
/__/ #
#
##
#
______ #
|___ | #
.-`.-` #
|______| #
#
##
__ #
| _| #
| | #
< < #
| | #
|__| #
##
_ #
| | #
| | #
| | #
| | #
|_| #
##
__ #
|_ | #
| | #
> > #
| | #
|__| #
##
~#
#
#
#
#
#
##
_____ #
__|_ |__ #
| \ | #
| \ | #
|__|\__\ __| #
|_____| #
##
_____ #
__|__ |__ #
/ \ | #
| | | #
\_____/ __| #
|_____| #
##
_____ #
__| _ |__ #
| | | | | #
| |_| | | #
|______| __| #
|_____| #
##
#
____ #
| \ #
| \ #
|__|\__\ #
#
##
#
_____ #
/ \ #
| | #
\_____/ #
#
##
#
__ _ #
| | | | #
| |_| | #
|______| #
#
##
ß#
#
#
#
#
#
##
@@ -0,0 +1,190 @@
"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/spinner.ts
var spinner_exports = {};
__export(spinner_exports, {
spinner: () => spinner
});
module.exports = __toCommonJS(spinner_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/components/spinner.ts
var spinner = tv({
slots: {
base: "relative inline-flex flex-col gap-2 items-center justify-center",
wrapper: "relative flex",
circle1: [
"absolute",
"w-full",
"h-full",
"rounded-full",
"animate-spinner-ease-spin",
"border-2",
"border-solid",
"border-t-transparent",
"border-l-transparent",
"border-r-transparent"
],
circle2: [
"absolute",
"w-full",
"h-full",
"rounded-full",
"opacity-75",
"animate-spinner-linear-spin",
"border-2",
"border-dotted",
"border-t-transparent",
"border-l-transparent",
"border-r-transparent"
],
label: "text-foreground dark:text-foreground-dark font-regular"
},
variants: {
size: {
sm: {
wrapper: "w-5 h-5",
circle1: "border-2",
circle2: "border-2",
label: "text-small"
},
md: {
wrapper: "w-8 h-8",
circle1: "border-3",
circle2: "border-3",
label: "text-medium"
},
lg: {
wrapper: "w-10 h-10",
circle1: "border-3",
circle2: "border-3",
label: "text-large"
}
},
color: {
current: {
circle1: "border-b-current",
circle2: "border-b-current"
},
white: {
circle1: "border-b-white",
circle2: "border-b-white"
},
default: {
circle1: "border-b-default",
circle2: "border-b-default"
},
primary: {
circle1: "border-b-primary",
circle2: "border-b-primary"
},
secondary: {
circle1: "border-b-secondary",
circle2: "border-b-secondary"
},
success: {
circle1: "border-b-success",
circle2: "border-b-success"
},
warning: {
circle1: "border-b-warning",
circle2: "border-b-warning"
},
danger: {
circle1: "border-b-danger",
circle2: "border-b-danger"
}
},
labelColor: {
foreground: {
label: "text-foreground"
},
primary: {
label: "text-primary"
},
secondary: {
label: "text-secondary"
},
success: {
label: "text-success"
},
warning: {
label: "text-warning"
},
danger: {
label: "text-danger"
}
}
},
defaultVariants: {
size: "md",
color: "primary",
labelColor: "foreground"
}
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
spinner
});
@@ -0,0 +1,13 @@
const fs = require('fs')
const JSON5 = require('./')
// eslint-disable-next-line node/no-deprecated-api
require.extensions['.json5'] = function (module, filename) {
const content = fs.readFileSync(filename, 'utf8')
try {
module.exports = JSON5.parse(content)
} catch (err) {
err.message = filename + ': ' + err.message
throw err
}
}
@@ -0,0 +1 @@
{"version":3,"file":"jsx-indent-props.d.ts","sourceRoot":"","sources":["jsx-indent-props.js"],"names":[],"mappings":"wBA+CW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU"}
@@ -0,0 +1,47 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
const { getSourceCode } = require("eslint-compat-utils")
module.exports = {
meta: {
docs: {
description:
"disallow the `Object.getOwnPropertyDescriptors` method.",
category: "ES2017",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-object-getownpropertydescriptors.html",
},
fixable: null,
messages: {
forbidden: "ES2017 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"(program) {
const sourceCode = getSourceCode(context)
const tracker = new ReferenceTracker(
sourceCode.getScope(program),
)
for (const { node, path } of tracker.iterateGlobalReferences({
Object: {
getOwnPropertyDescriptors: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1,13 @@
'use strict';
var _require = require('./colorize'),
Colorizer = _require.Colorizer;
/*
* Simple method to register colors with a simpler require
* path within the module.
*/
module.exports = function (config) {
Colorizer.addColors(config.colors || config);
return config;
};
@@ -0,0 +1,62 @@
# color-string
> library for parsing and generating CSS color strings.
## Install
With [npm](http://npmjs.org/):
```console
$ npm install color-string
```
## Usage
### Parsing
```js
colorString.get('#FFF') // {model: 'rgb', value: [255, 255, 255, 1]}
colorString.get('#FFFA') // {model: 'rgb', value: [255, 255, 255, 0.67]}
colorString.get('#FFFFFFAA') // {model: 'rgb', value: [255, 255, 255, 0.67]}
colorString.get('hsl(360, 100%, 50%)') // {model: 'hsl', value: [0, 100, 50, 1]}
colorString.get('hsl(360 100% 50%)') // {model: 'hsl', value: [0, 100, 50, 1]}
colorString.get('hwb(60, 3%, 60%)') // {model: 'hwb', value: [60, 3, 60, 1]}
colorString.get.rgb('#FFF') // [255, 255, 255, 1]
colorString.get.rgb('blue') // [0, 0, 255, 1]
colorString.get.rgb('rgba(200, 60, 60, 0.3)') // [200, 60, 60, 0.3]
colorString.get.rgb('rgba(200 60 60 / 0.3)') // [200, 60, 60, 0.3]
colorString.get.rgb('rgba(200 60 60 / 30%)') // [200, 60, 60, 0.3]
colorString.get.rgb('rgb(200, 200, 200)') // [200, 200, 200, 1]
colorString.get.rgb('rgb(200 200 200)') // [200, 200, 200, 1]
colorString.get.hsl('hsl(360, 100%, 50%)') // [0, 100, 50, 1]
colorString.get.hsl('hsl(360 100% 50%)') // [0, 100, 50, 1]
colorString.get.hsl('hsla(360, 60%, 50%, 0.4)') // [0, 60, 50, 0.4]
colorString.get.hsl('hsl(360 60% 50% / 0.4)') // [0, 60, 50, 0.4]
colorString.get.hwb('hwb(60, 3%, 60%)') // [60, 3, 60, 1]
colorString.get.hwb('hwb(60, 3%, 60%, 0.6)') // [60, 3, 60, 0.6]
colorString.get.rgb('invalid color string') // null
```
### Generation
```js
colorString.to.hex([255, 255, 255]) // "#FFFFFF"
colorString.to.hex([0, 0, 255, 0.4]) // "#0000FF66"
colorString.to.hex([0, 0, 255], 0.4) // "#0000FF66"
colorString.to.rgb([255, 255, 255]) // "rgb(255, 255, 255)"
colorString.to.rgb([0, 0, 255, 0.4]) // "rgba(0, 0, 255, 0.4)"
colorString.to.rgb([0, 0, 255], 0.4) // "rgba(0, 0, 255, 0.4)"
colorString.to.rgb.percent([0, 0, 255]) // "rgb(0%, 0%, 100%)"
colorString.to.keyword([255, 255, 0]) // "yellow"
colorString.to.hsl([360, 100, 100]) // "hsl(360, 100%, 100%)"
colorString.to.hwb([50, 3, 15]) // "hwb(50, 3%, 15%)"
// all functions also support swizzling
colorString.to.rgb(0, [0, 255], 0.4) // "rgba(0, 0, 255, 0.4)"
colorString.to.rgb([0, 0], [255], 0.4) // "rgba(0, 0, 255, 0.4)"
colorString.to.rgb([0], 0, [255, 0.4]) // "rgba(0, 0, 255, 0.4)"
```
@@ -0,0 +1 @@
{"version":3,"file":"updateReflectMetadata.d.ts","sourceRoot":"","sources":["../../../../src/reflectMetadata/utils/updateReflectMetadata.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,SAAS,EAC7C,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,OAAO,EACpB,iBAAiB,EAAE,MAAM,SAAS,EAClC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,SAAS,EAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAC5B,IAAI,CAON"}
@@ -0,0 +1,58 @@
{
"name": "run-parallel",
"description": "Run an array of functions in parallel",
"version": "1.2.0",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"url": "https://feross.org"
},
"bugs": {
"url": "https://github.com/feross/run-parallel/issues"
},
"dependencies": {
"queue-microtask": "^1.2.2"
},
"devDependencies": {
"airtap": "^3.0.0",
"standard": "*",
"tape": "^5.0.1"
},
"homepage": "https://github.com/feross/run-parallel",
"keywords": [
"parallel",
"async",
"function",
"callback",
"asynchronous",
"run",
"array",
"run parallel"
],
"license": "MIT",
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/feross/run-parallel.git"
},
"scripts": {
"test": "standard && npm run test-node && npm run test-browser",
"test-browser": "airtap -- test/*.js",
"test-browser-local": "airtap --local -- test/*.js",
"test-node": "tape test/*.js"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
}
@@ -0,0 +1,161 @@
// text-polyfill.ts
// Minimal encode/decode for utf-8, utf-16le, ascii, latin1, windows-1252
const WINDOWS_1252_EXTRA = {
0x80: "€", 0x82: "‚", 0x83: "ƒ", 0x84: "„", 0x85: "…", 0x86: "†",
0x87: "‡", 0x88: "ˆ", 0x89: "‰", 0x8a: "Š", 0x8b: "‹", 0x8c: "Œ",
0x8e: "Ž", 0x91: "‘", 0x92: "’", 0x93: "“", 0x94: "”", 0x95: "•",
0x96: "–", 0x97: "—", 0x98: "˜", 0x99: "™", 0x9a: "š", 0x9b: "›",
0x9c: "œ", 0x9e: "ž", 0x9f: "Ÿ",
};
const WINDOWS_1252_REVERSE = {};
for (const [code, char] of Object.entries(WINDOWS_1252_EXTRA)) {
WINDOWS_1252_REVERSE[char] = Number.parseInt(code);
}
/**
* Decode text from binary data
* @param bytes Binary data
* @param encoding Encoding
*/
export function textDecode(bytes, encoding = "utf-8") {
switch (encoding.toLowerCase()) {
case "utf-8":
case "utf8":
if (typeof globalThis.TextDecoder !== "undefined") {
return new globalThis.TextDecoder("utf-8").decode(bytes);
}
return decodeUTF8(bytes);
case "utf-16le":
return decodeUTF16LE(bytes);
case "ascii":
return decodeASCII(bytes);
case "latin1":
case "iso-8859-1":
return decodeLatin1(bytes);
case "windows-1252":
return decodeWindows1252(bytes);
default:
throw new RangeError(`Encoding '${encoding}' not supported`);
}
}
export function textEncode(input = "", encoding = "utf-8") {
switch (encoding.toLowerCase()) {
case "utf-8":
case "utf8":
if (typeof globalThis.TextEncoder !== "undefined") {
return new globalThis.TextEncoder().encode(input);
}
return encodeUTF8(input);
case "utf-16le":
return encodeUTF16LE(input);
case "ascii":
return encodeASCII(input);
case "latin1":
case "iso-8859-1":
return encodeLatin1(input);
case "windows-1252":
return encodeWindows1252(input);
default:
throw new RangeError(`Encoding '${encoding}' not supported`);
}
}
// --- Internal helpers ---
function decodeUTF8(bytes) {
let out = "";
let i = 0;
while (i < bytes.length) {
const b1 = bytes[i++];
if (b1 < 0x80) {
out += String.fromCharCode(b1);
}
else if (b1 < 0xe0) {
const b2 = bytes[i++] & 0x3f;
out += String.fromCharCode(((b1 & 0x1f) << 6) | b2);
}
else if (b1 < 0xf0) {
const b2 = bytes[i++] & 0x3f;
const b3 = bytes[i++] & 0x3f;
out += String.fromCharCode(((b1 & 0x0f) << 12) | (b2 << 6) | b3);
}
else {
const b2 = bytes[i++] & 0x3f;
const b3 = bytes[i++] & 0x3f;
const b4 = bytes[i++] & 0x3f;
let cp = ((b1 & 0x07) << 18) |
(b2 << 12) |
(b3 << 6) |
b4;
cp -= 0x10000;
out += String.fromCharCode(0xd800 + ((cp >> 10) & 0x3ff), 0xdc00 + (cp & 0x3ff));
}
}
return out;
}
function decodeUTF16LE(bytes) {
let out = "";
for (let i = 0; i < bytes.length; i += 2) {
out += String.fromCharCode(bytes[i] | (bytes[i + 1] << 8));
}
return out;
}
function decodeASCII(bytes) {
return String.fromCharCode(...bytes.map((b) => b & 0x7f));
}
function decodeLatin1(bytes) {
return String.fromCharCode(...bytes);
}
function decodeWindows1252(bytes) {
let out = "";
for (const b of bytes) {
if (b >= 0x80 && b <= 0x9f && WINDOWS_1252_EXTRA[b]) {
out += WINDOWS_1252_EXTRA[b];
}
else {
out += String.fromCharCode(b);
}
}
return out;
}
function encodeUTF8(str) {
const out = [];
for (let i = 0; i < str.length; i++) {
const cp = str.charCodeAt(i);
if (cp < 0x80) {
out.push(cp);
}
else if (cp < 0x800) {
out.push(0xc0 | (cp >> 6), 0x80 | (cp & 0x3f));
}
else if (cp < 0x10000) {
out.push(0xe0 | (cp >> 12), 0x80 | ((cp >> 6) & 0x3f), 0x80 | (cp & 0x3f));
}
else {
out.push(0xf0 | (cp >> 18), 0x80 | ((cp >> 12) & 0x3f), 0x80 | ((cp >> 6) & 0x3f), 0x80 | (cp & 0x3f));
}
}
return new Uint8Array(out);
}
function encodeUTF16LE(str) {
const out = new Uint8Array(str.length * 2);
for (let i = 0; i < str.length; i++) {
const code = str.charCodeAt(i);
out[i * 2] = code & 0xff;
out[i * 2 + 1] = code >> 8;
}
return out;
}
function encodeASCII(str) {
return new Uint8Array([...str].map((ch) => ch.charCodeAt(0) & 0x7f));
}
function encodeLatin1(str) {
return new Uint8Array([...str].map((ch) => ch.charCodeAt(0) & 0xff));
}
function encodeWindows1252(str) {
return new Uint8Array([...str].map((ch) => {
const code = ch.charCodeAt(0);
if (code <= 0xff)
return code;
if (WINDOWS_1252_REVERSE[ch] !== undefined)
return WINDOWS_1252_REVERSE[ch];
return 0x3f; // '?'
}));
}
@@ -0,0 +1 @@
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=o(e.dayjs)}(this,(function(e){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),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:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return t.default.locale(n,null,!0),n}));
@@ -0,0 +1,41 @@
'use strict';
var os = require('os');
var equals = require('buffer-equal');
var cr = new Buffer('\r\n');
var nl = new Buffer('\n');
/**
* Append a buffer to another buffer ensuring to preserve line ending characters.
*
* ```js
* console.log([appendBuffer(new Buffer('abc\r\n'), new Buffer('def')).toString()]);
* //=> [ 'abc\r\ndef\r\n' ]
*
* console.log([appendBuffer(new Buffer('abc\n'), new Buffer('def')).toString()]);
* //=> [ 'abc\ndef\n' ]
*
* // uses os.EOL when a line ending is not found
* console.log([appendBuffer(new Buffer('abc'), new Buffer('def')).toString()]);
* //=> [ 'abc\ndef' ]
* * ```
* @param {Buffer} `buf` Buffer that will be used to check for an existing line ending. The suffix is appended to this.
* @param {Buffer} `suffix` Buffer that will be appended to the buf.
* @return {Buffer} Final Buffer
* @api public
*/
module.exports = function appendBuffer(buf, suffix) {
if (!suffix || !suffix.length) {
return buf;
}
var eol;
if (equals(buf.slice(-2), cr)) {
eol = cr;
} else if (equals(buf.slice(-1), nl)) {
eol = nl;
} else {
return Buffer.concat([buf, new Buffer(os.EOL), new Buffer(suffix)]);
}
return Buffer.concat([buf, new Buffer(suffix), eol]);
};
@@ -0,0 +1,5 @@
import { EventType, OneBotEvent } from '../../event/OneBotEvent';
export declare abstract class OB11BaseMetaEvent extends OneBotEvent {
post_type: EventType;
abstract meta_event_type: string;
}
@@ -0,0 +1,18 @@
'use strict';
var $TypeError = require('es-errors/type');
var SameValue = require('./SameValue');
var SameType = require('./SameType');
// https://262.ecma-international.org/16.0/#sec-samevaluenonnumeric
module.exports = function SameValueNonNumber(x, y) {
if (typeof x === 'number') {
throw new $TypeError('Assertion failed: SameValueNonNumber does not accept Number values');
}
if (!SameType(x, y)) {
throw new $TypeError('SameValueNonNumber requires two non-Number values of the same type.');
}
return SameValue(x, y);
};
@@ -0,0 +1,87 @@
import type { HelperManager } from "./HelperManager";
import type { Token } from "./parser/tokenizer";
import type { ContextualKeyword } from "./parser/tokenizer/keywords";
import { type TokenType } from "./parser/tokenizer/types";
export interface TokenProcessorSnapshot {
resultCode: string;
tokenIndex: number;
}
export interface TokenProcessorResult {
code: string;
mappings: Array<number | undefined>;
}
export default class TokenProcessor {
readonly code: string;
readonly tokens: Array<Token>;
readonly isFlowEnabled: boolean;
readonly disableESTransforms: boolean;
readonly helperManager: HelperManager;
private resultCode;
private resultMappings;
private tokenIndex;
constructor(code: string, tokens: Array<Token>, isFlowEnabled: boolean, disableESTransforms: boolean, helperManager: HelperManager);
/**
* Snapshot the token state in a way that can be restored later, useful for
* things like lookahead.
*
* resultMappings do not need to be copied since in all use cases, they will
* be overwritten anyway after restore.
*/
snapshot(): TokenProcessorSnapshot;
restoreToSnapshot(snapshot: TokenProcessorSnapshot): void;
/**
* Remove and return the code generated since the snapshot, leaving the
* current token position in-place. Unlike most TokenProcessor operations,
* this operation can result in input/output line number mismatches because
* the removed code may contain newlines, so this operation should be used
* sparingly.
*/
dangerouslyGetAndRemoveCodeSinceSnapshot(snapshot: TokenProcessorSnapshot): string;
reset(): void;
matchesContextualAtIndex(index: number, contextualKeyword: ContextualKeyword): boolean;
identifierNameAtIndex(index: number): string;
identifierNameAtRelativeIndex(relativeIndex: number): string;
identifierName(): string;
identifierNameForToken(token: Token): string;
rawCodeForToken(token: Token): string;
stringValueAtIndex(index: number): string;
stringValue(): string;
stringValueForToken(token: Token): string;
matches1AtIndex(index: number, t1: TokenType): boolean;
matches2AtIndex(index: number, t1: TokenType, t2: TokenType): boolean;
matches3AtIndex(index: number, t1: TokenType, t2: TokenType, t3: TokenType): boolean;
matches1(t1: TokenType): boolean;
matches2(t1: TokenType, t2: TokenType): boolean;
matches3(t1: TokenType, t2: TokenType, t3: TokenType): boolean;
matches4(t1: TokenType, t2: TokenType, t3: TokenType, t4: TokenType): boolean;
matches5(t1: TokenType, t2: TokenType, t3: TokenType, t4: TokenType, t5: TokenType): boolean;
matchesContextual(contextualKeyword: ContextualKeyword): boolean;
matchesContextIdAndLabel(type: TokenType, contextId: number): boolean;
previousWhitespaceAndComments(): string;
replaceToken(newCode: string): void;
replaceTokenTrimmingLeftWhitespace(newCode: string): void;
removeInitialToken(): void;
removeToken(): void;
/**
* Remove all code until the next }, accounting for balanced braces.
*/
removeBalancedCode(): void;
copyExpectedToken(tokenType: TokenType): void;
copyToken(): void;
copyTokenWithPrefix(prefix: string): void;
private appendTokenPrefix;
private appendTokenSuffix;
appendCode(code: string): void;
currentToken(): Token;
currentTokenCode(): string;
tokenAtRelativeIndex(relativeIndex: number): Token;
currentIndex(): number;
/**
* Move to the next token. Only suitable in preprocessing steps. When
* generating new code, you should use copyToken or removeToken.
*/
nextToken(): void;
previousToken(): void;
finish(): TokenProcessorResult;
isAtEnd(): boolean;
}
@@ -0,0 +1,7 @@
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
/**
* A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
* @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
*/
declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config;
export default _default;
@@ -0,0 +1,28 @@
import {useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7} from "./context.mjs";
import {NumberFormatter as $JFEdn$NumberFormatter} from "@internationalized/number";
import {useMemo as $JFEdn$useMemo} from "react";
/*
* 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 $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
let { locale: locale } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
return (0, $JFEdn$useMemo)(()=>new (0, $JFEdn$NumberFormatter)(locale, options), [
locale,
options
]);
}
export {$a916eb452884faea$export$b7a616150fdb9f44 as useNumberFormatter};
//# sourceMappingURL=useNumberFormatter.module.js.map
@@ -0,0 +1,749 @@
import { debounce, memo, notUndefined, approxEqual } from "./utils.js";
const defaultKeyExtractor = (index) => index;
const defaultRangeExtractor = (range) => {
const start = Math.max(range.startIndex - range.overscan, 0);
const end = Math.min(range.endIndex + range.overscan, range.count - 1);
const arr = [];
for (let i = start; i <= end; i++) {
arr.push(i);
}
return arr;
};
const observeElementRect = (instance, cb) => {
const element = instance.scrollElement;
if (!element) {
return;
}
const targetWindow = instance.targetWindow;
if (!targetWindow) {
return;
}
const handler = (rect) => {
const { width, height } = rect;
cb({ width: Math.round(width), height: Math.round(height) });
};
handler(element.getBoundingClientRect());
if (!targetWindow.ResizeObserver) {
return () => {
};
}
const observer = new targetWindow.ResizeObserver((entries) => {
const entry = entries[0];
if (entry == null ? void 0 : entry.borderBoxSize) {
const box = entry.borderBoxSize[0];
if (box) {
handler({ width: box.inlineSize, height: box.blockSize });
return;
}
}
handler(element.getBoundingClientRect());
});
observer.observe(element, { box: "border-box" });
return () => {
observer.unobserve(element);
};
};
const addEventListenerOptions = {
passive: true
};
const observeWindowRect = (instance, cb) => {
const element = instance.scrollElement;
if (!element) {
return;
}
const handler = () => {
cb({ width: element.innerWidth, height: element.innerHeight });
};
handler();
element.addEventListener("resize", handler, addEventListenerOptions);
return () => {
element.removeEventListener("resize", handler);
};
};
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
const observeElementOffset = (instance, cb) => {
const element = instance.scrollElement;
if (!element) {
return;
}
const targetWindow = instance.targetWindow;
if (!targetWindow) {
return;
}
let offset = 0;
const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce(
targetWindow,
() => {
cb(offset, false);
},
instance.options.isScrollingResetDelay
);
const createHandler = (isScrolling) => () => {
const { horizontal, isRtl } = instance.options;
offset = horizontal ? element["scrollLeft"] * (isRtl && -1 || 1) : element["scrollTop"];
fallback();
cb(offset, isScrolling);
};
const handler = createHandler(true);
const endHandler = createHandler(false);
endHandler();
element.addEventListener("scroll", handler, addEventListenerOptions);
element.addEventListener("scrollend", endHandler, addEventListenerOptions);
return () => {
element.removeEventListener("scroll", handler);
element.removeEventListener("scrollend", endHandler);
};
};
const observeWindowOffset = (instance, cb) => {
const element = instance.scrollElement;
if (!element) {
return;
}
const targetWindow = instance.targetWindow;
if (!targetWindow) {
return;
}
let offset = 0;
const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce(
targetWindow,
() => {
cb(offset, false);
},
instance.options.isScrollingResetDelay
);
const createHandler = (isScrolling) => () => {
offset = element[instance.options.horizontal ? "scrollX" : "scrollY"];
fallback();
cb(offset, isScrolling);
};
const handler = createHandler(true);
const endHandler = createHandler(false);
endHandler();
element.addEventListener("scroll", handler, addEventListenerOptions);
element.addEventListener("scrollend", endHandler, addEventListenerOptions);
return () => {
element.removeEventListener("scroll", handler);
element.removeEventListener("scrollend", endHandler);
};
};
const measureElement = (element, entry, instance) => {
if (entry == null ? void 0 : entry.borderBoxSize) {
const box = entry.borderBoxSize[0];
if (box) {
const size = Math.round(
box[instance.options.horizontal ? "inlineSize" : "blockSize"]
);
return size;
}
}
return Math.round(
element.getBoundingClientRect()[instance.options.horizontal ? "width" : "height"]
);
};
const windowScroll = (offset, {
adjustments = 0,
behavior
}, instance) => {
var _a, _b;
const toOffset = offset + adjustments;
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {
[instance.options.horizontal ? "left" : "top"]: toOffset,
behavior
});
};
const elementScroll = (offset, {
adjustments = 0,
behavior
}, instance) => {
var _a, _b;
const toOffset = offset + adjustments;
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {
[instance.options.horizontal ? "left" : "top"]: toOffset,
behavior
});
};
class Virtualizer {
constructor(opts) {
this.unsubs = [];
this.scrollElement = null;
this.targetWindow = null;
this.isScrolling = false;
this.scrollToIndexTimeoutId = null;
this.measurementsCache = [];
this.itemSizeCache = /* @__PURE__ */ new Map();
this.pendingMeasuredCacheIndexes = [];
this.scrollRect = null;
this.scrollOffset = null;
this.scrollDirection = null;
this.scrollAdjustments = 0;
this.elementsCache = /* @__PURE__ */ new Map();
this.observer = /* @__PURE__ */ (() => {
let _ro = null;
const get = () => {
if (_ro) {
return _ro;
}
if (!this.targetWindow || !this.targetWindow.ResizeObserver) {
return null;
}
return _ro = new this.targetWindow.ResizeObserver((entries) => {
entries.forEach((entry) => {
this._measureElement(entry.target, entry);
});
});
};
return {
disconnect: () => {
var _a;
(_a = get()) == null ? void 0 : _a.disconnect();
_ro = null;
},
observe: (target) => {
var _a;
return (_a = get()) == null ? void 0 : _a.observe(target, { box: "border-box" });
},
unobserve: (target) => {
var _a;
return (_a = get()) == null ? void 0 : _a.unobserve(target);
}
};
})();
this.range = null;
this.setOptions = (opts2) => {
Object.entries(opts2).forEach(([key, value]) => {
if (typeof value === "undefined") delete opts2[key];
});
this.options = {
debug: false,
initialOffset: 0,
overscan: 1,
paddingStart: 0,
paddingEnd: 0,
scrollPaddingStart: 0,
scrollPaddingEnd: 0,
horizontal: false,
getItemKey: defaultKeyExtractor,
rangeExtractor: defaultRangeExtractor,
onChange: () => {
},
measureElement,
initialRect: { width: 0, height: 0 },
scrollMargin: 0,
gap: 0,
indexAttribute: "data-index",
initialMeasurementsCache: [],
lanes: 1,
isScrollingResetDelay: 150,
enabled: true,
isRtl: false,
useScrollendEvent: true,
...opts2
};
};
this.notify = (sync) => {
var _a, _b;
(_b = (_a = this.options).onChange) == null ? void 0 : _b.call(_a, this, sync);
};
this.maybeNotify = memo(
() => {
this.calculateRange();
return [
this.isScrolling,
this.range ? this.range.startIndex : null,
this.range ? this.range.endIndex : null
];
},
(isScrolling) => {
this.notify(isScrolling);
},
{
key: process.env.NODE_ENV !== "production" && "maybeNotify",
debug: () => this.options.debug,
initialDeps: [
this.isScrolling,
this.range ? this.range.startIndex : null,
this.range ? this.range.endIndex : null
]
}
);
this.cleanup = () => {
this.unsubs.filter(Boolean).forEach((d) => d());
this.unsubs = [];
this.observer.disconnect();
this.scrollElement = null;
this.targetWindow = null;
};
this._didMount = () => {
return () => {
this.cleanup();
};
};
this._willUpdate = () => {
var _a;
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
if (this.scrollElement !== scrollElement) {
this.cleanup();
if (!scrollElement) {
this.maybeNotify();
return;
}
this.scrollElement = scrollElement;
if (this.scrollElement && "ownerDocument" in this.scrollElement) {
this.targetWindow = this.scrollElement.ownerDocument.defaultView;
} else {
this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
}
this.elementsCache.forEach((cached) => {
this.observer.observe(cached);
});
this._scrollToOffset(this.getScrollOffset(), {
adjustments: void 0,
behavior: void 0
});
this.unsubs.push(
this.options.observeElementRect(this, (rect) => {
this.scrollRect = rect;
this.maybeNotify();
})
);
this.unsubs.push(
this.options.observeElementOffset(this, (offset, isScrolling) => {
this.scrollAdjustments = 0;
this.scrollDirection = isScrolling ? this.getScrollOffset() < offset ? "forward" : "backward" : null;
this.scrollOffset = offset;
this.isScrolling = isScrolling;
this.maybeNotify();
})
);
}
};
this.getSize = () => {
if (!this.options.enabled) {
this.scrollRect = null;
return 0;
}
this.scrollRect = this.scrollRect ?? this.options.initialRect;
return this.scrollRect[this.options.horizontal ? "width" : "height"];
};
this.getScrollOffset = () => {
if (!this.options.enabled) {
this.scrollOffset = null;
return 0;
}
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
return this.scrollOffset;
};
this.getFurthestMeasurement = (measurements, index) => {
const furthestMeasurementsFound = /* @__PURE__ */ new Map();
const furthestMeasurements = /* @__PURE__ */ new Map();
for (let m = index - 1; m >= 0; m--) {
const measurement = measurements[m];
if (furthestMeasurementsFound.has(measurement.lane)) {
continue;
}
const previousFurthestMeasurement = furthestMeasurements.get(
measurement.lane
);
if (previousFurthestMeasurement == null || measurement.end > previousFurthestMeasurement.end) {
furthestMeasurements.set(measurement.lane, measurement);
} else if (measurement.end < previousFurthestMeasurement.end) {
furthestMeasurementsFound.set(measurement.lane, true);
}
if (furthestMeasurementsFound.size === this.options.lanes) {
break;
}
}
return furthestMeasurements.size === this.options.lanes ? Array.from(furthestMeasurements.values()).sort((a, b) => {
if (a.end === b.end) {
return a.index - b.index;
}
return a.end - b.end;
})[0] : void 0;
};
this.getMeasurementOptions = memo(
() => [
this.options.count,
this.options.paddingStart,
this.options.scrollMargin,
this.options.getItemKey,
this.options.enabled
],
(count, paddingStart, scrollMargin, getItemKey, enabled) => {
this.pendingMeasuredCacheIndexes = [];
return {
count,
paddingStart,
scrollMargin,
getItemKey,
enabled
};
},
{
key: false
}
);
this.getMeasurements = memo(
() => [this.getMeasurementOptions(), this.itemSizeCache],
({ count, paddingStart, scrollMargin, getItemKey, enabled }, itemSizeCache) => {
if (!enabled) {
this.measurementsCache = [];
this.itemSizeCache.clear();
return [];
}
if (this.measurementsCache.length === 0) {
this.measurementsCache = this.options.initialMeasurementsCache;
this.measurementsCache.forEach((item) => {
this.itemSizeCache.set(item.key, item.size);
});
}
const min = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
this.pendingMeasuredCacheIndexes = [];
const measurements = this.measurementsCache.slice(0, min);
for (let i = min; i < count; i++) {
const key = getItemKey(i);
const furthestMeasurement = this.options.lanes === 1 ? measurements[i - 1] : this.getFurthestMeasurement(measurements, i);
const start = furthestMeasurement ? furthestMeasurement.end + this.options.gap : paddingStart + scrollMargin;
const measuredSize = itemSizeCache.get(key);
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
const end = start + size;
const lane = furthestMeasurement ? furthestMeasurement.lane : i % this.options.lanes;
measurements[i] = {
index: i,
start,
size,
end,
key,
lane
};
}
this.measurementsCache = measurements;
return measurements;
},
{
key: process.env.NODE_ENV !== "production" && "getMeasurements",
debug: () => this.options.debug
}
);
this.calculateRange = memo(
() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
(measurements, outerSize, scrollOffset) => {
return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
measurements,
outerSize,
scrollOffset
}) : null;
},
{
key: process.env.NODE_ENV !== "production" && "calculateRange",
debug: () => this.options.debug
}
);
this.getIndexes = memo(
() => [
this.options.rangeExtractor,
this.calculateRange(),
this.options.overscan,
this.options.count
],
(rangeExtractor, range, overscan, count) => {
return range === null ? [] : rangeExtractor({
startIndex: range.startIndex,
endIndex: range.endIndex,
overscan,
count
});
},
{
key: process.env.NODE_ENV !== "production" && "getIndexes",
debug: () => this.options.debug
}
);
this.indexFromElement = (node) => {
const attributeName = this.options.indexAttribute;
const indexStr = node.getAttribute(attributeName);
if (!indexStr) {
console.warn(
`Missing attribute name '${attributeName}={index}' on measured element.`
);
return -1;
}
return parseInt(indexStr, 10);
};
this._measureElement = (node, entry) => {
const index = this.indexFromElement(node);
const item = this.measurementsCache[index];
if (!item) {
return;
}
const key = item.key;
const prevNode = this.elementsCache.get(key);
if (prevNode !== node) {
if (prevNode) {
this.observer.unobserve(prevNode);
}
this.observer.observe(node);
this.elementsCache.set(key, node);
}
if (node.isConnected) {
this.resizeItem(index, this.options.measureElement(node, entry, this));
}
};
this.resizeItem = (index, size) => {
const item = this.measurementsCache[index];
if (!item) {
return;
}
const itemSize = this.itemSizeCache.get(item.key) ?? item.size;
const delta = size - itemSize;
if (delta !== 0) {
if (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(item, delta, this) : item.start < this.getScrollOffset() + this.scrollAdjustments) {
if (process.env.NODE_ENV !== "production" && this.options.debug) {
console.info("correction", delta);
}
this._scrollToOffset(this.getScrollOffset(), {
adjustments: this.scrollAdjustments += delta,
behavior: void 0
});
}
this.pendingMeasuredCacheIndexes.push(item.index);
this.itemSizeCache = new Map(this.itemSizeCache.set(item.key, size));
this.notify(false);
}
};
this.measureElement = (node) => {
if (!node) {
this.elementsCache.forEach((cached, key) => {
if (!cached.isConnected) {
this.observer.unobserve(cached);
this.elementsCache.delete(key);
}
});
return;
}
this._measureElement(node, void 0);
};
this.getVirtualItems = memo(
() => [this.getIndexes(), this.getMeasurements()],
(indexes, measurements) => {
const virtualItems = [];
for (let k = 0, len = indexes.length; k < len; k++) {
const i = indexes[k];
const measurement = measurements[i];
virtualItems.push(measurement);
}
return virtualItems;
},
{
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
debug: () => this.options.debug
}
);
this.getVirtualItemForOffset = (offset) => {
const measurements = this.getMeasurements();
if (measurements.length === 0) {
return void 0;
}
return notUndefined(
measurements[findNearestBinarySearch(
0,
measurements.length - 1,
(index) => notUndefined(measurements[index]).start,
offset
)]
);
};
this.getOffsetForAlignment = (toOffset, align) => {
const size = this.getSize();
const scrollOffset = this.getScrollOffset();
if (align === "auto") {
if (toOffset >= scrollOffset + size) {
align = "end";
}
}
if (align === "end") {
toOffset -= size;
}
const scrollSizeProp = this.options.horizontal ? "scrollWidth" : "scrollHeight";
const scrollSize = this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[scrollSizeProp] : this.scrollElement[scrollSizeProp] : 0;
const maxOffset = scrollSize - size;
return Math.max(Math.min(maxOffset, toOffset), 0);
};
this.getOffsetForIndex = (index, align = "auto") => {
index = Math.max(0, Math.min(index, this.options.count - 1));
const item = this.measurementsCache[index];
if (!item) {
return void 0;
}
const size = this.getSize();
const scrollOffset = this.getScrollOffset();
if (align === "auto") {
if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) {
align = "end";
} else if (item.start <= scrollOffset + this.options.scrollPaddingStart) {
align = "start";
} else {
return [scrollOffset, align];
}
}
const centerOffset = item.start - this.options.scrollPaddingStart + (item.size - size) / 2;
switch (align) {
case "center":
return [this.getOffsetForAlignment(centerOffset, align), align];
case "end":
return [
this.getOffsetForAlignment(
item.end + this.options.scrollPaddingEnd,
align
),
align
];
default:
return [
this.getOffsetForAlignment(
item.start - this.options.scrollPaddingStart,
align
),
align
];
}
};
this.isDynamicMode = () => this.elementsCache.size > 0;
this.cancelScrollToIndex = () => {
if (this.scrollToIndexTimeoutId !== null && this.targetWindow) {
this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId);
this.scrollToIndexTimeoutId = null;
}
};
this.scrollToOffset = (toOffset, { align = "start", behavior } = {}) => {
this.cancelScrollToIndex();
if (behavior === "smooth" && this.isDynamicMode()) {
console.warn(
"The `smooth` scroll behavior is not fully supported with dynamic size."
);
}
this._scrollToOffset(this.getOffsetForAlignment(toOffset, align), {
adjustments: void 0,
behavior
});
};
this.scrollToIndex = (index, { align: initialAlign = "auto", behavior } = {}) => {
index = Math.max(0, Math.min(index, this.options.count - 1));
this.cancelScrollToIndex();
if (behavior === "smooth" && this.isDynamicMode()) {
console.warn(
"The `smooth` scroll behavior is not fully supported with dynamic size."
);
}
const offsetAndAlign = this.getOffsetForIndex(index, initialAlign);
if (!offsetAndAlign) return;
const [offset, align] = offsetAndAlign;
this._scrollToOffset(offset, { adjustments: void 0, behavior });
if (behavior !== "smooth" && this.isDynamicMode() && this.targetWindow) {
this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
this.scrollToIndexTimeoutId = null;
const elementInDOM = this.elementsCache.has(
this.options.getItemKey(index)
);
if (elementInDOM) {
const [latestOffset] = notUndefined(
this.getOffsetForIndex(index, align)
);
if (!approxEqual(latestOffset, this.getScrollOffset())) {
this.scrollToIndex(index, { align, behavior });
}
} else {
this.scrollToIndex(index, { align, behavior });
}
});
}
};
this.scrollBy = (delta, { behavior } = {}) => {
this.cancelScrollToIndex();
if (behavior === "smooth" && this.isDynamicMode()) {
console.warn(
"The `smooth` scroll behavior is not fully supported with dynamic size."
);
}
this._scrollToOffset(this.getScrollOffset() + delta, {
adjustments: void 0,
behavior
});
};
this.getTotalSize = () => {
var _a;
const measurements = this.getMeasurements();
let end;
if (measurements.length === 0) {
end = this.options.paddingStart;
} else {
end = this.options.lanes === 1 ? ((_a = measurements[measurements.length - 1]) == null ? void 0 : _a.end) ?? 0 : Math.max(
...measurements.slice(-this.options.lanes).map((m) => m.end)
);
}
return Math.max(
end - this.options.scrollMargin + this.options.paddingEnd,
0
);
};
this._scrollToOffset = (offset, {
adjustments,
behavior
}) => {
this.options.scrollToFn(offset, { behavior, adjustments }, this);
};
this.measure = () => {
this.itemSizeCache = /* @__PURE__ */ new Map();
this.notify(false);
};
this.setOptions(opts);
}
}
const findNearestBinarySearch = (low, high, getCurrentValue, value) => {
while (low <= high) {
const middle = (low + high) / 2 | 0;
const currentValue = getCurrentValue(middle);
if (currentValue < value) {
low = middle + 1;
} else if (currentValue > value) {
high = middle - 1;
} else {
return middle;
}
}
if (low > 0) {
return low - 1;
} else {
return 0;
}
};
function calculateRange({
measurements,
outerSize,
scrollOffset
}) {
const count = measurements.length - 1;
const getOffset = (index) => measurements[index].start;
const startIndex = findNearestBinarySearch(0, count, getOffset, scrollOffset);
let endIndex = startIndex;
while (endIndex < count && measurements[endIndex].end < scrollOffset + outerSize) {
endIndex++;
}
return { startIndex, endIndex };
}
export {
Virtualizer,
approxEqual,
debounce,
defaultKeyExtractor,
defaultRangeExtractor,
elementScroll,
measureElement,
memo,
notUndefined,
observeElementOffset,
observeElementRect,
observeWindowOffset,
observeWindowRect,
windowScroll
};
//# sourceMappingURL=index.js.map
@@ -0,0 +1,9 @@
'use strict';
var ToNumber = require('./ToNumber');
// http://262.ecma-international.org/5.1/#sec-9.5
module.exports = function ToInt32(x) {
return ToNumber(x) >> 0;
};
@@ -0,0 +1 @@
module.exports={C:{"48":0.00278,"52":0.00278,"115":0.07495,"127":0.00555,"140":0.00555,"142":0.0111,"143":0.10826,"144":0.07218,_:"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 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00278,"46":0.00278,"49":0.00278,"71":0.00278,"76":0.00278,"90":0.00278,"93":0.00278,"103":0.02498,"109":0.11382,"114":0.00278,"116":0.03609,"122":0.00555,"123":0.00278,"124":0.00278,"125":0.83835,"126":0.0111,"128":0.01388,"129":0.02776,"131":0.00555,"132":0.00278,"133":0.00278,"134":0.00278,"135":0.01388,"136":0.00278,"137":0.07218,"138":0.04442,"139":0.05274,"140":0.77728,"141":1.71557,"142":0.01943,_:"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 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 77 78 79 80 81 83 84 85 86 87 88 89 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 127 130 143 144 145"},F:{"92":0.00278,"120":0.00555,"121":0.00555,"122":0.03331,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00278,"126":0.00555,"131":0.00278,"132":0.00278,"133":0.00555,"134":0.00278,"135":0.00833,"137":0.00278,"138":0.00555,"139":0.00833,"140":0.27482,"141":1.20478,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 136 142"},E:{"14":0.00278,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00278,"13.1":0.00555,"14.1":0.0111,"15.1":0.01388,"15.2-15.3":0.00833,"15.4":0.06385,"15.5":0.04164,"15.6":0.43028,"16.0":0.00833,"16.1":0.09161,"16.2":0.05552,"16.3":0.12214,"16.4":0.03331,"16.5":0.09161,"16.6":1.06876,"17.0":0.01943,"17.1":1.28251,"17.2":0.03609,"17.3":0.07218,"17.4":0.12214,"17.5":0.25539,"17.6":0.65514,"18.0":0.03054,"18.1":0.18877,"18.2":0.0805,"18.3":0.37754,"18.4":0.30258,"18.5-18.6":0.73842,"26.0":1.80995,"26.1":0.0694},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00669,"5.0-5.1":0,"6.0-6.1":0.02676,"7.0-7.1":0.02007,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0602,"10.0-10.2":0.00669,"10.3":0.11372,"11.0-11.2":1.68573,"11.3-11.4":0.04014,"12.0-12.1":0.01338,"12.2-12.5":0.32778,"13.0-13.1":0,"13.2":0.03345,"13.3":0.01338,"13.4-13.7":0.05352,"14.0-14.4":0.11372,"14.5-14.8":0.12041,"15.0-15.1":0.11372,"15.2-15.3":0.08696,"15.4":0.10034,"15.5":0.11372,"15.6-15.8":1.48505,"16.0":0.20068,"16.1":0.37461,"16.2":0.19399,"16.3":0.34785,"16.4":0.08696,"16.5":0.15386,"16.6-16.7":1.98676,"17.0":0.14048,"17.1":0.21406,"17.2":0.15386,"17.3":0.22744,"17.4":0.40137,"17.5":0.68901,"17.6-17.7":1.73925,"18.0":0.39468,"18.1":0.81611,"18.2":0.4415,"18.3":1.41816,"18.4":0.72915,"18.5-18.6":37.17982,"26.0":4.59563,"26.1":0.16724},P:{"24":0.01026,"25":0.01026,"26":0.02052,"27":0.02052,"28":0.59509,"29":0.04104,_:"4 20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01026},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.00722,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.02167},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":5.48442}};
@@ -0,0 +1,5 @@
import Provider from "./provider";
export default interface ValueProvider<T> {
useValue: T;
}
export declare function isValueProvider<T>(provider: Provider<T>): provider is ValueProvider<T>;
@@ -0,0 +1,73 @@
import { AsnParser } from '@peculiar/asn1-schema';
import { ECDSASigValue } from '@peculiar/asn1-ecc';
import { COSECRV } from '../../cose.js';
import { isoUint8Array } from '../index.js';
/**
* In WebAuthn, EC2 signatures are wrapped in ASN.1 structure so we need to peel r and s apart.
*
* See https://www.w3.org/TR/webauthn-2/#sctn-signature-attestation-types
*/
export function unwrapEC2Signature(signature, crv) {
const parsedSignature = AsnParser.parse(signature, ECDSASigValue);
const rBytes = new Uint8Array(parsedSignature.r);
const sBytes = new Uint8Array(parsedSignature.s);
const componentLength = getSignatureComponentLength(crv);
const rNormalizedBytes = toNormalizedBytes(rBytes, componentLength);
const sNormalizedBytes = toNormalizedBytes(sBytes, componentLength);
const finalSignature = isoUint8Array.concat([
rNormalizedBytes,
sNormalizedBytes,
]);
return finalSignature;
}
/**
* The SubtleCrypto Web Crypto API expects ECDSA signatures with `r` and `s` values to be encoded
* to a specific length depending on the order of the curve. This function returns the expected
* byte-length for each of the `r` and `s` signature components.
*
* See <https://www.w3.org/TR/WebCryptoAPI/#ecdsa-operations>
*/
function getSignatureComponentLength(crv) {
switch (crv) {
case COSECRV.P256:
return 32;
case COSECRV.P384:
return 48;
case COSECRV.P521:
return 66;
default:
throw new Error(`Unexpected COSE crv value of ${crv} (EC2)`);
}
}
/**
* Converts the ASN.1 integer representation to bytes of a specific length `n`.
*
* DER encodes integers as big-endian byte arrays, with as small as possible representation and
* requires a leading `0` byte to disambiguate between negative and positive numbers. This means
* that `r` and `s` can potentially not be the expected byte-length that is needed by the
* SubtleCrypto Web Crypto API: if there are leading `0`s it can be shorter than expected, and if
* it has a leading `1` bit, it can be one byte longer.
*
* See <https://www.itu.int/rec/T-REC-X.690-202102-I/en>
* See <https://www.w3.org/TR/WebCryptoAPI/#ecdsa-operations>
*/
function toNormalizedBytes(bytes, componentLength) {
let normalizedBytes;
if (bytes.length < componentLength) {
// In case the bytes are shorter than expected, we need to pad it with leading `0`s.
normalizedBytes = new Uint8Array(componentLength);
normalizedBytes.set(bytes, componentLength - bytes.length);
}
else if (bytes.length === componentLength) {
normalizedBytes = bytes;
}
else if (bytes.length === componentLength + 1 && bytes[0] === 0 && (bytes[1] & 0x80) === 0x80) {
// The bytes contain a leading `0` to encode that the integer is positive. This leading `0`
// needs to be removed for compatibility with the SubtleCrypto Web Crypto API.
normalizedBytes = bytes.subarray(1);
}
else {
throw new Error(`Invalid signature component length ${bytes.length}, expected ${componentLength}`);
}
return normalizedBytes;
}
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R 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":"xC TC J 0C 1C","33":"ZB K D E F A B C L M G"},D:{"1":"0 1 2 3 4 5 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","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"F A B C L M G 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"2C ZC","33":"K D E 3C 4C 5C","292":"J ZB"},F:{"1":"0 1 2 3 4 5 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 OC","2":"F B FD GD HD ID NC uC JD","33":"6 7 8 9 C G N O P aB AB BB CB DB EB FB"},G:{"1":"PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","33":"E MD ND OD","164":"ZC KD vC LD"},H:{"2":"hD"},I:{"1":"I","33":"J lD vC mD nD","164":"TC iD jD kD"},J:{"33":"D A"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"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 Animation",D:true};
@@ -0,0 +1 @@
{"version":3,"file":"ws.js","sourceRoot":"","sources":["../../../src/schemes/ws.ts"],"names":[],"mappings":"AAOA,kBAAkB,YAAyB;IAC1C,OAAO,OAAO,YAAY,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC;AAC7H,CAAC;AAED,UAAU;AACV,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,IAAI;IAEb,UAAU,EAAG,IAAI;IAEjB,KAAK,EAAG,UAAU,UAAwB,EAAE,OAAkB;QAC7D,MAAM,YAAY,GAAG,UAA0B,CAAC;QAEhD,oCAAoC;QACpC,YAAY,CAAC,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE7C,wBAAwB;QACxB,YAAY,CAAC,YAAY,GAAG,CAAC,YAAY,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC9G,YAAY,CAAC,IAAI,GAAG,SAAS,CAAC;QAC9B,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;QAE/B,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,SAAS,EAAG,UAAU,YAAyB,EAAE,OAAkB;QAClE,4BAA4B;QAC5B,IAAI,YAAY,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,KAAK,EAAE,EAAE;YAC1F,YAAY,CAAC,IAAI,GAAG,SAAS,CAAC;SAC9B;QAED,mCAAmC;QACnC,IAAI,OAAO,YAAY,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7C,YAAY,CAAC,MAAM,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAC3D,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC;SAChC;QAED,qCAAqC;QACrC,IAAI,YAAY,CAAC,YAAY,EAAE;YAC9B,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,YAAY,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC9D,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;YAC3B,YAAY,CAAC,YAAY,GAAG,SAAS,CAAC;SACtC;QAED,2BAA2B;QAC3B,YAAY,CAAC,QAAQ,GAAG,SAAS,CAAC;QAElC,OAAO,YAAY,CAAC;IACrB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,154 @@
import {useGlobalListeners as $AWxnT$useGlobalListeners, getOwnerDocument as $AWxnT$getOwnerDocument, nodeContains as $AWxnT$nodeContains} from "@react-aria/utils";
import {useState as $AWxnT$useState, useRef as $AWxnT$useRef, useEffect as $AWxnT$useEffect, useMemo as $AWxnT$useMemo} from "react";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/ // Portions of the code in this file are based on code from react.
// Original licensing for the following can be found in the
// NOTICE file in the root directory of this source tree.
// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
// iOS fires onPointerEnter twice: once with pointerType="touch" and again with pointerType="mouse".
// We want to ignore these emulated events so they do not trigger hover behavior.
// See https://bugs.webkit.org/show_bug.cgi?id=214609.
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
let $6179b936705e76d3$var$hoverCount = 0;
function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;
// Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter
// with pointerType="mouse" immediately after onPointerUp and before onFocus. On other
// devices that don't have this quirk, we don't want to ignore a mouse hover sometime in
// the distant future because a user previously touched the element.
setTimeout(()=>{
$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
}, 50);
}
function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
if (e.pointerType === 'touch') $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
}
function $6179b936705e76d3$var$setupGlobalTouchEvents() {
if (typeof document === 'undefined') return;
if ($6179b936705e76d3$var$hoverCount === 0) {
if (typeof PointerEvent !== 'undefined') document.addEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);
else if (process.env.NODE_ENV === 'test') document.addEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
}
$6179b936705e76d3$var$hoverCount++;
return ()=>{
$6179b936705e76d3$var$hoverCount--;
if ($6179b936705e76d3$var$hoverCount > 0) return;
if (typeof PointerEvent !== 'undefined') document.removeEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);
else if (process.env.NODE_ENV === 'test') document.removeEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
};
}
function $6179b936705e76d3$export$ae780daf29e6d456(props) {
let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;
let [isHovered, setHovered] = (0, $AWxnT$useState)(false);
let state = (0, $AWxnT$useRef)({
isHovered: false,
ignoreEmulatedMouseEvents: false,
pointerType: '',
target: null
}).current;
(0, $AWxnT$useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);
let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $AWxnT$useGlobalListeners)();
let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $AWxnT$useMemo)(()=>{
let triggerHoverStart = (event, pointerType)=>{
state.pointerType = pointerType;
if (isDisabled || pointerType === 'touch' || state.isHovered || !event.currentTarget.contains(event.target)) return;
state.isHovered = true;
let target = event.currentTarget;
state.target = target;
// When an element that is hovered over is removed, no pointerleave event is fired by the browser,
// even though the originally hovered target may have shrunk in size so it is no longer hovered.
// However, a pointerover event will be fired on the new target the mouse is over.
// In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.
addGlobalListener((0, $AWxnT$getOwnerDocument)(event.target), 'pointerover', (e)=>{
if (state.isHovered && state.target && !(0, $AWxnT$nodeContains)(state.target, e.target)) triggerHoverEnd(e, e.pointerType);
}, {
capture: true
});
if (onHoverStart) onHoverStart({
type: 'hoverstart',
target: target,
pointerType: pointerType
});
if (onHoverChange) onHoverChange(true);
setHovered(true);
};
let triggerHoverEnd = (event, pointerType)=>{
let target = state.target;
state.pointerType = '';
state.target = null;
if (pointerType === 'touch' || !state.isHovered || !target) return;
state.isHovered = false;
removeAllGlobalListeners();
if (onHoverEnd) onHoverEnd({
type: 'hoverend',
target: target,
pointerType: pointerType
});
if (onHoverChange) onHoverChange(false);
setHovered(false);
};
let hoverProps = {};
if (typeof PointerEvent !== 'undefined') {
hoverProps.onPointerEnter = (e)=>{
if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;
triggerHoverStart(e, e.pointerType);
};
hoverProps.onPointerLeave = (e)=>{
if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, e.pointerType);
};
} else if (process.env.NODE_ENV === 'test') {
hoverProps.onTouchStart = ()=>{
state.ignoreEmulatedMouseEvents = true;
};
hoverProps.onMouseEnter = (e)=>{
if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');
state.ignoreEmulatedMouseEvents = false;
};
hoverProps.onMouseLeave = (e)=>{
if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, 'mouse');
};
}
return {
hoverProps: hoverProps,
triggerHoverEnd: triggerHoverEnd
};
}, [
onHoverStart,
onHoverChange,
onHoverEnd,
isDisabled,
state,
addGlobalListener,
removeAllGlobalListeners
]);
(0, $AWxnT$useEffect)(()=>{
// Call the triggerHoverEnd as soon as isDisabled changes to true
// Safe to call triggerHoverEnd, it will early return if we aren't currently hovering
if (isDisabled) triggerHoverEnd({
currentTarget: state.target
}, state.pointerType);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
isDisabled
]);
return {
hoverProps: hoverProps,
isHovered: isHovered
};
}
export {$6179b936705e76d3$export$ae780daf29e6d456 as useHover};
//# sourceMappingURL=useHover.module.js.map
@@ -0,0 +1 @@
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_bo=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"bo",weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་དང་པོ_ཟླ་གཉིས་པ_ཟླ་གསུམ་པ_ཟླ་བཞི་པ_ཟླ་ལྔ་པ_ཟླ་དྲུག་པ_ཟླ་བདུན་པ_ཟླ་བརྒྱད་པ_ཟླ་དགུ་པ_ཟླ་བཅུ་པ_ཟླ་བཅུ་གཅིག་པ_ཟླ་བཅུ་གཉིས་པ".split("_"),ordinal:function(_){return _},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},relativeTime:{future:"%s ལ་",past:"%s སྔོན་ལ་",s:"ཏོག་ཙམ་",m:"སྐར་མ་གཅིག་",mm:"སྐར་མ་ %d",h:"ཆུ་ཚོད་གཅིག་",hh:"ཆུ་ཚོད་ %d",d:"ཉིན་གཅིག་",dd:"ཉིན་ %d",M:"ཟླ་བ་གཅིག་",MM:"ཟླ་བ་ %d",y:"ལོ་གཅིག་",yy:"ལོ་ %d"}};return t.default.locale(d,null,!0),d}));
@@ -0,0 +1,67 @@
/**
* @import {Effects, State, TokenType} from 'micromark-util-types'
*/
import {markdownSpace} from 'micromark-util-character'
// To do: implement `spaceOrTab`, `spaceOrTabMinMax`, `spaceOrTabWithOptions`.
/**
* Parse spaces and tabs.
*
* There is no `nok` parameter:
*
* * spaces in markdown are often optional, in which case this factory can be
* used and `ok` will be switched to whether spaces were found or not
* * one line ending or space can be detected with `markdownSpace(code)` right
* before using `factorySpace`
*
* ###### Examples
*
* Where `␉` represents a tab (plus how much it expands) and `␠` represents a
* single space.
*
* ```markdown
* ␉
* ␠␠␠␠
* ␉␠
* ```
*
* @param {Effects} effects
* Context.
* @param {State} ok
* State switched to when successful.
* @param {TokenType} type
* Type (`' \t'`).
* @param {number | undefined} [max=Infinity]
* Max (exclusive).
* @returns {State}
* Start state.
*/
export function factorySpace(effects, ok, type, max) {
const limit = max ? max - 1 : Number.POSITIVE_INFINITY
let size = 0
return start
/** @type {State} */
function start(code) {
if (markdownSpace(code)) {
effects.enter(type)
return prefix(code)
}
return ok(code)
}
/** @type {State} */
function prefix(code) {
if (markdownSpace(code) && size++ < limit) {
effects.consume(code)
return prefix
}
effects.exit(type)
return ok(code)
}
}
@@ -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 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R 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":"xC TC J ZB K D E F A B C L M G N O 0C 1C"},D:{"1":"0 1 2 3 4 5 6 7 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 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":"J ZB K D E F A B C L M G","16":"N O P aB"},E:{"1":"D E F A B C L M G 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB 2C ZC 3C","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R 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 OC","2":"F B FD GD HD ID NC uC JD","16":"C"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"ZC KD vC LD"},H:{"1":"hD"},I:{"1":"I mD nD","2":"TC J iD jD kD lD vC"},J:{"1":"A","2":"D"},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:1,C:"Reversed attribute of ordered lists",D:true};
@@ -0,0 +1,18 @@
{
"name": "@formatjs/icu-messageformat-parser",
"version": "2.11.4",
"license": "MIT",
"types": "index.d.ts",
"dependencies": {
"tslib": "^2.8.0",
"@formatjs/icu-skeleton-parser": "1.8.16",
"@formatjs/ecma402-abstract": "2.3.6"
},
"main": "index.js",
"module": "lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/formatjs/formatjs.git",
"directory": "packages/icu-messageformat-parser"
}
}
@@ -0,0 +1,5 @@
<svg viewbox="0 0 18 18">
<polyline class="ql-stroke" points="3.5 14 7 4 10.5 14"></polyline>
<line class="ql-stroke" x1="9.45" x2="4.55" y1="11" y2="11"></line>
<rect class="ql-fill" height="5" rx="0.5" ry="0.5" transform="translate(20 -7) rotate(90)" width="1" x="13" y="4"></rect>
</svg>

After

Width:  |  Height:  |  Size: 296 B

@@ -0,0 +1,16 @@
const invisibleValues = new Set(["none", "hidden"]);
/**
* Returns a function that, when provided a progress value between 0 and 1,
* will return the "none" or "hidden" string only when the progress is that of
* the origin or target.
*/
function mixVisibility(origin, target) {
if (invisibleValues.has(origin)) {
return (p) => (p <= 0 ? origin : target);
}
else {
return (p) => (p >= 1 ? target : origin);
}
}
export { invisibleValues, mixVisibility };
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more