hermium 0.2.0 → 0.3.0

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.
Files changed (157) hide show
  1. package/bin/hermium.mjs +102 -58
  2. package/dist/server/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +6 -0
  3. package/dist/server/_chunks/ssr-renderer.mjs +22 -0
  4. package/dist/server/_libs/bail.mjs +8 -0
  5. package/dist/server/_libs/base-ui__react.mjs +9858 -0
  6. package/dist/server/_libs/base-ui__utils.mjs +1106 -0
  7. package/dist/server/_libs/ccount.mjs +16 -0
  8. package/dist/server/_libs/character-entities.mjs +2130 -0
  9. package/dist/server/_libs/class-variance-authority.mjs +44 -0
  10. package/dist/server/_libs/clsx.mjs +16 -0
  11. package/dist/server/_libs/comma-separated-tokens.mjs +10 -0
  12. package/dist/server/_libs/cookie-es.mjs +1 -0
  13. package/dist/server/_libs/croner.mjs +1 -0
  14. package/dist/server/_libs/crossws.mjs +1 -0
  15. package/dist/server/_libs/decode-named-character-reference+[...].mjs +8 -0
  16. package/dist/server/_libs/devlop.mjs +8 -0
  17. package/dist/server/_libs/escape-string-regexp.mjs +9 -0
  18. package/dist/server/_libs/estree-util-is-identifier-name.mjs +11 -0
  19. package/dist/server/_libs/extend.mjs +97 -0
  20. package/dist/server/_libs/floating-ui__core.mjs +663 -0
  21. package/dist/server/_libs/floating-ui__dom.mjs +624 -0
  22. package/dist/server/_libs/floating-ui__react-dom.mjs +279 -0
  23. package/dist/server/_libs/floating-ui__utils.mjs +322 -0
  24. package/dist/server/_libs/h3.mjs +408 -0
  25. package/dist/server/_libs/hast-util-is-element.mjs +75 -0
  26. package/dist/server/_libs/hast-util-to-jsx-runtime.mjs +388 -0
  27. package/dist/server/_libs/hast-util-to-text.mjs +305 -0
  28. package/dist/server/_libs/hast-util-whitespace.mjs +10 -0
  29. package/dist/server/_libs/highlight.js.mjs +14756 -0
  30. package/dist/server/_libs/hookable.mjs +1 -0
  31. package/dist/server/_libs/html-url-attributes.mjs +26 -0
  32. package/dist/server/_libs/inline-style-parser.mjs +142 -0
  33. package/dist/server/_libs/is-plain-obj.mjs +10 -0
  34. package/dist/server/_libs/isbot.mjs +21 -0
  35. package/dist/server/_libs/longest-streak.mjs +25 -0
  36. package/dist/server/_libs/lowlight.mjs +262 -0
  37. package/dist/server/_libs/markdown-table.mjs +142 -0
  38. package/dist/server/_libs/mdast-util-find-and-replace.mjs +109 -0
  39. package/dist/server/_libs/mdast-util-from-markdown.mjs +717 -0
  40. package/dist/server/_libs/mdast-util-gfm-autolink-literal+[...].mjs +156 -0
  41. package/dist/server/_libs/mdast-util-gfm-footnote.mjs +117 -0
  42. package/dist/server/_libs/mdast-util-gfm-strikethrough.mjs +54 -0
  43. package/dist/server/_libs/mdast-util-gfm-table.mjs +157 -0
  44. package/dist/server/_libs/mdast-util-gfm-task-list-item.mjs +77 -0
  45. package/dist/server/_libs/mdast-util-gfm.mjs +29 -0
  46. package/dist/server/_libs/mdast-util-phrasing.mjs +30 -0
  47. package/dist/server/_libs/mdast-util-to-hast.mjs +710 -0
  48. package/dist/server/_libs/mdast-util-to-markdown.mjs +798 -0
  49. package/dist/server/_libs/mdast-util-to-string.mjs +38 -0
  50. package/dist/server/_libs/micromark-core-commonmark.mjs +2259 -0
  51. package/dist/server/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +344 -0
  52. package/dist/server/_libs/micromark-extension-gfm-footnote+[...].mjs +279 -0
  53. package/dist/server/_libs/micromark-extension-gfm-strikethrough+[...].mjs +98 -0
  54. package/dist/server/_libs/micromark-extension-gfm-table.mjs +491 -0
  55. package/dist/server/_libs/micromark-extension-gfm-tagfilter+[...].mjs +1 -0
  56. package/dist/server/_libs/micromark-extension-gfm-task-list-item+[...].mjs +77 -0
  57. package/dist/server/_libs/micromark-extension-gfm.mjs +18 -0
  58. package/dist/server/_libs/micromark-factory-destination.mjs +94 -0
  59. package/dist/server/_libs/micromark-factory-label.mjs +63 -0
  60. package/dist/server/_libs/micromark-factory-space.mjs +24 -0
  61. package/dist/server/_libs/micromark-factory-title.mjs +65 -0
  62. package/dist/server/_libs/micromark-factory-whitespace.mjs +22 -0
  63. package/dist/server/_libs/micromark-util-character.mjs +44 -0
  64. package/dist/server/_libs/micromark-util-chunked.mjs +36 -0
  65. package/dist/server/_libs/micromark-util-classify-character+[...].mjs +12 -0
  66. package/dist/server/_libs/micromark-util-combine-extensions+[...].mjs +41 -0
  67. package/dist/server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +19 -0
  68. package/dist/server/_libs/micromark-util-decode-string.mjs +21 -0
  69. package/dist/server/_libs/micromark-util-encode.mjs +1 -0
  70. package/dist/server/_libs/micromark-util-html-tag-name.mjs +69 -0
  71. package/dist/server/_libs/micromark-util-normalize-identifier+[...].mjs +6 -0
  72. package/dist/server/_libs/micromark-util-resolve-all.mjs +15 -0
  73. package/dist/server/_libs/micromark-util-sanitize-uri.mjs +41 -0
  74. package/dist/server/_libs/micromark-util-subtokenize.mjs +346 -0
  75. package/dist/server/_libs/micromark.mjs +906 -0
  76. package/dist/server/_libs/ocache.mjs +1 -0
  77. package/dist/server/_libs/ohash.mjs +1 -0
  78. package/dist/server/_libs/property-information.mjs +1209 -0
  79. package/dist/server/_libs/react-dom.mjs +10779 -0
  80. package/dist/server/_libs/react-markdown.mjs +147 -0
  81. package/dist/server/_libs/react.mjs +513 -0
  82. package/dist/server/_libs/rehype-highlight.mjs +94 -0
  83. package/dist/server/_libs/remark-gfm.mjs +20 -0
  84. package/dist/server/_libs/remark-parse.mjs +19 -0
  85. package/dist/server/_libs/remark-rehype.mjs +21 -0
  86. package/dist/server/_libs/reselect.mjs +1 -0
  87. package/dist/server/_libs/rou3.mjs +8 -0
  88. package/dist/server/_libs/seroval-plugins.mjs +1 -0
  89. package/dist/server/_libs/seroval.mjs +1 -0
  90. package/dist/server/_libs/space-separated-tokens.mjs +6 -0
  91. package/dist/server/_libs/srvx.mjs +781 -0
  92. package/dist/server/_libs/style-to-js.mjs +72 -0
  93. package/dist/server/_libs/style-to-object.mjs +38 -0
  94. package/dist/server/_libs/tabler__icons-react.mjs +140 -0
  95. package/dist/server/_libs/tailwind-merge.mjs +3255 -0
  96. package/dist/server/_libs/tanstack__history.mjs +29 -0
  97. package/dist/server/_libs/tanstack__react-router.mjs +1120 -0
  98. package/dist/server/_libs/tanstack__react-store.mjs +2 -0
  99. package/dist/server/_libs/tanstack__router-core.mjs +3594 -0
  100. package/dist/server/_libs/tanstack__store.mjs +1 -0
  101. package/dist/server/_libs/trim-lines.mjs +41 -0
  102. package/dist/server/_libs/trough.mjs +85 -0
  103. package/dist/server/_libs/ufo.mjs +54 -0
  104. package/dist/server/_libs/unctx.mjs +1 -0
  105. package/dist/server/_libs/ungap__structured-clone.mjs +224 -0
  106. package/dist/server/_libs/unified.mjs +661 -0
  107. package/dist/server/_libs/unist-util-find-after.mjs +41 -0
  108. package/dist/server/_libs/unist-util-is.mjs +100 -0
  109. package/dist/server/_libs/unist-util-position.mjs +27 -0
  110. package/dist/server/_libs/unist-util-stringify-position.mjs +27 -0
  111. package/dist/server/_libs/unist-util-visit-parents.mjs +83 -0
  112. package/dist/server/_libs/unist-util-visit.mjs +24 -0
  113. package/dist/server/_libs/unstorage.mjs +1 -0
  114. package/dist/server/_libs/use-sync-external-store.mjs +139 -0
  115. package/dist/server/_libs/vfile-message.mjs +138 -0
  116. package/dist/server/_libs/vfile.mjs +467 -0
  117. package/dist/server/_libs/zustand.mjs +43 -0
  118. package/dist/server/_libs/zwitch.mjs +1 -0
  119. package/dist/server/_ssr/ChatInputBlock-Bu2-iop_.mjs +220 -0
  120. package/dist/server/_ssr/MarkdownMessage-CNS7OSKN.mjs +68 -0
  121. package/dist/server/_ssr/chat._sessionId-P02iSfut.mjs +477 -0
  122. package/dist/server/_ssr/chat.index-BYB_48NC.mjs +64 -0
  123. package/dist/server/_ssr/index-C1mT_2d8.mjs +4890 -0
  124. package/dist/server/_ssr/index-DFV9_oCk.mjs +43 -0
  125. package/dist/server/_ssr/memory-CW_fSOG9.mjs +257 -0
  126. package/dist/server/_ssr/router-CUAfx91O.mjs +2035 -0
  127. package/dist/server/_ssr/settings-DoXurzvn.mjs +10 -0
  128. package/dist/server/_ssr/skills-Cs7A5ZwO.mjs +422 -0
  129. package/dist/server/_ssr/theme-BK4-7E2h.mjs +42 -0
  130. package/dist/server/_ssr/usage-Bs2-LXGz.mjs +298 -0
  131. package/dist/server/_tanstack-start-manifest_v-C7Upe2TI.mjs +4 -0
  132. package/dist/server/index.mjs +506 -0
  133. package/package.json +4 -3
  134. package/dist/public/assets/css/index-Dfs9RUU9.css +0 -1
  135. package/dist/public/assets/css/styles-B8p6jk5Z.css +0 -1
  136. package/dist/public/assets/js/ChatInputBlock-Bw7AL70H.js +0 -1
  137. package/dist/public/assets/js/MarkdownMessage-8d7Y6VL-.js +0 -1
  138. package/dist/public/assets/js/base-ui-BvQbAt_1.js +0 -1
  139. package/dist/public/assets/js/chat._sessionId-BG6lVraH.js +0 -1
  140. package/dist/public/assets/js/chat.index-D2zdMPTT.js +0 -1
  141. package/dist/public/assets/js/index-C0AK45FU.js +0 -60
  142. package/dist/public/assets/js/index-Cx5En4FK.js +0 -1
  143. package/dist/public/assets/js/memory-CeSRdTkW.js +0 -3
  144. package/dist/public/assets/js/router-8uDKazL-.js +0 -1
  145. package/dist/public/assets/js/settings-Bc3Y5zXO.js +0 -1
  146. package/dist/public/assets/js/skills-DZv7sA_5.js +0 -1
  147. package/dist/public/assets/js/theme-CPkdkpaj.js +0 -1
  148. package/dist/public/assets/js/usage-DXQsT9_b.js +0 -1
  149. package/dist/public/assets/woff2/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  150. package/dist/public/assets/woff2/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  151. package/dist/public/assets/woff2/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  152. package/dist/public/assets/woff2/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  153. package/dist/public/assets/woff2/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  154. package/dist/public/favicon.ico +0 -0
  155. package/dist/public/logo.png +0 -0
  156. package/dist/public/manifest.json +0 -25
  157. package/dist/public/robots.txt +0 -3
@@ -0,0 +1,147 @@
1
+ import { u as unreachable } from "./devlop.mjs";
2
+ import { j as jsxRuntimeExports } from "./react.mjs";
3
+ import { u as unified } from "./unified.mjs";
4
+ import { r as remarkParse } from "./remark-parse.mjs";
5
+ import { r as remarkRehype } from "./remark-rehype.mjs";
6
+ import { V as VFile } from "./vfile.mjs";
7
+ import { v as visit } from "./unist-util-visit.mjs";
8
+ import { t as toJsxRuntime } from "./hast-util-to-jsx-runtime.mjs";
9
+ import { u as urlAttributes } from "./html-url-attributes.mjs";
10
+ const changelog = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md";
11
+ const emptyPlugins = [];
12
+ const emptyRemarkRehypeOptions = { allowDangerousHtml: true };
13
+ const safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i;
14
+ const deprecations = [
15
+ { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
16
+ { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
17
+ {
18
+ from: "allowNode",
19
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
20
+ to: "allowElement"
21
+ },
22
+ {
23
+ from: "allowedTypes",
24
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
25
+ to: "allowedElements"
26
+ },
27
+ { from: "className", id: "remove-classname" },
28
+ {
29
+ from: "disallowedTypes",
30
+ id: "replace-allownode-allowedtypes-and-disallowedtypes",
31
+ to: "disallowedElements"
32
+ },
33
+ { from: "escapeHtml", id: "remove-buggy-html-in-markdown-parser" },
34
+ { from: "includeElementIndex", id: "#remove-includeelementindex" },
35
+ {
36
+ from: "includeNodeIndex",
37
+ id: "change-includenodeindex-to-includeelementindex"
38
+ },
39
+ { from: "linkTarget", id: "remove-linktarget" },
40
+ { from: "plugins", id: "change-plugins-to-remarkplugins", to: "remarkPlugins" },
41
+ { from: "rawSourcePos", id: "#remove-rawsourcepos" },
42
+ { from: "renderers", id: "change-renderers-to-components", to: "components" },
43
+ { from: "source", id: "change-source-to-children", to: "children" },
44
+ { from: "sourcePos", id: "#remove-sourcepos" },
45
+ { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
46
+ { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
47
+ ];
48
+ function Markdown(options) {
49
+ const processor = createProcessor(options);
50
+ const file = createFile(options);
51
+ return post(processor.runSync(processor.parse(file), file), options);
52
+ }
53
+ function createProcessor(options) {
54
+ const rehypePlugins = options.rehypePlugins || emptyPlugins;
55
+ const remarkPlugins = options.remarkPlugins || emptyPlugins;
56
+ const remarkRehypeOptions = options.remarkRehypeOptions ? { ...options.remarkRehypeOptions, ...emptyRemarkRehypeOptions } : emptyRemarkRehypeOptions;
57
+ const processor = unified().use(remarkParse).use(remarkPlugins).use(remarkRehype, remarkRehypeOptions).use(rehypePlugins);
58
+ return processor;
59
+ }
60
+ function createFile(options) {
61
+ const children = options.children || "";
62
+ const file = new VFile();
63
+ if (typeof children === "string") {
64
+ file.value = children;
65
+ }
66
+ return file;
67
+ }
68
+ function post(tree, options) {
69
+ const allowedElements = options.allowedElements;
70
+ const allowElement = options.allowElement;
71
+ const components = options.components;
72
+ const disallowedElements = options.disallowedElements;
73
+ const skipHtml = options.skipHtml;
74
+ const unwrapDisallowed = options.unwrapDisallowed;
75
+ const urlTransform = options.urlTransform || defaultUrlTransform;
76
+ for (const deprecation of deprecations) {
77
+ if (Object.hasOwn(options, deprecation.from)) {
78
+ unreachable(
79
+ "Unexpected `" + deprecation.from + "` prop, " + (deprecation.to ? "use `" + deprecation.to + "` instead" : "remove it") + " (see <" + changelog + "#" + deprecation.id + "> for more info)"
80
+ );
81
+ }
82
+ }
83
+ visit(tree, transform);
84
+ return toJsxRuntime(tree, {
85
+ Fragment: jsxRuntimeExports.Fragment,
86
+ components,
87
+ ignoreInvalidStyle: true,
88
+ jsx: jsxRuntimeExports.jsx,
89
+ jsxs: jsxRuntimeExports.jsxs,
90
+ passKeys: true,
91
+ passNode: true
92
+ });
93
+ function transform(node, index, parent) {
94
+ if (node.type === "raw" && parent && typeof index === "number") {
95
+ if (skipHtml) {
96
+ parent.children.splice(index, 1);
97
+ } else {
98
+ parent.children[index] = { type: "text", value: node.value };
99
+ }
100
+ return index;
101
+ }
102
+ if (node.type === "element") {
103
+ let key;
104
+ for (key in urlAttributes) {
105
+ if (Object.hasOwn(urlAttributes, key) && Object.hasOwn(node.properties, key)) {
106
+ const value = node.properties[key];
107
+ const test = urlAttributes[key];
108
+ if (test === null || test.includes(node.tagName)) {
109
+ node.properties[key] = urlTransform(String(value || ""), key, node);
110
+ }
111
+ }
112
+ }
113
+ }
114
+ if (node.type === "element") {
115
+ let remove = allowedElements ? !allowedElements.includes(node.tagName) : disallowedElements ? disallowedElements.includes(node.tagName) : false;
116
+ if (!remove && allowElement && typeof index === "number") {
117
+ remove = !allowElement(node, index, parent);
118
+ }
119
+ if (remove && parent && typeof index === "number") {
120
+ if (unwrapDisallowed && node.children) {
121
+ parent.children.splice(index, 1, ...node.children);
122
+ } else {
123
+ parent.children.splice(index, 1);
124
+ }
125
+ return index;
126
+ }
127
+ }
128
+ }
129
+ }
130
+ function defaultUrlTransform(value) {
131
+ const colon = value.indexOf(":");
132
+ const questionMark = value.indexOf("?");
133
+ const numberSign = value.indexOf("#");
134
+ const slash = value.indexOf("/");
135
+ if (
136
+ // If there is no protocol, it’s relative.
137
+ colon === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
138
+ slash !== -1 && colon > slash || questionMark !== -1 && colon > questionMark || numberSign !== -1 && colon > numberSign || // It is a protocol, it should be allowed.
139
+ safeProtocol.test(value.slice(0, colon))
140
+ ) {
141
+ return value;
142
+ }
143
+ return "";
144
+ }
145
+ export {
146
+ Markdown as M
147
+ };
@@ -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 jsxRuntime = { exports: {} };
26
+ var reactJsxRuntime_production = {};
27
+ var hasRequiredReactJsxRuntime_production;
28
+ function requireReactJsxRuntime_production() {
29
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
30
+ hasRequiredReactJsxRuntime_production = 1;
31
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
32
+ function jsxProd(type, config, maybeKey) {
33
+ var key = null;
34
+ void 0 !== maybeKey && (key = "" + maybeKey);
35
+ void 0 !== config.key && (key = "" + config.key);
36
+ if ("key" in config) {
37
+ maybeKey = {};
38
+ for (var propName in config)
39
+ "key" !== propName && (maybeKey[propName] = config[propName]);
40
+ } else maybeKey = config;
41
+ config = maybeKey.ref;
42
+ return {
43
+ $$typeof: REACT_ELEMENT_TYPE,
44
+ type,
45
+ key,
46
+ ref: void 0 !== config ? config : null,
47
+ props: maybeKey
48
+ };
49
+ }
50
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
51
+ reactJsxRuntime_production.jsx = jsxProd;
52
+ reactJsxRuntime_production.jsxs = jsxProd;
53
+ return reactJsxRuntime_production;
54
+ }
55
+ var hasRequiredJsxRuntime;
56
+ function requireJsxRuntime() {
57
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
58
+ hasRequiredJsxRuntime = 1;
59
+ {
60
+ jsxRuntime.exports = requireReactJsxRuntime_production();
61
+ }
62
+ return jsxRuntime.exports;
63
+ }
64
+ var jsxRuntimeExports = requireJsxRuntime();
65
+ var react = { exports: {} };
66
+ var react_production = {};
67
+ var hasRequiredReact_production;
68
+ function requireReact_production() {
69
+ if (hasRequiredReact_production) return react_production;
70
+ hasRequiredReact_production = 1;
71
+ 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;
72
+ function getIteratorFn(maybeIterable) {
73
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
74
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
75
+ return "function" === typeof maybeIterable ? maybeIterable : null;
76
+ }
77
+ var ReactNoopUpdateQueue = {
78
+ isMounted: function() {
79
+ return false;
80
+ },
81
+ enqueueForceUpdate: function() {
82
+ },
83
+ enqueueReplaceState: function() {
84
+ },
85
+ enqueueSetState: function() {
86
+ }
87
+ }, assign = Object.assign, emptyObject = {};
88
+ function Component(props, context, updater) {
89
+ this.props = props;
90
+ this.context = context;
91
+ this.refs = emptyObject;
92
+ this.updater = updater || ReactNoopUpdateQueue;
93
+ }
94
+ Component.prototype.isReactComponent = {};
95
+ Component.prototype.setState = function(partialState, callback) {
96
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
97
+ throw Error(
98
+ "takes an object of state variables to update or a function which returns an object of state variables."
99
+ );
100
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
101
+ };
102
+ Component.prototype.forceUpdate = function(callback) {
103
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
104
+ };
105
+ function ComponentDummy() {
106
+ }
107
+ ComponentDummy.prototype = Component.prototype;
108
+ function PureComponent(props, context, updater) {
109
+ this.props = props;
110
+ this.context = context;
111
+ this.refs = emptyObject;
112
+ this.updater = updater || ReactNoopUpdateQueue;
113
+ }
114
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
115
+ pureComponentPrototype.constructor = PureComponent;
116
+ assign(pureComponentPrototype, Component.prototype);
117
+ pureComponentPrototype.isPureReactComponent = true;
118
+ var isArrayImpl = Array.isArray;
119
+ function noop() {
120
+ }
121
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
122
+ function ReactElement(type, key, props) {
123
+ var refProp = props.ref;
124
+ return {
125
+ $$typeof: REACT_ELEMENT_TYPE,
126
+ type,
127
+ key,
128
+ ref: void 0 !== refProp ? refProp : null,
129
+ props
130
+ };
131
+ }
132
+ function cloneAndReplaceKey(oldElement, newKey) {
133
+ return ReactElement(oldElement.type, newKey, oldElement.props);
134
+ }
135
+ function isValidElement(object) {
136
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
137
+ }
138
+ function escape(key) {
139
+ var escaperLookup = { "=": "=0", ":": "=2" };
140
+ return "$" + key.replace(/[=:]/g, function(match) {
141
+ return escaperLookup[match];
142
+ });
143
+ }
144
+ var userProvidedKeyEscapeRegex = /\/+/g;
145
+ function getElementKey(element, index) {
146
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
147
+ }
148
+ function resolveThenable(thenable) {
149
+ switch (thenable.status) {
150
+ case "fulfilled":
151
+ return thenable.value;
152
+ case "rejected":
153
+ throw thenable.reason;
154
+ default:
155
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
156
+ function(fulfilledValue) {
157
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
158
+ },
159
+ function(error) {
160
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
161
+ }
162
+ )), thenable.status) {
163
+ case "fulfilled":
164
+ return thenable.value;
165
+ case "rejected":
166
+ throw thenable.reason;
167
+ }
168
+ }
169
+ throw thenable;
170
+ }
171
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
172
+ var type = typeof children;
173
+ if ("undefined" === type || "boolean" === type) children = null;
174
+ var invokeCallback = false;
175
+ if (null === children) invokeCallback = true;
176
+ else
177
+ switch (type) {
178
+ case "bigint":
179
+ case "string":
180
+ case "number":
181
+ invokeCallback = true;
182
+ break;
183
+ case "object":
184
+ switch (children.$$typeof) {
185
+ case REACT_ELEMENT_TYPE:
186
+ case REACT_PORTAL_TYPE:
187
+ invokeCallback = true;
188
+ break;
189
+ case REACT_LAZY_TYPE:
190
+ return invokeCallback = children._init, mapIntoArray(
191
+ invokeCallback(children._payload),
192
+ array,
193
+ escapedPrefix,
194
+ nameSoFar,
195
+ callback
196
+ );
197
+ }
198
+ }
199
+ if (invokeCallback)
200
+ 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) {
201
+ return c;
202
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
203
+ callback,
204
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
205
+ userProvidedKeyEscapeRegex,
206
+ "$&/"
207
+ ) + "/") + invokeCallback
208
+ )), array.push(callback)), 1;
209
+ invokeCallback = 0;
210
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
211
+ if (isArrayImpl(children))
212
+ for (var i = 0; i < children.length; i++)
213
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
214
+ nameSoFar,
215
+ array,
216
+ escapedPrefix,
217
+ type,
218
+ callback
219
+ );
220
+ else if (i = getIteratorFn(children), "function" === typeof i)
221
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
222
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
223
+ nameSoFar,
224
+ array,
225
+ escapedPrefix,
226
+ type,
227
+ callback
228
+ );
229
+ else if ("object" === type) {
230
+ if ("function" === typeof children.then)
231
+ return mapIntoArray(
232
+ resolveThenable(children),
233
+ array,
234
+ escapedPrefix,
235
+ nameSoFar,
236
+ callback
237
+ );
238
+ array = String(children);
239
+ throw Error(
240
+ "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."
241
+ );
242
+ }
243
+ return invokeCallback;
244
+ }
245
+ function mapChildren(children, func, context) {
246
+ if (null == children) return children;
247
+ var result = [], count = 0;
248
+ mapIntoArray(children, result, "", "", function(child) {
249
+ return func.call(context, child, count++);
250
+ });
251
+ return result;
252
+ }
253
+ function lazyInitializer(payload) {
254
+ if (-1 === payload._status) {
255
+ var ctor = payload._result;
256
+ ctor = ctor();
257
+ ctor.then(
258
+ function(moduleObject) {
259
+ if (0 === payload._status || -1 === payload._status)
260
+ payload._status = 1, payload._result = moduleObject;
261
+ },
262
+ function(error) {
263
+ if (0 === payload._status || -1 === payload._status)
264
+ payload._status = 2, payload._result = error;
265
+ }
266
+ );
267
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
268
+ }
269
+ if (1 === payload._status) return payload._result.default;
270
+ throw payload._result;
271
+ }
272
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
273
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
274
+ var event = new window.ErrorEvent("error", {
275
+ bubbles: true,
276
+ cancelable: true,
277
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
278
+ error
279
+ });
280
+ if (!window.dispatchEvent(event)) return;
281
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
282
+ process.emit("uncaughtException", error);
283
+ return;
284
+ }
285
+ console.error(error);
286
+ }, Children = {
287
+ map: mapChildren,
288
+ forEach: function(children, forEachFunc, forEachContext) {
289
+ mapChildren(
290
+ children,
291
+ function() {
292
+ forEachFunc.apply(this, arguments);
293
+ },
294
+ forEachContext
295
+ );
296
+ },
297
+ count: function(children) {
298
+ var n = 0;
299
+ mapChildren(children, function() {
300
+ n++;
301
+ });
302
+ return n;
303
+ },
304
+ toArray: function(children) {
305
+ return mapChildren(children, function(child) {
306
+ return child;
307
+ }) || [];
308
+ },
309
+ only: function(children) {
310
+ if (!isValidElement(children))
311
+ throw Error(
312
+ "React.Children.only expected to receive a single React element child."
313
+ );
314
+ return children;
315
+ }
316
+ };
317
+ react_production.Activity = REACT_ACTIVITY_TYPE;
318
+ react_production.Children = Children;
319
+ react_production.Component = Component;
320
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
321
+ react_production.Profiler = REACT_PROFILER_TYPE;
322
+ react_production.PureComponent = PureComponent;
323
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
324
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
325
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
326
+ react_production.__COMPILER_RUNTIME = {
327
+ __proto__: null,
328
+ c: function(size) {
329
+ return ReactSharedInternals.H.useMemoCache(size);
330
+ }
331
+ };
332
+ react_production.cache = function(fn) {
333
+ return function() {
334
+ return fn.apply(null, arguments);
335
+ };
336
+ };
337
+ react_production.cacheSignal = function() {
338
+ return null;
339
+ };
340
+ react_production.cloneElement = function(element, config, children) {
341
+ if (null === element || void 0 === element)
342
+ throw Error(
343
+ "The argument must be a React element, but you passed " + element + "."
344
+ );
345
+ var props = assign({}, element.props), key = element.key;
346
+ if (null != config)
347
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
348
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
349
+ var propName = arguments.length - 2;
350
+ if (1 === propName) props.children = children;
351
+ else if (1 < propName) {
352
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
353
+ childArray[i] = arguments[i + 2];
354
+ props.children = childArray;
355
+ }
356
+ return ReactElement(element.type, key, props);
357
+ };
358
+ react_production.createContext = function(defaultValue) {
359
+ defaultValue = {
360
+ $$typeof: REACT_CONTEXT_TYPE,
361
+ _currentValue: defaultValue,
362
+ _currentValue2: defaultValue,
363
+ _threadCount: 0,
364
+ Provider: null,
365
+ Consumer: null
366
+ };
367
+ defaultValue.Provider = defaultValue;
368
+ defaultValue.Consumer = {
369
+ $$typeof: REACT_CONSUMER_TYPE,
370
+ _context: defaultValue
371
+ };
372
+ return defaultValue;
373
+ };
374
+ react_production.createElement = function(type, config, children) {
375
+ var propName, props = {}, key = null;
376
+ if (null != config)
377
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
378
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
379
+ var childrenLength = arguments.length - 2;
380
+ if (1 === childrenLength) props.children = children;
381
+ else if (1 < childrenLength) {
382
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
383
+ childArray[i] = arguments[i + 2];
384
+ props.children = childArray;
385
+ }
386
+ if (type && type.defaultProps)
387
+ for (propName in childrenLength = type.defaultProps, childrenLength)
388
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
389
+ return ReactElement(type, key, props);
390
+ };
391
+ react_production.createRef = function() {
392
+ return { current: null };
393
+ };
394
+ react_production.forwardRef = function(render) {
395
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
396
+ };
397
+ react_production.isValidElement = isValidElement;
398
+ react_production.lazy = function(ctor) {
399
+ return {
400
+ $$typeof: REACT_LAZY_TYPE,
401
+ _payload: { _status: -1, _result: ctor },
402
+ _init: lazyInitializer
403
+ };
404
+ };
405
+ react_production.memo = function(type, compare) {
406
+ return {
407
+ $$typeof: REACT_MEMO_TYPE,
408
+ type,
409
+ compare: void 0 === compare ? null : compare
410
+ };
411
+ };
412
+ react_production.startTransition = function(scope) {
413
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
414
+ ReactSharedInternals.T = currentTransition;
415
+ try {
416
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
417
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
418
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
419
+ } catch (error) {
420
+ reportGlobalError(error);
421
+ } finally {
422
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
423
+ }
424
+ };
425
+ react_production.unstable_useCacheRefresh = function() {
426
+ return ReactSharedInternals.H.useCacheRefresh();
427
+ };
428
+ react_production.use = function(usable) {
429
+ return ReactSharedInternals.H.use(usable);
430
+ };
431
+ react_production.useActionState = function(action, initialState, permalink) {
432
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
433
+ };
434
+ react_production.useCallback = function(callback, deps) {
435
+ return ReactSharedInternals.H.useCallback(callback, deps);
436
+ };
437
+ react_production.useContext = function(Context) {
438
+ return ReactSharedInternals.H.useContext(Context);
439
+ };
440
+ react_production.useDebugValue = function() {
441
+ };
442
+ react_production.useDeferredValue = function(value, initialValue) {
443
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
444
+ };
445
+ react_production.useEffect = function(create, deps) {
446
+ return ReactSharedInternals.H.useEffect(create, deps);
447
+ };
448
+ react_production.useEffectEvent = function(callback) {
449
+ return ReactSharedInternals.H.useEffectEvent(callback);
450
+ };
451
+ react_production.useId = function() {
452
+ return ReactSharedInternals.H.useId();
453
+ };
454
+ react_production.useImperativeHandle = function(ref, create, deps) {
455
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
456
+ };
457
+ react_production.useInsertionEffect = function(create, deps) {
458
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
459
+ };
460
+ react_production.useLayoutEffect = function(create, deps) {
461
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
462
+ };
463
+ react_production.useMemo = function(create, deps) {
464
+ return ReactSharedInternals.H.useMemo(create, deps);
465
+ };
466
+ react_production.useOptimistic = function(passthrough, reducer) {
467
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
468
+ };
469
+ react_production.useReducer = function(reducer, initialArg, init) {
470
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
471
+ };
472
+ react_production.useRef = function(initialValue) {
473
+ return ReactSharedInternals.H.useRef(initialValue);
474
+ };
475
+ react_production.useState = function(initialState) {
476
+ return ReactSharedInternals.H.useState(initialState);
477
+ };
478
+ react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
479
+ return ReactSharedInternals.H.useSyncExternalStore(
480
+ subscribe,
481
+ getSnapshot,
482
+ getServerSnapshot
483
+ );
484
+ };
485
+ react_production.useTransition = function() {
486
+ return ReactSharedInternals.H.useTransition();
487
+ };
488
+ react_production.version = "19.2.6";
489
+ return react_production;
490
+ }
491
+ var hasRequiredReact;
492
+ function requireReact() {
493
+ if (hasRequiredReact) return react.exports;
494
+ hasRequiredReact = 1;
495
+ {
496
+ react.exports = requireReact_production();
497
+ }
498
+ return react.exports;
499
+ }
500
+ var reactExports = requireReact();
501
+ const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
502
+ const React$1 = /* @__PURE__ */ _mergeNamespaces({
503
+ __proto__: null,
504
+ default: React
505
+ }, [reactExports]);
506
+ export {
507
+ React as R,
508
+ React$1 as a,
509
+ requireReact as b,
510
+ getDefaultExportFromCjs as g,
511
+ jsxRuntimeExports as j,
512
+ reactExports as r
513
+ };