hermium 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/hermium.mjs +184 -145
- package/dist/server/index.mjs +65 -65
- package/dist/web-server/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +6 -0
- package/dist/web-server/_chunks/ssr-renderer.mjs +22 -0
- package/dist/web-server/_libs/babel__runtime.mjs +237 -0
- package/dist/web-server/_libs/bail.mjs +8 -0
- package/dist/web-server/_libs/base-ui__react.mjs +9554 -0
- package/dist/web-server/_libs/base-ui__utils.mjs +1101 -0
- package/dist/web-server/_libs/ccount.mjs +16 -0
- package/dist/web-server/_libs/character-entities-legacy.mjs +111 -0
- package/dist/web-server/_libs/character-entities.mjs +2130 -0
- package/dist/web-server/_libs/character-reference-invalid.mjs +33 -0
- package/dist/web-server/_libs/class-variance-authority.mjs +44 -0
- package/dist/web-server/_libs/clsx.mjs +16 -0
- package/dist/web-server/_libs/comma-separated-tokens.mjs +31 -0
- package/dist/web-server/_libs/cookie-es.mjs +44 -0
- package/dist/web-server/_libs/croner.mjs +1 -0
- package/dist/web-server/_libs/crossws.mjs +1 -0
- package/dist/web-server/_libs/decode-named-character-reference+[...].mjs +8 -0
- package/dist/web-server/_libs/devlop.mjs +8 -0
- package/dist/web-server/_libs/escape-string-regexp.mjs +9 -0
- package/dist/web-server/_libs/estree-util-is-identifier-name.mjs +11 -0
- package/dist/web-server/_libs/extend.mjs +97 -0
- package/dist/web-server/_libs/fault.mjs +1 -0
- package/dist/web-server/_libs/floating-ui__core.mjs +663 -0
- package/dist/web-server/_libs/floating-ui__dom.mjs +624 -0
- package/dist/web-server/_libs/floating-ui__react-dom.mjs +279 -0
- package/dist/web-server/_libs/floating-ui__utils.mjs +322 -0
- package/dist/web-server/_libs/format.mjs +1 -0
- package/dist/web-server/_libs/h3.mjs +408 -0
- package/dist/web-server/_libs/hast-util-parse-selector.mjs +39 -0
- package/dist/web-server/_libs/hast-util-to-jsx-runtime.mjs +388 -0
- package/dist/web-server/_libs/hast-util-whitespace.mjs +10 -0
- package/dist/web-server/_libs/hastscript.mjs +200 -0
- package/dist/web-server/_libs/highlight.js.mjs +1 -0
- package/dist/web-server/_libs/hookable.mjs +1 -0
- package/dist/web-server/_libs/html-url-attributes.mjs +26 -0
- package/dist/web-server/_libs/inline-style-parser.mjs +142 -0
- package/dist/web-server/_libs/is-alphabetical.mjs +7 -0
- package/dist/web-server/_libs/is-alphanumerical.mjs +8 -0
- package/dist/web-server/_libs/is-decimal.mjs +7 -0
- package/dist/web-server/_libs/is-hexadecimal.mjs +7 -0
- package/dist/web-server/_libs/is-plain-obj.mjs +10 -0
- package/dist/web-server/_libs/isbot.mjs +21 -0
- package/dist/web-server/_libs/longest-streak.mjs +25 -0
- package/dist/web-server/_libs/lowlight.mjs +1 -0
- package/dist/web-server/_libs/markdown-table.mjs +142 -0
- package/dist/web-server/_libs/mdast-util-find-and-replace.mjs +109 -0
- package/dist/web-server/_libs/mdast-util-from-markdown.mjs +717 -0
- package/dist/web-server/_libs/mdast-util-gfm-autolink-literal+[...].mjs +156 -0
- package/dist/web-server/_libs/mdast-util-gfm-footnote.mjs +117 -0
- package/dist/web-server/_libs/mdast-util-gfm-strikethrough.mjs +54 -0
- package/dist/web-server/_libs/mdast-util-gfm-table.mjs +157 -0
- package/dist/web-server/_libs/mdast-util-gfm-task-list-item.mjs +77 -0
- package/dist/web-server/_libs/mdast-util-gfm.mjs +29 -0
- package/dist/web-server/_libs/mdast-util-phrasing.mjs +30 -0
- package/dist/web-server/_libs/mdast-util-to-hast.mjs +710 -0
- package/dist/web-server/_libs/mdast-util-to-markdown.mjs +798 -0
- package/dist/web-server/_libs/mdast-util-to-string.mjs +38 -0
- package/dist/web-server/_libs/micromark-core-commonmark.mjs +2259 -0
- package/dist/web-server/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +344 -0
- package/dist/web-server/_libs/micromark-extension-gfm-footnote+[...].mjs +279 -0
- package/dist/web-server/_libs/micromark-extension-gfm-strikethrough+[...].mjs +98 -0
- package/dist/web-server/_libs/micromark-extension-gfm-table.mjs +491 -0
- package/dist/web-server/_libs/micromark-extension-gfm-tagfilter+[...].mjs +1 -0
- package/dist/web-server/_libs/micromark-extension-gfm-task-list-item+[...].mjs +77 -0
- package/dist/web-server/_libs/micromark-extension-gfm.mjs +18 -0
- package/dist/web-server/_libs/micromark-factory-destination.mjs +94 -0
- package/dist/web-server/_libs/micromark-factory-label.mjs +63 -0
- package/dist/web-server/_libs/micromark-factory-space.mjs +24 -0
- package/dist/web-server/_libs/micromark-factory-title.mjs +65 -0
- package/dist/web-server/_libs/micromark-factory-whitespace.mjs +22 -0
- package/dist/web-server/_libs/micromark-util-character.mjs +44 -0
- package/dist/web-server/_libs/micromark-util-chunked.mjs +36 -0
- package/dist/web-server/_libs/micromark-util-classify-character+[...].mjs +12 -0
- package/dist/web-server/_libs/micromark-util-combine-extensions+[...].mjs +41 -0
- package/dist/web-server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +19 -0
- package/dist/web-server/_libs/micromark-util-decode-string.mjs +21 -0
- package/dist/web-server/_libs/micromark-util-encode.mjs +1 -0
- package/dist/web-server/_libs/micromark-util-html-tag-name.mjs +69 -0
- package/dist/web-server/_libs/micromark-util-normalize-identifier+[...].mjs +6 -0
- package/dist/web-server/_libs/micromark-util-resolve-all.mjs +15 -0
- package/dist/web-server/_libs/micromark-util-sanitize-uri.mjs +41 -0
- package/dist/web-server/_libs/micromark-util-subtokenize.mjs +346 -0
- package/dist/web-server/_libs/micromark.mjs +906 -0
- package/dist/web-server/_libs/ocache.mjs +1 -0
- package/dist/web-server/_libs/ohash.mjs +1 -0
- package/dist/web-server/_libs/parse-entities.mjs +245 -0
- package/dist/web-server/_libs/property-information.mjs +1210 -0
- package/dist/web-server/_libs/react-dom.mjs +10779 -0
- package/dist/web-server/_libs/react-markdown.mjs +147 -0
- package/dist/web-server/_libs/react-syntax-highlighter.mjs +941 -0
- package/dist/web-server/_libs/react.mjs +513 -0
- package/dist/web-server/_libs/refractor.mjs +2425 -0
- package/dist/web-server/_libs/remark-gfm.mjs +20 -0
- package/dist/web-server/_libs/remark-parse.mjs +19 -0
- package/dist/web-server/_libs/remark-rehype.mjs +21 -0
- package/dist/web-server/_libs/reselect.mjs +1 -0
- package/dist/web-server/_libs/rou3.mjs +8 -0
- package/dist/web-server/_libs/seroval-plugins.mjs +58 -0
- package/dist/web-server/_libs/seroval.mjs +1775 -0
- package/dist/web-server/_libs/space-separated-tokens.mjs +11 -0
- package/dist/web-server/_libs/srvx.mjs +781 -0
- package/dist/web-server/_libs/style-to-js.mjs +72 -0
- package/dist/web-server/_libs/style-to-object.mjs +38 -0
- package/dist/web-server/_libs/tabler__icons-react.mjs +224 -0
- package/dist/web-server/_libs/tanstack__history.mjs +204 -0
- package/dist/web-server/_libs/tanstack__query-core.mjs +2552 -0
- package/dist/web-server/_libs/tanstack__react-query.mjs +190 -0
- package/dist/web-server/_libs/tanstack__react-router.mjs +1120 -0
- package/dist/web-server/_libs/tanstack__react-store.mjs +2 -0
- package/dist/web-server/_libs/tanstack__router-core.mjs +4288 -0
- package/dist/web-server/_libs/tanstack__store.mjs +1 -0
- package/dist/web-server/_libs/trim-lines.mjs +41 -0
- package/dist/web-server/_libs/trough.mjs +85 -0
- package/dist/web-server/_libs/ufo.mjs +54 -0
- package/dist/web-server/_libs/unctx.mjs +1 -0
- package/dist/web-server/_libs/ungap__structured-clone.mjs +224 -0
- package/dist/web-server/_libs/unified.mjs +661 -0
- package/dist/web-server/_libs/unist-util-is.mjs +100 -0
- package/dist/web-server/_libs/unist-util-position.mjs +27 -0
- package/dist/web-server/_libs/unist-util-stringify-position.mjs +27 -0
- package/dist/web-server/_libs/unist-util-visit-parents.mjs +83 -0
- package/dist/web-server/_libs/unist-util-visit.mjs +24 -0
- package/dist/web-server/_libs/unstorage.mjs +1 -0
- package/dist/web-server/_libs/use-sync-external-store.mjs +139 -0
- package/dist/web-server/_libs/vfile-message.mjs +138 -0
- package/dist/web-server/_libs/vfile.mjs +467 -0
- package/dist/web-server/_libs/zod.mjs +3915 -0
- package/dist/web-server/_libs/zustand.mjs +343 -0
- package/dist/web-server/_libs/zwitch.mjs +1 -0
- package/dist/web-server/_ssr/index-BLK6uN4p.mjs +612 -0
- package/dist/web-server/_ssr/index-BkkxTg0a.mjs +1855 -0
- package/dist/web-server/_ssr/index-Bp9a_nTf.mjs +66 -0
- package/dist/web-server/_ssr/index-C8t8AZQG.mjs +513 -0
- package/dist/web-server/_ssr/index-DSIu0x-q.mjs +449 -0
- package/dist/web-server/_ssr/index-DqFrn6kj.mjs +278 -0
- package/dist/web-server/_ssr/index-EKE8NFy_.mjs +189 -0
- package/dist/web-server/_ssr/index-JzLhPyir.mjs +213 -0
- package/dist/web-server/_ssr/index-wTy_4MhH.mjs +369 -0
- package/dist/web-server/_ssr/index.mjs +1558 -0
- package/dist/web-server/_ssr/input-BQFduUUo.mjs +20 -0
- package/dist/web-server/_ssr/router-59cN5lqo.mjs +1998 -0
- package/dist/web-server/_ssr/start-HYkvq4Ni.mjs +4 -0
- package/dist/web-server/_ssr/switch-Bim4kX8N.mjs +33 -0
- package/dist/web-server/_ssr/syntax-highlighter-5vezNTce.mjs +62 -0
- package/dist/web-server/_ssr/textarea-CK0ROhfF.mjs +18 -0
- package/dist/web-server/_tanstack-start-manifest_v-DLw6M7p4.mjs +4 -0
- package/dist/web-server/index.mjs +611 -0
- package/package.json +1 -1
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
function _mergeNamespaces(n, m) {
|
|
2
|
+
for (var i = 0; i < m.length; i++) {
|
|
3
|
+
const e = m[i];
|
|
4
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
5
|
+
for (const k in e) {
|
|
6
|
+
if (k !== "default" && !(k in n)) {
|
|
7
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
if (d) {
|
|
9
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return e[k];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
function getDefaultExportFromCjs(x) {
|
|
23
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
24
|
+
}
|
|
25
|
+
var react = { exports: {} };
|
|
26
|
+
var react_production = {};
|
|
27
|
+
var hasRequiredReact_production;
|
|
28
|
+
function requireReact_production() {
|
|
29
|
+
if (hasRequiredReact_production) return react_production;
|
|
30
|
+
hasRequiredReact_production = 1;
|
|
31
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
32
|
+
function getIteratorFn(maybeIterable) {
|
|
33
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
34
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
35
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
36
|
+
}
|
|
37
|
+
var ReactNoopUpdateQueue = {
|
|
38
|
+
isMounted: function() {
|
|
39
|
+
return false;
|
|
40
|
+
},
|
|
41
|
+
enqueueForceUpdate: function() {
|
|
42
|
+
},
|
|
43
|
+
enqueueReplaceState: function() {
|
|
44
|
+
},
|
|
45
|
+
enqueueSetState: function() {
|
|
46
|
+
}
|
|
47
|
+
}, assign = Object.assign, emptyObject = {};
|
|
48
|
+
function Component(props, context, updater) {
|
|
49
|
+
this.props = props;
|
|
50
|
+
this.context = context;
|
|
51
|
+
this.refs = emptyObject;
|
|
52
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
53
|
+
}
|
|
54
|
+
Component.prototype.isReactComponent = {};
|
|
55
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
56
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
57
|
+
throw Error(
|
|
58
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
59
|
+
);
|
|
60
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
61
|
+
};
|
|
62
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
63
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
64
|
+
};
|
|
65
|
+
function ComponentDummy() {
|
|
66
|
+
}
|
|
67
|
+
ComponentDummy.prototype = Component.prototype;
|
|
68
|
+
function PureComponent(props, context, updater) {
|
|
69
|
+
this.props = props;
|
|
70
|
+
this.context = context;
|
|
71
|
+
this.refs = emptyObject;
|
|
72
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
73
|
+
}
|
|
74
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
75
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
76
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
77
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
78
|
+
var isArrayImpl = Array.isArray;
|
|
79
|
+
function noop() {
|
|
80
|
+
}
|
|
81
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
82
|
+
function ReactElement(type, key, props) {
|
|
83
|
+
var refProp = props.ref;
|
|
84
|
+
return {
|
|
85
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
86
|
+
type,
|
|
87
|
+
key,
|
|
88
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
89
|
+
props
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
93
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
94
|
+
}
|
|
95
|
+
function isValidElement(object) {
|
|
96
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
97
|
+
}
|
|
98
|
+
function escape(key) {
|
|
99
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
100
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
101
|
+
return escaperLookup[match];
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
105
|
+
function getElementKey(element, index) {
|
|
106
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
107
|
+
}
|
|
108
|
+
function resolveThenable(thenable) {
|
|
109
|
+
switch (thenable.status) {
|
|
110
|
+
case "fulfilled":
|
|
111
|
+
return thenable.value;
|
|
112
|
+
case "rejected":
|
|
113
|
+
throw thenable.reason;
|
|
114
|
+
default:
|
|
115
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
116
|
+
function(fulfilledValue) {
|
|
117
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
118
|
+
},
|
|
119
|
+
function(error) {
|
|
120
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
121
|
+
}
|
|
122
|
+
)), thenable.status) {
|
|
123
|
+
case "fulfilled":
|
|
124
|
+
return thenable.value;
|
|
125
|
+
case "rejected":
|
|
126
|
+
throw thenable.reason;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
throw thenable;
|
|
130
|
+
}
|
|
131
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
132
|
+
var type = typeof children;
|
|
133
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
134
|
+
var invokeCallback = false;
|
|
135
|
+
if (null === children) invokeCallback = true;
|
|
136
|
+
else
|
|
137
|
+
switch (type) {
|
|
138
|
+
case "bigint":
|
|
139
|
+
case "string":
|
|
140
|
+
case "number":
|
|
141
|
+
invokeCallback = true;
|
|
142
|
+
break;
|
|
143
|
+
case "object":
|
|
144
|
+
switch (children.$$typeof) {
|
|
145
|
+
case REACT_ELEMENT_TYPE:
|
|
146
|
+
case REACT_PORTAL_TYPE:
|
|
147
|
+
invokeCallback = true;
|
|
148
|
+
break;
|
|
149
|
+
case REACT_LAZY_TYPE:
|
|
150
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
151
|
+
invokeCallback(children._payload),
|
|
152
|
+
array,
|
|
153
|
+
escapedPrefix,
|
|
154
|
+
nameSoFar,
|
|
155
|
+
callback
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (invokeCallback)
|
|
160
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
161
|
+
return c;
|
|
162
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
163
|
+
callback,
|
|
164
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
165
|
+
userProvidedKeyEscapeRegex,
|
|
166
|
+
"$&/"
|
|
167
|
+
) + "/") + invokeCallback
|
|
168
|
+
)), array.push(callback)), 1;
|
|
169
|
+
invokeCallback = 0;
|
|
170
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
171
|
+
if (isArrayImpl(children))
|
|
172
|
+
for (var i = 0; i < children.length; i++)
|
|
173
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
174
|
+
nameSoFar,
|
|
175
|
+
array,
|
|
176
|
+
escapedPrefix,
|
|
177
|
+
type,
|
|
178
|
+
callback
|
|
179
|
+
);
|
|
180
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
181
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
182
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
183
|
+
nameSoFar,
|
|
184
|
+
array,
|
|
185
|
+
escapedPrefix,
|
|
186
|
+
type,
|
|
187
|
+
callback
|
|
188
|
+
);
|
|
189
|
+
else if ("object" === type) {
|
|
190
|
+
if ("function" === typeof children.then)
|
|
191
|
+
return mapIntoArray(
|
|
192
|
+
resolveThenable(children),
|
|
193
|
+
array,
|
|
194
|
+
escapedPrefix,
|
|
195
|
+
nameSoFar,
|
|
196
|
+
callback
|
|
197
|
+
);
|
|
198
|
+
array = String(children);
|
|
199
|
+
throw Error(
|
|
200
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return invokeCallback;
|
|
204
|
+
}
|
|
205
|
+
function mapChildren(children, func, context) {
|
|
206
|
+
if (null == children) return children;
|
|
207
|
+
var result = [], count = 0;
|
|
208
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
209
|
+
return func.call(context, child, count++);
|
|
210
|
+
});
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
function lazyInitializer(payload) {
|
|
214
|
+
if (-1 === payload._status) {
|
|
215
|
+
var ctor = payload._result;
|
|
216
|
+
ctor = ctor();
|
|
217
|
+
ctor.then(
|
|
218
|
+
function(moduleObject) {
|
|
219
|
+
if (0 === payload._status || -1 === payload._status)
|
|
220
|
+
payload._status = 1, payload._result = moduleObject;
|
|
221
|
+
},
|
|
222
|
+
function(error) {
|
|
223
|
+
if (0 === payload._status || -1 === payload._status)
|
|
224
|
+
payload._status = 2, payload._result = error;
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
228
|
+
}
|
|
229
|
+
if (1 === payload._status) return payload._result.default;
|
|
230
|
+
throw payload._result;
|
|
231
|
+
}
|
|
232
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
233
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
234
|
+
var event = new window.ErrorEvent("error", {
|
|
235
|
+
bubbles: true,
|
|
236
|
+
cancelable: true,
|
|
237
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
238
|
+
error
|
|
239
|
+
});
|
|
240
|
+
if (!window.dispatchEvent(event)) return;
|
|
241
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
242
|
+
process.emit("uncaughtException", error);
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
console.error(error);
|
|
246
|
+
}, Children = {
|
|
247
|
+
map: mapChildren,
|
|
248
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
249
|
+
mapChildren(
|
|
250
|
+
children,
|
|
251
|
+
function() {
|
|
252
|
+
forEachFunc.apply(this, arguments);
|
|
253
|
+
},
|
|
254
|
+
forEachContext
|
|
255
|
+
);
|
|
256
|
+
},
|
|
257
|
+
count: function(children) {
|
|
258
|
+
var n = 0;
|
|
259
|
+
mapChildren(children, function() {
|
|
260
|
+
n++;
|
|
261
|
+
});
|
|
262
|
+
return n;
|
|
263
|
+
},
|
|
264
|
+
toArray: function(children) {
|
|
265
|
+
return mapChildren(children, function(child) {
|
|
266
|
+
return child;
|
|
267
|
+
}) || [];
|
|
268
|
+
},
|
|
269
|
+
only: function(children) {
|
|
270
|
+
if (!isValidElement(children))
|
|
271
|
+
throw Error(
|
|
272
|
+
"React.Children.only expected to receive a single React element child."
|
|
273
|
+
);
|
|
274
|
+
return children;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
react_production.Activity = REACT_ACTIVITY_TYPE;
|
|
278
|
+
react_production.Children = Children;
|
|
279
|
+
react_production.Component = Component;
|
|
280
|
+
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
281
|
+
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
282
|
+
react_production.PureComponent = PureComponent;
|
|
283
|
+
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
284
|
+
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
285
|
+
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
286
|
+
react_production.__COMPILER_RUNTIME = {
|
|
287
|
+
__proto__: null,
|
|
288
|
+
c: function(size) {
|
|
289
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
react_production.cache = function(fn) {
|
|
293
|
+
return function() {
|
|
294
|
+
return fn.apply(null, arguments);
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
react_production.cacheSignal = function() {
|
|
298
|
+
return null;
|
|
299
|
+
};
|
|
300
|
+
react_production.cloneElement = function(element, config, children) {
|
|
301
|
+
if (null === element || void 0 === element)
|
|
302
|
+
throw Error(
|
|
303
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
304
|
+
);
|
|
305
|
+
var props = assign({}, element.props), key = element.key;
|
|
306
|
+
if (null != config)
|
|
307
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
308
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
309
|
+
var propName = arguments.length - 2;
|
|
310
|
+
if (1 === propName) props.children = children;
|
|
311
|
+
else if (1 < propName) {
|
|
312
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
313
|
+
childArray[i] = arguments[i + 2];
|
|
314
|
+
props.children = childArray;
|
|
315
|
+
}
|
|
316
|
+
return ReactElement(element.type, key, props);
|
|
317
|
+
};
|
|
318
|
+
react_production.createContext = function(defaultValue) {
|
|
319
|
+
defaultValue = {
|
|
320
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
321
|
+
_currentValue: defaultValue,
|
|
322
|
+
_currentValue2: defaultValue,
|
|
323
|
+
_threadCount: 0,
|
|
324
|
+
Provider: null,
|
|
325
|
+
Consumer: null
|
|
326
|
+
};
|
|
327
|
+
defaultValue.Provider = defaultValue;
|
|
328
|
+
defaultValue.Consumer = {
|
|
329
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
330
|
+
_context: defaultValue
|
|
331
|
+
};
|
|
332
|
+
return defaultValue;
|
|
333
|
+
};
|
|
334
|
+
react_production.createElement = function(type, config, children) {
|
|
335
|
+
var propName, props = {}, key = null;
|
|
336
|
+
if (null != config)
|
|
337
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
338
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
339
|
+
var childrenLength = arguments.length - 2;
|
|
340
|
+
if (1 === childrenLength) props.children = children;
|
|
341
|
+
else if (1 < childrenLength) {
|
|
342
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
343
|
+
childArray[i] = arguments[i + 2];
|
|
344
|
+
props.children = childArray;
|
|
345
|
+
}
|
|
346
|
+
if (type && type.defaultProps)
|
|
347
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
348
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
349
|
+
return ReactElement(type, key, props);
|
|
350
|
+
};
|
|
351
|
+
react_production.createRef = function() {
|
|
352
|
+
return { current: null };
|
|
353
|
+
};
|
|
354
|
+
react_production.forwardRef = function(render) {
|
|
355
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
356
|
+
};
|
|
357
|
+
react_production.isValidElement = isValidElement;
|
|
358
|
+
react_production.lazy = function(ctor) {
|
|
359
|
+
return {
|
|
360
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
361
|
+
_payload: { _status: -1, _result: ctor },
|
|
362
|
+
_init: lazyInitializer
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
react_production.memo = function(type, compare) {
|
|
366
|
+
return {
|
|
367
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
368
|
+
type,
|
|
369
|
+
compare: void 0 === compare ? null : compare
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
react_production.startTransition = function(scope) {
|
|
373
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
374
|
+
ReactSharedInternals.T = currentTransition;
|
|
375
|
+
try {
|
|
376
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
377
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
378
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
379
|
+
} catch (error) {
|
|
380
|
+
reportGlobalError(error);
|
|
381
|
+
} finally {
|
|
382
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
react_production.unstable_useCacheRefresh = function() {
|
|
386
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
387
|
+
};
|
|
388
|
+
react_production.use = function(usable) {
|
|
389
|
+
return ReactSharedInternals.H.use(usable);
|
|
390
|
+
};
|
|
391
|
+
react_production.useActionState = function(action, initialState, permalink) {
|
|
392
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
393
|
+
};
|
|
394
|
+
react_production.useCallback = function(callback, deps) {
|
|
395
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
396
|
+
};
|
|
397
|
+
react_production.useContext = function(Context) {
|
|
398
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
399
|
+
};
|
|
400
|
+
react_production.useDebugValue = function() {
|
|
401
|
+
};
|
|
402
|
+
react_production.useDeferredValue = function(value, initialValue) {
|
|
403
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
404
|
+
};
|
|
405
|
+
react_production.useEffect = function(create, deps) {
|
|
406
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
407
|
+
};
|
|
408
|
+
react_production.useEffectEvent = function(callback) {
|
|
409
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
410
|
+
};
|
|
411
|
+
react_production.useId = function() {
|
|
412
|
+
return ReactSharedInternals.H.useId();
|
|
413
|
+
};
|
|
414
|
+
react_production.useImperativeHandle = function(ref, create, deps) {
|
|
415
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
416
|
+
};
|
|
417
|
+
react_production.useInsertionEffect = function(create, deps) {
|
|
418
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
419
|
+
};
|
|
420
|
+
react_production.useLayoutEffect = function(create, deps) {
|
|
421
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
422
|
+
};
|
|
423
|
+
react_production.useMemo = function(create, deps) {
|
|
424
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
425
|
+
};
|
|
426
|
+
react_production.useOptimistic = function(passthrough, reducer) {
|
|
427
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
428
|
+
};
|
|
429
|
+
react_production.useReducer = function(reducer, initialArg, init) {
|
|
430
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
431
|
+
};
|
|
432
|
+
react_production.useRef = function(initialValue) {
|
|
433
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
434
|
+
};
|
|
435
|
+
react_production.useState = function(initialState) {
|
|
436
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
437
|
+
};
|
|
438
|
+
react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
439
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
440
|
+
subscribe,
|
|
441
|
+
getSnapshot,
|
|
442
|
+
getServerSnapshot
|
|
443
|
+
);
|
|
444
|
+
};
|
|
445
|
+
react_production.useTransition = function() {
|
|
446
|
+
return ReactSharedInternals.H.useTransition();
|
|
447
|
+
};
|
|
448
|
+
react_production.version = "19.2.6";
|
|
449
|
+
return react_production;
|
|
450
|
+
}
|
|
451
|
+
var hasRequiredReact;
|
|
452
|
+
function requireReact() {
|
|
453
|
+
if (hasRequiredReact) return react.exports;
|
|
454
|
+
hasRequiredReact = 1;
|
|
455
|
+
{
|
|
456
|
+
react.exports = requireReact_production();
|
|
457
|
+
}
|
|
458
|
+
return react.exports;
|
|
459
|
+
}
|
|
460
|
+
var reactExports = requireReact();
|
|
461
|
+
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
462
|
+
const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
463
|
+
__proto__: null,
|
|
464
|
+
default: React
|
|
465
|
+
}, [reactExports]);
|
|
466
|
+
var jsxRuntime = { exports: {} };
|
|
467
|
+
var reactJsxRuntime_production = {};
|
|
468
|
+
var hasRequiredReactJsxRuntime_production;
|
|
469
|
+
function requireReactJsxRuntime_production() {
|
|
470
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
471
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
472
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
473
|
+
function jsxProd(type, config, maybeKey) {
|
|
474
|
+
var key = null;
|
|
475
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
476
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
477
|
+
if ("key" in config) {
|
|
478
|
+
maybeKey = {};
|
|
479
|
+
for (var propName in config)
|
|
480
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
481
|
+
} else maybeKey = config;
|
|
482
|
+
config = maybeKey.ref;
|
|
483
|
+
return {
|
|
484
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
485
|
+
type,
|
|
486
|
+
key,
|
|
487
|
+
ref: void 0 !== config ? config : null,
|
|
488
|
+
props: maybeKey
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
492
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
493
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
494
|
+
return reactJsxRuntime_production;
|
|
495
|
+
}
|
|
496
|
+
var hasRequiredJsxRuntime;
|
|
497
|
+
function requireJsxRuntime() {
|
|
498
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
499
|
+
hasRequiredJsxRuntime = 1;
|
|
500
|
+
{
|
|
501
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
502
|
+
}
|
|
503
|
+
return jsxRuntime.exports;
|
|
504
|
+
}
|
|
505
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
506
|
+
export {
|
|
507
|
+
React as R,
|
|
508
|
+
requireReact as a,
|
|
509
|
+
React$1 as b,
|
|
510
|
+
getDefaultExportFromCjs as g,
|
|
511
|
+
jsxRuntimeExports as j,
|
|
512
|
+
reactExports as r
|
|
513
|
+
};
|