docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:27:07 +08:00
1 parent fa9c73363d
commit 2a69b23b47
18210 files changed
+5101211 -16

No files matched your search

@@ -0,0 +1,8 @@
import type * as core from "../core/index.cjs";
import * as schemas from "./schemas.cjs";
export type input<T> = core.input<T>;
export type output<T> = core.output<T>;
/** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */
export declare function input<T extends core.$ZodType>(schema: T): schemas.ZodType<core.input<T>, core.input<T>>;
/** Returns a copy of the schema with every pipe replaced by its output side, carrying over the pipe's own checks. */
export declare function output<T extends core.$ZodType>(schema: T): schemas.ZodType<core.output<T>, core.output<T>>;
@@ -0,0 +1,99 @@
import { $ as ContentBlockSchema, $n as ServerTasksCapabilitySchema, $t as ListTasksResultSchema, A as StoredOAuthTokens, An as RequestMetaSchema, Ar as ToolUseContentSchema, At as InitializeRequestSchema, B as CancelTaskRequestSchema, Bn as ResourceUpdatedNotificationSchema, Bt as JSONRPCResultResponseSchema, C as OpenIdProviderDiscoveryMetadata, Cn as PromptReferenceSchema, Cr as TitledSingleSelectEnumSchemaSchema, Ct as GetTaskRequestSchema, D as OptionalSafeUrlSchema, Dn as ReadResourceResultSchema, Dr as ToolListChangedNotificationSchema, Dt as ImageContentSchema, E as OpenIdProviderMetadataSchema, En as ReadResourceRequestSchema, Er as ToolExecutionSchema, Et as IconsSchema, F as BlobResourceContentsSchema, Fn as ResourceRequestParamsSchema, Fr as JSONArray, Ft as JSONRPCErrorResponseSchema, G as ClientNotificationSchema, Gn as RootsListChangedNotificationSchema, Gt as ListPromptsResultSchema, H as CancelledNotificationParamsSchema, Hn as ResultSchema, Ht as LegacyTitledEnumSchemaSchema, I as BooleanSchemaSchema, In as ResourceSchema, Ir as JSONObject, It as JSONRPCMessageSchema, J as ClientTasksCapabilitySchema, Jn as SamplingMessageSchema, Jt as ListResourcesRequestSchema, K as ClientRequestSchema, Kn as SamplingContentSchema, Kt as ListResourceTemplatesRequestSchema, L as CallToolRequestParamsSchema, Ln as ResourceTemplateReferenceSchema, Lr as JSONValue, Lt as JSONRPCNotificationSchema, M as AudioContentSchema, Mn as ResourceContentsSchema, Mr as UnsubscribeRequestSchema, Mt as InitializedNotificationSchema, N as BaseMetadataSchema, Nn as ResourceLinkSchema, Nr as UntitledMultiSelectEnumSchemaSchema, Nt as JSONArraySchema, O as SafeUrlSchema, On as RelatedTaskMetadataSchema, Or as ToolResultContentSchema, Ot as ImplementationSchema, P as BaseRequestParamsSchema, Pn as ResourceListChangedNotificationSchema, Pr as UntitledSingleSelectEnumSchemaSchema, Pt as JSONObjectSchema, Q as CompleteResultSchema, Qn as ServerResultSchema, Qt as ListTasksRequestSchema, R as CallToolRequestSchema, Rn as ResourceTemplateSchema, Rt as JSONRPCRequestSchema, S as OAuthTokensSchema, Sn as PromptMessageSchema, Sr as TitledMultiSelectEnumSchemaSchema, St as GetTaskPayloadResultSchema, T as OpenIdProviderMetadata, Tn as ReadResourceRequestParamsSchema, Tr as ToolChoiceSchema, Tt as IconSchema, U as CancelledNotificationSchema, Un as RoleSchema, Ut as ListChangedOptionsBaseSchema, V as CancelTaskResultSchema, Vn as ResultMetaObjectSchema, Vt as JSONValueSchema, W as ClientCapabilitiesSchema, Wn as RootSchema, Wt as ListPromptsRequestSchema, X as CompleteRequestParamsSchema, Xn as ServerNotificationSchema, Xt as ListRootsRequestSchema, Y as CompatibilityCallToolResultSchema, Yn as ServerCapabilitiesSchema, Yt as ListResourcesResultSchema, Z as CompleteRequestSchema, Zn as ServerRequestSchema, Zt as ListRootsResultSchema, _ as OAuthProtectedResourceMetadata, _n as ProgressNotificationSchema, _r as TaskStatusNotificationParamsSchema, _t as EnumSchemaSchema, a as OAuthClientInformationFull, an as ModelHintSchema, ar as SubscribeRequestSchema, at as CursorSchema, b as OAuthTokenRevocationRequestSchema, bn as PromptArgumentSchema, br as TextContentSchema, bt as GetPromptResultSchema, c as OAuthClientInformationSchema, cn as NotificationSchema, cr as SubscriptionsAcknowledgedNotificationSchema, ct as ElicitRequestFormParamsSchema, d as OAuthClientRegistrationError, dn as PaginatedRequestParamsSchema, dr as SubscriptionsListenResultMetaSchema, dt as ElicitRequestURLParamsSchema, en as ListToolsRequestSchema, er as SetLevelRequestParamsSchema, et as CreateMessageRequestParamsSchema, f as OAuthClientRegistrationErrorSchema, fn as PaginatedRequestSchema, fr as SubscriptionsListenResultSchema, ft as ElicitResultSchema, g as OAuthMetadataSchema, gn as ProgressNotificationParamsSchema, gr as TaskSchema, gt as EmptyResultSchema, h as OAuthMetadata, hn as PrimitiveSchemaDefinitionSchema, hr as TaskMetadataSchema, ht as EmbeddedResourceSchema, i as OAuthClientInformation, in as LoggingMessageNotificationSchema, ir as SubscribeRequestParamsSchema, it as CreateTaskResultSchema, j as AnnotationsSchema, jn as RequestSchema, jr as UnsubscribeRequestParamsSchema, jt as InitializeResultSchema, k as StoredOAuthClientInformation, kn as RequestIdSchema, kr as ToolSchema, kt as InitializeRequestParamsSchema, l as OAuthClientMetadata, ln as NotificationsParamsSchema, lr as SubscriptionsListenRequestParamsSchema, lt as ElicitRequestParamsSchema, m as OAuthErrorResponseSchema, mn as PingRequestSchema, mr as TaskCreationParamsSchema, mt as ElicitationCompleteNotificationSchema, n as IdJagTokenExchangeResponse, nn as LoggingLevelSchema, nr as SingleSelectEnumSchemaSchema, nt as CreateMessageResultSchema, o as OAuthClientInformationFullSchema, on as ModelPreferencesSchema, or as SubscriptionFilterSchema, ot as DiscoverRequestSchema, p as OAuthErrorResponse, pn as PaginatedResultSchema, pr as TaskAugmentedRequestParamsSchema, pt as ElicitationCompleteNotiLine truncated
//#region src/constants.d.ts
declare const LATEST_PROTOCOL_VERSION = "2025-11-25";
declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
declare const SUPPORTED_PROTOCOL_VERSIONS: string[];
/**
* `_meta` key associating a message with a 2025-11-25 task.
*
* @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
*/
declare const RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
/**
* `_meta` key carrying the MCP protocol version governing a request.
*
* For the HTTP transport, the value must match the `MCP-Protocol-Version` header.
*/
declare const PROTOCOL_VERSION_META_KEY = "io.modelcontextprotocol/protocolVersion";
/**
* `_meta` key identifying the client software making a request.
*
* Clients SHOULD include it on every request; the value is self-reported and
* intended for display, logging, and debugging — servers should not rely on
* it for behavior or security decisions.
*/
declare const CLIENT_INFO_META_KEY = "io.modelcontextprotocol/clientInfo";
/**
* `_meta` key identifying the server software producing a response.
*
* Servers SHOULD include it on every response; the value is self-reported and
* intended for display, logging, and debugging — clients should not rely on
* it for behavior or security decisions.
*/
declare const SERVER_INFO_META_KEY = "io.modelcontextprotocol/serverInfo";
/**
* `_meta` key carrying the client's capabilities for a request.
*
* Capabilities are declared per request rather than once at initialization;
* servers must not infer capabilities from prior requests.
*/
declare const CLIENT_CAPABILITIES_META_KEY = "io.modelcontextprotocol/clientCapabilities";
/**
* `_meta` key carrying the JSON-RPC ID of the `subscriptions/listen` request
* that opened the stream a notification was delivered on.
*
* Stamped by the server on every notification delivered via a
* `subscriptions/listen` stream (including the leading
* `notifications/subscriptions/acknowledged`); on stdio, where all messages
* share one channel, clients use it to correlate notifications with their
* originating subscription. The value is the listen request's JSON-RPC ID
* verbatim.
*/
declare const SUBSCRIPTION_ID_META_KEY = "io.modelcontextprotocol/subscriptionId";
/**
* `_meta` key carrying the desired log level for a request.
*
* When absent, the server must not send `notifications/message` notifications
* for the request.
*
* @deprecated Deprecated as of protocol version 2026-07-28 (SEP-2577); remains
* in the specification for at least twelve months.
*/
declare const LOG_LEVEL_META_KEY = "io.modelcontextprotocol/logLevel";
/**
* `_meta` key carrying W3C Trace Context for distributed tracing (SEP-414).
*
* When present, the value MUST follow the W3C `traceparent` header format,
* e.g. `00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01`.
*
* @see https://www.w3.org/TR/trace-context/#traceparent-header
*/
declare const TRACEPARENT_META_KEY = "traceparent";
/**
* `_meta` key carrying vendor-specific trace state for distributed tracing (SEP-414).
*
* When present, the value MUST follow the W3C `tracestate` header format,
* e.g. `vendor1=value1,vendor2=value2`.
*
* @see https://www.w3.org/TR/trace-context/#tracestate-header
*/
declare const TRACESTATE_META_KEY = "tracestate";
/**
* `_meta` key carrying cross-cutting propagation values for distributed tracing (SEP-414).
*
* When present, the value MUST follow the W3C Baggage header format,
* e.g. `userId=alice,serverRegion=us-east-1`.
*
* @see https://www.w3.org/TR/baggage/
*/
declare const BAGGAGE_META_KEY = "baggage";
declare const JSONRPC_VERSION = "2.0";
declare const PARSE_ERROR = -32700;
declare const INVALID_REQUEST = -32600;
declare const METHOD_NOT_FOUND = -32601;
declare const INVALID_PARAMS = -32602;
declare const INTERNAL_ERROR = -32603;
//#endregion
export { AnnotationsSchema, AudioContentSchema, AuthorizationServerMetadata, BAGGAGE_META_KEY, BaseMetadataSchema, BaseRequestParamsSchema, BlobResourceContentsSchema, BooleanSchemaSchema, CLIENT_CAPABILITIES_META_KEY, CLIENT_INFO_META_KEY, CallToolRequestParamsSchema, CallToolRequestSchema, CallToolResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, ClientCapabilitiesSchema, ClientNotificationSchema, ClientRequestSchema, ClientResultSchema, ClientTasksCapabilitySchema, CompatibilityCallToolResultSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, ContentBlockSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, CreateTaskResultSchema, CursorSchema, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, DiscoverRequestSchema, DiscoverResultSchema, ElicitRequestFormParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitRequestURLParamsSchema, ElicitResultSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, EmbeddedResourceSchema, EmptyResultSchema, EnumSchemaSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, GetPromptResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, GetTaskRequestSchema, GetTaskResultSchema, INTERNAL_ERROR, INVALID_PARAMS, INVALID_REQUEST, IconSchema, IconsSchema, IdJagTokenExchangeResponse, IdJagTokenExchangeResponseSchema, ImageContentSchema, ImplementationSchema, InitializeRequestParamsSchema, InitializeRequestSchema, InitializeResultSchema, InitializedNotificationSchema, type JSONArray, JSONArraySchema, type JSONObject, JSONObjectSchema, JSONRPCErrorResponseSchema, JSONRPCMessageSchema, JSONRPCNotificationSchema, JSONRPCRequestSchema, JSONRPCResponseSchema, JSONRPCResultResponseSchema, JSONRPC_VERSION, type JSONValue, JSONValueSchema, LATEST_PROTOCOL_VERSION, LOG_LEVEL_META_KEY, LegacyTitledEnumSchemaSchema, ListChangedOptionsBaseSchema, ListPromptsRequestSchema, ListPromptsResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListRootsRequestSchema, ListRootsResultSchema, ListTasksRequestSchema, ListTasksResultSchema, ListToolsRequestSchema, ListToolsResultSchema, LoggingLevelSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, METHOD_NOT_FOUND, ModelHintSchema, ModelPreferencesSchema, MultiSelectEnumSchemaSchema, NotificationSchema, NotificationsParamsSchema, NumberSchemaSchema, OAuthClientInformation, OAuthClientInformationFull, OAuthClientInformationFullSchema, OAuthClientInformationMixed, OAuthClientInformationSchema, OAuthClientMetadata, OAuthClientMetadataSchema, OAuthClientRegistrationError, OAuthClientRegistrationErrorSchema, OAuthErrorResponse, OAuthErrorResponseSchema, OAuthMetadata, OAuthMetadataSchema, OAuthProtectedResourceMetadata, OAuthProtectedResourceMetadataSchema, OAuthTokenRevocationRequest, OAuthTokenRevocationRequestSchema, OAuthTokens, OAuthTokensSchema, OpenIdProviderDiscoveryMetadata, OpenIdProviderDiscoveryMetadataSchema, OpenIdProviderMetadata, OpenIdProviderMetadataSchema, OptionalSafeUrlSchema, PARSE_ERROR, PROTOCOL_VERSION_META_KEY, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, PingRequestSchema, PrimitiveSchemaDefinitionSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, ProgressSchema, ProgressTokenSchema, PromptArgumentSchema, PromptListChangedNotificationSchema, PromptMessageSchema, PromptReferenceSchema, PromptSchema, RELATED_TASK_META_KEY, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, RelatedTaskMetadataSchema, RequestIdSchema, RequestMetaSchema, RequestSchema, ResourceContentsSchema, ResourceLinkSchema, ResourceListChangedNotificationSchema, ResourceRequestParamsSchema, ResourceSchema, ResourceTemplateReferenceSchema, ResourceTemplateSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, ResultMetaObjectSchema, ResultSchema, RoleSchema, RootSchema, RootsListChangedNotificationSchema, SERVER_INFO_META_KEY, SUBSCRIPTION_ID_META_KEY, SUPPORTED_PROTOCOL_VERSIONS, SafeUrlSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, ServerCapabilitiesSchema, ServerNotificationSchema, ServerRequestSchema, ServerResultSchema, ServerTasksCapabilitySchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, SingleSelectEnumSchemaSchema, StoredOAuthClientInformation, StoredOAuthTokens, StringSchemaSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, SubscriptionFilterSchema, SubscriptionsAcknowledgedNotificationParamsSchema, SubscriptionsAcknowledgedNotificationSchema, SubscriptionsListenRequestParamsSchema, SubscriptionsListenRequestSchema, SubscriptionsListenResultMetaSchema, SubscriptionsListenResultSchema, TRACEPARENT_META_KEY, TRACESTATE_META_KEYLine truncated
//# sourceMappingURL=internal.d.cts.map
@@ -0,0 +1 @@
{"version":3,"file":"music-4.js","sources":["../../../src/icons/music-4.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Music4\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAxOFY1bDEyLTJ2MTMiIC8+CiAgPHBhdGggZD0ibTkgOSAxMi0yIiAvPgogIDxjaXJjbGUgY3g9IjYiIGN5PSIxOCIgcj0iMyIgLz4KICA8Y2lyY2xlIGN4PSIxOCIgY3k9IjE2IiByPSIzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/music-4\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Music4 = createLucideIcon('Music4', [\n ['path', { d: 'M9 18V5l12-2v13', key: '1jmyc2' }],\n ['path', { d: 'm9 9 12-2', key: '1e64n2' }],\n ['circle', { cx: '6', cy: '18', r: '3', key: 'fqmcym' }],\n ['circle', { cx: '18', cy: '16', r: '3', key: '1hluhg' }],\n]);\n\nexport default Music4;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,QAAU,CAAA,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAChD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC1C,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,EAAK,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CACvD,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAC1D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,49 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateAdditionalItems = void 0;
const codegen_1 = require("../../compile/codegen");
const util_1 = require("../../compile/util");
const error = {
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
};
const def = {
keyword: "additionalItems",
type: "array",
schemaType: ["boolean", "object"],
before: "uniqueItems",
error,
code(cxt) {
const { parentSchema, it } = cxt;
const { items } = parentSchema;
if (!Array.isArray(items)) {
(0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas');
return;
}
validateAdditionalItems(cxt, items);
},
};
function validateAdditionalItems(cxt, items) {
const { gen, schema, data, keyword, it } = cxt;
it.items = true;
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
if (schema === false) {
cxt.setParams({ len: items.length });
cxt.pass((0, codegen_1._) `${len} <= ${items.length}`);
}
else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var
gen.if((0, codegen_1.not)(valid), () => validateItems(valid));
cxt.ok(valid);
}
function validateItems(valid) {
gen.forRange("i", items.length, len, (i) => {
cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);
if (!it.allErrors)
gen.if((0, codegen_1.not)(valid), () => gen.break());
});
}
}
exports.validateAdditionalItems = validateAdditionalItems;
exports.default = def;
//# sourceMappingURL=additionalItems.js.map
@@ -0,0 +1,17 @@
'use strict';
var b;
var l;
if (process.env.NODE_ENV === 'production') {
b = require('./cjs/react-dom-server.edge.production.js');
l = require('./cjs/react-dom-server-legacy.browser.production.js');
} else {
b = require('./cjs/react-dom-server.edge.development.js');
l = require('./cjs/react-dom-server-legacy.browser.development.js');
}
exports.version = b.version;
exports.renderToReadableStream = b.renderToReadableStream;
exports.renderToString = l.renderToString;
exports.renderToStaticMarkup = l.renderToStaticMarkup;
exports.resume = b.resume;
@@ -0,0 +1 @@
module.exports={C:{"115":0.01877,"120":0.08344,"121":0.16792,"122":0.00104,"123":0.00104,"124":0.00104,"140":0.00104,"146":0.00104,"150":0.00104,"151":0.00104,"152":0.00104,"153":0.00104,"154":0.00939,"155":0.02399,"156":0.02086,"157":0.00104,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 142 143 144 145 147 148 149 158 159 160 3.5 3.6"},D:{"11":0.00104,"50":0.00104,"53":0.00104,"56":0.00104,"57":0.00209,"60":0.00313,"62":0.00209,"63":0.00626,"64":0.00104,"65":0.00209,"66":0.00209,"68":0.00209,"69":0.00522,"70":0.00313,"71":0.00104,"72":0.00104,"73":0.00939,"74":0.00104,"75":0.00417,"77":0.00104,"79":0.00626,"80":0.00209,"81":0.00939,"83":0.01669,"86":0.00417,"87":0.00939,"88":0.00104,"89":0.00104,"90":0.00104,"91":0.01565,"92":0.00209,"93":0.00522,"95":0.00939,"96":0.00417,"97":0.00209,"98":0.06467,"101":0.0146,"102":0.00522,"103":0.04902,"104":0.01877,"105":0.02086,"106":0.0219,"107":0.01982,"108":0.02086,"109":0.27222,"110":0.02503,"111":0.01982,"112":0.01877,"113":0.00626,"114":0.01773,"115":0.00417,"116":0.04172,"117":0.01982,"118":0.10326,"119":0.17522,"120":0.2086,"121":0.00104,"122":0.00313,"123":0.00313,"124":0.02086,"125":0.00209,"126":0.02086,"127":0.00417,"128":0.00626,"129":0.00104,"130":0.00104,"131":0.04798,"132":0.00417,"133":0.04172,"134":0.01043,"135":0.05424,"136":0.00417,"137":0.03651,"138":0.04276,"139":0.00522,"140":0.0073,"141":0.00417,"142":0.0073,"143":0.00417,"144":0.01252,"145":0.00522,"146":0.02295,"147":0.0146,"148":0.02086,"149":0.04276,"150":0.05111,"151":0.25241,"152":1.55616,"153":1.10245,"154":0.22007,"155":0.0073,"156":0.00104,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 54 55 58 59 61 67 76 78 84 85 94 99 100 157"},F:{"46":0.00417,"53":0.00104,"54":0.00104,"55":0.00104,"56":0.00104,"79":0.00209,"95":0.0073,"100":0.00209,"101":0.01773,"102":0.00104,"106":0.00104,"133":0.00104,"134":0.00626,"135":0.03338,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 103 104 105 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 131 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"84":0.00104,"92":0.00104,"109":0.00522,"119":0.08135,"120":0.08553,"122":0.00104,"148":0.00104,"149":0.00104,"150":0.01356,"151":0.00417,"152":0.06258,"153":0.07405,"154":0.02086,_:"12 13 14 15 16 17 18 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 121 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147"},E:{"14":0.00522,"27":0.00939,_:"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 12.1 13.1 15.1 15.2-15.3 15.4 16.0 16.4 17.0 27.1 27.2 TP","14.1":0.00104,"15.5":0.00104,"15.6":0.01252,"16.1":0.00104,"16.2":0.00417,"16.3":0.00522,"16.5":0.00209,"16.6":0.01565,"17.1":0.01877,"17.2":0.00104,"17.3":0.00209,"17.4":0.00104,"17.5":0.00417,"17.6":0.00834,"18.0":0.00104,"18.1":0.00522,"18.2":0.00104,"18.3":0.00313,"18.4":0.00104,"18.5-18.7":0.00522,"26.0":0.00209,"26.1":0.00209,"26.2":0.0073,"26.3":0.00834,"26.4":0.00626,"26.5":0.04276,"26.6":0.17105},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00104,"5.0-5.1":0.00104,"6.0-6.1":0,"7.0-7.1":0.00208,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.01042,"11.0-11.2":0.00104,"11.3-11.4":0.00208,"12.0-12.1":0,"12.2-12.5":0.02709,"13.0-13.1":0,"13.2":0.00521,"13.3":0,"13.4-13.7":0.00104,"14.0-14.4":0.00417,"14.5-14.8":0.00625,"15.0-15.1":0.00625,"15.2-15.3":0.00417,"15.4":0.00521,"15.5":0.00625,"15.6-15.8":0.13544,"16.0":0.01042,"16.1":0.01875,"16.2":0.01042,"16.3":0.02292,"16.4":0.00521,"16.5":0.00833,"16.6-16.7":0.18857,"17.0":0.00729,"17.1":0.01042,"17.2":0.01042,"17.3":0.01563,"17.4":0.02188,"17.5":0.04271,"17.6-17.7":0.11043,"18.0":0.02292,"18.1":0.04584,"18.2":0.06251,"18.3":0.10835,"18.4":0.06772,"18.5-18.7":1.39916,"26.0":0.06772,"26.1":0.06876,"26.2":0.17919,"26.3":0.19378,"26.4":0.14169,"26.5":0.94909,"26.6":5.85604,"27.0":0.44902,"27.1":0,"27.2":0.01146},P:{"20":0.00987,"21":0.01974,"22":0.00987,"23":0.01974,"24":0.01974,"25":0.02961,"26":0.14806,"27":0.04935,"28":0.11845,"29":0.14806,"30":1.93466,_:"4 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.06909,"9.2":0.00987,"11.1-11.2":0.00987,"17.0":0.01974},I:{"0":0.04476,"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.00002},Line truncated
@@ -0,0 +1 @@
{"version":3,"file":"ship-wheel.js","sources":["../../../src/icons/ship-wheel.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ShipWheel\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI4IiAvPgogIDxwYXRoIGQ9Ik0xMiAydjcuNSIgLz4KICA8cGF0aCBkPSJtMTkgNS01LjIzIDUuMjMiIC8+CiAgPHBhdGggZD0iTTIyIDEyaC03LjUiIC8+CiAgPHBhdGggZD0ibTE5IDE5LTUuMjMtNS4yMyIgLz4KICA8cGF0aCBkPSJNMTIgMTQuNVYyMiIgLz4KICA8cGF0aCBkPSJNMTAuMjMgMTMuNzcgNSAxOSIgLz4KICA8cGF0aCBkPSJNOS41IDEySDIiIC8+CiAgPHBhdGggZD0iTTEwLjIzIDEwLjIzIDUgNSIgLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIyLjUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/ship-wheel\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ShipWheel = createLucideIcon('ShipWheel', [\n ['circle', { cx: '12', cy: '12', r: '8', key: '46899m' }],\n ['path', { d: 'M12 2v7.5', key: '1e5rl5' }],\n ['path', { d: 'm19 5-5.23 5.23', key: '1ezxxf' }],\n ['path', { d: 'M22 12h-7.5', key: 'le1719' }],\n ['path', { d: 'm19 19-5.23-5.23', key: 'p3fmgn' }],\n ['path', { d: 'M12 14.5V22', key: 'dgcmos' }],\n ['path', { d: 'M10.23 13.77 5 19', key: 'qwopd4' }],\n ['path', { d: 'M9.5 12H2', key: 'r7bup8' }],\n ['path', { d: 'M10.23 10.23 5 5', key: 'k2y7lj' }],\n ['circle', { cx: '12', cy: '12', r: '2.5', key: 'ix0uyj' }],\n]);\n\nexport default ShipWheel;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,iBAAiB,WAAa,CAAA,CAAA,CAAA;AAAA,CAC9C,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,CA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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACjD,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAC5D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,420 @@
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*/
var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;
var util = require('./util');
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
// operating systems these days (capturing the result).
var REGEX_NEWLINE = /(\r?\n)/;
// Newline character code for charCodeAt() comparisons
var NEWLINE_CODE = 10;
// Private symbol for identifying `SourceNode`s when multiple versions of
// the source-map library are loaded. This MUST NOT CHANGE across
// versions!
var isSourceNode = "$$$isSourceNode$$$";
/**
* SourceNodes provide a way to abstract over interpolating/concatenating
* snippets of generated JavaScript source code while maintaining the line and
* column information associated with the original source code.
*
* @param aLine The original line number.
* @param aColumn The original column number.
* @param aSource The original source's filename.
* @param aChunks Optional. An array of strings which are snippets of
* generated JS, or other SourceNodes.
* @param aName The original identifier.
*/
function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
this.children = [];
this.sourceContents = {};
this.line = aLine == null ? null : aLine;
this.column = aColumn == null ? null : aColumn;
this.source = aSource == null ? null : aSource;
this.name = aName == null ? null : aName;
this[isSourceNode] = true;
if (aChunks != null) this.add(aChunks);
}
/**
* Creates a SourceNode from generated code and a SourceMapConsumer.
*
* @param aGeneratedCode The generated code
* @param aSourceMapConsumer The SourceMap for the generated code
* @param aRelativePath Optional. The path that relative sources in the
* SourceMapConsumer should be relative to.
*/
SourceNode.fromStringWithSourceMap =
function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
// The SourceNode we want to fill with the generated code
// and the SourceMap
var node = new SourceNode();
// All even indices of this array are one line of the generated code,
// while all odd indices are the newlines between two adjacent lines
// (since `REGEX_NEWLINE` captures its match).
// Processed fragments are accessed by calling `shiftNextLine`.
var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
var remainingLinesIndex = 0;
var shiftNextLine = function() {
var lineContents = getNextLine();
// The last line of a file might not have a newline.
var newLine = getNextLine() || "";
return lineContents + newLine;
function getNextLine() {
return remainingLinesIndex < remainingLines.length ?
remainingLines[remainingLinesIndex++] : undefined;
}
};
// We need to remember the position of "remainingLines"
var lastGeneratedLine = 1, lastGeneratedColumn = 0;
// The generate SourceNodes we need a code range.
// To extract it current and last mapping is used.
// Here we store the last mapping.
var lastMapping = null;
aSourceMapConsumer.eachMapping(function (mapping) {
if (lastMapping !== null) {
// We add the code from "lastMapping" to "mapping":
// First check if there is a new line in between.
if (lastGeneratedLine < mapping.generatedLine) {
// Associate first line with "lastMapping"
addMappingWithCode(lastMapping, shiftNextLine());
lastGeneratedLine++;
lastGeneratedColumn = 0;
// The remaining code is added without mapping
} else {
// There is no new line in between.
// Associate the code between "lastGeneratedColumn" and
// "mapping.generatedColumn" with "lastMapping"
var nextLine = remainingLines[remainingLinesIndex] || '';
var code = nextLine.substr(0, mapping.generatedColumn -
lastGeneratedColumn);
remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -
lastGeneratedColumn);
lastGeneratedColumn = mapping.generatedColumn;
addMappingWithCode(lastMapping, code);
// No more remaining code, continue
lastMapping = mapping;
return;
}
}
// We add the generated code until the first mapping
// to the SourceNode without any mapping.
// Each line is added as separate string.
while (lastGeneratedLine < mapping.generatedLine) {
if (remainingLinesIndex >= remainingLines.length) {
// The generated code is exhausted. Skip the rest instead of adding
// empty lines one by one: a mapping may point far past the end of
// the code (e.g. an indexed map section with a huge offset.line).
lastGeneratedLine = mapping.generatedLine;
break;
}
node.add(shiftNextLine());
lastGeneratedLine++;
}
if (lastGeneratedColumn < mapping.generatedColumn) {
var nextLine = remainingLines[remainingLinesIndex] || '';
node.add(nextLine.substr(0, mapping.generatedColumn));
remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
lastGeneratedColumn = mapping.generatedColumn;
}
lastMapping = mapping;
}, this);
// We have processed all mappings.
if (remainingLinesIndex < remainingLines.length) {
if (lastMapping) {
// Associate the remaining code in the current line with "lastMapping"
addMappingWithCode(lastMapping, shiftNextLine());
}
// and add the remaining lines without any mapping
node.add(remainingLines.splice(remainingLinesIndex).join(""));
}
// Copy sourcesContent into SourceNode
aSourceMapConsumer.sources.forEach(function (sourceFile) {
var content = aSourceMapConsumer.sourceContentFor(sourceFile);
if (content != null) {
if (aRelativePath != null) {
sourceFile = util.join(aRelativePath, sourceFile);
}
node.setSourceContent(sourceFile, content);
}
});
return node;
function addMappingWithCode(mapping, code) {
if (mapping === null || mapping.source === undefined) {
node.add(code);
} else {
var source = aRelativePath
? util.join(aRelativePath, mapping.source)
: mapping.source;
node.add(new SourceNode(mapping.originalLine,
mapping.originalColumn,
source,
code,
mapping.name));
}
}
};
/**
* Add a chunk of generated JS to this source node.
*
* @param aChunk A string snippet of generated JS code, another instance of
* SourceNode, or an array where each member is one of those things.
*/
SourceNode.prototype.add = function SourceNode_add(aChunk) {
if (Array.isArray(aChunk)) {
aChunk.forEach(function (chunk) {
this.add(chunk);
}, this);
}
else if (aChunk[isSourceNode] || typeof aChunk === "string") {
if (aChunk) {
this.children.push(aChunk);
}
}
else {
throw new TypeError(
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
);
}
return this;
};
/**
* Add a chunk of generated JS to the beginning of this source node.
*
* @param aChunk A string snippet of generated JS code, another instance of
* SourceNode, or an array where each member is one of those things.
*/
SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
if (Array.isArray(aChunk)) {
for (var i = aChunk.length-1; i >= 0; i--) {
this.prepend(aChunk[i]);
}
}
else if (aChunk[isSourceNode] || typeof aChunk === "string") {
this.children.unshift(aChunk);
}
else {
throw new TypeError(
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
);
}
return this;
};
/**
* Walk over the tree of JS snippets in this node and its children. The
* walking function is called once for each snippet of JS and is passed that
* snippet and the its original associated source's line/column location.
*
* @param aFn The traversal function.
*/
SourceNode.prototype.walk = function SourceNode_walk(aFn) {
var chunk;
for (var i = 0, len = this.children.length; i < len; i++) {
chunk = this.children[i];
if (chunk[isSourceNode]) {
chunk.walk(aFn);
}
else {
if (chunk !== '') {
aFn(chunk, { source: this.source,
line: this.line,
column: this.column,
name: this.name });
}
}
}
};
/**
* Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
* each of `this.children`.
*
* @param aSep The separator.
*/
SourceNode.prototype.join = function SourceNode_join(aSep) {
var newChildren;
var i;
var len = this.children.length;
if (len > 0) {
newChildren = [];
for (i = 0; i < len-1; i++) {
newChildren.push(this.children[i]);
newChildren.push(aSep);
}
newChildren.push(this.children[i]);
this.children = newChildren;
}
return this;
};
/**
* Call String.prototype.replace on the very right-most source snippet. Useful
* for trimming whitespace from the end of a source node, etc.
*
* @param aPattern The pattern to replace.
* @param aReplacement The thing to replace the pattern with.
*/
SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
var lastChild = this.children[this.children.length - 1];
if (lastChild[isSourceNode]) {
lastChild.replaceRight(aPattern, aReplacement);
}
else if (typeof lastChild === 'string') {
this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
}
else {
this.children.push(''.replace(aPattern, aReplacement));
}
return this;
};
/**
* Set the source content for a source file. This will be added to the SourceMapGenerator
* in the sourcesContent field.
*
* @param aSourceFile The filename of the source file
* @param aSourceContent The content of the source file
*/
SourceNode.prototype.setSourceContent =
function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
};
/**
* Walk over the tree of SourceNodes. The walking function is called for each
* source file content and is passed the filename and source content.
*
* @param aFn The traversal function.
*/
SourceNode.prototype.walkSourceContents =
function SourceNode_walkSourceContents(aFn) {
for (var i = 0, len = this.children.length; i < len; i++) {
if (this.children[i][isSourceNode]) {
this.children[i].walkSourceContents(aFn);
}
}
var sources = Object.keys(this.sourceContents);
for (var i = 0, len = sources.length; i < len; i++) {
aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
}
};
/**
* Return the string representation of this source node. Walks over the tree
* and concatenates all the various snippets together to one string.
*/
SourceNode.prototype.toString = function SourceNode_toString() {
var str = "";
this.walk(function (chunk) {
str += chunk;
});
return str;
};
/**
* Returns the string representation of this source node along with a source
* map.
*/
SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
var generated = {
code: "",
line: 1,
column: 0
};
var map = new SourceMapGenerator(aArgs);
var sourceMappingActive = false;
var lastOriginalSource = null;
var lastOriginalLine = null;
var lastOriginalColumn = null;
var lastOriginalName = null;
this.walk(function (chunk, original) {
generated.code += chunk;
if (original.source !== null
&& original.line !== null
&& original.column !== null) {
if(lastOriginalSource !== original.source
|| lastOriginalLine !== original.line
|| lastOriginalColumn !== original.column
|| lastOriginalName !== original.name) {
map.addMapping({
source: original.source,
original: {
line: original.line,
column: original.column
},
generated: {
line: generated.line,
column: generated.column
},
name: original.name
});
}
lastOriginalSource = original.source;
lastOriginalLine = original.line;
lastOriginalColumn = original.column;
lastOriginalName = original.name;
sourceMappingActive = true;
} else if (sourceMappingActive) {
map.addMapping({
generated: {
line: generated.line,
column: generated.column
}
});
lastOriginalSource = null;
sourceMappingActive = false;
}
for (var idx = 0, length = chunk.length; idx < length; idx++) {
if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
generated.line++;
generated.column = 0;
// Mappings end at eol
if (idx + 1 === length) {
lastOriginalSource = null;
sourceMappingActive = false;
} else if (sourceMappingActive) {
map.addMapping({
source: original.source,
original: {
line: original.line,
column: original.column
},
generated: {
line: generated.line,
column: generated.column
},
name: original.name
});
}
} else {
generated.column++;
}
}
});
this.walkSourceContents(function (sourceFile, sourceContent) {
map.setSourceContent(sourceFile, sourceContent);
});
return { code: generated.code, map: map };
};
exports.SourceNode = SourceNode;
@@ -0,0 +1 @@
{"version":3,"file":"size-rollup-animate.js","sources":["../../motion-utils/dist/es/array.mjs","../../motion-utils/dist/es/clamp.mjs","../../motion-utils/dist/es/format-error-message.mjs","../../motion-utils/dist/es/errors.mjs","../../motion-utils/dist/es/global-config.mjs","../../motion-utils/dist/es/is-numerical-string.mjs","../../motion-utils/dist/es/is-zero-value-string.mjs","../../motion-utils/dist/es/memo.mjs","../../motion-utils/dist/es/noop.mjs","../../motion-utils/dist/es/pipe.mjs","../../motion-utils/dist/es/progress.mjs","../../motion-utils/dist/es/subscription-manager.mjs","../../motion-utils/dist/es/time-conversion.mjs","../../motion-utils/dist/es/velocity-per-second.mjs","../../motion-utils/dist/es/wrap.mjs","../../motion-utils/dist/es/easing/cubic-bezier.mjs","../../motion-utils/dist/es/easing/modifiers/mirror.mjs","../../motion-utils/dist/es/easing/modifiers/reverse.mjs","../../motion-utils/dist/es/easing/back.mjs","../../motion-utils/dist/es/easing/anticipate.mjs","../../motion-utils/dist/es/easing/circ.mjs","../../motion-utils/dist/es/easing/ease.mjs","../../motion-utils/dist/es/easing/utils/is-easing-array.mjs","../../motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs","../../motion-utils/dist/es/easing/utils/is-bezier-definition.mjs","../../motion-utils/dist/es/easing/utils/map.mjs","../../motion-dom/dist/es/frameloop/order.mjs","../../motion-dom/dist/es/frameloop/batcher.mjs","../../motion-dom/dist/es/frameloop/render-step.mjs","../../motion-dom/dist/es/frameloop/frame.mjs","../../motion-dom/dist/es/frameloop/sync-time.mjs","../../motion-dom/dist/es/animation/utils/is-css-variable.mjs","../../motion-dom/dist/es/value/types/numbers/index.mjs","../../motion-dom/dist/es/value/types/utils/sanitize.mjs","../../motion-dom/dist/es/value/types/utils/float-regex.mjs","../../motion-dom/dist/es/value/types/utils/single-color-regex.mjs","../../motion-dom/dist/es/value/types/color/utils.mjs","../../motion-dom/dist/es/value/types/utils/is-nullish.mjs","../../motion-dom/dist/es/value/types/color/rgba.mjs","../../motion-dom/dist/es/value/types/color/hex.mjs","../../motion-dom/dist/es/value/types/numbers/units.mjs","../../motion-dom/dist/es/value/types/color/hsla.mjs","../../motion-dom/dist/es/value/types/color/index.mjs","../../motion-dom/dist/es/value/types/utils/color-regex.mjs","../../motion-dom/dist/es/value/types/complex/index.mjs","../../motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs","../../motion-dom/dist/es/utils/mix/immediate.mjs","../../motion-dom/dist/es/utils/mix/number.mjs","../../motion-dom/dist/es/utils/mix/color.mjs","../../motion-dom/dist/es/utils/mix/visibility.mjs","../../motion-dom/dist/es/utils/mix/complex.mjs","../../motion-dom/dist/es/utils/mix/index.mjs","../../motion-dom/dist/es/animation/drivers/frame.mjs","../../motion-dom/dist/es/animation/waapi/utils/linear.mjs","../../motion-dom/dist/es/animation/generators/utils/calc-duration.mjs","../../motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs","../../motion-dom/dist/es/animation/generators/spring.mjs","../../motion-dom/dist/es/animation/generators/utils/velocity.mjs","../../motion-dom/dist/es/animation/generators/inertia.mjs","../../motion-dom/dist/es/utils/interpolate.mjs","../../motion-dom/dist/es/animation/keyframes/offsets/fill.mjs","../../motion-dom/dist/es/animation/keyframes/offsets/default.mjs","../../motion-dom/dist/es/animation/generators/keyframes.mjs","../../motion-dom/dist/es/animation/keyframes/offsets/time.mjs","../../motion-dom/dist/es/animation/keyframes/get-final.mjs","../../motion-dom/dist/es/animation/utils/replace-transition-type.mjs","../../motion-dom/dist/es/animation/utils/WithPromise.mjs","../../motion-dom/dist/es/animation/JSAnimation.mjs","../../motion-dom/dist/es/render/dom/parse-transform.mjs","../../motion-dom/dist/es/render/utils/keys-transform.mjs","../../motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs","../../motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs","../../motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs","../../motion-dom/dist/es/render/dom/style-set.mjs","../../motion-dom/dist/es/render/dom/is-css-var.mjs","../../motion-dom/dist/es/utils/supports/flags.mjs","../../motion-dom/dist/es/utils/supports/memo.mjs","../../motion-dom/dist/es/utils/supports/scroll-timeline.mjs","../../motion-dom/dist/es/utils/supports/linear-easing.mjs","../../motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs","../../motion-dom/dist/es/animation/waapi/easing/supported.mjs","../../motion-dom/dist/es/animation/waapi/easing/map-easing.mjs","../../motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs","../../motion-dom/dist/es/animation/generators/utils/is-generator.mjs","../../motion-dom/dist/es/animation/NativeAnimation.mjs","../../motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs","../../motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs","../../motion-dom/dist/es/animation/NativeAnimatiLine truncated
@@ -0,0 +1,24 @@
(The MIT License)
Copyright (c) 2012-2013 TJ Holowaychuk
Copyright (c) 2015 Andreas Lubbe
Copyright (c) 2015 Tiancheng "Timothy" Gu
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,55 @@
import fs from 'node:fs/promises';
import { i as internalFixDefaultCJSExports } from './utils-DwzdDEfz.mjs';
import 'magic-string';
import 'mlly';
function transformDtsDefaultCJSExports(code, fileName, options = {}) {
return internalFixDefaultCJSExports(code, {
fileName,
// we don't need the imports (used only for exporting types optimization)
imports: []
}, options);
}
async function fixDtsFileDefaultCJSExports(dtsPath, options = {}) {
const result = transformDtsDefaultCJSExports(
await fs.readFile(dtsPath, "utf-8"),
dtsPath,
options
);
if (result) {
await fs.writeFile(dtsPath, result, "utf8");
}
return !!result;
}
async function transformESMDtsToCJSDts(dtsPath, dtsDestPath, options = {}) {
if (dtsPath === dtsDestPath) {
throw new Error(`dtsPath and dtsDestPath should be different: ${dtsPath}`);
}
const code = await fs.readFile(dtsPath, "utf-8");
const result = transformDtsDefaultCJSExports(
code,
dtsPath,
options
) ?? code;
const { transformLocalImports = defaultLocalImportsTransformer } = options;
await fs.writeFile(
dtsDestPath,
transformLocalImports(result, dtsPath, dtsDestPath),
"utf8"
);
}
function defaultLocalImportsTransformer(code, dtsPath, dtsDestPath) {
const from = dtsPath.endsWith(".d.mts") ? /\s+(from\s+["'].\.?\/.*(\.mjs)["'];?)\s+/g : /\s+(from\s+["'].\.?\/.*(\.js)["'];?)\s+/g;
let matcher = from.exec(code);
if (!matcher) {
return code;
}
const extension = dtsDestPath.endsWith("d.ts") ? ".js" : ".cjs";
while (matcher) {
code = code.replaceAll(matcher[1], matcher[1].replace(matcher[2], extension));
matcher = from.exec(code);
}
return code;
}
export { defaultLocalImportsTransformer, fixDtsFileDefaultCJSExports, transformDtsDefaultCJSExports, transformESMDtsToCJSDts };
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/0ab8bcf1ecfc70dfc93291a4cb2496578ac25e9c/src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,gEAAgE;AAChE,yCAOoB;AANhB,mGAAA,KAAK,OAAA;AACL,qGAAA,OAAO,OAAA;AACP,oGAAA,MAAM,OAAA;AACN,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,yGAAA,WAAW,OAAA"}
@@ -0,0 +1,67 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
import KEYS from "./visitor-keys.js";
/**
* @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
*/
// List to ignore keys.
const KEY_BLACKLIST = new Set([
"parent",
"leadingComments",
"trailingComments",
]);
/**
* Check whether a given key should be used or not.
* @param {string} key The key to check.
* @returns {boolean} `true` if the key should be used.
*/
function filterKey(key) {
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
}
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
*/
/**
* Get visitor keys of a given node.
* @param {Object} node The AST node to get keys.
* @returns {readonly string[]} Visitor keys of the node.
*/
export function getKeys(node) {
return Object.keys(node).filter(filterKey);
}
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
/**
* Make the union set with `KEYS` and given keys.
* @param {VisitorKeys} additionalKeys The additional keys.
* @returns {VisitorKeys} The union set.
*/
export function unionWith(additionalKeys) {
const retv =
/** @type {{ [type: string]: ReadonlyArray<string> }} */
(Object.assign({}, KEYS));
for (const type of Object.keys(additionalKeys)) {
if (Object.hasOwn(retv, type)) {
const keys = new Set(additionalKeys[type]);
for (const key of retv[type]) {
keys.add(key);
}
retv[type] = Object.freeze(Array.from(keys));
} else {
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
}
}
return Object.freeze(retv);
}
export { KEYS };
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const MonitorCheck = createLucideIcon("MonitorCheck", [
["path", { d: "m9 10 2 2 4-4", key: "1gnqz4" }],
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
["path", { d: "M12 17v4", key: "1riwvh" }],
["path", { d: "M8 21h8", key: "1ev6f3" }]
]);
export { MonitorCheck as default };
//# sourceMappingURL=monitor-check.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.cjs","sources":["../../src/scoring/index.ts"],"sourcesContent":[null],"names":["Scoring","constructor","options","password","optimal","excludeAdditive","fillArray","size","valueType","result","i","value","push","makeBruteforceMatch","j","pattern","token","slice","update","match","sequenceLength","k","estimatedMatch","estimateGuesses","pi","guesses","guessesProduct","g","utils","factorial","MIN_GUESSES_BEFORE_GROWING_SEQUENCE","shouldSkip","competingG","totalGuesses","Object","keys","forEach","competingPatternLengthStr","competingPatternLength","parseInt","competingMetricMatch","bestMatches","bruteforceUpdate","passwordCharIndex","tmp","sequenceLengthStr","lastMatch","unwind","passwordLength","optimalMatchSequence","temp","candidateSequenceLengthStr","candidateSequenceLength","candidateMetricMatch","unshift","mostGuessableMatchSequence","matches","length","matchesByCoordinateJ","map","sort","m1","m2","prevM","optimalSequenceLength","getGuesses","guessesLog10","log10","sequence"],"mappings":";;;;;;AAWc,MAAOA,OAAO,CAAA;EAO1BC,WAAAA,CAAoBC,OAAgB,EAAA;IAAhB,IAAA,CAAAA,OAAO,GAAPA,OAAO;IANnB,IAAA,CAAAC,QAAQ,GAAG,EAAE;AAEb,IAAA,IAAA,CAAAC,OAAO,GAAY,EAAa;IAEhC,IAAA,CAAAC,eAAe,GAAG,KAAK;AAEQ,EAAA;AAE/BC,EAAAA,SAASA,CAACC,IAAY,EAAEC,SAA6B,EAAA;IAC3D,MAAMC,MAAM,GAAU,EAAE;AACxB,IAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,IAAI,EAAEG,CAAC,IAAI,CAAC,EAAE;MAChC,IAAIC,KAAK,GAAQ,EAAE;MACnB,IAAIH,SAAS,KAAK,QAAQ,EAAE;QAC1BG,KAAK,GAAG,EAAE;AACZ,MAAA;AACAF,MAAAA,MAAM,CAACG,IAAI,CAACD,KAAK,CAAC;AACpB,IAAA;AACA,IAAA,OAAOF,MAAM;AACf,EAAA;AAEA;AACQI,EAAAA,mBAAmBA,CAACH,CAAS,EAAEI,CAAS,EAAA;IAC9C,OAAO;AACLC,MAAAA,OAAO,EAAE,YAAY;AACrBC,MAAAA,KAAK,EAAE,IAAI,CAACb,QAAQ,CAACc,KAAK,CAACP,CAAC,EAAEI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;MAC3CJ,CAAC;AACDI,MAAAA;KACD;AACH,EAAA;AAEA;AACA;AACA;AACA;AACQI,EAAAA,MAAMA,CAACC,KAAoB,EAAEC,cAAsB,EAAA;AACzD,IAAA,MAAMC,CAAC,GAAGF,KAAK,CAACL,CAAC;AACjB,IAAA,MAAMQ,cAAc,GAAGC,QAAe,CAAC,IAAI,CAACrB,OAAO,EAAEiB,KAAK,EAAE,IAAI,C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9C,OAAO,CAAC6B,YAAY,CAACZ,CAAC,CAAC;AACzC;AACA,IAAA,IAAI6B,IAAI,EAAE;MACRhB,MAAM,CAACC,IAAI,CAACe,IAAI,CAAC,CAACd,OAAO,CAAEe,0BAA0B,IAAI;AACvD,QAAA,MAAMC,uBAAuB,GAAGb,QAAQ,CAACY,0BAA0B,EAAE,EAAE,CAAC;AACxE,QAAA,MAAME,oBAAoB,GAAGH,IAAI,CAACE,uBAAuB,CAAC;QAC1D,IAAIC,oBAAoB,GAAG1B,CAAC,EAAE;AAC5BP,UAAAA,cAAc,GAAGgC,uBAAuB;AACxCzB,UAAAA,CAAC,GAAG0B,oBAAoB;AAC1B,QAAA;AACF,MAAA,CAAC,CAAC;AACJ,IAAA;IACA,OAAOhC,CAAC,IAAI,CAAC,EAAE;AACb,MAAA,MAAMF,KAAK,GAAmB,IAAI,CAACf,OAAO,CAACqC,WAAW,CAACpB,CAAC,CAAC,CAACD,cAAc,CAAC;AACzE6B,MAAAA,oBAAoB,CAACK,OAAO,CAACnC,KAAK,CAAC;AACnCE,MAAAA,CAAC,GAAGF,KAAK,CAACT,CAAC,GAAG,CAAC;AACfU,MAAAA,cAAc,IAAI,CAAC;AACrB,IAAA;AACA,IAAA,OAAO6B,oBAAoB;AAC7B,EAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACAM,0BAA0BA,CACxBpD,QAAgB,EACLine truncated
@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './university.js';
//# sourceMappingURL=school-2.js.map
@@ -0,0 +1,15 @@
import type { TSESTree } from '@typescript-eslint/utils';
export declare const enum NodeComparisonResult {
/** the two nodes are comparably the same */
Equal = "Equal",
/** the left node is a subset of the right node */
Subset = "Subset",
/** the left node is not the same or is a superset of the right node */
Invalid = "Invalid"
}
type CompareNodesArgument = TSESTree.Node | null | undefined;
/**
* Compares two nodes' ASTs to determine if the A is equal to or a subset of B
*/
export declare function compareNodes(nodeA: CompareNodesArgument, nodeB: CompareNodesArgument): NodeComparisonResult;
export {};
@@ -0,0 +1 @@
{"version":3,"names":["_core","require","_utils","defineType","defineAliasedType","defineInterfaceishType","name","isDeclareClass","builder","visitor","aliases","fields","Object","assign","id","validateType","typeParameters","validateOptionalType","extends","validateOptional","arrayOfType","mixins","implements","body","elementType","value","validate","assertValueType","predicate","kind","assertOneOf","typeAnnotation","right","supertype","impltype","declaration","specifiers","source","default","importAttributes","exportKind","params","validateArrayOfType","rest","this","returnType","optional","types","properties","indexers","callProperties","internalSlots","exact","inexact","static","method","key","variance","proto","argument","qualification","expression","bound","explicitType","members","hasUnknownMembers","init","objectType","indexType"],"sources":["../../src/definitions/flow.ts"],"sourcesContent":["import { importAttributes } from \"./core.ts\";\nimport {\n defineAliasedType,\n arrayOfType,\n assertOneOf,\n assertValueType,\n validate,\n validateArrayOfType,\n validateOptional,\n validateOptionalType,\n validateType,\n} from \"./utils.ts\";\n\nconst defineType = defineAliasedType(\"Flow\");\n\nconst defineInterfaceishType = (\n name: \"DeclareClass\" | \"DeclareInterface\" | \"InterfaceDeclaration\",\n) => {\n const isDeclareClass = name === \"DeclareClass\";\n\n defineType(name, {\n builder: [\"id\", \"typeParameters\", \"extends\", \"body\"],\n visitor: [\n \"id\",\n \"typeParameters\",\n \"extends\",\n ...(isDeclareClass ? [\"mixins\", \"implements\"] : []),\n \"body\",\n ],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\"),\n typeParameters: validateOptionalType(\"TypeParameterDeclaration\"),\n extends: validateOptional(arrayOfType(\"InterfaceExtends\")),\n ...(isDeclareClass\n ? {\n mixins: validateOptional(arrayOfType(\"InterfaceExtends\")),\n implements: validateOptional(arrayOfType(\"ClassImplements\")),\n }\n : {}),\n body: validateType(\"ObjectTypeAnnotation\"),\n },\n });\n};\n\ndefineType(\"AnyTypeAnnotation\", {\n aliases: [\"FlowType\", \"FlowBaseAnnotation\"],\n});\n\ndefineType(\"ArrayTypeAnnotation\", {\n visitor: [\"elementType\"],\n aliases: [\"FlowType\"],\n fields: {\n elementType: validateType(\"FlowType\"),\n },\n});\n\ndefineType(\"BooleanTypeAnnotation\", {\n aliases: [\"FlowType\", \"FlowBaseAnnotation\"],\n});\n\ndefineType(\"BooleanLiteralTypeAnnotation\", {\n builder: [\"value\"],\n aliases: [\"FlowType\"],\n fields: {\n value: validate(assertValueType(\"boolean\")),\n },\n});\n\ndefineType(\"NullLiteralTypeAnnotation\", {\n aliases: [\"FlowType\", \"FlowBaseAnnotation\"],\n});\n\ndefineType(\"ClassImplements\", {\n visitor: [\"id\", \"typeParameters\"],\n fields: {\n id: validateType(\"Identifier\"),\n typeParameters: validateOptionalType(\"TypeParameterInstantiation\"),\n },\n});\n\ndefineInterfaceishType(\"DeclareClass\");\n\ndefineType(\"DeclareFunction\", {\n builder: [\"id\"],\n visitor: [\"id\", \"predicate\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\"),\n predicate: validateOptionalType(\"DeclaredPredicate\"),\n },\n});\n\ndefineInterfaceishType(\"DeclareInterface\");\n\ndefineType(\"DeclareModule\", {\n builder: [\"id\", \"body\", \"kind\"],\n visitor: [\"id\", \"body\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\", \"StringLiteral\"),\n body: validateType(\"BlockStatement\"),\n kind: validateOptional(assertOneOf(\"CommonJS\", \"ES\")),\n },\n});\n\ndefineType(\"DeclareModuleExports\", {\n visitor: [\"typeAnnotation\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n typeAnnotation: validateType(\"TypeAnnotation\"),\n },\n});\n\ndefineType(\"DeclareTypeAlias\", {\n visitor: [\"id\", \"typeParameters\", \"right\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\"),\n typeParameters: validateOptionalType(\"TypeParameterDeclaration\"),\n right: validateType(\"FlowType\"),\n },\n});\n\ndefineType(\"DeclareOpaqueType\", {\n visitor: [\"id\", \"typeParameters\", \"supertype\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\"),\n typeParameters: validateOptionalType(\"TypeParameterDeclaration\"),\n supertype: validateOptionalType(\"FlowType\"),\n impltype: validateOptionalType(\"FlowType\"),\n },\n});\n\ndefineType(\"DeclareVariable\", {\n visitor: [\"id\"],\n aliases: [\"FlowDeclaration\", \"Statement\", \"Declaration\"],\n fields: {\n id: validateType(\"Identifier\"),\n },\n});\n\ndefineType(\"DeclareExLine truncated
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Split = createLucideIcon("Split", [
["path", { d: "M16 3h5v5", key: "1806ms" }],
["path", { d: "M8 3H3v5", key: "15dfkv" }],
["path", { d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3", key: "1qrqzj" }],
["path", { d: "m15 9 6-6", key: "ko1vev" }]
]);
export { Split as default };
//# sourceMappingURL=split.js.map
@@ -0,0 +1,10 @@
"use strict";
const absFloor = require("./absFloor-CImRXpov.js");
const monthDiff = require("./monthDiff-DFAMKa42.js");
const parse = require("./parse.js");
function diffInMonths(date, input, asFloat) {
const parsed = parse(input);
const output = monthDiff.monthDiff(date, parsed);
return asFloat ? output : absFloor.absFloor(output);
}
module.exports = diffInMonths;
@@ -0,0 +1,43 @@
export declare const xmlReplacer: RegExp;
export declare const getCodePoint: (str: string, index: number) => number;
/**
* Encodes all non-ASCII characters, as well as characters not valid in XML
* documents using XML entities.
*
* If a character has no equivalent entity, a
* numeric hexadecimal reference (eg. `&#xfc;`) will be used.
*/
export declare function encodeXML(str: string): string;
/**
* Encodes all non-ASCII characters, as well as characters not valid in XML
* documents using numeric hexadecimal reference (eg. `&#xfc;`).
*
* Have a look at `escapeUTF8` if you want a more concise output at the expense
* of reduced transportability.
*
* @param data String to escape.
*/
export declare const escape: typeof encodeXML;
/**
* Encodes all characters not valid in XML documents using XML entities.
*
* Note that the output will be character-set dependent.
*
* @param data String to escape.
*/
export declare const escapeUTF8: (data: string) => string;
/**
* Encodes all characters that have to be escaped in HTML attributes,
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
*
* @param data String to escape.
*/
export declare const escapeAttribute: (data: string) => string;
/**
* Encodes all characters that have to be escaped in HTML text,
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
*
* @param data String to escape.
*/
export declare const escapeText: (data: string) => string;
//# sourceMappingURL=escape.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"signature.js","sources":["../../../src/icons/signature.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Signature\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMTctMi4xNTYtMS44NjhBLjUuNSAwIDAgMCAxOCAxNS41di41YTEgMSAwIDAgMS0xIDFoLTJhMSAxIDAgMCAxLTEtMWMwLTIuNTQ1LTMuOTkxLTMuOTctOC41LTRhMSAxIDAgMCAwIDAgNWM0LjE1MyAwIDQuNzQ1LTExLjI5NSA1LjcwOC0xMy41YTIuNSAyLjUgMCAxIDEgMy4zMSAzLjI4NCIgLz4KICA8cGF0aCBkPSJNMyAyMWgxOCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/signature\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Signature = createLucideIcon('Signature', [\n [\n 'path',\n {\n d: 'm21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284',\n key: 'y32ogt',\n },\n ],\n ['path', { d: 'M3 21h18', key: 'itz85i' }],\n]);\n\nexport default Signature;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,iBAAiB,WAAa,CAAA,CAAA,CAAA;AAAA,CAC9C,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA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@ -0,0 +1,16 @@
var siginfo = require('.')
var pkg = require('./package.json')
var stop = siginfo(function () {
console.dir({
version: pkg.version,
uptime: process.uptime()
})
})
process.stdout.resume()
setTimeout(function () {
stop()
process.exit(0)
}, 2000)
@@ -0,0 +1,24 @@
import { IAppender, ILayout, ILogger, LogEvent } from './typings';
/**
* Console appender (控制台输出)
*/
export default class ConsoleAppender implements IAppender {
layout?: ILayout | undefined;
name: string;
dateFormat: string;
/**
* Constructor (构造函数)
* @param layout Layout (布局)
*/
constructor(layout?: ILayout | undefined);
setup(logger: ILogger): void;
/**
* Write log (写入日志)
* @param event Log event (日志事件)
*/
write(event: LogEvent): void;
/**
* Close appender (关闭输出)
*/
close(): Promise<void>;
}
@@ -0,0 +1,120 @@
/**
* @fileoverview Rule to flag when using constructor without parentheses
* @author Ilya Volodin
* @deprecated in ESLint v8.53.0
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
deprecated: {
message: "Formatting rules are being moved out of ESLint core.",
url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
deprecatedSince: "8.53.0",
availableUntil: "11.0.0",
replacedBy: [
{
message:
"ESLint Stylistic now maintains deprecated stylistic core rules.",
url: "https://eslint.style/guide/migration",
plugin: {
name: "@stylistic/eslint-plugin",
url: "https://eslint.style",
},
rule: {
name: "new-parens",
url: "https://eslint.style/rules/new-parens",
},
},
],
},
type: "layout",
docs: {
description:
"Enforce or disallow parentheses when invoking a constructor with no arguments",
recommended: false,
url: "https://eslint.org/docs/latest/rules/new-parens",
},
fixable: "code",
schema: [
{
enum: ["always", "never"],
},
],
messages: {
missing: "Missing '()' invoking a constructor.",
unnecessary:
"Unnecessary '()' invoking a constructor with no arguments.",
},
},
create(context) {
const options = context.options;
const always = options[0] !== "never"; // Default is always
const sourceCode = context.sourceCode;
return {
NewExpression(node) {
if (node.arguments.length !== 0) {
return; // if there are arguments, there have to be parens
}
const lastToken = sourceCode.getLastToken(node);
const hasLastParen =
lastToken && astUtils.isClosingParenToken(lastToken);
// `hasParens` is true only if the new expression ends with its own parens, e.g., new new foo() does not end with its own parens
const hasParens =
hasLastParen &&
astUtils.isOpeningParenToken(
sourceCode.getTokenBefore(lastToken),
) &&
node.callee.range[1] < node.range[1];
if (always) {
if (!hasParens) {
context.report({
node,
messageId: "missing",
fix: fixer => fixer.insertTextAfter(node, "()"),
});
}
} else {
if (hasParens) {
context.report({
node,
messageId: "unnecessary",
fix: fixer => [
fixer.remove(
sourceCode.getTokenBefore(lastToken),
),
fixer.remove(lastToken),
fixer.insertTextBefore(node, "("),
fixer.insertTextAfter(node, ")"),
],
});
}
}
},
};
},
};
@@ -0,0 +1,424 @@
export default `flf2a$ 4 3 11 0 14
Fourtops by Randall Ransom 4/94 <ransom@girtab.usc.edu>
Figlet release 2.0 -- August 5, 1993
Date: 9 Apr 1994
Explanation of first line:
flf2 - "magic number" for file identification
a - should always be \`a', for now
$ - the "hardblank" -- prints as a blank, but can't be smushed
4 - height of a character
3 - height of a character, not including descenders
11 - max line length (excluding comment lines) + a fudge factor
0 - default smushmode for this font (like "-m 0" on command line)
14 - number of comment lines
$$@
$$@
$$@
$$@@
|@
|@
.@
$@@
||@
$$@
$$@
$$@@
. .$@
-|-|-@
-|-|-@
' '$@@
||@
(~@
_)@
||@@
. /@
$/$@
/ .@
$ $@@
$|@
(~@
(_@
$|@@
/@
$@
$@
$@@
/@
| @
| @
\\@@
\\ @
|@
|@
/ @@
\\ /@
-X-@
/ \\@
$ $@@
$.$@
-+-@
$'$@
$ $@@
$@
$@
$@
/@@
$ $@
---@
$ $@
$ $@@
$@
$@
.@
$@@
/@
/ @
/ @
@@
/~~\\ @
| |@
\\__/ @
@@
/| @
| @
_|_@
@@
/~\\@
,/@
/__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
|@
|@
@@
@
|/~\\ /~\\ @
| | |@
@@
@
|/~\\ @
| |@
@@
@
/~\\@
\\_/@
@@
@
|~~\\@
|__/@
| @@
@
/~~| @
\\__| @
|/@@
@
|/~\\@
| @
@@
@
(~@
_)@
@@
| @
~|~@
| @
@@
@
| |@
\\_/|@
@@
@
\\ /@
\\/ @
@@
@
\\ /@
\\/\\/ @
@@
@
\\/@
/\\@
@@
@
\\ /@
\\/ @
_/ @@
@
~/@
/_@
@@
|~@
/ @
\\ @
|_@@
|@
|@
|@
|@@
~| @
\\@
/@
_| @@
@
_-_-@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
@
@
@
@@
`
@@ -0,0 +1,72 @@
import { PluginInfo, SerovalNode } from 'seroval';
/**
* Hint for RawStream encoding strategy during SSR serialization.
* - 'binary': Always use base64 encoding (best for binary data like files, images)
* - 'text': Try UTF-8 first, fallback to base64 (best for text-heavy data like RSC payloads)
*/
export type RawStreamHint = 'binary' | 'text';
/**
* Options for RawStream configuration.
*/
export interface RawStreamOptions {
/**
* Encoding hint for SSR serialization.
* - 'binary' (default): Always use base64 encoding
* - 'text': Try UTF-8 first, fallback to base64 for invalid UTF-8 chunks
*/
hint?: RawStreamHint;
}
/**
* Marker class for ReadableStream<Uint8Array> that should be serialized
* with base64 encoding (SSR) or binary framing (server functions).
*
* Wrap your binary streams with this to get efficient serialization:
* ```ts
* // For binary data (files, images, etc.)
* return { data: new RawStream(file.stream()) }
*
* // For text-heavy data (RSC payloads, etc.)
* return { data: new RawStream(rscStream, { hint: 'text' }) }
* ```
*/
export declare class RawStream {
readonly stream: ReadableStream<Uint8Array>;
readonly hint: RawStreamHint;
constructor(stream: ReadableStream<Uint8Array>, options?: RawStreamOptions);
}
/**
* Callback type for RPC plugin to register raw streams with multiplexer
*/
export type OnRawStreamCallback = (streamId: number, stream: ReadableStream<Uint8Array>) => void;
export interface RawStreamSSRNode extends PluginInfo {
hint: SerovalNode;
factory: SerovalNode;
stream: SerovalNode;
}
export interface RawStreamRPCNode extends PluginInfo {
streamId: SerovalNode;
}
/**
* SSR Plugin - uses base64 or UTF-8+base64 encoding for chunks, delegates to seroval's stream mechanism.
* Used during SSR when serializing to JavaScript code for HTML injection.
*
* Supports two modes based on RawStream hint:
* - 'binary': Always base64 encode (default)
* - 'text': Try UTF-8 first, fallback to base64 for invalid UTF-8
*/
export declare const RawStreamSSRPlugin: import('seroval').Plugin<RawStream, RawStreamSSRNode>;
/**
* Creates an RPC plugin instance that registers raw streams with a multiplexer.
* Used for server function responses where we want binary framing.
* Note: RPC always uses binary framing regardless of hint.
*
* @param onRawStream Callback invoked when a RawStream is encountered during serialization
*/
export declare function createRawStreamRPCPlugin(onRawStream: OnRawStreamCallback): import('seroval').Plugin<RawStream, RawStreamRPCNode>;
/**
* Creates a deserialize-only plugin for client-side stream reconstruction.
* Used in serverFnFetcher to wire up streams from frame decoder.
*
* @param getOrCreateStream Function to get/create a stream by ID from frame decoder
*/
export declare function createRawStreamDeserializePlugin(getOrCreateStream: (id: number) => ReadableStream<Uint8Array>): import('seroval').Plugin<any, RawStreamRPCNode>;
@@ -0,0 +1,82 @@
var YO=Object.defineProperty;var QO=($)=>$;function KO($,g){this[$]=QO.bind(null,g)}var e$=($,g)=>{for(var _ in g)YO($,_,{get:g[_],enumerable:!0,configurable:!0,set:KO.bind(g,_)})};var{create:VO,defineProperty:SD,getOwnPropertyDescriptor:BO,getOwnPropertyNames:PO,getPrototypeOf:FO}=Object,HO=Object.prototype.hasOwnProperty,Yw=($,g)=>()=>(g||$((g={exports:{}}).exports,g),g.exports),Qw=($,g)=>{let _={};for(var D in $)SD(_,D,{get:$[D],enumerable:!0});if(g)SD(_,Symbol.toStringTag,{value:"Module"});return _},EO=($,g,_,D)=>{if(g&&typeof g==="object"||typeof g==="function"){for(var v=PO(g),I=0,U=v.length,N;I<U;I++)if(N=v[I],!HO.call($,N)&&N!==_)SD($,N,{get:((J)=>g[J]).bind(null,N),enumerable:!(D=BO(g,N))||D.enumerable})}return $},Kw=($,g,_)=>(_=$!=null?VO(FO($)):{},EO(g||!$||!$.__esModule?SD(_,"default",{value:$,enumerable:!0}):_,$));var kO=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]);function Vw($){return typeof $==="string"&&kO.has($.replace(/#$/,""))}var W={};e$(W,{xor:()=>mX,xid:()=>GX,void:()=>fX,uuidv7:()=>NX,uuidv6:()=>UX,uuidv4:()=>DX,uuid:()=>IX,util:()=>H,url:()=>b6,uppercase:()=>p4,unknown:()=>T,union:()=>q,undefined:()=>uX,ulid:()=>XX,uint64:()=>xX,uint32:()=>MX,tuple:()=>$W,trim:()=>$6,treeifyError:()=>$N,transform:()=>v1,toUpperCase:()=>g6,toLowerCase:()=>v6,toJSONSchema:()=>v4,templateLiteral:()=>sX,symbol:()=>CX,superRefine:()=>EW,success:()=>tX,stringbool:()=>NG,stringFormat:()=>EX,string:()=>b,strictObject:()=>iX,startsWith:()=>t4,slugify:()=>_6,size:()=>ev,setErrorMap:()=>gY,set:()=>rX,safeParseAsync:()=>M0,safeParse:()=>U_,safeEncodeAsync:()=>y0,safeEncode:()=>u0,safeDecodeAsync:()=>l0,safeDecode:()=>f0,registry:()=>sD,regexes:()=>T$,regex:()=>r4,refine:()=>HW,record:()=>k,readonly:()=>KW,property:()=>HU,promise:()=>$G,prettifyError:()=>vN,preprocess:()=>gv,prefault:()=>wW,positive:()=>VU,pipe:()=>J_,partialRecord:()=>nX,parseAsync:()=>T0,parse:()=>Z0,overwrite:()=>R$,optional:()=>M,object:()=>w,number:()=>V,nullish:()=>oX,nullable:()=>b_,null:()=>h$,normalize:()=>s4,nonpositive:()=>PU,nonoptional:()=>XW,nonnegative:()=>FU,never:()=>$1,negative:()=>BU,nativeEnum:()=>dX,nanoid:()=>zX,nan:()=>aX,multipleOf:()=>Vv,minSize:()=>m$,minLength:()=>$v,mime:()=>e4,meta:()=>DG,maxSize:()=>Bv,maxLength:()=>sv,map:()=>cX,mac:()=>YX,lte:()=>k$,lt:()=>l$,lowercase:()=>d4,looseRecord:()=>hX,looseObject:()=>R,locales:()=>g_,literal:()=>j,length:()=>$4,lazy:()=>kv,ksuid:()=>OX,keyof:()=>lX,jwt:()=>HX,json:()=>bG,iso:()=>S$,ipv6:()=>QX,ipv4:()=>jX,intersection:()=>x$,int64:()=>RX,int32:()=>TX,int:()=>LU,instanceof:()=>UG,includes:()=>o4,httpUrl:()=>bX,hostname:()=>kX,hex:()=>SX,hash:()=>AX,guid:()=>_X,gte:()=>j$,gt:()=>i$,globalRegistry:()=>U$,getErrorMap:()=>_Y,function:()=>vG,fromJSONSchema:()=>zG,formatError:()=>cg,float64:()=>ZX,float32:()=>qX,flattenError:()=>hg,file:()=>pX,exactOptional:()=>NW,enum:()=>x,endsWith:()=>a4,encodeAsync:()=>x0,encode:()=>L0,emoji:()=>JX,email:()=>CU,e164:()=>FX,discriminatedUnion:()=>Ev,describe:()=>IG,decodeAsync:()=>C0,decode:()=>R0,date:()=>yX,custom:()=>_G,cuid2:()=>wX,cuid:()=>WX,core:()=>vv,config:()=>$$,coerce:()=>j_,codec:()=>eX,clone:()=>O$,cidrv6:()=>VX,cidrv4:()=>KX,check:()=>gG,catch:()=>jW,boolean:()=>S,bigint:()=>LX,base64url:()=>PX,base64:()=>BX,array:()=>O,any:()=>sU,_function:()=>vG,_default:()=>zW,_ZodString:()=>RU,ZodXor:()=>t0,ZodXID:()=>mU,ZodVoid:()=>p0,ZodUnknown:()=>r0,ZodUnion:()=>X_,ZodUndefined:()=>n0,ZodUUID:()=>n$,ZodURL:()=>z_,ZodULID:()=>iU,ZodType:()=>u,ZodTuple:()=>s0,ZodTransform:()=>DW,ZodTemplateLiteral:()=>VW,ZodSymbol:()=>m0,ZodSuccess:()=>GW,ZodStringFormat:()=>h,ZodString:()=>N6,ZodSet:()=>gW,ZodRecord:()=>G_,ZodRealError:()=>P$,ZodReadonly:()=>QW,ZodPromise:()=>PW,ZodPrefault:()=>WW,ZodPipe:()=>I1,ZodOptional:()=>g1,ZodObject:()=>w_,ZodNumberFormat:()=>g4,ZodNumber:()=>z6,ZodNullable:()=>bW,ZodNull:()=>h0,ZodNonOptional:()=>_1,ZodNever:()=>d0,ZodNanoID:()=>fU,ZodNaN:()=>YW,ZodMap:()=>vW,ZodMAC:()=>i0,ZodLiteral:()=>_W,ZodLazy:()=>BW,ZodKSUID:()=>nU,ZodJWT:()=>aU,ZodIssueCode:()=>SW,ZodIntersection:()=>e0,ZodISOTime:()=>TU,ZodISODuration:()=>MU,ZodISODateTime:()=>qU,ZodISODate:()=>ZU,ZodIPv6:()=>cU,ZodIPv4:()=>hU,ZodGUID:()=>N_,ZodFunction:()=>FW,ZodFirstPartyTypeKind:()=>kW,ZodFile:()=>IW,ZodExactOptional:()=>UW,ZodError:()=>$Y,ZodEnum:()=>U6,ZodEmoji:()=>uU,ZodEmail:()=>xU,ZodE164:()=>tU,ZodDiscriminatedUnion:()=>a0,ZodDefault:()=>JW,ZodDate:()=>W_,ZodCustomStringFormat:()=>J6,ZodCustom:()=>O_,ZodCodec:()=>D1,ZodCatch:()=>OW,ZodCUID2:()=>lU,ZodCUID:()=>yU,ZodCIDRv6:()=>dU,ZodCIDRv4:()=>rU,ZodBoolean:()=>W6,ZodBigIntFormat:()=>eU,ZodBigInt:()=>w6,ZodBase64URL:()=>oU,ZodBase64:()=>pU,ZodArray:()=>o0,ZodAny:()=>c0,TimePrecision:()=>Dz,NEVER:()=>Cg,$output:()=>sJ,$input:()=>$z,$brand:()=>h1});var vv={};e$(vv,{version:()=>tN,util:()=>H,treeifyError:()=>$N,toJSONSchema:()=>v4,toDotPath:()=>kw,safeParseAsync:()=>_N,safeParse:()=>gN,safeEncodeAsync:()=>Dj,safeEncode:()=>_j,safeDecodeAsyLine truncated
`)}var l4=($)=>(g,_,D,v)=>{let I=D?Object.assign(D,{async:!1}):{async:!1},U=g._zod.run({value:_,issues:[]},I);if(U instanceof Promise)throw new y$;if(U.issues.length){let N=new(v?.Err??$)(U.issues.map((J)=>V$(J,I,$$())));throw qD(N,v?.callee),N}return U.value},ZD=l4(B$),i4=($)=>async(g,_,D,v)=>{let I=D?Object.assign(D,{async:!0}):{async:!0},U=g._zod.run({value:_,issues:[]},I);if(U instanceof Promise)U=await U;if(U.issues.length){let N=new(v?.Err??$)(U.issues.map((J)=>V$(J,I,$$())));throw qD(N,v?.callee),N}return U.value},TD=i4(B$),m4=($)=>(g,_,D)=>{let v=D?{...D,async:!1}:{async:!1},I=g._zod.run({value:_,issues:[]},v);if(I instanceof Promise)throw new y$;return I.issues.length?{success:!1,error:new($??ng)(I.issues.map((U)=>V$(U,v,$$())))}:{success:!0,data:I.value}},gN=m4(B$),n4=($)=>async(g,_,D)=>{let v=D?Object.assign(D,{async:!0}):{async:!0},I=g._zod.run({value:_,issues:[]},v);if(I instanceof Promise)I=await I;return I.issues.length?{success:!1,error:new $(I.issues.map((U)=>V$(U,v,$$())))}:{success:!0,data:I.value}},_N=n4(B$),MD=($)=>(g,_,D)=>{let v=D?Object.assign(D,{direction:"backward"}):{direction:"backward"};return l4($)(g,_,v)},sO=MD(B$),LD=($)=>(g,_,D)=>{return l4($)(g,_,D)},$j=LD(B$),RD=($)=>async(g,_,D)=>{let v=D?Object.assign(D,{direction:"backward"}):{direction:"backward"};return i4($)(g,_,v)},vj=RD(B$),xD=($)=>async(g,_,D)=>{return i4($)(g,_,D)},gj=xD(B$),CD=($)=>(g,_,D)=>{let v=D?Object.assign(D,{direction:"backward"}):{direction:"backward"};return m4($)(g,_,v)},_j=CD(B$),uD=($)=>(g,_,D)=>{return m4($)(g,_,D)},Ij=uD(B$),fD=($)=>async(g,_,D)=>{let v=D?Object.assign(D,{direction:"backward"}):{direction:"backward"};return n4($)(g,_,v)},Dj=fD(B$),yD=($)=>async(g,_,D)=>{return n4($)(g,_,D)},Uj=yD(B$);var T$={};e$(T$,{xid:()=>NN,uuid7:()=>zj,uuid6:()=>Jj,uuid4:()=>bj,uuid:()=>tv,uppercase:()=>TN,unicodeEmail:()=>Sw,undefined:()=>qN,ulid:()=>UN,time:()=>PN,string:()=>HN,sha512_hex:()=>Tj,sha512_base64url:()=>Lj,sha512_base64:()=>Mj,sha384_hex:()=>Aj,sha384_base64url:()=>Zj,sha384_base64:()=>qj,sha256_hex:()=>Ej,sha256_base64url:()=>Sj,sha256_base64:()=>kj,sha1_hex:()=>Pj,sha1_base64url:()=>Hj,sha1_base64:()=>Fj,rfc5322Email:()=>wj,number:()=>rg,null:()=>AN,nanoid:()=>JN,md5_hex:()=>Kj,md5_base64url:()=>Bj,md5_base64:()=>Vj,mac:()=>jN,lowercase:()=>ZN,ksuid:()=>bN,ipv6:()=>ON,ipv4:()=>GN,integer:()=>kN,idnEmail:()=>Xj,html5Email:()=>Wj,hostname:()=>jj,hex:()=>Qj,guid:()=>WN,extendedDuration:()=>Nj,emoji:()=>XN,email:()=>wN,e164:()=>VN,duration:()=>zN,domain:()=>Yj,datetime:()=>FN,date:()=>BN,cuid2:()=>DN,cuid:()=>IN,cidrv6:()=>QN,cidrv4:()=>YN,browserEmail:()=>Gj,boolean:()=>SN,bigint:()=>EN,base64url:()=>lD,base64:()=>KN});var IN=/^[cC][^\s-]{8,}$/,DN=/^[0-9a-z]+$/,UN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,NN=/^[0-9a-vA-V]{20}$/,bN=/^[A-Za-z0-9]{27}$/,JN=/^[a-zA-Z0-9_-]{21}$/,zN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Nj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[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a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Oj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function XN(){return new RegExp(Oj,"u")}var GN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ON=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jN=($)=>{let g=Z$($??":");return new RegExp(`^(?:[0-9A-F]{2}${g}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${g}){5}[0-9a-f]{2}$`)},YN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1Line truncated
`).filter((I)=>I),D=Math.min(..._.map((I)=>I.length-I.trimStart().length)),v=_.map((I)=>I.slice(D)).map((I)=>" ".repeat(this.indent*2)+I);for(let I of v)this.content.push(I)}compile(){let $=Function,g=this?.args,D=[...(this?.content??[""]).map((v)=>` ${v}`)];return new $(...g,D.join(`
`))}}var tN={major:4,minor:3,patch:5};var C=G("$ZodType",($,g)=>{var _;$??($={}),$._zod.def=g,$._zod.bag=$._zod.bag||{},$._zod.version=tN;let D=[...$._zod.def.checks??[]];if($._zod.traits.has("$ZodCheck"))D.unshift($);for(let v of D)for(let I of v._zod.onattach)I($);if(D.length===0)(_=$._zod).deferred??(_.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let v=(U,N,J)=>{let z=Kv(U),X;for(let Y of N){if(Y._zod.def.when){if(!Y._zod.def.when(U))continue}else if(z)continue;let K=U.issues.length,B=Y._zod.check(U);if(B instanceof Promise&&J?.async===!1)throw new y$;if(X||B instanceof Promise)X=(X??Promise.resolve()).then(async()=>{if(await B,U.issues.length===K)return;if(!z)z=Kv(U,K)});else{if(U.issues.length===K)continue;if(!z)z=Kv(U,K)}}if(X)return X.then(()=>{return U});return U},I=(U,N,J)=>{if(Kv(U))return U.aborted=!0,U;let z=v(N,D,J);if(z instanceof Promise){if(J.async===!1)throw new y$;return z.then((X)=>$._zod.parse(X,J))}return $._zod.parse(z,J)};$._zod.run=(U,N)=>{if(N.skipChecks)return $._zod.parse(U,N);if(N.direction==="backward"){let z=$._zod.parse({value:U.value,issues:[]},{...N,skipChecks:!0});if(z instanceof Promise)return z.then((X)=>{return I(X,U,N)});return I(z,U,N)}let J=$._zod.parse(U,N);if(J instanceof Promise){if(N.async===!1)throw new y$;return J.then((z)=>v(z,D,N))}return v(J,D,N)}}f($,"~standard",()=>({validate:(v)=>{try{let I=gN($,v);return I.success?{value:I.data}:{issues:I.error?.issues}}catch(I){return _N($,v).then((U)=>U.success?{value:U.data}:{issues:U.error?.issues})}},vendor:"zod",version:1}))}),av=G("$ZodString",($,g)=>{C.init($,g),$._zod.pattern=[...$?._zod.bag?.patterns??[]].pop()??HN($._zod.bag),$._zod.parse=(_,D)=>{if(g.coerce)try{_.value=String(_.value)}catch(v){}if(typeof _.value==="string")return _;return _.issues.push({expected:"string",code:"invalid_type",input:_.value,inst:$}),_}}),n=G("$ZodStringFormat",($,g)=>{h4.init($,g),av.init($,g)}),eN=G("$ZodGUID",($,g)=>{g.pattern??(g.pattern=WN),n.init($,g)}),sN=G("$ZodUUID",($,g)=>{if(g.version){let D={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[g.version];if(D===void 0)throw Error(`Invalid UUID version: "${g.version}"`);g.pattern??(g.pattern=tv(D))}else g.pattern??(g.pattern=tv());n.init($,g)}),$b=G("$ZodEmail",($,g)=>{g.pattern??(g.pattern=wN),n.init($,g)}),vb=G("$ZodURL",($,g)=>{n.init($,g),$._zod.check=(_)=>{try{let D=_.value.trim(),v=new URL(D);if(g.hostname){if(g.hostname.lastIndex=0,!g.hostname.test(v.hostname))_.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:g.hostname.source,input:_.value,inst:$,continue:!g.abort})}if(g.protocol){if(g.protocol.lastIndex=0,!g.protocol.test(v.protocol.endsWith(":")?v.protocol.slice(0,-1):v.protocol))_.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:g.protocol.source,input:_.value,inst:$,continue:!g.abort})}if(g.normalize)_.value=v.href;else _.value=D;return}catch(D){_.issues.push({code:"invalid_format",format:"url",input:_.value,inst:$,continue:!g.abort})}}}),gb=G("$ZodEmoji",($,g)=>{g.pattern??(g.pattern=XN()),n.init($,g)}),_b=G("$ZodNanoID",($,g)=>{g.pattern??(g.pattern=JN),n.init($,g)}),Ib=G("$ZodCUID",($,g)=>{g.pattern??(g.pattern=IN),n.init($,g)}),Db=G("$ZodCUID2",($,g)=>{g.pattern??(g.pattern=DN),n.init($,g)}),Ub=G("$ZodULID",($,g)=>{g.pattern??(g.pattern=UN),n.init($,g)}),Nb=G("$ZodXID",($,g)=>{g.pattern??(g.pattern=NN),n.init($,g)}),bb=G("$ZodKSUID",($,g)=>{g.pattern??(g.pattern=bN),n.init($,g)}),Jb=G("$ZodISODateTime",($,g)=>{g.pattern??(g.pattern=FN(g)),n.init($,g)}),zb=G("$ZodISODate",($,g)=>{g.pattern??(g.pattern=BN),n.init($,g)}),Wb=G("$ZodISOTime",($,g)=>{g.pattern??(g.pattern=PN(g)),n.init($,g)}),wb=G("$ZodISODuration",($,g)=>{g.pattern??(g.pattern=zN),n.init($,g)}),Xb=G("$ZodIPv4",($,g)=>{g.pattern??(g.pattern=GN),n.init($,g),$._zod.bag.format="ipv4"}),Gb=G("$ZodIPv6",($,g)=>{g.pattern??(g.pattern=ON),n.init($,g),$._zod.bag.format="ipv6",$._zod.check=(_)=>{try{new URL(`http://[${_.value}]`)}catch{_.issues.push({code:"invalid_format",format:"ipv6",input:_.value,inst:$,continue:!g.abort})}}}),Ob=G("$ZodMAC",($,g)=>{g.pattern??(g.pattern=jN(g.delimiter)),n.init($,g),$._zod.bag.format="mac"}),jb=G("$ZodCIDRv4",($,g)=>{g.pattern??(g.pattern=YN),n.init($,g)}),Yb=G("$ZodCIDRv6",($,g)=>{g.pattern??(g.pattern=QN),n.init($,g),$._zod.check=(_)=>{let D=_.value.split("/");try{if(D.length!==2)throw Error();let[v,I]=D;if(!I)throw Error();let U=Number(I);if(`${U}`!==I)throw Error();if(U<0||U>128)throw Error();new URL(`http://[${v}]`)}catch{_.issues.push({code:"invalid_format",format:"cidrv6",input:_.value,inst:$,continue:!g.abort})}}});function Qb($){if($==="")return!0;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}}var Kb=G("$ZodBase64",($,g)=>{g.pattern??(g.pattern=KN),n.init($,g),$._zod.bag.contentEncoding="base64",$._zod.check=(_)=>{if(Qb(_.value))return;_.issues.push({code:"invalid_format",format:"base64",input:_.value,inst:$,continue:!g.abort})}});function hw($){if(!lD.test($))reLine truncated
if (${p}.issues.length) {
if (${g$} in input) {
payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
...iss,
path: iss.path ? [${g$}, ...iss.path] : [${g$}]
})));
}
}
if (${p}.value === undefined) {
if (${g$} in input) {
newResult[${g$}] = undefined;
}
} else {
newResult[${g$}] = ${p}.value;
}
`);else B.write(`
if (${p}.issues.length) {
payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
...iss,
path: iss.path ? [${g$}, ...iss.path] : [${g$}]
})));
}
if (${p}.value === undefined) {
if (${g$} in input) {
newResult[${g$}] = undefined;
}
} else {
newResult[${g$}] = ${p}.value;
}
`)}B.write("payload.value = newResult;"),B.write("return payload;");let e=B.compile();return(m,p)=>e(K,m,p)},I,U=ov,N=!xg.jitless,z=N&&p1.value,X=g.catchall,Y;$._zod.parse=(K,B)=>{Y??(Y=D.value);let L=K.value;if(!U(L))return K.issues.push({expected:"object",code:"invalid_type",input:L,inst:$}),K;if(N&&z&&B?.async===!1&&B.jitless!==!0){if(!I)I=v(g.shape);if(K=I(K,B),!X)return K;return dw([],L,K,B,Y,$)}return _(K,B)}});function Rw($,g,_,D){for(let I of $)if(I.issues.length===0)return g.value=I.value,g;let v=$.filter((I)=>!Kv(I));if(v.length===1)return g.value=v[0].value,v[0];return g.issues.push({code:"invalid_union",input:g.value,inst:_,errors:$.map((I)=>I.issues.map((U)=>V$(U,D,$$())))}),g}var tg=G("$ZodUnion",($,g)=>{C.init($,g),f($._zod,"optin",()=>g.options.some((v)=>v._zod.optin==="optional")?"optional":void 0),f($._zod,"optout",()=>g.options.some((v)=>v._zod.optout==="optional")?"optional":void 0),f($._zod,"values",()=>{if(g.options.every((v)=>v._zod.values))return new Set(g.options.flatMap((v)=>Array.from(v._zod.values)));return}),f($._zod,"pattern",()=>{if(g.options.every((v)=>v._zod.pattern)){let v=g.options.map((I)=>I._zod.pattern);return new RegExp(`^(${v.map((I)=>yg(I.source)).join("|")})$`)}return});let _=g.options.length===1,D=g.options[0]._zod.run;$._zod.parse=(v,I)=>{if(_)return D(v,I);let U=!1,N=[];for(let J of g.options){let z=J._zod.run({value:v.value,issues:[]},I);if(z instanceof Promise)N.push(z),U=!0;else{if(z.issues.length===0)return z;N.push(z)}}if(!U)return Rw(N,v,$,I);return Promise.all(N).then((J)=>{return Rw(J,v,$,I)})}});function xw($,g,_,D){let v=$.filter((I)=>I.issues.length===0);if(v.length===1)return g.value=v[0].value,g;if(v.length===0)g.issues.push({code:"invalid_union",input:g.value,inst:_,errors:$.map((I)=>I.issues.map((U)=>V$(U,D,$$())))});else g.issues.push({code:"invalid_union",input:g.value,inst:_,errors:[],inclusive:!1});return g}var Cb=G("$ZodXor",($,g)=>{tg.init($,g),g.inclusive=!1;let _=g.options.length===1,D=g.options[0]._zod.run;$._zod.parse=(v,I)=>{if(_)return D(v,I);let U=!1,N=[];for(let J of g.options){let z=J._zod.run({value:v.value,issues:[]},I);if(z instanceof Promise)N.push(z),U=!0;else N.push(z)}if(!U)return xw(N,v,$,I);return Promise.all(N).then((J)=>{return xw(J,v,$,I)})}}),ub=G("$ZodDiscriminatedUnion",($,g)=>{g.inclusive=!1,tg.init($,g);let _=$._zod.parse;f($._zod,"propValues",()=>{let v={};for(let I of g.options){let U=I._zod.propValues;if(!U||Object.keys(U).length===0)throw Error(`Invalid discriminated union option at index "${g.options.indexOf(I)}"`);for(let[N,J]of Object.entries(U)){if(!v[N])v[N]=new Set;for(let z of J)v[N].add(z)}}return v});let D=f4(()=>{let v=g.options,I=new Map;for(let U of v){let N=U._zod.propValues?.[g.discriminator];if(!N||N.size===0)throw Error(`Invalid discriminated union option at index "${g.options.indexOf(U)}"`);for(let J of N){if(I.has(J))throw Error(`Duplicate discriminator value "${String(J)}"`);I.set(J,U)}}return I});$._zod.parse=(v,I)=>{let U=v.value;if(!ov(U))return v.issues.push({code:"invalid_type",expected:"object",input:U,inst:$}),v;let N=D.value.get(U?.[g.discriminator]);if(N)return N._zod.run(v,I);if(g.unionFallback)return _(v,I);return v.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:g.discriminator,input:U,path:[g.discriminator],inst:$}),v}}),fb=G("$ZodIntersection",($,g)=>{C.init($,g),$._zod.parse=(_,D)=>{let v=_.value,I=g.left._zod.run({value:v,issues:[]},D),U=g.right._zod.run({value:v,issues:[]},D);if(I instanceof Promise||U instanceof Promise)return Promise.all([I,U]).then(([J,z])=>{return Cw(_,J,z)});return Cw(_,I,U)}});function aN($,g){if($===g)return{valid:!0,data:$};if($ instanceof Date&&g instanceof Date&&+$===+g)return{valid:!0,data:$};if(Qv($)&&Qv(g)){let _=Object.keys(g),D=Object.keys($).filter((I)=>_.indexOf(I)!==-1),v={...$,...g};for(let I of D){let U=aN($[I],g[I]);if(!U.valid)return{valid:!1,mergeErrorPath:[I,...U.mergeErrorPath]};v[I]=U.data}return{valid:!0,data:v}}if(Array.isArray($)&&Array.isArray(g)){if($.length!==g.length)return{valid:!1,mergeErrorPath:[]};let _=[];for(let D=0;D<$.length;D++){let v=$[D],I=g[D],U=aN(v,I);if(!U.valid)return{valid:!1,mergeErrorPath:[D,...U.mergeErrorPath]};_.push(U.data)}return{valid:!0,data:_}}return{valid:!1,mergeErrorPath:[]}}function Cw($,g,_){let D=new Map,v;for(let N of g.issues)if(N.code==="unrecognized_keys"){v??(v=N);for(let J of N.keys){if(!D.has(J))D.set(J,{});D.get(J).l=!0}}else $.issues.push(N);for(let N of _.issues)if(N.code==="unrecognized_keys")for(let J of N.keys){if(!D.has(J))D.set(J,{});D.get(J).r=!0}else $.issues.push(N);let I=[...D].filter(([,N])=>N.l&&N.r).map(([N])=>N);if(I.length&&v)$.issues.push({...v,keys:I});if(Kv($))return $;let U=aN(g.value,_.value);if(!U.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(U.mergeErrorPath)}`);return $.value=U.data,$}var aD=G("$ZodTuple",($,g)=>{C.init($,g);let _=g.items;$._zod.parse=(D,v)=>{let I=D.value;if(!Array.isArraLine truncated
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let U of $.seen.entries()){let N=U[1];if(g===U[0]){I(U);continue}if($.external){let z=$.external.registry.get(U[0])?.id;if(g!==U[0]&&z){I(U);continue}}if($.metadataRegistry.get(U[0])?.id){I(U);continue}if(N.cycle){I(U);continue}if(N.count>1){if($.reused==="ref"){I(U);continue}}}}function Hv($,g){let _=$.seen.get(g);if(!_)throw Error("Unprocessed schema. This is a bug in Zod.");let D=(U)=>{let N=$.seen.get(U);if(N.ref===null)return;let J=N.def??N.schema,z={...J},X=N.ref;if(N.ref=null,X){D(X);let K=$.seen.get(X),B=K.schema;if(B.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))J.allOf=J.allOf??[],J.allOf.push(B);else Object.assign(J,B);if(Object.assign(J,z),U._zod.parent===X)for(let Z in J){if(Z==="$ref"||Z==="allOf")continue;if(!(Z in z))delete J[Z]}if(B.$ref)for(let Z in J){if(Z==="$ref"||Z==="allOf")continue;if(Z in K.def&&JSON.stringify(J[Z])===JSON.stringify(K.def[Z]))delete J[Z]}}let Y=U._zod.parent;if(Y&&Y!==X){D(Y);let K=$.seen.get(Y);if(K?.schema.$ref){if(J.$ref=K.schema.$ref,K.def)for(let B in J){if(B==="$ref"||B==="allOf")continue;if(B in K.def&&JSON.stringify(J[B])===JSON.stringify(K.def[B]))delete J[B]}}}$.override({zodSchema:U,jsonSchema:J,path:N.path??[]})};for(let U of[...$.seen.entries()].reverse())D(U[0]);let v={};if($.target==="draft-2020-12")v.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")v.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")v.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let U=$.external.registry.get(g)?.id;if(!U)throw Error("Schema is missing an `id` property");v.$id=$.external.uri(U)}Object.assign(v,_.def??_.schema);let I=$.external?.defs??{};for(let U of $.seen.entries()){let N=U[1];if(N.def&&N.defId)I[N.defId]=N.def}if($.external);else if(Object.keys(I).length>0)if($.target==="draft-2020-12")v.$defs=I;else v.definitions=I;try{let U=JSON.parse(JSON.stringify(v));return Object.defineProperty(U,"~standard",{value:{...g["~standard"],jsonSchema:{input:D6(g,"input",$.processors),output:D6(g,"output",$.processors)}},enumerable:!1,writable:!1}),U}catch(U){throw Error("Error converting schema to JSON.")}}function Y$($,g){let _=g??{seen:new Set};if(_.seen.has($))return!1;_.seen.add($);let D=$._zod.def;if(D.type==="transform")return!0;if(D.type==="array")return Y$(D.element,_);if(D.type==="set")return Y$(D.valueType,_);if(D.type==="lazy")return Y$(D.getter(),_);if(D.type==="promise"||D.type==="optional"||D.type==="nonoptional"||D.type==="nullable"||D.type==="readonly"||D.type==="default"||D.type==="prefault")return Y$(D.innerType,_);if(D.type==="intersection")return Y$(D.left,_)||Y$(D.right,_);if(D.type==="record"||D.type==="map")return Y$(D.keyType,_)||Y$(D.valueType,_);if(D.type==="pipe")return Y$(D.in,_)||Y$(D.out,_);if(D.type==="object"){for(let v in D.shape)if(Y$(D.shape[v],_))return!0;return!1}if(D.type==="union"){for(let v of D.options)if(Y$(v,_))return!0;return!1}if(D.type==="tuple"){for(let v of D.items)if(Y$(v,_))return!0;if(D.rest&&Y$(D.rest,_))return!0;return!1}return!1}var iz=($,g={})=>(_)=>{let D=Pv({..._,processors:g});return i($,D),Fv(D,$),Hv(D,$)},D6=($,g,_={})=>(D)=>{let{libraryOptions:v,target:I}=D??{},U=Pv({...v??{},target:I,io:g,processors:_});return i($,U),Fv(U,$),Hv(U,$)};var e2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},mz=($,g,_,D)=>{let v=_;v.type="string";let{minimum:I,maximum:U,format:N,patterns:J,contentEncoding:z}=$._zod.bag;if(typeof I==="number")v.minLength=I;if(typeof U==="number")v.maxLength=U;if(N){if(v.format=e2[N]??N,v.format==="")delete v.format;if(N==="time")delete v.format}if(z)v.contentEncoding=z;if(J&&J.size>0){let X=[...J];if(X.length===1)v.pattern=X[0].source;else if(X.length>1)v.allOf=[...X.map((Y)=>({...g.target==="draft-07"||g.target==="draft-04"||g.target==="openapi-3.0"?{type:"string"}:{},pattern:Y.source}))]}},nz=($,g,_,D)=>{let v=_,{minimum:I,maximum:U,format:N,multipleOf:J,exclusiveMaximum:z,exclusiveMinimum:X}=$._zod.bag;if(typeof N==="string"&&N.includes("int"))v.type="integer";else v.type="number";if(typeof X==="number")if(g.target==="draft-04"||g.target==="openapi-3.0")v.minimum=X,v.exclusiveMinimum=!0;else v.exclusiveMinimum=X;if(typeof I==="number"){if(v.minimum=I,typeof X==="number"&&g.target!=="draft-04")if(X>=I)delete v.minimum;else delete v.exclusiveMinimum}if(typeof z==="number")if(g.target==="draft-04"||g.target==="openapi-3.0")v.maximum=z,v.exclusiveMaximum=!0;else v.exclusiveMaximum=z;if(typeof U==="number"){if(v.maximum=U,typeof z==="number"&&g.target!=="draft-04")if(z<=U)delete v.maximum;else delete v.exclusiveMaximum}if(typeof J==="number")v.multipleOf=J},hz=($,g,_,D)=>{_.type="boolean"},cz=($,g,_,D)=>{if(g.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},rz=($,g,_,D)=>{if(g.unrepresentable==="throw")Line truncated
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var AQ=Yw(($)=>{var g=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,_=/\\([\u000b\u0020-\u00ff])/g,D=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;$.parse=v;function v(N){if(!N)throw TypeError("argument string is required");var J=typeof N==="object"?I(N):N;if(typeof J!=="string")throw TypeError("argument string is required to be a string");var z=J.indexOf(";"),X=z!==-1?J.slice(0,z).trim():J.trim();if(!D.test(X))throw TypeError("invalid media type");var Y=new U(X.toLowerCase());if(z!==-1){var K,B,L;g.lastIndex=z;while(B=g.exec(J)){if(B.index!==z)throw TypeError("invalid parameter format");if(z+=B[0].length,K=B[1].toLowerCase(),L=B[2],L.charCodeAt(0)===34){if(L=L.slice(1,-1),L.indexOf("\\")!==-1)L=L.replace(_,"$1")}Y.parameters[K]=L}if(z!==J.length)throw TypeError("invalid parameter format")}return Y}function I(N){var J;if(typeof N.getHeader==="function")J=N.getHeader("content-type");else if(typeof N.headers==="object")J=N.headers&&N.headers["content-type"];if(typeof J!=="string")throw TypeError("content-type header is missing from object");return J}function U(N){this.parameters=Object.create(null),this.type=N}}),n3=Kw(AQ(),1);var $5=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");var qQ=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ZQ=[0,31,28,31,30,31,30,31,31,30,31,30,31],TQ=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,MQ=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,LQ=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\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}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,CQ=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,uQ=/^(?:\/(?:[^~/]|~0|~1)*)*$/,fQ=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,yQ=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,lQ=($)=>{if($[0]==='"')return!1;let[g,_,...D]=$.split("@");if(!g||!_||D.length!==0||g.length>64||_.length>253)return!1;if(g[0]==="."||g.endsWith(".")||g.includes(".."))return!1;if(!/^[a-z0-9.-]+$/i.test(_)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(g))return!1;return _.split(".").every((v)=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(v))},iQ=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,mQ=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5Line truncated
Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),W.union([W.string(),W.undefined()]).describe(`Style variables for theming MCP apps.
Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),V9=W.object({method:W.literal("ui/open-link"),params:W.object({url:W.string().describe("URL to open in the host's browser")})}),vw=W.object({isError:W.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),gw=W.object({isError:W.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),_w=W.object({isError:W.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),B9=W.object({method:W.literal("ui/notifications/sandbox-proxy-ready"),params:W.object({})}),i1=W.object({connectDomains:W.array(W.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
- Maps to CSP \`connect-src\` directive
- Empty or omitted → no network connections (secure default)`),resourceDomains:W.array(W.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:W.array(W.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:W.array(W.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),m1=W.object({camera:W.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:W.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:W.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:W.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),P9=W.object({method:W.literal("ui/notifications/size-changed"),params:W.object({width:W.number().optional().describe("New width in pixels."),height:W.number().optional().describe("New height in pixels.")})}),Iw=W.object({method:W.literal("ui/notifications/tool-input"),params:W.object({arguments:W.record(W.string(),W.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Dw=W.object({method:W.literal("ui/notifications/tool-input-partial"),params:W.object({arguments:W.record(W.string(),W.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),Uw=W.object({method:W.literal("ui/notifications/tool-cancelled"),params:W.object({reason:W.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),zO=W.object({fonts:W.string().optional()}),WO=W.object({variables:K9.optional().describe("CSS variables for theming the app."),css:zO.optional().describe("CSS blocks that apps can inject.")}),Nw=W.object({method:W.literal("ui/resource-teardown"),params:W.object({})}),bw=W.record(W.string(),W.unknown()),$w=W.object({text:W.object({}).optional().describe("Host supports text content blocks."),image:W.object({}).optional().describe("Host supports image content blocks."),audio:W.object({}).optional().describe("Host supports audio content blocks."),resource:W.object({}).optional().describe("Host supports resource content blocks."),resourceLink:W.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:W.object({}).optional().describe("Host supports structured content.")}),F9=W.object({method:W.literal("ui/notifications/request-teardown"),params:W.object({}).optional()}),wO=W.object({experimental:W.record(W.string(),W.record(W.string(),W.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:W.object({}).optional().describe("Host supports opening external URLs."),downloadFile:W.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:W.object({listChanged:W.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:W.object({listChanged:W.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:W.object({}).optional().describe("Host accepts log messages."),sandbox:W.object({permissions:m1.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:i1.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:$w.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:$w.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:W.object({tools:W.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),XO=W.object({experimental:W.record(W.string(),W.record(W.string(),W.any()).describe("Experimental features keyed by identifier.")).optional().describe("ExperimentalLine truncated
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:W.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
- \`true\`: request visible border + background
- \`false\`: request no visible border + background
- omitted: host decides border`)}),k9=W.object({method:W.literal("ui/request-display-mode"),params:W.object({mode:l6.describe("The display mode being requested.")})}),Jw=W.object({mode:l6.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),GO=W.union([W.literal("model"),W.literal("app")]).describe("Tool visibility scope - who can access the tool."),S9=W.object({resourceUri:W.string().optional(),visibility:W.array(GO).optional().describe(`Who can access this tool. Default: ["model", "app"]
- "model": Tool visible to and callable by the agent
- "app": Tool callable by the app from this server only`),csp:W.never().optional(),permissions:W.never().optional()}),K7=W.object({mimeTypes:W.array(W.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),A9=W.object({method:W.literal("ui/download-file"),params:W.object({contents:W.array(W.union([X4,G4])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),q9=W.object({method:W.literal("ui/message"),params:W.object({role:W.literal("user").describe('Message role, currently only "user" is supported.'),content:W.array(p$).describe("Message content blocks (text, image, etc.).")})}),Z9=W.object({method:W.literal("ui/notifications/sandbox-resource-ready"),params:W.object({html:W.string().describe("HTML content to load into the inner iframe."),sandbox:W.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:i1.optional().describe("CSP configuration from resource metadata."),permissions:m1.optional().describe("Sandbox permissions from resource metadata.")})}),zw=W.object({method:W.literal("ui/notifications/tool-result"),params:Mv.describe("Standard MCP tool execution result.")}),Ww=W.object({toolInfo:W.object({id:C$.optional().describe("JSON-RPC id of the tools/call request."),tool:Tv.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:JO.optional().describe("Current color theme preference."),styles:WO.optional().describe("Style configuration for theming the app."),displayMode:l6.optional().describe("How the UI is currently displayed."),availableDisplayModes:W.array(l6).optional().describe("Display modes the host supports."),containerDimensions:W.union([W.object({height:W.number().describe("Fixed container height in pixels.")}),W.object({maxHeight:W.union([W.number(),W.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(W.union([W.object({width:W.number().describe("Fixed container width in pixels.")}),W.object({maxWidth:W.union([W.number(),W.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:W.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:W.string().optional().describe("User's timezone in IANA format."),userAgent:W.string().optional().describe("Host application identifier."),platform:W.union([W.literal("web"),W.literal("desktop"),W.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:W.object({touch:W.boolean().optional().describe("Whether the device supports touch input."),hover:W.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:W.object({top:W.number().describe("Top safe area inset in pixels."),right:W.number().describe("Right safe area inset in pixels."),bottom:W.number().describe("Bottom safe area inset in pixels."),left:W.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),ww=W.object({method:W.literal("ui/notifications/host-context-changed"),params:Ww.describe("Partial context update containing only changed fields.")}),T9=W.object({method:W.literal("ui/update-model-context"),params:W.object({content:W.array(p$).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:W.record(W.string(),W.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),M9=W.object({method:W.literal("ui/initialize"),params:W.object({appInfo:r$.describe("App identification (name and version)."),appCapabilities:XO.describe("Features and capabilities this app provides."),protocolVersion:W.string().describe("Protocol version this app supports.")})}),Xw=W.object({protocolVersion:W.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:r$.describe("Host application identification and version."),hostCapabilities:wO.describe("Features and capabilities provided by the host."),hostContext:Ww.describe("Rich context about the host environment.")}).passthrough();var L9={target:"draft-2020-12"};async function Gw($,g){let _=$["~standard"];if(_.jsonSchema)return _.jsonSchema[g](L9);throw Error(`Schema (vendor: ${_.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Ow($,g,_=""){let D=await $["~standard"].validate(g);if(D.issues){let v=D.issues.map((I)=>{let U=I.path?.map((N)=>typeof N==="object"?N.key:N).join(".");return U?`${U}: ${I.message}`:I.message}).join("; ");throw Error(_+v)}return D.value}function R9(){let $=document.documentElement.getAttribute("data-theme");if($==="dark"||$==="light")return $;return document.documentElement.classList.contains("dark")?"dark":"light"}function x9($){let g=document.documentElement;g.setAttribute("data-theme",$),g.style.colorScheme=$}function C9($,g=document.documentElement){for(let[_,D]of Object.entries($))if(D!==void 0)g.style.setProperty(_,D)}function u9($){if(document.getElementById("__mcp-host-fonts"))return;let _=document.createElement("style");_.id="__mcp-host-fonts",_.textContent=$,document.head.appendChild(_)}function f9($,g){let _={...$,...g};if(g.experimental!==void 0)_.experimental={...$.experimental,...g.experimental};if(g.tools!==void 0)_.tools={...$.tools,...g.tools};return _}class OO extends oW{_appInfo;_appCapabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_registeredEvents=new Set;_events=new y1;_methods=new tW;setRequestHandler=(...$)=>{let[g,..._]=aW("request",$)??$;this._methods.claim(g,"setRequestHandler"),super.setRequestHandler.call(this,g,..._)};setNotificationHandler=(...$)=>{let[g,..._]=aW("notification",$)??$;this._methods.claim(g,"setNotificationHandler"),super.setNotificationHandler.call(this,g,..._)};removeRequestHandler=($)=>{this._methods.release($),super.removeRequestHandler($)};removeNotificationHandler=($)=>{this._methods.release($),super.removeNotificationHandler($)};replaceRequestHandler=($,...g)=>{this._methods.replace($),super.setRequestHandler.call(this,$,...g)};_assertInitialized($){if(this._initializedSent)return;let g=`[ext-apps] App.${$}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(g);console.warn(`${g}. This will throw in a future release.`)}eventSchemas={toolinput:Iw,toolinputpartial:Dw,toolresult:zw,toolcancelled:Uw,hostcontextchanged:ww};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming($){if(!OO.ONE_SHOT_EVENTS.has($)||this._everHadListener.has($))return;if(this._everHadListener.add($),!this.Line truncated
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_I","2":"_K"},C:{"2":"_S"},D:{"2":"_Q"},E:{"2":"_R"},F:{"2":"_c"},G:{"2":"_3","132":"_s"},H:{"2":"1D"},I:{"2":"_P"},J:{"2":"D","132":"A"},K:{"2":"_FE H _tB","132":"aC"},L:{"2":"I"},M:{"2":"YC"},N:{"2":"_A"},O:{"2":"bC"},P:{"2":"_F"},Q:{"2":"JE"},R:{"2":"KE"},S:{"2":"_C"}},B:6,C:"AC-3 (Dolby Digital) and EC-3 (Dolby Digital Plus) codecs",D:false};
@@ -0,0 +1,73 @@
import { ScrollOffset } from '../offsets/presets.mjs';
/**
* Maps from ProgressIntersection pairs used by Motion's preset offsets to
* ViewTimeline named ranges. Returns undefined for unrecognised patterns,
* which signals the caller to fall back to JS-based scroll tracking.
*/
const presets = [
[ScrollOffset.Enter, "entry"],
[ScrollOffset.Exit, "exit"],
[ScrollOffset.Any, "cover"],
[ScrollOffset.All, "contain"],
];
const stringToProgress = {
start: 0,
end: 1,
};
function parseStringOffset(s) {
const parts = s.trim().split(/\s+/);
if (parts.length !== 2)
return undefined;
const a = stringToProgress[parts[0]];
const b = stringToProgress[parts[1]];
if (a === undefined || b === undefined)
return undefined;
return [a, b];
}
function normaliseOffset(offset) {
if (offset.length !== 2)
return undefined;
const result = [];
for (const item of offset) {
if (Array.isArray(item)) {
result.push(item);
}
else if (typeof item === "string") {
const parsed = parseStringOffset(item);
if (!parsed)
return undefined;
result.push(parsed);
}
else {
return undefined;
}
}
return result;
}
function matchesPreset(offset, preset) {
const normalised = normaliseOffset(offset);
if (!normalised)
return false;
for (let i = 0; i < 2; i++) {
const o = normalised[i];
const p = preset[i];
if (o[0] !== p[0] || o[1] !== p[1])
return false;
}
return true;
}
function offsetToViewTimelineRange(offset) {
if (!offset) {
return { rangeStart: "contain 0%", rangeEnd: "contain 100%" };
}
for (const [preset, name] of presets) {
if (matchesPreset(offset, preset)) {
return { rangeStart: `${name} 0%`, rangeEnd: `${name} 100%` };
}
}
return undefined;
}
export { offsetToViewTimelineRange };
//# sourceMappingURL=offset-to-range.mjs.map
@@ -0,0 +1,23 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const FlaskConical = createLucideIcon("FlaskConical", [
[
"path",
{
d: "M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",
key: "18mbvz"
}
],
["path", { d: "M6.453 15h11.094", key: "3shlmq" }],
["path", { d: "M8.5 2h7", key: "csnxdl" }]
]);
export { FlaskConical as default };
//# sourceMappingURL=flask-conical.js.map
@@ -0,0 +1,17 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.es2015_generator = void 0;
const base_config_1 = require("./base-config");
const es2015_iterable_1 = require("./es2015.iterable");
exports.es2015_generator = {
libs: [es2015_iterable_1.es2015_iterable],
variables: [
['Generator', base_config_1.TYPE],
['GeneratorFunction', base_config_1.TYPE],
['GeneratorFunctionConstructor', base_config_1.TYPE],
],
};
@@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const code_1 = require("../code");
const codegen_1 = require("../../compile/codegen");
const util_1 = require("../../compile/util");
const util_2 = require("../../compile/util");
const def = {
keyword: "patternProperties",
type: "object",
schemaType: "object",
code(cxt) {
const { gen, schema, data, parentSchema, it } = cxt;
const { opts } = it;
const patterns = (0, code_1.allSchemaProperties)(schema);
const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));
if (patterns.length === 0 ||
(alwaysValidPatterns.length === patterns.length &&
(!it.opts.unevaluated || it.props === true))) {
return;
}
const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
const valid = gen.name("valid");
if (it.props !== true && !(it.props instanceof codegen_1.Name)) {
it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
}
const { props } = it;
validatePatternProperties();
function validatePatternProperties() {
for (const pat of patterns) {
if (checkProperties)
checkMatchingProperties(pat);
if (it.allErrors) {
validateProperties(pat);
}
else {
gen.var(valid, true); // TODO var
validateProperties(pat);
gen.if(valid);
}
}
}
function checkMatchingProperties(pat) {
for (const prop in checkProperties) {
if (new RegExp(pat).test(prop)) {
(0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
}
}
}
function validateProperties(pat) {
gen.forIn("key", data, (key) => {
gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {
const alwaysValid = alwaysValidPatterns.includes(pat);
if (!alwaysValid) {
cxt.subschema({
keyword: "patternProperties",
schemaProp: pat,
dataProp: key,
dataPropType: util_2.Type.Str,
}, valid);
}
if (it.opts.unevaluated && props !== true) {
gen.assign((0, codegen_1._) `${props}[${key}]`, true);
}
else if (!alwaysValid && !it.allErrors) {
// can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)
// or if all properties were evaluated (props === true)
gen.if((0, codegen_1.not)(valid), () => gen.break());
}
});
});
}
},
};
exports.default = def;
//# sourceMappingURL=patternProperties.js.map
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const MoveDownLeft = createLucideIcon("MoveDownLeft", [
["path", { d: "M11 19H5V13", key: "1akmht" }],
["path", { d: "M19 5L5 19", key: "72u4yj" }]
]);
export { MoveDownLeft as default };
//# sourceMappingURL=move-down-left.js.map
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = readInputSourceMapFile;
function readInputSourceMapFile() {
throw new Error("Reading input source map files is not supported in browsers");
}
0 && 0;
//# sourceMappingURL=read-input-source-map-file-browser.js.map
@@ -0,0 +1,13 @@
import { OAuthServerProvider } from '../provider.js';
import { RequestHandler } from 'express';
import { Options as RateLimitOptions } from 'express-rate-limit';
export type RevocationHandlerOptions = {
provider: OAuthServerProvider;
/**
* Rate limiting configuration for the token revocation endpoint.
* Set to false to disable rate limiting for this endpoint.
*/
rateLimit?: Partial<RateLimitOptions> | false;
};
export declare function revocationHandler({ provider, rateLimit: rateLimitConfig }: RevocationHandlerOptions): RequestHandler;
//# sourceMappingURL=revoke.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"bar-chart.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_ZE","2":"_5B"},C:{"1":"_LF","2":"_q _ZG _L"},D:{"1":"_RL","2":"_MO"},E:{"1":"_QB","2":"_TB"},F:{"1":"_SI","2":"_HM"},G:{"1":"_BB","2":"_OB"},H:{"2":"1D"},I:{"1":"I","2":"_G"},J:{"2":"_B"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_hB","2":"_rC"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"ME","2":"LE"}},B:1,C:"\"once\" event listener option",D:true};
@@ -0,0 +1,14 @@
function stringify (obj, { EOL = '\n', finalEOL = true, replacer = null, spaces } = {}) {
const EOF = finalEOL ? EOL : ''
const str = JSON.stringify(obj, replacer, spaces)
return str.replace(/\n/g, EOL) + EOF
}
function stripBom (content) {
// we do this because JSON.parse would convert it to a utf8 string if encoding wasn't specified
if (Buffer.isBuffer(content)) content = content.toString('utf8')
return content.replace(/^\uFEFF/, '')
}
module.exports = { stringify, stripBom }
@@ -0,0 +1 @@
{"version":3,"file":"cloud-download.js","sources":["../../../src/icons/cloud-download.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name CloudDownload\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMTN2OGwtNC00IiAvPgogIDxwYXRoIGQ9Im0xMiAyMSA0LTQiIC8+CiAgPHBhdGggZD0iTTQuMzkzIDE1LjI2OUE3IDcgMCAxIDEgMTUuNzEgOGgxLjc5YTQuNSA0LjUgMCAwIDEgMi40MzYgOC4yODQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/cloud-download\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst CloudDownload = createLucideIcon('CloudDownload', [\n ['path', { d: 'M12 13v8l-4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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACjG,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,87 @@
/**
* @fileoverview Emits warnings for ESLint.
* @author Francesco Trotta
*/
"use strict";
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
/**
* A service that emits warnings for ESLint.
*/
class WarningService {
/**
* Creates a new instance of the service.
* @param {{ emitWarning?: ((warning: string, type: string) => void) | undefined }} [options] A function called internally to emit warnings using API provided by the runtime.
*/
constructor({
emitWarning = globalThis.process?.emitWarning ?? (() => {}),
} = {}) {
this.emitWarning = emitWarning;
}
/**
* Emits a warning when circular fixes are detected while fixing a file.
* This method is used by the Linter and is safe to call outside Node.js.
* @param {string} filename The name of the file being fixed.
* @returns {void}
*/
emitCircularFixesWarning(filename) {
this.emitWarning(
`Circular fixes detected while fixing ${filename}. It is likely that you have conflicting rules in your configuration.`,
"ESLintCircularFixesWarning",
);
}
/**
* Emits a warning when an empty config file has been loaded.
* @param {string} configFilePath The path to the config file.
* @returns {void}
*/
emitEmptyConfigWarning(configFilePath) {
this.emitWarning(
`Running ESLint with an empty config (from ${configFilePath}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,
"ESLintEmptyConfigWarning",
);
}
/**
* Emits a warning when an ".eslintignore" file is found.
* @returns {void}
*/
emitESLintIgnoreWarning() {
this.emitWarning(
'The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignore-files',
"ESLintIgnoreWarning",
);
}
/**
* Emits a warning when an inactive flag is used.
* This method is used by the Linter and is safe to call outside Node.js.
* @param {string} flag The name of the flag.
* @param {string} message The warning message.
* @returns {void}
*/
emitInactiveFlagWarning(flag, message) {
this.emitWarning(message, `ESLintInactiveFlag_${flag}`);
}
/**
* Emits a warning when a suboptimal concurrency setting is detected.
* Currently, this is only used to warn when the net linting ratio is low.
* @param {string} notice A notice about how to improve performance.
* @returns {void}
*/
emitPoorConcurrencyWarning(notice) {
this.emitWarning(
`You may ${notice} to improve performance.`,
"ESLintPoorConcurrencyWarning",
);
}
}
module.exports = { WarningService };
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2018 Framer B.V.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,729 @@
import { URL as URL$1 } from 'node:url';
import { Console } from 'node:console';
// SEE https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/interfaces.js
const LIVING_KEYS = [
"DOMException",
"EventTarget",
"NamedNodeMap",
"Node",
"Attr",
"Element",
"DocumentFragment",
"DOMImplementation",
"Document",
"XMLDocument",
"CharacterData",
"Text",
"CDATASection",
"ProcessingInstruction",
"Comment",
"DocumentType",
"NodeList",
"RadioNodeList",
"HTMLCollection",
"HTMLOptionsCollection",
"DOMStringMap",
"DOMTokenList",
"StyleSheetList",
"HTMLElement",
"HTMLHeadElement",
"HTMLTitleElement",
"HTMLBaseElement",
"HTMLLinkElement",
"HTMLMetaElement",
"HTMLStyleElement",
"HTMLBodyElement",
"HTMLHeadingElement",
"HTMLParagraphElement",
"HTMLHRElement",
"HTMLPreElement",
"HTMLUListElement",
"HTMLOListElement",
"HTMLLIElement",
"HTMLMenuElement",
"HTMLDListElement",
"HTMLDivElement",
"HTMLAnchorElement",
"HTMLAreaElement",
"HTMLBRElement",
"HTMLButtonElement",
"HTMLCanvasElement",
"HTMLDataElement",
"HTMLDataListElement",
"HTMLDetailsElement",
"HTMLDialogElement",
"HTMLDirectoryElement",
"HTMLFieldSetElement",
"HTMLFontElement",
"HTMLFormElement",
"HTMLHtmlElement",
"HTMLImageElement",
"HTMLInputElement",
"HTMLLabelElement",
"HTMLLegendElement",
"HTMLMapElement",
"HTMLMarqueeElement",
"HTMLMediaElement",
"HTMLMeterElement",
"HTMLModElement",
"HTMLOptGroupElement",
"HTMLOptionElement",
"HTMLOutputElement",
"HTMLPictureElement",
"HTMLProgressElement",
"HTMLQuoteElement",
"HTMLScriptElement",
"HTMLSelectElement",
"HTMLSlotElement",
"HTMLSourceElement",
"HTMLSpanElement",
"HTMLTableCaptionElement",
"HTMLTableCellElement",
"HTMLTableColElement",
"HTMLTableElement",
"HTMLTimeElement",
"HTMLTableRowElement",
"HTMLTableSectionElement",
"HTMLTemplateElement",
"HTMLTextAreaElement",
"HTMLUnknownElement",
"HTMLFrameElement",
"HTMLFrameSetElement",
"HTMLIFrameElement",
"HTMLEmbedElement",
"HTMLObjectElement",
"HTMLParamElement",
"HTMLVideoElement",
"HTMLAudioElement",
"HTMLTrackElement",
"HTMLFormControlsCollection",
"SVGElement",
"SVGGraphicsElement",
"SVGSVGElement",
"SVGTitleElement",
"SVGAnimatedString",
"SVGNumber",
"SVGStringList",
"Event",
"CloseEvent",
"CustomEvent",
"MessageEvent",
"ErrorEvent",
"HashChangeEvent",
"PopStateEvent",
"StorageEvent",
"ProgressEvent",
"PageTransitionEvent",
"SubmitEvent",
"UIEvent",
"FocusEvent",
"InputEvent",
"MouseEvent",
"KeyboardEvent",
"TouchEvent",
"CompositionEvent",
"WheelEvent",
"BarProp",
"External",
"Location",
"History",
"Screen",
"Crypto",
"Performance",
"Navigator",
"PluginArray",
"MimeTypeArray",
"Plugin",
"MimeType",
"FileReader",
"FormData",
"Blob",
"File",
"FileList",
"ValidityState",
"DOMParser",
"XMLSerializer",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",
"XMLHttpRequest",
"WebSocket",
"NodeFilter",
"NodeIterator",
"TreeWalker",
"AbstractRange",
"Range",
"StaticRange",
"Selection",
"Storage",
"CustomElementRegistry",
"ShadowRoot",
"MutationObserver",
"MutationRecord",
"Uint8Array",
"Uint16Array",
"Uint32Array",
"Uint8ClampedArray",
"Int8Array",
"Int16Array",
"Int32Array",
"Float32Array",
"Float64Array",
"ArrayBuffer",
"DOMRectReadOnly",
"DOMRect",
"Image",
"Audio",
"Option",
"CSS"
];
const OTHER_KEYS = [
"addEventListener",
"alert",
"blur",
"cancelAnimationFrame",
"close",
"confirm",
"createPopup",
"dispatchEvent",
"document",
"focus",
"frames",
"getComputedStyle",
"history",
"innerHeight",
"innerWidth",
"length",
"location",
"matchMedia",
"moveBy",
"moveTo",
"name",
"navigator",
"open",
"outerHeight",
"outerWidth",
"pageXOffset",
"pageYOffset",
"parent",
"postMessage",
"print",
"prompt",
"removeEventListener",
"requestAnimationFrame",
"resizeBy",
"resizeTo",
"screen",
"screenLeft",
"screenTop",
"screenX",
"screenY",
"scroll",
"scrollBy",
"scrollLeft",
"scrollTo",
"scrollTop",
"scrollX",
"scrollY",
"self",
"stop",
"top",
"Window",
"window"
];
const KEYS = LIVING_KEYS.concat(OTHER_KEYS);
const skipKeys = [
"window",
"self",
"top",
"parent"
];
function getWindowKeys(global, win, additionalKeys = []) {
const keysArray = [...additionalKeys, ...KEYS];
return new Set(keysArray.concat(Object.getOwnPropertyNames(win)).filter((k) => {
if (skipKeys.includes(k)) return false;
if (k in global) return keysArray.includes(k);
return true;
}));
}
function isClassLikeName(name) {
return name[0] === name[0].toUpperCase();
}
function populateGlobal(global, win, options = {}) {
const { bindFunctions = false } = options;
const keys = getWindowKeys(global, win, options.additionalKeys);
const originals = /* @__PURE__ */ new Map();
const overriddenKeys = new Set([...KEYS, ...options.additionalKeys || []]);
const overrideObject = /* @__PURE__ */ new Map();
for (const key of keys) {
const boundFunction = bindFunctions && typeof win[key] === "function" && !isClassLikeName(key) && win[key].bind(win);
if (overriddenKeys.has(key) && key in global) originals.set(key, global[key]);
Object.defineProperty(global, key, {
get() {
if (overrideObject.has(key)) return overrideObject.get(key);
if (boundFunction) return boundFunction;
return win[key];
},
set(v) {
overrideObject.set(key, v);
},
configurable: true
});
}
global.window = global;
global.self = global;
global.top = global;
global.parent = global;
if (global.global) global.global = global;
// rewrite defaultView to reference the same global context
if (global.document && global.document.defaultView) Object.defineProperty(global.document, "defaultView", {
get: () => global,
enumerable: true,
configurable: true
});
skipKeys.forEach((k) => keys.add(k));
return {
keys,
skipKeys,
originals
};
}
var edge = {
name: "edge-runtime",
viteEnvironment: "ssr",
async setupVM() {
const { EdgeVM } = await import('@edge-runtime/vm');
const vm = new EdgeVM({ extend: (context) => {
context.global = context;
context.Buffer = Buffer;
return context;
} });
return {
getVmContext() {
return vm.context;
},
teardown() {
// nothing to teardown
}
};
},
async setup(global) {
const { EdgeVM } = await import('@edge-runtime/vm');
const { keys, originals } = populateGlobal(global, new EdgeVM({ extend: (context) => {
context.global = context;
context.Buffer = Buffer;
KEYS.forEach((key) => {
if (key in global) context[key] = global[key];
});
return context;
} }).context, { bindFunctions: true });
return { teardown(global) {
keys.forEach((key) => delete global[key]);
originals.forEach((v, k) => global[k] = v);
} };
}
};
async function teardownWindow(win) {
if (win.close && win.happyDOM.abort) {
await win.happyDOM.abort();
win.close();
} else win.happyDOM.cancelAsync();
}
var happy = {
name: "happy-dom",
viteEnvironment: "client",
async setupVM({ happyDOM = {} }) {
const { Window } = await import('happy-dom');
let win = new Window({
...happyDOM,
console: console && globalThis.console ? globalThis.console : void 0,
url: happyDOM.url || "http://localhost:3000",
settings: {
...happyDOM.settings,
disableErrorCapturing: true
}
});
// TODO: browser doesn't expose Buffer, but a lot of dependencies use it
win.Buffer = Buffer;
// inject structuredClone if it exists
if (typeof structuredClone !== "undefined" && !win.structuredClone) win.structuredClone = structuredClone;
return {
getVmContext() {
return win;
},
async teardown() {
await teardownWindow(win);
win = void 0;
}
};
},
async setup(global, { happyDOM = {} }) {
// happy-dom v3 introduced a breaking change to Window, but
// provides GlobalWindow as a way to use previous behaviour
const { Window, GlobalWindow } = await import('happy-dom');
const win = new (GlobalWindow || Window)({
...happyDOM,
console: console && global.console ? global.console : void 0,
url: happyDOM.url || "http://localhost:3000",
settings: {
...happyDOM.settings,
disableErrorCapturing: true
}
});
const { keys, originals } = populateGlobal(global, win, {
bindFunctions: true,
additionalKeys: [
"Request",
"Response",
"MessagePort",
"fetch",
"Headers",
"AbortController",
"AbortSignal",
"URL",
"URLSearchParams",
"FormData"
]
});
return { async teardown(global) {
await teardownWindow(win);
keys.forEach((key) => delete global[key]);
originals.forEach((v, k) => global[k] = v);
} };
}
};
function catchWindowErrors(window) {
let userErrorListenerCount = 0;
function throwUnhandlerError(e) {
if (userErrorListenerCount === 0 && e.error != null) {
e.preventDefault();
process.emit("uncaughtException", e.error);
}
}
const addEventListener = window.addEventListener.bind(window);
const removeEventListener = window.removeEventListener.bind(window);
window.addEventListener("error", throwUnhandlerError);
window.addEventListener = function(...args) {
if (args[0] === "error") userErrorListenerCount++;
return addEventListener.apply(this, args);
};
window.removeEventListener = function(...args) {
if (args[0] === "error" && userErrorListenerCount) userErrorListenerCount--;
return removeEventListener.apply(this, args);
};
return function clearErrorHandlers() {
window.removeEventListener("error", throwUnhandlerError);
};
}
let NodeFormData_;
let NodeBlob_;
let NodeRequest_;
var jsdom = {
name: "jsdom",
viteEnvironment: "client",
async setupVM({ jsdom = {} }) {
// delay initialization because it takes ~1s
NodeFormData_ = globalThis.FormData;
NodeBlob_ = globalThis.Blob;
NodeRequest_ = globalThis.Request;
const { CookieJar, JSDOM, ResourceLoader, VirtualConsole } = await import('jsdom');
const { html = "<!DOCTYPE html>", userAgent, url = "http://localhost:3000", contentType = "text/html", pretendToBeVisual = true, includeNodeLocations = false, runScripts = "dangerously", resources, console = false, cookieJar = false, ...restOptions } = jsdom;
let virtualConsole;
if (console && globalThis.console) {
virtualConsole = new VirtualConsole();
// jsdom <27
if ("sendTo" in virtualConsole) virtualConsole.sendTo(globalThis.console);
else virtualConsole.forwardTo(globalThis.console);
}
let dom = new JSDOM(html, {
pretendToBeVisual,
resources: resources ?? (userAgent ? new ResourceLoader({ userAgent }) : void 0),
runScripts,
url,
virtualConsole,
cookieJar: cookieJar ? new CookieJar() : void 0,
includeNodeLocations,
contentType,
userAgent,
...restOptions
});
const clearAddEventListenerPatch = patchAddEventListener(dom.window);
const clearWindowErrors = catchWindowErrors(dom.window);
const utils = createCompatUtils(dom.window);
// TODO: browser doesn't expose Buffer, but a lot of dependencies use it
dom.window.Buffer = Buffer;
dom.window.jsdom = dom;
dom.window.Request = createCompatRequest(utils);
dom.window.URL = createJSDOMCompatURL(utils);
for (const name of [
"structuredClone",
"BroadcastChannel",
"MessageChannel",
"MessagePort",
"TextEncoder",
"TextDecoder"
]) {
const value = globalThis[name];
if (typeof value !== "undefined" && typeof dom.window[name] === "undefined") dom.window[name] = value;
}
for (const name of [
"fetch",
"Response",
"Headers",
"AbortController",
"AbortSignal",
"URLSearchParams"
]) {
const value = globalThis[name];
if (typeof value !== "undefined") dom.window[name] = value;
}
return {
getVmContext() {
return dom.getInternalVMContext();
},
teardown() {
clearAddEventListenerPatch();
clearWindowErrors();
dom.window.close();
dom = void 0;
}
};
},
async setup(global, { jsdom = {} }) {
// delay initialization because it takes ~1s
NodeFormData_ = globalThis.FormData;
NodeBlob_ = globalThis.Blob;
NodeRequest_ = globalThis.Request;
const { CookieJar, JSDOM, ResourceLoader, VirtualConsole } = await import('jsdom');
const { html = "<!DOCTYPE html>", userAgent, url = "http://localhost:3000", contentType = "text/html", pretendToBeVisual = true, includeNodeLocations = false, runScripts = "dangerously", resources, console = false, cookieJar = false, ...restOptions } = jsdom;
let virtualConsole;
if (console && globalThis.console) {
virtualConsole = new VirtualConsole();
// jsdom <27
if ("sendTo" in virtualConsole) virtualConsole.sendTo(globalThis.console);
else virtualConsole.forwardTo(globalThis.console);
}
const dom = new JSDOM(html, {
pretendToBeVisual,
resources: resources ?? (userAgent ? new ResourceLoader({ userAgent }) : void 0),
runScripts,
url,
virtualConsole,
cookieJar: cookieJar ? new CookieJar() : void 0,
includeNodeLocations,
contentType,
userAgent,
...restOptions
});
const clearAddEventListenerPatch = patchAddEventListener(dom.window);
const { keys, originals } = populateGlobal(global, dom.window, { bindFunctions: true });
const clearWindowErrors = catchWindowErrors(global);
const utils = createCompatUtils(dom.window);
global.jsdom = dom;
global.Request = createCompatRequest(utils);
global.URL = createJSDOMCompatURL(utils);
return { teardown(global) {
clearAddEventListenerPatch();
clearWindowErrors();
dom.window.close();
delete global.jsdom;
keys.forEach((key) => delete global[key]);
originals.forEach((v, k) => global[k] = v);
} };
}
};
function createCompatRequest(utils) {
class Request extends NodeRequest_ {
constructor(...args) {
const [input, init] = args;
if (init?.body != null) {
const compatInit = { ...init };
if (init.body instanceof utils.window.Blob) compatInit.body = utils.makeCompatBlob(init.body);
if (init.body instanceof utils.window.FormData) compatInit.body = utils.makeCompatFormData(init.body);
super(input, compatInit);
} else super(...args);
}
static [Symbol.hasInstance](instance) {
return instance instanceof NodeRequest_;
}
}
return Request;
}
function createJSDOMCompatURL(utils) {
class URL extends URL$1 {
static createObjectURL(blob) {
if (blob instanceof utils.window.Blob) {
const compatBlob = utils.makeCompatBlob(blob);
return URL$1.createObjectURL(compatBlob);
}
return URL$1.createObjectURL(blob);
}
static [Symbol.hasInstance](instance) {
return instance instanceof URL$1;
}
}
return URL;
}
function createCompatUtils(window) {
// this returns a hidden Symbol(impl)
// this is cursed, and jsdom should just implement fetch API itself
const implSymbol = Object.getOwnPropertySymbols(Object.getOwnPropertyDescriptors(new window.Blob()))[0];
const utils = {
window,
makeCompatFormData(formData) {
const nodeFormData = new NodeFormData_();
formData.forEach((value, key) => {
if (value instanceof window.Blob) nodeFormData.append(key, utils.makeCompatBlob(value));
else nodeFormData.append(key, value);
});
return nodeFormData;
},
makeCompatBlob(blob) {
const buffer = blob[implSymbol]._buffer;
return new NodeBlob_([buffer], { type: blob.type });
}
};
return utils;
}
function patchAddEventListener(window) {
const abortControllers = /* @__PURE__ */ new WeakMap();
const JSDOMAbortSignal = window.AbortSignal;
const JSDOMAbortController = window.AbortController;
const originalAddEventListener = window.EventTarget.prototype.addEventListener;
function getJsdomAbortController(signal) {
if (!abortControllers.has(signal)) {
const jsdomAbortController = new JSDOMAbortController();
signal.addEventListener("abort", () => {
jsdomAbortController.abort(signal.reason);
});
abortControllers.set(signal, jsdomAbortController);
}
return abortControllers.get(signal);
}
window.EventTarget.prototype.addEventListener = function addEventListener(type, callback, options) {
if (typeof options === "object" && options?.signal != null) {
const { signal, ...otherOptions } = options;
// - this happens because AbortSignal is provided by Node.js,
// but jsdom APIs require jsdom's AbortSignal, while Node APIs
// (like fetch and Request) require a Node.js AbortSignal
// - disable narrow typing with "as any" because we need it later
if (!(signal instanceof JSDOMAbortSignal)) {
const jsdomCompatOptions = Object.create(null);
Object.assign(jsdomCompatOptions, otherOptions);
jsdomCompatOptions.signal = getJsdomAbortController(signal).signal;
return originalAddEventListener.call(this, type, callback, jsdomCompatOptions);
}
}
return originalAddEventListener.call(this, type, callback, options);
};
return () => {
window.EventTarget.prototype.addEventListener = originalAddEventListener;
};
}
// some globals we do not want, either because deprecated or we set it ourselves
const denyList = new Set([
"GLOBAL",
"root",
"global",
"Buffer",
"ArrayBuffer",
"Uint8Array"
]);
const nodeGlobals = /* @__PURE__ */ new Map();
function populateNodeGlobals() {
if (nodeGlobals.size !== 0) return;
const names = Object.getOwnPropertyNames(globalThis);
const length = names.length;
for (let i = 0; i < length; i++) {
const globalName = names[i];
if (!denyList.has(globalName)) {
const descriptor = Object.getOwnPropertyDescriptor(globalThis, globalName);
if (!descriptor) throw new Error(`No property descriptor for ${globalName}, this is a bug in Vitest.`);
nodeGlobals.set(globalName, descriptor);
}
}
}
var node = {
name: "node",
viteEnvironment: "ssr",
async setupVM() {
populateNodeGlobals();
const vm = await import('node:vm');
let context = vm.createContext();
let global = vm.runInContext("this", context);
const contextGlobals = new Set(Object.getOwnPropertyNames(global));
for (const [nodeGlobalsKey, descriptor] of nodeGlobals) if (!contextGlobals.has(nodeGlobalsKey)) if (descriptor.configurable) Object.defineProperty(global, nodeGlobalsKey, {
configurable: true,
enumerable: descriptor.enumerable,
get() {
// @ts-expect-error: no index signature
const val = globalThis[nodeGlobalsKey];
// override lazy getter
Object.defineProperty(global, nodeGlobalsKey, {
configurable: true,
enumerable: descriptor.enumerable,
value: val,
writable: descriptor.writable === true || nodeGlobalsKey === "performance"
});
return val;
},
set(val) {
// override lazy getter
Object.defineProperty(global, nodeGlobalsKey, {
configurable: true,
enumerable: descriptor.enumerable,
value: val,
writable: true
});
}
});
else if ("value" in descriptor) Object.defineProperty(global, nodeGlobalsKey, {
configurable: false,
enumerable: descriptor.enumerable,
value: descriptor.value,
writable: descriptor.writable
});
else Object.defineProperty(global, nodeGlobalsKey, {
configurable: false,
enumerable: descriptor.enumerable,
get: descriptor.get,
set: descriptor.set
});
global.global = global;
global.Buffer = Buffer;
global.ArrayBuffer = ArrayBuffer;
// TextEncoder (global or via 'util') references a Uint8Array constructor
// different than the global one used by users in tests. This makes sure the
// same constructor is referenced by both.
global.Uint8Array = Uint8Array;
return {
getVmContext() {
return context;
},
teardown() {
context = void 0;
global = void 0;
}
};
},
async setup(global) {
global.console.Console = Console;
return { teardown(global) {
delete global.console.Console;
} };
}
};
const environments = {
node,
jsdom,
"happy-dom": happy,
"edge-runtime": edge
};
export { environments as e, populateGlobal as p };
@@ -0,0 +1 @@
module.exports={C:{"47":0.00406,"52":0.00813,"59":0.00406,"72":0.00406,"74":0.01626,"77":0.00406,"78":0.01626,"89":0.00406,"92":0.00406,"99":0.00406,"106":0.00406,"112":0.00813,"113":0.00813,"115":0.27635,"120":0.1016,"121":0.21539,"123":0.00813,"124":0.00813,"125":0.01219,"127":0.02032,"128":0.01219,"130":0.00406,"132":0.00406,"133":0.00813,"134":0.00406,"135":0.00406,"136":0.00406,"137":0.00406,"138":0.00406,"140":0.19914,"141":0.01219,"142":0.00813,"143":0.00813,"144":0.00406,"145":0.00406,"146":0.00406,"147":0.03658,"148":0.00406,"149":0.01626,"150":0.03658,"151":0.01626,"152":0.04064,"153":0.12192,"154":0.48768,"155":1.0729,"156":1.05258,"157":0.02845,_:"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 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 75 76 79 80 81 82 83 84 85 86 87 88 90 91 93 94 95 96 97 98 100 101 102 103 104 105 107 108 109 110 111 114 116 117 118 119 122 126 129 131 139 158 159 160 3.5 3.6"},D:{"37":0.00406,"49":0.00406,"53":0.00406,"56":0.00406,"57":0.00406,"58":0.01219,"60":0.01626,"63":0.02032,"64":0.00406,"65":0.00406,"66":0.00406,"68":0.01219,"69":0.00406,"70":0.01626,"71":0.00406,"72":0.00406,"73":0.02845,"74":0.02032,"75":0.01219,"77":0.00406,"78":0.00406,"79":0.00813,"80":0.00406,"81":0.02032,"83":0.00813,"84":0.00813,"85":0.00406,"86":0.00813,"87":0.01219,"88":0.01219,"90":0.01219,"93":0.00406,"94":0.01626,"95":0.04877,"97":0.00406,"98":0.00406,"100":0.00406,"101":0.0569,"102":0.00813,"103":0.03658,"104":0.01219,"105":0.01219,"106":0.03251,"107":0.01626,"108":0.02845,"109":0.96317,"110":0.01219,"111":0.06096,"112":0.00813,"113":0.00813,"114":0.01219,"115":0.01219,"116":0.06502,"117":0.03251,"118":0.36982,"119":0.26822,"120":0.26416,"121":0.01219,"122":0.03251,"123":0.01626,"124":0.02032,"125":0.00813,"126":0.03658,"127":0.01626,"128":0.03251,"129":0.02438,"130":0.02438,"131":0.05283,"132":0.02438,"133":0.10973,"134":0.09754,"135":0.07315,"136":0.11786,"137":0.1016,"138":0.17475,"139":0.10566,"140":0.10566,"141":0.11786,"142":0.32106,"143":0.06096,"144":0.08534,"145":0.05283,"146":0.10566,"147":0.07722,"148":0.19507,"149":0.13818,"150":0.45923,"151":1.524,"152":9.10742,"153":6.81939,"154":1.65811,"155":0.01219,_:"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 38 39 40 41 42 43 44 45 46 47 48 50 51 52 54 55 59 61 62 67 76 89 91 92 96 99 156 157"},F:{"36":0.00406,"42":0.00406,"46":0.00406,"77":0.00406,"79":0.00406,"89":0.00406,"90":0.00406,"95":0.04064,"101":0.01626,"105":0.00406,"106":0.00813,"107":0.00406,"110":0.00406,"113":0.00406,"114":0.00406,"116":0.00406,"119":0.00406,"120":0.00406,"126":0.00406,"133":0.01626,"134":0.13411,"135":1.0729,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 102 103 104 108 109 111 112 115 117 118 121 122 123 124 125 127 131 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00406,"17":0.00813,"18":0.00813,"85":0.00406,"88":0.00406,"89":0.00406,"90":0.00813,"92":0.09754,"100":0.02032,"104":0.00406,"106":0.00406,"109":0.00406,"114":0.00406,"116":0.00406,"119":0.11379,"120":0.11379,"121":0.00406,"122":0.01626,"123":0.00406,"124":0.00406,"129":0.00406,"131":0.00406,"133":0.00406,"136":0.00406,"138":0.02032,"139":0.00406,"140":0.01626,"142":0.00406,"143":0.02032,"144":0.02845,"145":0.02032,"146":0.01219,"147":0.01219,"148":0.04064,"149":0.02438,"150":0.04064,"151":0.17069,"152":1.28829,"153":1.26797,"154":0.33325,_:"12 13 14 15 79 80 81 83 84 86 87 91 93 94 95 96 97 98 99 101 102 103 105 107 108 110 111 112 113 115 117 118 125 126 127 128 130 132 134 135 137 141"},E:{"27":0.03251,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.2 16.3 16.4 16.5 17.0 17.2 18.1 18.2 18.3 18.5-18.7 26.0 26.1 27.1 27.2 TP","13.1":0.00406,"14.1":0.00406,"15.5":0.00813,"15.6":0.02032,"16.1":0.00406,"16.6":0.06909,"17.1":0.00406,"17.3":0.00406,"17.4":0.00406,"17.5":0.00406,"17.6":0.06502,"18.0":0.00406,"18.4":0.00406,"26.2":0.01219,"26.3":0.00813,"26.4":0.00813,"26.5":0.03658,"26.6":0.15443},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00023,"5.0-5.1":0.00023,"6.0-6.1":0,"7.0-7.1":0.00047,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.00235,"11.0-11.2":0.00023,"11.3-11.4":0.00047,"12.0-12.1":0,"12.2-12.5":0.0061,"13.0-13.1":0,"13.2":0.00117,"13.3":0,"13.4-13.7":0.00023,"14.0-14.4":0.00094,"14.5-14.8":0.00141,"15.0-15.1":0.00141,"15.2-15.3":0.00094,"15.4":0.00117,"15.5":0.00141,"15.6-15.8":0.03049,"16.0":0.00235,"16.1":0.00422,"16.2":0.00235,"16.3":0.00516,"16.4":0.00117,"16.5":0.00188,"16.6-16.7":0.04245,"17.0":0.00164,"17.1":0.00235,"17.2":0.00235,"17.3":0.00352,"17.4":0.00492,"17.5":0.00961,"17.6-17.7":0.02486,"18.0":0.00516,"18.1":0.01032,"18.2":0.01407,"18.3":0.02439,"Line truncated
@@ -0,0 +1,16 @@
import { cubicBezierAsString } from './cubic-bezier.mjs';
const supportedWaapiEasing = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
circIn: /*@__PURE__*/ cubicBezierAsString([0, 0.65, 0.55, 1]),
circOut: /*@__PURE__*/ cubicBezierAsString([0.55, 0, 1, 0.45]),
backIn: /*@__PURE__*/ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
backOut: /*@__PURE__*/ cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),
};
export { supportedWaapiEasing };
//# sourceMappingURL=supported.mjs.map
@@ -0,0 +1,62 @@
/**
* @fileoverview Define the cursor which iterates tokens only.
* @author Toru Nagashima
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const Cursor = require("./cursor");
const { getFirstIndex, getLastIndex } = require("./utils");
//------------------------------------------------------------------------------
// Exports
//------------------------------------------------------------------------------
/**
* The cursor which iterates tokens only.
*/
module.exports = class ForwardTokenCursor extends Cursor {
/**
* Initializes this cursor.
* @param {Token[]} tokens The array of tokens.
* @param {Comment[]} comments The array of comments.
* @param {Object} indexMap The map from locations to indices in `tokens`.
* @param {number} startLoc The start location of the iteration range.
* @param {number} endLoc The end location of the iteration range.
*/
constructor(tokens, comments, indexMap, startLoc, endLoc) {
super();
this.tokens = tokens;
this.index = getFirstIndex(tokens, indexMap, startLoc);
this.indexEnd = getLastIndex(tokens, indexMap, endLoc);
}
/** @inheritdoc */
moveNext() {
if (this.index <= this.indexEnd) {
this.current = this.tokens[this.index];
this.index += 1;
return true;
}
return false;
}
/*
*
* Shorthand for performance.
*
*/
/** @inheritdoc */
getOneToken() {
return this.index <= this.indexEnd ? this.tokens[this.index] : null;
}
/** @inheritdoc */
getAllTokens() {
return this.tokens.slice(this.index, this.indexEnd + 1);
}
};
@@ -0,0 +1,22 @@
import { isMotionValue } from '../../../value/utils/is-motion-value.mjs';
import { isForcedMotionValue } from '../../utils/is-forced-motion-value.mjs';
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
const style = props.style;
const prevStyle = prevProps?.style;
const newValues = {};
if (!style)
return newValues;
for (const key in style) {
if (isMotionValue(style[key]) ||
(prevStyle && isMotionValue(prevStyle[key])) ||
isForcedMotionValue(key, props) ||
visualElement?.getValue(key)?.liveStyle !== undefined) {
newValues[key] = style[key];
}
}
return newValues;
}
export { scrapeMotionValuesFromProps };
//# sourceMappingURL=scrape-motion-values.mjs.map
@@ -0,0 +1,101 @@
import { CompactEncrypt } from '../jwe/compact/encrypt.js';
import { JWTClaimsBuilder } from '../lib/jwt_claims_set.js';
import { assertNotSet } from '../lib/helpers.js';
export class EncryptJWT {
#cek;
#iv;
#keyManagementParameters;
#protectedHeader;
#replicateIssuerAsHeader;
#replicateSubjectAsHeader;
#replicateAudienceAsHeader;
#jwt;
constructor(payload = {}) {
this.#jwt = new JWTClaimsBuilder(payload);
}
setIssuer(issuer) {
this.#jwt.iss = issuer;
return this;
}
setSubject(subject) {
this.#jwt.sub = subject;
return this;
}
setAudience(audience) {
this.#jwt.aud = audience;
return this;
}
setJti(jwtId) {
this.#jwt.jti = jwtId;
return this;
}
setNotBefore(input) {
this.#jwt.nbf = input;
return this;
}
setExpirationTime(input) {
this.#jwt.exp = input;
return this;
}
setIssuedAt(input) {
this.#jwt.iat = input;
return this;
}
setProtectedHeader(protectedHeader) {
assertNotSet(this.#protectedHeader, 'setProtectedHeader');
this.#protectedHeader = protectedHeader;
return this;
}
setKeyManagementParameters(parameters) {
assertNotSet(this.#keyManagementParameters, 'setKeyManagementParameters');
this.#keyManagementParameters = parameters;
return this;
}
setContentEncryptionKey(cek) {
assertNotSet(this.#cek, 'setContentEncryptionKey');
this.#cek = cek;
return this;
}
setInitializationVector(iv) {
assertNotSet(this.#iv, 'setInitializationVector');
this.#iv = iv;
return this;
}
replicateIssuerAsHeader() {
this.#replicateIssuerAsHeader = true;
return this;
}
replicateSubjectAsHeader() {
this.#replicateSubjectAsHeader = true;
return this;
}
replicateAudienceAsHeader() {
this.#replicateAudienceAsHeader = true;
return this;
}
async encrypt(key, options) {
const enc = new CompactEncrypt(this.#jwt.data());
if (this.#protectedHeader &&
(this.#replicateIssuerAsHeader ||
this.#replicateSubjectAsHeader ||
this.#replicateAudienceAsHeader)) {
this.#protectedHeader = {
...this.#protectedHeader,
iss: this.#replicateIssuerAsHeader ? this.#jwt.iss : undefined,
sub: this.#replicateSubjectAsHeader ? this.#jwt.sub : undefined,
aud: this.#replicateAudienceAsHeader ? this.#jwt.aud : undefined,
};
}
enc.setProtectedHeader(this.#protectedHeader);
if (this.#iv) {
enc.setInitializationVector(this.#iv);
}
if (this.#cek) {
enc.setContentEncryptionKey(this.#cek);
}
if (this.#keyManagementParameters) {
enc.setKeyManagementParameters(this.#keyManagementParameters);
}
return enc.encrypt(key, options);
}
}
@@ -0,0 +1,17 @@
import { dirname, resolve } from 'pathe';
import { EvaluatedModules } from 'vite/module-runner';
// TODO: this is not needed in Vite 7.2+
class VitestEvaluatedModules extends EvaluatedModules {
getModuleSourceMapById(id) {
const map = super.getModuleSourceMapById(id);
if (map != null && !("_patched" in map)) {
map._patched = true;
const dir = dirname(map.url);
map.resolvedSources = (map.map.sources || []).map((s) => resolve(dir, s || ""));
}
return map;
}
}
export { VitestEvaluatedModules as V };
@@ -0,0 +1,50 @@
import { easeInOut, isEasingArray, easingDefinitionToFunction } from 'motion-utils';
import { interpolate } from '../../utils/interpolate.mjs';
import { defaultOffset } from '../keyframes/offsets/default.mjs';
import { convertOffsetToTimes } from '../keyframes/offsets/time.mjs';
function defaultEasing(values, easing) {
return values.map(() => easing || easeInOut).splice(0, values.length - 1);
}
function keyframes({ duration = 300, keyframes: keyframeValues, times, ease = "easeInOut", }) {
/**
* Easing functions can be externally defined as strings. Here we convert them
* into actual functions.
*/
const easingFunctions = isEasingArray(ease)
? ease.map(easingDefinitionToFunction)
: easingDefinitionToFunction(ease);
/**
* This is the Iterator-spec return value. We ensure it's mutable rather than using a generator
* to reduce GC during animation.
*/
const state = {
done: false,
value: keyframeValues[0],
};
/**
* Create a times array based on the provided 0-1 offsets
*/
const absoluteTimes = convertOffsetToTimes(
// Only use the provided offsets if they're the correct length
// TODO Maybe we should warn here if there's a length mismatch
times && times.length === keyframeValues.length
? times
: defaultOffset(keyframeValues), duration);
const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {
ease: Array.isArray(easingFunctions)
? easingFunctions
: defaultEasing(keyframeValues, easingFunctions),
});
return {
calculatedDuration: duration,
next: (t) => {
state.value = mapTimeToKeyframe(t);
state.done = t >= duration;
return state;
},
};
}
export { defaultEasing, keyframes };
//# sourceMappingURL=keyframes.mjs.map
@@ -0,0 +1,27 @@
import { ContextualKeyword } from "../tokenizer/keywords";
import { type StopState } from "../traverser/expression";
export declare function flowParseTypeParameterDeclaration(): void;
export declare function flowParseTypeAnnotation(): void;
export declare function flowParseVariance(): void;
export declare function flowParseFunctionBodyAndFinish(funcContextId: number): void;
export declare function flowParseSubscript(startTokenIndex: number, noCalls: boolean, stopState: StopState): void;
export declare function flowStartParseNewArguments(): void;
export declare function flowTryParseStatement(): boolean;
export declare function flowTryParseExportDefaultExpression(): boolean;
export declare function flowParseIdentifierStatement(contextualKeyword: ContextualKeyword): void;
export declare function flowShouldParseExportDeclaration(): boolean;
export declare function flowShouldDisallowExportDefaultSpecifier(): boolean;
export declare function flowParseExportDeclaration(): void;
export declare function flowShouldParseExportStar(): boolean;
export declare function flowParseExportStar(): void;
export declare function flowAfterParseClassSuper(hasSuper: boolean): void;
export declare function flowStartParseObjPropValue(): void;
export declare function flowParseAssignableListItemTypes(): void;
export declare function flowStartParseImportSpecifiers(): void;
export declare function flowParseImportSpecifier(): void;
export declare function flowStartParseFunctionParams(): void;
export declare function flowAfterParseVarHead(): void;
export declare function flowStartParseAsyncArrowFromCallExpression(): void;
export declare function flowParseMaybeAssign(noIn: boolean, isWithinParens: boolean): boolean;
export declare function flowParseArrow(): boolean;
export declare function flowParseSubscripts(startTokenIndex: number, noCalls?: boolean): void;
@@ -0,0 +1,50 @@
{
"name": "acorn",
"description": "ECMAScript parser",
"homepage": "https://github.com/acornjs/acorn",
"main": "dist/acorn.js",
"types": "dist/acorn.d.ts",
"module": "dist/acorn.mjs",
"exports": {
".": [
{
"import": "./dist/acorn.mjs",
"require": "./dist/acorn.js",
"default": "./dist/acorn.js"
},
"./dist/acorn.js"
],
"./package.json": "./package.json"
},
"version": "8.16.0",
"engines": {
"node": ">=0.4.0"
},
"maintainers": [
{
"name": "Marijn Haverbeke",
"email": "marijnh@gmail.com",
"web": "https://marijnhaverbeke.nl"
},
{
"name": "Ingvar Stepanyan",
"email": "me@rreverser.com",
"web": "https://rreverser.com/"
},
{
"name": "Adrian Heine",
"web": "http://adrianheine.de"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/acornjs/acorn.git"
},
"license": "MIT",
"scripts": {
"prepare": "cd ..; npm run build:main"
},
"bin": {
"acorn": "bin/acorn"
}
}
@@ -0,0 +1,22 @@
MIT License
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
Copyright (c) 2023-PRESENT ESLint Stylistic contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,51 @@
import { SearchSchemaInput } from './route.cjs';
export interface StandardSchemaValidatorProps<TInput, TOutput> {
readonly types?: StandardSchemaValidatorTypes<TInput, TOutput> | undefined;
readonly validate: AnyStandardSchemaValidate;
}
export interface StandardSchemaValidator<TInput, TOutput> {
readonly '~standard': StandardSchemaValidatorProps<TInput, TOutput>;
}
export type AnyStandardSchemaValidator = StandardSchemaValidator<any, any>;
export interface StandardSchemaValidatorTypes<TInput, TOutput> {
readonly input: TInput;
readonly output: TOutput;
}
export interface AnyStandardSchemaValidateSuccess {
readonly value: any;
readonly issues?: undefined;
}
export interface AnyStandardSchemaValidateFailure {
readonly issues: ReadonlyArray<AnyStandardSchemaValidateIssue>;
}
export interface AnyStandardSchemaValidateIssue {
readonly message: string;
}
export interface AnyStandardSchemaValidateInput {
readonly value: any;
}
export type AnyStandardSchemaValidate = (value: unknown) => (AnyStandardSchemaValidateSuccess | AnyStandardSchemaValidateFailure) | Promise<AnyStandardSchemaValidateSuccess | AnyStandardSchemaValidateFailure>;
export interface ValidatorObj<TInput, TOutput> {
parse: ValidatorFn<TInput, TOutput>;
}
export type AnyValidatorObj = ValidatorObj<any, any>;
export interface ValidatorAdapter<TInput, TOutput> {
types: {
input: TInput;
output: TOutput;
};
parse: (input: unknown) => TOutput;
}
export type AnyValidatorAdapter = ValidatorAdapter<any, any>;
export type AnyValidatorFn = ValidatorFn<any, any>;
export type ValidatorFn<TInput, TOutput> = (input: TInput) => TOutput;
export type Validator<TInput, TOutput> = ValidatorObj<TInput, TOutput> | ValidatorFn<TInput, TOutput> | ValidatorAdapter<TInput, TOutput> | StandardSchemaValidator<TInput, TOutput> | undefined;
export type AnyValidator = Validator<any, any>;
export type AnySchema = {};
export type DefaultValidator = Validator<Record<string, unknown>, AnySchema>;
export type ResolveSearchValidatorInputFn<TValidator> = TValidator extends (input: infer TSchemaInput) => any ? TSchemaInput extends SearchSchemaInput ? Omit<TSchemaInput, keyof SearchSchemaInput> : ResolveValidatorOutputFn<TValidator> : AnySchema;
export type ResolveSearchValidatorInput<TValidator> = TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveSearchValidatorInputFn<TValidator['parse']> : ResolveSearchValidatorInputFn<TValidator>;
export type ResolveValidatorInputFn<TValidator> = TValidator extends (input: infer TInput) => any ? TInput : undefined;
export type ResolveValidatorInput<TValidator> = TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveValidatorInputFn<TValidator['parse']> : ResolveValidatorInputFn<TValidator>;
export type ResolveValidatorOutputFn<TValidator> = TValidator extends (...args: any) => infer TSchema ? TSchema : AnySchema;
export type ResolveValidatorOutput<TValidator> = unknown extends TValidator ? TValidator : TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['output'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['output'] : TValidator extends AnyValidatorObj ? ResolveValidatorOutputFn<TValidator['parse']> : ResolveValidatorOutputFn<TValidator>;
@@ -0,0 +1,51 @@
"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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInnermostScope = exports.findVariable = void 0;
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
/**
* Get the variable of a given name.
*
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
*/
exports.findVariable = eslintUtils.findVariable;
/**
* Get the innermost scope which contains a given node.
*
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
* @returns The innermost scope which contains the given node.
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
*/
exports.getInnermostScope = eslintUtils.getInnermostScope;
@@ -0,0 +1,14 @@
import type * as core from "../core/index.cjs";
import * as schemas from "./schemas.cjs";
/** Mini counterpart of `classic/deep-partial.ts`'s `DeepPartial`. */
export type DeepPartial<T extends core.SomeType> = T extends schemas.ZodMiniObject<infer Shape, infer Config> ? schemas.ZodMiniObject<{
-readonly [K in keyof Shape]: schemas.ZodMiniOptional<DeepPartial<Shape[K]>>;
}, Config> : T extends schemas.ZodMiniDiscriminatedUnion<infer Options, any> ? schemas.ZodMiniUnion<{
-readonly [I in keyof Options]: Options[I] extends core.SomeType ? DeepPartial<Options[I]> : Options[I];
}> : T extends schemas.ZodMiniUnion<infer Options> ? schemas.ZodMiniUnion<{
-readonly [I in keyof Options]: Options[I] extends core.SomeType ? DeepPartial<Options[I]> : Options[I];
}> : T extends schemas.ZodMiniArray<infer El> ? schemas.ZodMiniArray<DeepPartial<El>> : T extends schemas.ZodMiniTuple<infer Items, infer Rest> ? schemas.ZodMiniTuple<{
-readonly [K in keyof Items]: Items[K] extends core.SomeType ? DeepPartial<Items[K]> : Items[K];
}, Rest extends core.SomeType ? DeepPartial<Rest> : Rest> : T extends schemas.ZodMiniIntersection<infer A, infer B> ? schemas.ZodMiniIntersection<DeepPartial<A>, DeepPartial<B>> : T extends schemas.ZodMiniRecord<infer K, infer V> ? schemas.ZodMiniRecord<K, DeepPartial<V>> : T extends schemas.ZodMiniMap<infer K, infer V> ? schemas.ZodMiniMap<K, DeepPartial<V>> : T extends schemas.ZodMiniSet<infer El> ? schemas.ZodMiniSet<DeepPartial<El>> : T extends schemas.ZodMiniOptional<infer Inner> ? schemas.ZodMiniOptional<DeepPartial<Inner>> : T extends schemas.ZodMiniNullable<infer Inner> ? schemas.ZodMiniNullable<DeepPartial<Inner>> : T extends schemas.ZodMiniDefault<infer Inner> ? schemas.ZodMiniDefault<DeepPartial<Inner>> : T extends schemas.ZodMiniPrefault<infer Inner> ? schemas.ZodMiniPrefault<DeepPartial<Inner>> : T extends schemas.ZodMiniNonOptional<infer Inner> ? schemas.ZodMiniNonOptional<DeepPartial<Inner>> : T extends schemas.ZodMiniCatch<infer Inner> ? schemas.ZodMiniCatch<DeepPartial<Inner>> : T extends schemas.ZodMiniReadonly<infer Inner> ? schemas.ZodMiniReadonly<DeepPartial<Inner>> : T extends schemas.ZodMiniSuccess<infer Inner> ? schemas.ZodMiniSuccess<DeepPartial<Inner>> : T extends schemas.ZodMiniPromise<infer Inner> ? schemas.ZodMiniPromise<DeepPartial<Inner>> : T extends schemas.ZodMiniCodec<infer A, infer B> ? schemas.ZodMiniCodec<DeepPartial<A>, DeepPartial<B>> : T extends schemas.ZodMiniPipe<infer A, infer B> ? schemas.ZodMiniPipe<DeepPartial<A>, DeepPartial<B>> : T extends schemas.ZodMiniLazy<infer Inner> ? schemas.ZodMiniLazy<DeepPartial<Inner>> : T;
/** See `classic/deep-partial.ts`. Mini variant uses `mini.partial(...)`. */
export declare function deepPartial<T extends core.SomeType>(schema: T): DeepPartial<T>;
@@ -0,0 +1,62 @@
/*
Copyright 2012-2015, Yahoo Inc.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
const { ReportBase } = require('istanbul-lib-report');
class TextSummaryReport extends ReportBase {
constructor(opts) {
super();
opts = opts || {};
this.file = opts.file || null;
}
onStart(node, context) {
const summary = node.getCoverageSummary();
const cw = context.writer.writeFile(this.file);
const printLine = function(key) {
const str = lineForKey(summary, key);
const clazz = context.classForPercent(key, summary[key].pct);
cw.println(cw.colorize(str, clazz));
};
cw.println('');
cw.println(
'=============================== Coverage summary ==============================='
);
printLine('statements');
printLine('branches');
printLine('functions');
printLine('lines');
cw.println(
'================================================================================'
);
cw.close();
}
}
function lineForKey(summary, key) {
const metrics = summary[key];
key = key.substring(0, 1).toUpperCase() + key.substring(1);
if (key.length < 12) {
key += ' '.substring(0, 12 - key.length);
}
const result = [
key,
':',
metrics.pct + '%',
'(',
metrics.covered + '/' + metrics.total,
')'
].join(' ');
const skipped = metrics.skipped;
if (skipped > 0) {
return result + ', ' + skipped + ' ignored';
}
return result;
}
module.exports = TextSummaryReport;
@@ -0,0 +1,41 @@
import { expect, test } from "vitest";
import * as z from "zod/mini";
test("no locale by default", () => {
const result = z.safeParse(z.string(), 12);
expect(result.success).toEqual(false);
expect(result.error!.issues.length).toEqual(1);
expect(result.error!.issues[0].message).toEqual("Invalid input");
});
test("error inheritance", () => {
const e1 = z.string().safeParse(123).error!;
expect(e1).toBeInstanceOf(z.core.$ZodError);
expect(e1).toBeInstanceOf(Error);
let e2: unknown;
try {
z.string().parse(123);
} catch (err) {
e2 = err;
}
expect(e2).toBeInstanceOf(z.core.$ZodRealError);
expect(e2).toBeInstanceOf(Error);
});
test("a thrown error carries a stack rooted at the parse call site", () => {
function callSite() {
z.parse(z.string(), 123);
}
let thrown: unknown;
try {
callSite();
} catch (err) {
thrown = err;
}
expect(thrown).toBeInstanceOf(Error);
const stack = (thrown as Error).stack!;
expect(stack.startsWith("$ZodError: [")).toBe(true);
expect(stack).toContain("callSite");
});
@@ -0,0 +1 @@
{"version":3,"file":"concierge-bell.js","sources":["../../../src/icons/concierge-bell.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ConciergeBell\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMyAyMGExIDEgMCAwIDEtMS0xdi0xYTIgMiAwIDAgMSAyLTJoMTZhMiAyIDAgMCAxIDIgMnYxYTEgMSAwIDAgMS0xIDFaIiAvPgogIDxwYXRoIGQ9Ik0yMCAxNmE4IDggMCAxIDAtMTYgMCIgLz4KICA8cGF0aCBkPSJNMTIgNHY0IiAvPgogIDxwYXRoIGQ9Ik0xMCA0aDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/concierge-bell\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ConciergeBell = createLucideIcon('ConciergeBell', [\n [\n 'path',\n { d: 'M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z', key: '1pvr1r' },\n ],\n ['path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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACtD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC1C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,22 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Pin = createLucideIcon("Pin", [
["path", { d: "M12 17v5", key: "bb1du9" }],
[
"path",
{
d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",
key: "1nkz8b"
}
]
]);
export { Pin as default };
//# sourceMappingURL=pin.js.map
@@ -0,0 +1,224 @@
body, html {
margin:0; padding: 0;
height: 100%;
}
body {
font-family: Helvetica Neue, Helvetica, Arial;
font-size: 14px;
color:#333;
}
.small { font-size: 12px; }
*, *:after, *:before {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
h1 { font-size: 20px; margin: 0;}
h2 { font-size: 14px; }
pre {
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
margin: 0;
padding: 0;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
a { color:#0074D9; text-decoration:none; }
a:hover { text-decoration:underline; }
.strong { font-weight: bold; }
.space-top1 { padding: 10px 0 0 0; }
.pad2y { padding: 20px 0; }
.pad1y { padding: 10px 0; }
.pad2x { padding: 0 20px; }
.pad2 { padding: 20px; }
.pad1 { padding: 10px; }
.space-left2 { padding-left:55px; }
.space-right2 { padding-right:20px; }
.center { text-align:center; }
.clearfix { display:block; }
.clearfix:after {
content:'';
display:block;
height:0;
clear:both;
visibility:hidden;
}
.fl { float: left; }
@media only screen and (max-width:640px) {
.col3 { width:100%; max-width:100%; }
.hide-mobile { display:none!important; }
}
.quiet {
color: #7f7f7f;
color: rgba(0,0,0,0.5);
}
.quiet a { opacity: 0.7; }
.fraction {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 10px;
color: #555;
background: #E8E8E8;
padding: 4px 5px;
border-radius: 3px;
vertical-align: middle;
}
div.path a:link, div.path a:visited { color: #333; }
table.coverage {
border-collapse: collapse;
margin: 10px 0 0 0;
padding: 0;
}
table.coverage td {
margin: 0;
padding: 0;
vertical-align: top;
}
table.coverage td.line-count {
text-align: right;
padding: 0 5px 0 20px;
}
table.coverage td.line-coverage {
text-align: right;
padding-right: 10px;
min-width:20px;
}
table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
width: 100%;
}
.missing-if-branch {
display: inline-block;
margin-right: 5px;
border-radius: 3px;
position: relative;
padding: 0 4px;
background: #333;
color: yellow;
}
.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}
.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}
.coverage-summary {
border-collapse: collapse;
width: 100%;
}
.coverage-summary tr { border-bottom: 1px solid #bbb; }
.keyline-all { border: 1px solid #ddd; }
.coverage-summary td, .coverage-summary th { padding: 10px; }
.coverage-summary tbody { border: 1px solid #bbb; }
.coverage-summary td { border-right: 1px solid #bbb; }
.coverage-summary td:last-child { border-right: none; }
.coverage-summary th {
text-align: left;
font-weight: normal;
white-space: nowrap;
}
.coverage-summary th.file { border-right: none !important; }
.coverage-summary th.pct { }
.coverage-summary th.pic,
.coverage-summary th.abs,
.coverage-summary td.pct,
.coverage-summary td.abs { text-align: right; }
.coverage-summary td.file { white-space: nowrap; }
.coverage-summary td.pic { min-width: 120px !important; }
.coverage-summary tfoot td { }
.coverage-summary .sorter {
height: 10px;
width: 7px;
display: inline-block;
margin-left: 0.5em;
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
}
.coverage-summary .sorted .sorter {
background-position: 0 -20px;
}
.coverage-summary .sorted-desc .sorter {
background-position: 0 -10px;
}
.status-line { height: 10px; }
/* yellow */
.cbranch-no { background: yellow !important; color: #111; }
/* dark red */
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
.low .chart { border:1px solid #C21F39 }
.highlighted,
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
background: #C21F39 !important;
}
/* medium red */
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
/* light red */
.low, .cline-no { background:#FCE1E5 }
/* light green */
.high, .cline-yes { background:rgb(230,245,208) }
/* medium green */
.cstat-yes { background:rgb(161,215,106) }
/* dark green */
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
.high .chart { border:1px solid rgb(77,146,33) }
/* dark yellow (gold) */
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
.medium .chart { border:1px solid #f9cd0b; }
/* light yellow */
.medium { background: #fff4c2; }
.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }
span.cline-neutral { background: #eaeaea; }
.coverage-summary td.empty {
opacity: .5;
padding-top: 4px;
padding-bottom: 4px;
line-height: 1;
color: #888;
}
.cover-fill, .cover-empty {
display:inline-block;
height: 12px;
}
.chart {
line-height: 0;
}
.cover-empty {
background: white;
}
.cover-full {
border-right: none !important;
}
pre.prettyprint {
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -48px;
}
.footer, .push {
height: 48px;
}
@@ -0,0 +1,12 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.esnext_error = void 0;
const base_config_1 = require("./base-config");
exports.esnext_error = {
libs: [],
variables: [['ErrorConstructor', base_config_1.TYPE]],
};
@@ -0,0 +1,62 @@
import { ignoreOverride } from "./Options.js";
import { selectParser } from "./selectParser.js";
import { getRelativePath } from "./getRelativePath.js";
import { parseAnyDef } from "./parsers/any.js";
export function parseDef(def, refs, forceResolution = false) {
const seenItem = refs.seen.get(def);
if (refs.override) {
const overrideResult = refs.override?.(def, refs, seenItem, forceResolution);
if (overrideResult !== ignoreOverride) {
return overrideResult;
}
}
if (seenItem && !forceResolution) {
const seenSchema = get$ref(seenItem, refs);
if (seenSchema !== undefined) {
return seenSchema;
}
}
const newItem = { def, path: refs.currentPath, jsonSchema: undefined };
refs.seen.set(def, newItem);
const jsonSchemaOrGetter = selectParser(def, def.typeName, refs);
// If the return was a function, then the inner definition needs to be extracted before a call to parseDef (recursive)
const jsonSchema = typeof jsonSchemaOrGetter === "function"
? parseDef(jsonSchemaOrGetter(), refs)
: jsonSchemaOrGetter;
if (jsonSchema) {
addMeta(def, refs, jsonSchema);
}
if (refs.postProcess) {
const postProcessResult = refs.postProcess(jsonSchema, def, refs);
newItem.jsonSchema = jsonSchema;
return postProcessResult;
}
newItem.jsonSchema = jsonSchema;
return jsonSchema;
}
const get$ref = (item, refs) => {
switch (refs.$refStrategy) {
case "root":
return { $ref: item.path.join("/") };
case "relative":
return { $ref: getRelativePath(refs.currentPath, item.path) };
case "none":
case "seen": {
if (item.path.length < refs.currentPath.length &&
item.path.every((value, index) => refs.currentPath[index] === value)) {
console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);
return parseAnyDef(refs);
}
return refs.$refStrategy === "seen" ? parseAnyDef(refs) : undefined;
}
}
};
const addMeta = (def, refs, jsonSchema) => {
if (def.description) {
jsonSchema.description = def.description;
if (refs.markdownDescription) {
jsonSchema.markdownDescription = def.description;
}
}
return jsonSchema;
};
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"_qJ","16":"_MQ"},B:{"1":"_J"},C:{"16":"_f","129":"_w"},D:{"1":"_ZD","16":"_Y"},E:{"16":"_4","257":"_YB"},F:{"1":"_oB","16":"F"},G:{"769":"_M"},H:{"16":"1D"},I:{"16":"_P"},J:{"16":"_B"},K:{"1":"H","16":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"16":"_A"},O:{"1":"bC"},P:{"16":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"129":"_C"}},B:1,C:"tabindex global attribute",D:true};
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CornerDownLeft = createLucideIcon("CornerDownLeft", [
["polyline", { points: "9 10 4 15 9 20", key: "r3jprv" }],
["path", { d: "M20 4v7a4 4 0 0 1-4 4H4", key: "6o5b7l" }]
]);
export { CornerDownLeft as default };
//# sourceMappingURL=corner-down-left.js.map
@@ -0,0 +1 @@
{"version":3,"file":"warehouse.js","sources":["../../../src/icons/warehouse.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Warehouse\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjIgOC4zNVYyMGEyIDIgMCAwIDEtMiAySDRhMiAyIDAgMCAxLTItMlY4LjM1QTIgMiAwIDAgMSAzLjI2IDYuNWw4LTMuMmEyIDIgMCAwIDEgMS40OCAwbDggMy4yQTIgMiAwIDAgMSAyMiA4LjM1WiIgLz4KICA8cGF0aCBkPSJNNiAxOGgxMiIgLz4KICA8cGF0aCBkPSJNNiAxNGgxMiIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHg9IjYiIHk9IjEwIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/warehouse\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Warehouse = createLucideIcon('Warehouse', [\n [\n 'path',\n {\n d: 'M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z',\n key: 'gksnxg',\n },\n ],\n ['path', { d: 'M6 18h12', key: '9pbo8z' }],\n ['path', { d: 'M6 14h12', key: '4cwo0f' }],\n ['rect', { width: '12', height: '12', x: '6', y: '10', key: 'apd30q' }],\n]);\n\nexport default Warehouse;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CA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,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACzC,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAM,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACxE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_yN _i","2":"_0 _1J","322":"g h i"},C:{"1":"_5H _p","2":"_bB _7G _L","194":"e _RP"},D:{"1":"_yN _l","2":"_v _1J","322":"g h i"},E:{"1":"_uC","2":"_BH"},F:{"1":"_nG _RR","2":"_8 _sD _O"},G:{"1":"_7B","2":"_XE"},H:{"2":"1D"},I:{"1":"I","2":"_G"},J:{"2":"_B"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_vQ","2":"_AP"},Q:{"2":"JE"},R:{"2":"KE"},S:{"2":"_C"}},B:4,C:"CSS Cascade Layers",D:true};
@@ -0,0 +1,6 @@
function isWhat(value, type, comparingType) {
return type === comparingType;
}
export {
isWhat
};
@@ -0,0 +1 @@
{"version":3,"file":"rows.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1 @@
{"version":3,"file":"volume-2.js","sources":["../../../src/icons/volume-2.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Volume2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTEgNC43MDJhLjcwNS43MDUgMCAwIDAtMS4yMDMtLjQ5OEw2LjQxMyA3LjU4N0ExLjQgMS40IDAgMCAxIDUuNDE2IDhIM2ExIDEgMCAwIDAtMSAxdjZhMSAxIDAgMCAwIDEgMWgyLjQxNmExLjQgMS40IDAgMCAxIC45OTcuNDEzbDMuMzgzIDMuMzg0QS43MDUuNzA1IDAgMCAwIDExIDE5LjI5OHoiIC8+CiAgPHBhdGggZD0iTTE2IDlhNSA1IDAgMCAxIDAgNiIgLz4KICA8cGF0aCBkPSJNMTkuMzY0IDE4LjM2NGE5IDkgMCAwIDAgMC0xMi43MjgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/volume-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Volume2 = createLucideIcon('Volume2', [\n [\n 'path',\n {\n d: 'M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z',\n key: 'uqj9uw',\n },\n ],\n ['path', { d: 'M16 9a5 5 0 0 1 0 6', key: '1q6k2b' }],\n ['path', { d: 'M19.364 18.364a9 9 0 0 0 0-12.728', key: 'ijwkga' }],\n]);\n\nexport default Volume2;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,iBAAiB,SAAW,CAAA,CAAA,CAAA;AAAA,CAC1C,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACpE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"arrow-right.js","sources":["../../../src/icons/arrow-right.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ArrowRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAxMmgxNCIgLz4KICA8cGF0aCBkPSJtMTIgNSA3IDctNyA3IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/arrow-right\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ArrowRight = createLucideIcon('ArrowRight', [\n ['path', { d: 'M5 12h14', key: '1ays0h' }],\n ['path', { d: 'm12 5 7 7-7 7', key: 'xquz4c' }],\n]);\n\nexport default ArrowRight;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,iBAAiB,YAAc,CAAA,CAAA,CAAA;AAAA,CAAA,CAChD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAChD,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,97 @@
import * as core from "../core/index.js";
import { $ZodError } from "../core/index.js";
import * as util from "../core/util.js";
/** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
export type ZodIssue = core.$ZodIssue;
/** An Error-like class used to store Zod validation issues. */
export interface ZodError<T = unknown> extends $ZodError<T> {
/** @deprecated Use the `z.treeifyError(err)` function instead. */
format(): core.$ZodFormattedError<T>;
format<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFormattedError<T, U>;
/** @deprecated Use the `z.treeifyError(err)` function instead. */
flatten(): core.$ZodFlattenedError<T>;
flatten<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFlattenedError<T, U>;
/** @deprecated Push directly to `.issues` instead. */
addIssue(issue: core.$ZodIssue): void;
/** @deprecated Push directly to `.issues` instead. */
addIssues(issues: core.$ZodIssue[]): void;
/** @deprecated Check `err.issues.length === 0` instead. */
isEmpty: boolean;
}
/* Prototypes that already carry the lazy helper methods. Seeded with the
* intrinsics so that `init` on a foreign object — it accepts any object —
* can never install an accessor onto a prototype we do not own. */
const _installedErrorProtos = /* @__PURE__ */ new WeakSet<object>([Object.prototype, Error.prototype]);
/* Helper methods live as non-enumerable lazy getters on the shared
* prototype instead of own properties on every instance. On first
* access the getter allocates the per-instance closure and caches it
* as a non-enumerable own property, so detached usage still works and
* the allocation only happens for methods actually touched. */
function _lazyMethod(proto: object, key: string, make: (self: ZodError) => unknown): void {
Object.defineProperty(proto, key, {
configurable: true,
enumerable: false,
get(this: ZodError) {
const value = make(this);
Object.defineProperty(this, key, { value, configurable: true, writable: true });
return value;
},
set(this: ZodError, value: unknown) {
Object.defineProperty(this, key, { value, configurable: true, writable: true });
},
});
}
const initializer = (inst: ZodError, issues: core.$ZodIssue[]) => {
$ZodError.init(inst, issues);
inst.name = "ZodError";
const proto = Object.getPrototypeOf(inst);
if (_installedErrorProtos.has(proto)) return;
_installedErrorProtos.add(proto);
_lazyMethod(proto, "format", (self) => (mapper: any) => core.formatError(self, mapper));
_lazyMethod(proto, "flatten", (self) => (mapper: any) => core.flattenError(self, mapper));
_lazyMethod(proto, "addIssue", (self) => (issue: any) => {
self.issues.push(issue);
self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);
});
_lazyMethod(proto, "addIssues", (self) => (issues: any) => {
self.issues.push(...issues);
self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);
});
Object.defineProperty(proto, "isEmpty", {
configurable: true,
enumerable: false,
get(this: ZodError) {
return this.issues.length === 0;
},
});
};
export const ZodError: core.$constructor<ZodError> = /*@__PURE__*/ core.$constructor("ZodError", initializer);
export const ZodRealError: core.$constructor<ZodError> = /*@__PURE__*/ core.$constructor(
"ZodError",
initializer,
undefined,
{
Parent: Error,
}
);
/** @deprecated Use `z.core.$ZodFlattenedError` instead. */
export type ZodFlattenedError<T, U = string> = core.$ZodFlattenedError<T, U>;
/** @deprecated Use `z.core.$ZodFormattedError` instead. */
export type ZodFormattedError<T, U = string> = core.$ZodFormattedError<T, U>;
/** @deprecated Use `z.core.$ZodErrorMap` instead. */
export type ZodErrorMap<T extends core.$ZodIssueBase = core.$ZodIssue> = core.$ZodErrorMap<T>;
/** @deprecated Use `z.core.$ZodRawIssue` instead. */
export type IssueData = core.$ZodRawIssue;
// /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */
// export type ErrorMapCtx = core.$ZodErrorMapCtx;
@@ -0,0 +1 @@
{"version":3,"names":["_assertClassBrand","require","_classStaticPrivateMethodGet","receiver","classConstructor","method","assertClassBrand"],"sources":["../../src/helpers/classStaticPrivateMethodGet.ts"],"sourcesContent":["/* @minVersion 7.3.2 */\n\nimport assertClassBrand from \"./assertClassBrand.ts\";\nexport default function _classStaticPrivateMethodGet<T extends Function>(\n receiver: Function,\n classConstructor: Function,\n method: T,\n) {\n assertClassBrand(classConstructor, receiver);\n return method;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,iBAAA,GAAAC,OAAA;AACe,SAASC,4BAA4BA,CAClDC,QAAkB,EAClBC,gBAA0B,EAC1BC,MAAS,EACT;EACA,IAAAC,yBAAgB,EAACF,gBAAgB,EAAED,QAAQ,CAAC;EAC5C,OAAOE,MAAM;AACf","ignoreList":[]}
@@ -0,0 +1,120 @@
import type { $ZodStringFormats } from "../core/checks.js";
import type * as errors from "../core/errors.js";
import * as util from "../core/util.js";
const error: () => errors.$ZodErrorMap = () => {
const Sizable: Record<string, { unit: string; verb: string }> = {
string: { unit: "字元", verb: "擁有" },
file: { unit: "位元組", verb: "擁有" },
array: { unit: "項目", verb: "擁有" },
set: { unit: "項目", verb: "擁有" },
map: { unit: "項目", verb: "擁有" },
};
function getSizing(origin: string): { unit: string; verb: string } | null {
return Sizable[origin] ?? null;
}
const FormatDictionary: {
[k in $ZodStringFormats | (string & {})]?: string;
} = {
regex: "輸入",
email: "郵件地址",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO 日期時間",
date: "ISO 日期",
time: "ISO 時間",
duration: "ISO 期間",
ipv4: "IPv4 位址",
ipv6: "IPv6 位址",
mac: "MAC 位址",
cidrv4: "IPv4 範圍",
cidrv6: "IPv6 範圍",
base64: "base64 編碼字串",
base64url: "base64url 編碼字串",
json_string: "JSON 字串",
e164: "E.164 數值",
credit_card: "信用卡號",
currency_code: "貨幣代碼",
iban: "IBAN",
jwt: "JWT",
template_literal: "輸入",
};
const TypeDictionary: {
[k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
} = {
nan: "NaN",
};
return (issue) => {
switch (issue.code) {
case "invalid_type": {
const expected = TypeDictionary[issue.expected] ?? issue.expected;
const receivedType = util.parsedType(issue.input);
const received = TypeDictionary[receivedType] ?? receivedType;
if (/^[A-Z]/.test(issue.expected)) {
return `無效的輸入值:預期為 instanceof ${issue.expected},但收到 ${received}`;
}
return `無效的輸入值:預期為 ${expected},但收到 ${received}`;
}
case "invalid_value":
if (issue.values.length === 1) return `無效的輸入值:預期為 ${util.stringifyPrimitive(issue.values[0])}`;
return `無效的選項:預期為以下其中之一 ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()} ${sizing.unit ?? "個元素"}`;
return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue as errors.$ZodStringFormatIssues;
if (_issue.format === "starts_with") {
return `無效的字串:必須以 "${_issue.prefix}" 開頭`;
}
if (_issue.format === "ends_with") return `無效的字串:必須以 "${_issue.suffix}" 結尾`;
if (_issue.format === "includes") return `無效的字串:必須包含 "${_issue.includes}"`;
if (_issue.format === "regex") return `無效的字串:必須符合格式 ${_issue.pattern}`;
return `無效的 ${FormatDictionary[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `無效的數字:必須為 ${issue.divisor} 的倍數`;
case "unrecognized_keys":
return `無法識別的鍵值${issue.keys.length > 1 ? "們" : ""}:${util.joinValues(issue.keys, "、")}`;
case "invalid_key":
return `${issue.origin} 中有無效的鍵值`;
case "invalid_union":
return "無效的輸入值";
case "invalid_element":
return `${issue.origin} 中有無效的值`;
default:
return `無效的輸入值`;
}
};
};
export default function (): { localeError: errors.$ZodErrorMap } {
return {
localeError: error(),
};
}
@@ -0,0 +1 @@
{"version":3,"file":"radio.js","sources":["../../../src/icons/radio.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Radio\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNC45IDE5LjFDMSAxNS4yIDEgOC44IDQuOSA0LjkiIC8+CiAgPHBhdGggZD0iTTcuOCAxNi4yYy0yLjMtMi4zLTIuMy02LjEgMC04LjUiIC8+CiAgPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMiIgLz4KICA8cGF0aCBkPSJNMTYuMiA3LjhjMi4zIDIuMyAyLjMgNi4xIDAgOC41IiAvPgogIDxwYXRoIGQ9Ik0xOS4xIDQuOUMyMyA4LjggMjMgMTUuMSAxOS4xIDE5IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/radio\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Radio = createLucideIcon('Radio', [\n ['path', { d: 'M4.9 19.1C1 15.2 1 8.8 4.9 4.9', key: '1vaf9d' }],\n ['path', { d: 'M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5', key: 'u1ii0m' }],\n ['circle', { cx: '12', cy: '12', r: '2', key: '1c9p78' }],\n ['path', { d: 'M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5', key: '1j5fej' }],\n ['path', { d: 'M19.1 4.9C23 8.8 23 15.1 19.1 19', key: '10b0cb' }],\n]);\n\nexport default Radio;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC/D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAoC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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resolver").ResolveStepHook} ResolveStepHook */
module.exports = class NextPlugin {
/**
* @param {string | ResolveStepHook} source source
* @param {string | ResolveStepHook} target target
*/
constructor(source, target) {
this.source = source;
this.target = target;
}
/**
* @param {Resolver} resolver the resolver
* @returns {void}
*/
apply(resolver) {
const target = resolver.ensureHook(this.target);
resolver
.getHook(this.source)
.tapAsync("NextPlugin", (request, resolveContext, callback) => {
resolver.doResolve(target, request, null, resolveContext, callback);
});
}
};
@@ -0,0 +1,3 @@
declare const ResponsePlugin: any;
export default ResponsePlugin;
//# sourceMappingURL=response.d.ts.map