@burdenoff/microfe-store 2026.720.3 → 2026.721.1
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/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/components/MarkdownEditor.js +5 -5
- package/dist/components/MarkdownEditor.js.map +1 -1
- package/dist/generated/global-operations.d.ts +18 -0
- package/dist/generated/global-operations.js +16 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2 -0
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/dist/node_modules/bail/index.js +8 -0
- package/dist/node_modules/bail/index.js.map +1 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
- package/dist/node_modules/devlop/lib/default.js +7 -0
- package/dist/node_modules/devlop/lib/default.js.map +1 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
- package/dist/node_modules/extend/index.js +42 -0
- package/dist/node_modules/extend/index.js.map +1 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
- package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
- package/dist/node_modules/is-plain-obj/index.js +10 -0
- package/dist/node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/dist/node_modules/micromark/lib/constructs.js +82 -0
- package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
- package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
- package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
- package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/dist/node_modules/micromark/lib/parse.js +31 -0
- package/dist/node_modules/micromark/lib/parse.js.map +1 -0
- package/dist/node_modules/micromark/lib/postprocess.js +10 -0
- package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
- package/dist/node_modules/micromark/lib/preprocess.js +34 -0
- package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/dist/node_modules/micromark-factory-destination/index.js +28 -0
- package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-label/index.js +22 -0
- package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-space/index.js +16 -0
- package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/dist/node_modules/micromark-util-character/index.js +26 -0
- package/dist/node_modules/micromark-util-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-chunked/index.js +13 -0
- package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
- package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/dist/node_modules/property-information/index.js +28 -0
- package/dist/node_modules/property-information/index.js.map +1 -0
- package/dist/node_modules/property-information/lib/aria.js +63 -0
- package/dist/node_modules/property-information/lib/aria.js.map +1 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/find.js.map +1 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
- package/dist/node_modules/property-information/lib/html.js +328 -0
- package/dist/node_modules/property-information/lib/html.js.map +1 -0
- package/dist/node_modules/property-information/lib/normalize.js +8 -0
- package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/svg.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/create.js +16 -0
- package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/info.js +11 -0
- package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/merge.js +11 -0
- package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/schema.js +11 -0
- package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/types.js +18 -0
- package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
- package/dist/node_modules/property-information/lib/xlink.js +21 -0
- package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
- package/dist/node_modules/property-information/lib/xml.js +17 -0
- package/dist/node_modules/property-information/lib/xml.js.map +1 -0
- package/dist/node_modules/property-information/lib/xmlns.js +16 -0
- package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
- package/dist/node_modules/react-markdown/lib/index.js +142 -0
- package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/remark-parse/lib/index.js +18 -0
- package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
- package/dist/node_modules/remark-rehype/lib/index.js +20 -0
- package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
- package/dist/node_modules/space-separated-tokens/index.js +8 -0
- package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/index.js +21 -0
- package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/dist/node_modules/style-to-object/cjs/index.js +25 -0
- package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/dist/node_modules/trim-lines/index.js +23 -0
- package/dist/node_modules/trim-lines/index.js.map +1 -0
- package/dist/node_modules/trough/lib/index.js +52 -0
- package/dist/node_modules/trough/lib/index.js.map +1 -0
- package/dist/node_modules/unified/lib/callable-instance.js +11 -0
- package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
- package/dist/node_modules/unified/lib/index.js +163 -0
- package/dist/node_modules/unified/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.js +49 -0
- package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-position/lib/index.js +24 -0
- package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
- package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/index.js +91 -0
- package/dist/node_modules/vfile/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/dist/node_modules/vfile-message/lib/index.js +26 -0
- package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
- package/dist/pages/AdminSubmissionsQueuePage.js +174 -174
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +472 -422
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +469 -440
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
2
|
+
var e = typeof self == "object" ? self : globalThis, t = (t, n) => {
|
|
3
|
+
switch (t) {
|
|
4
|
+
case "Function":
|
|
5
|
+
case "SharedWorker":
|
|
6
|
+
case "Worker":
|
|
7
|
+
case "eval":
|
|
8
|
+
case "setInterval":
|
|
9
|
+
case "setTimeout": throw TypeError("unable to deserialize " + t);
|
|
10
|
+
}
|
|
11
|
+
return new e[t](n);
|
|
12
|
+
}, n = (e, n) => {
|
|
13
|
+
let r = (t, n) => (e.set(n, t), t), i = (a) => {
|
|
14
|
+
if (e.has(a)) return e.get(a);
|
|
15
|
+
let [o, s] = n[a];
|
|
16
|
+
switch (o) {
|
|
17
|
+
case 0:
|
|
18
|
+
case -1: return r(s, a);
|
|
19
|
+
case 1: {
|
|
20
|
+
let e = r([], a);
|
|
21
|
+
for (let t of s) e.push(i(t));
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
case 2: {
|
|
25
|
+
let e = r({}, a);
|
|
26
|
+
for (let [t, n] of s) e[i(t)] = i(n);
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
case 3: return r(new Date(s), a);
|
|
30
|
+
case 4: {
|
|
31
|
+
let { source: e, flags: t } = s;
|
|
32
|
+
return r(new RegExp(e, t), a);
|
|
33
|
+
}
|
|
34
|
+
case 5: {
|
|
35
|
+
let e = r(/* @__PURE__ */ new Map(), a);
|
|
36
|
+
for (let [t, n] of s) e.set(i(t), i(n));
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
case 6: {
|
|
40
|
+
let e = r(/* @__PURE__ */ new Set(), a);
|
|
41
|
+
for (let t of s) e.add(i(t));
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
case 7: {
|
|
45
|
+
let { name: e, message: n } = s;
|
|
46
|
+
return r(t(e, n), a);
|
|
47
|
+
}
|
|
48
|
+
case 8: return r(BigInt(s), a);
|
|
49
|
+
case "BigInt": return r(Object(BigInt(s)), a);
|
|
50
|
+
case "ArrayBuffer": return r(new Uint8Array(s).buffer, s);
|
|
51
|
+
case "DataView": {
|
|
52
|
+
let { buffer: e } = new Uint8Array(s);
|
|
53
|
+
return r(new DataView(e), s);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return r(t(o, s), a);
|
|
57
|
+
};
|
|
58
|
+
return i;
|
|
59
|
+
}, r = (e) => n(/* @__PURE__ */ new Map(), e)(0);
|
|
60
|
+
//#endregion
|
|
61
|
+
export { r as deserialize };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=deserialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/deserialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst guard = (name, init) => {\n switch (name) {\n case 'Function':\n case 'SharedWorker':\n case 'Worker':\n case 'eval':\n case 'setInterval':\n case 'setTimeout':\n throw new TypeError('unable to deserialize ' + name);\n }\n return new env[name](init);\n};\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(guard(name, message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n case 'ArrayBuffer':\n return as(new Uint8Array(value).buffer, value);\n case 'DataView': {\n const { buffer } = new Uint8Array(value);\n return as(new DataView(buffer), value);\n }\n }\n return as(guard(type, value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,IAAM,OAAO,QAAS,WAAW,OAAO,YAExC,KAAS,GAAM,MAAS;AAC5B,SAAQ,GAAR;EACE,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,aACH,OAAU,UAAU,2BAA2B,EAAK;;AAExD,QAAO,IAAI,EAAI,GAAM,EAAK;GAGtB,KAA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C,KAAK,cACH,QAAO,EAAG,IAAI,WAAW,EAAM,CAAC,QAAQ,EAAM;GAChD,KAAK,YAAY;IACf,IAAM,EAAE,cAAW,IAAI,WAAW,EAAM;AACxC,WAAO,EAAG,IAAI,SAAS,EAAO,EAAE,EAAM;;;AAG1C,SAAO,EAAG,EAAM,GAAM,EAAM,EAAE,EAAM;;AAGtC,QAAO;GAYI,KAAc,MAAc,kBAAa,IAAI,KAAG,EAAE,EAAW,CAAC,EAAE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { deserialize as e } from "./deserialize.js";
|
|
2
|
+
import { serialize as t } from "./serialize.js";
|
|
3
|
+
//#region node_modules/@ungap/structured-clone/esm/index.js
|
|
4
|
+
var n = typeof structuredClone == "function" ? (n, r) => r && ("json" in r || "lossy" in r) ? e(t(n, r)) : structuredClone(n) : (n, r) => e(t(n, r));
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/index.js"],"sourcesContent":["import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n"],"x_google_ignoreList":[0],"mappings":";;;AAeA,IAAA,IAAe,OAAO,mBAAoB,cAEvC,GAAK,MACJ,MAAY,UAAU,KAAW,WAAW,KAC1C,EAAY,EAAU,GAAK,EAAQ,CAAC,GAAG,gBAAgB,EAAI,IAE9D,GAAK,MAAY,EAAY,EAAU,GAAK,EAAQ,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region node_modules/@ungap/structured-clone/esm/serialize.js
|
|
2
|
+
var e = "", { toString: t } = {}, { keys: n } = Object, r = (n) => {
|
|
3
|
+
let r = typeof n;
|
|
4
|
+
if (r !== "object" || !n) return [0, r];
|
|
5
|
+
let i = t.call(n).slice(8, -1);
|
|
6
|
+
switch (i) {
|
|
7
|
+
case "Array": return [1, e];
|
|
8
|
+
case "Object": return [2, e];
|
|
9
|
+
case "Date": return [3, e];
|
|
10
|
+
case "RegExp": return [4, e];
|
|
11
|
+
case "Map": return [5, e];
|
|
12
|
+
case "Set": return [6, e];
|
|
13
|
+
case "DataView": return [1, i];
|
|
14
|
+
}
|
|
15
|
+
return i.includes("Array") ? [1, i] : i.includes("Error") ? [7, i] : [2, i];
|
|
16
|
+
}, i = ([e, t]) => e === 0 && (t === "function" || t === "symbol"), a = (t, a, o, s) => {
|
|
17
|
+
let c = (e, t) => {
|
|
18
|
+
let n = s.push(e) - 1;
|
|
19
|
+
return o.set(t, n), n;
|
|
20
|
+
}, l = (s) => {
|
|
21
|
+
if (o.has(s)) return o.get(s);
|
|
22
|
+
let [u, d] = r(s);
|
|
23
|
+
switch (u) {
|
|
24
|
+
case 0: {
|
|
25
|
+
let e = s;
|
|
26
|
+
switch (d) {
|
|
27
|
+
case "bigint":
|
|
28
|
+
u = 8, e = s.toString();
|
|
29
|
+
break;
|
|
30
|
+
case "function":
|
|
31
|
+
case "symbol":
|
|
32
|
+
if (t) throw TypeError("unable to serialize " + d);
|
|
33
|
+
e = null;
|
|
34
|
+
break;
|
|
35
|
+
case "undefined": return c([-1], s);
|
|
36
|
+
}
|
|
37
|
+
return c([u, e], s);
|
|
38
|
+
}
|
|
39
|
+
case 1: {
|
|
40
|
+
if (d) {
|
|
41
|
+
let e = s;
|
|
42
|
+
return d === "DataView" ? e = new Uint8Array(s.buffer) : d === "ArrayBuffer" && (e = new Uint8Array(s)), c([d, [...e]], s);
|
|
43
|
+
}
|
|
44
|
+
let e = [], t = c([u, e], s);
|
|
45
|
+
for (let t of s) e.push(l(t));
|
|
46
|
+
return t;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
if (d) switch (d) {
|
|
50
|
+
case "BigInt": return c([d, s.toString()], s);
|
|
51
|
+
case "Boolean":
|
|
52
|
+
case "Number":
|
|
53
|
+
case "String": return c([d, s.valueOf()], s);
|
|
54
|
+
}
|
|
55
|
+
if (a && "toJSON" in s) return l(s.toJSON());
|
|
56
|
+
let e = [], o = c([u, e], s);
|
|
57
|
+
for (let a of n(s)) (t || !i(r(s[a]))) && e.push([l(a), l(s[a])]);
|
|
58
|
+
return o;
|
|
59
|
+
}
|
|
60
|
+
case 3: return c([u, isNaN(s.getTime()) ? e : s.toISOString()], s);
|
|
61
|
+
case 4: {
|
|
62
|
+
let { source: e, flags: t } = s;
|
|
63
|
+
return c([u, {
|
|
64
|
+
source: e,
|
|
65
|
+
flags: t
|
|
66
|
+
}], s);
|
|
67
|
+
}
|
|
68
|
+
case 5: {
|
|
69
|
+
let e = [], n = c([u, e], s);
|
|
70
|
+
for (let [n, a] of s) (t || !(i(r(n)) || i(r(a)))) && e.push([l(n), l(a)]);
|
|
71
|
+
return n;
|
|
72
|
+
}
|
|
73
|
+
case 6: {
|
|
74
|
+
let e = [], n = c([u, e], s);
|
|
75
|
+
for (let n of s) (t || !i(r(n))) && e.push(l(n));
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
let { message: f } = s;
|
|
80
|
+
return c([u, {
|
|
81
|
+
name: d,
|
|
82
|
+
message: f
|
|
83
|
+
}], s);
|
|
84
|
+
};
|
|
85
|
+
return l;
|
|
86
|
+
}, o = (e, { json: t, lossy: n } = {}) => {
|
|
87
|
+
let r = [];
|
|
88
|
+
return a(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
export { o as serialize };
|
|
92
|
+
|
|
93
|
+
//# sourceMappingURL=serialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n case 'DataView':\n return [ARRAY, asString];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type) {\n let spread = value;\n if (type === 'DataView') {\n spread = new Uint8Array(value.buffer);\n }\n else if (type === 'ArrayBuffer') {\n spread = new Uint8Array(value);\n }\n return as([type, [...spread]], value);\n }\n\n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAA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ACZ,IAAQ,EAAG,CAAC,GAAM,EAAQ,EAAE,EAAM;AACxC,SAAK,IAAM,CAAC,GAAK,MAAU,EACzB,EAAI,KAAU,EAAE,EAAW,EAAO,EAAI,CAAC,IAAI,EAAW,EAAO,EAAM,CAAC,MAClE,EAAQ,KAAK,CAAC,EAAK,EAAI,EAAE,EAAK,EAAM,CAAC,CAAC;AAE1C,WAAO;;GAET,KAAA,GAAU;IACR,IAAM,IAAU,EAAE,EACZ,IAAQ,EAAG,CAAC,GAAM,EAAQ,EAAE,EAAM;AACxC,SAAK,IAAM,KAAS,EAClB,EAAI,KAAU,CAAC,EAAW,EAAO,EAAM,CAAC,KACtC,EAAQ,KAAK,EAAK,EAAM,CAAC;AAE7B,WAAO;;;EAIX,IAAM,EAAC,eAAW;AAClB,SAAO,EAAG,CAAC,GAAM;GAAC,MAAM;GAAM;GAAQ,CAAC,EAAE,EAAM;;AAGjD,QAAO;GAeK,KAAa,GAAO,EAAC,SAAM,aAAS,EAAE,KAAK;CACvD,IAAM,IAAI,EAAE;AACZ,QAAO,EAAW,EAAE,KAAQ,IAAQ,CAAC,CAAC,mBAAM,IAAI,KAAG,EAAE,EAAE,CAAC,EAAM,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/bail/index.js"],"sourcesContent":["/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAOA,SAAgB,EAAK,GAAO;AAC1B,KAAI,EACF,OAAM"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/comma-separated-tokens/index.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = t || {};
|
|
4
|
+
return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as stringify };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/comma-separated-tokens/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration for `stringify`.\n * @property {boolean} [padLeft=true]\n * Whether to pad a space before a token.\n * @property {boolean} [padRight=false]\n * Whether to pad a space after a token.\n */\n\n/**\n * @typedef {Options} StringifyOptions\n * Please use `StringifyOptions` instead.\n */\n\n/**\n * Parse comma-separated tokens to an array.\n *\n * @param {string} value\n * Comma-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n /** @type {Array<string>} */\n const tokens = []\n const input = String(value || '')\n let index = input.indexOf(',')\n let start = 0\n /** @type {boolean} */\n let end = false\n\n while (!end) {\n if (index === -1) {\n index = input.length\n end = true\n }\n\n const token = input.slice(start, index).trim()\n\n if (token || !end) {\n tokens.push(token)\n }\n\n start = index + 1\n index = input.indexOf(',', start)\n }\n\n return tokens\n}\n\n/**\n * Serialize an array of strings or numbers to comma-separated tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @param {Options} [options]\n * Configuration for `stringify` (optional).\n * @returns {string}\n * Comma-separated tokens.\n */\nexport function stringify(values, options) {\n const settings = options || {}\n\n // Ensure the last empty entry is seen.\n const input = values[values.length - 1] === '' ? [...values, ''] : values\n\n return input\n .join(\n (settings.padRight ? ' ' : '') +\n ',' +\n (settings.padLeft === false ? '' : ' ')\n )\n .trim()\n}\n"],"x_google_ignoreList":[0],"mappings":";AA4DA,SAAgB,EAAU,GAAQ,GAAS;CACzC,IAAM,IAAW,KAAW,EAAE;AAK9B,SAFc,EAAO,EAAO,SAAS,OAAO,KAAK,CAAC,GAAG,GAAQ,GAAG,GAAG,GAGhE,MACE,EAAS,WAAW,MAAM,MACzB,OACC,EAAS,YAAY,KAAQ,KAAK,KACtC,CACA,MAAM"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/decode-named-character-reference/index.dom.js
|
|
2
|
+
var e = document.createElement("i");
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = "&" + t + ";";
|
|
5
|
+
e.innerHTML = n;
|
|
6
|
+
let r = e.textContent;
|
|
7
|
+
return r.charCodeAt(r.length - 1) === 59 && t !== "semi" || r === n ? !1 : r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as decodeNamedCharacterReference };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.dom.js","names":[],"sources":["../../../node_modules/decode-named-character-reference/index.dom.js"],"sourcesContent":["/// <reference lib=\"dom\" />\n\n/* global document */\n\nconst element = document.createElement('i')\n\n/**\n * @param {string} value\n * @returns {string | false}\n */\nexport function decodeNamedCharacterReference(value) {\n const characterReference = '&' + value + ';'\n element.innerHTML = characterReference\n const character = element.textContent\n\n // Some named character references do not require the closing semicolon\n // (`¬`, for instance), which leads to situations where parsing the assumed\n // named reference of `¬it;` will result in the string `¬it;`.\n // When we encounter a trailing semicolon after parsing, and the character\n // reference to decode was not a semicolon (`;`), we can assume that the\n // matching was not complete.\n if (\n character.charCodeAt(character.length - 1) === 59 /* `;` */ &&\n value !== 'semi'\n ) {\n return false\n }\n\n // If the decoded string is equal to the input, the character reference was\n // not valid.\n return character === characterReference ? false : character\n}\n"],"x_google_ignoreList":[0],"mappings":";AAIA,IAAM,IAAU,SAAS,cAAc,IAAI;AAM3C,SAAgB,EAA8B,GAAO;CACnD,IAAM,IAAqB,MAAM,IAAQ;AACzC,GAAQ,YAAY;CACpB,IAAM,IAAY,EAAQ;AAiB1B,QARE,EAAU,WAAW,EAAU,SAAS,EAAE,KAAK,MAC/C,MAAU,UAOL,MAAc,IALZ,KAKyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","names":[],"sources":["../../../../node_modules/devlop/lib/default.js"],"sourcesContent":["export function deprecate(fn) {\n return fn\n}\n\nexport function equal() {}\n\nexport function ok() {}\n\nexport function unreachable() {}\n"],"x_google_ignoreList":[0],"mappings":";AAMA,SAAgB,IAAK;AAErB,SAAgB,IAAc"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/estree-util-is-identifier-name/lib/index.js
|
|
2
|
+
var e = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, t = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, n = {};
|
|
3
|
+
function r(r, i) {
|
|
4
|
+
return ((i || n).jsx ? t : e).test(r);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { r as name };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/estree-util-is-identifier-name/lib/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [jsx=false]\n * Support JSX identifiers (default: `false`).\n */\n\nconst startRe = /[$_\\p{ID_Start}]/u\nconst contRe = /[$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst contReJsx = /[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst nameRe = /^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\nconst nameReJsx = /^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Checks if the given code point can start an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @returns {boolean}\n * Whether `code` can start an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function start(code) {\n return code ? startRe.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given code point can continue an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `code` can continue an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function cont(code, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? contReJsx : contRe\n return code ? re.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given value is a valid identifier name.\n *\n * @param {string} name\n * Identifier to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `name` can be an identifier.\n */\nexport function name(name, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? nameReJsx : nameRe\n return re.test(name)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAUA,IAAM,IAAS,2DACT,IAAY,4DAGZ,IAAe,EAAE;AA0CvB,SAAgB,EAAK,GAAM,GAAS;AAGlC,UAFiB,KAAW,GACR,MAAM,IAAY,GAC5B,KAAK,EAAK"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/extend/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
5
|
+
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
6
|
+
}, s = function(e) {
|
|
7
|
+
if (!e || r.call(e) !== "[object Object]") return !1;
|
|
8
|
+
var t = n.call(e, "constructor"), i = e.constructor && e.constructor.prototype && n.call(e.constructor.prototype, "isPrototypeOf");
|
|
9
|
+
if (e.constructor && !t && !i) return !1;
|
|
10
|
+
for (var a in e);
|
|
11
|
+
return a === void 0 || n.call(e, a);
|
|
12
|
+
}, c = function(e, t) {
|
|
13
|
+
i && t.name === "__proto__" ? i(e, t.name, {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
configurable: !0,
|
|
16
|
+
value: t.newValue,
|
|
17
|
+
writable: !0
|
|
18
|
+
}) : e[t.name] = t.newValue;
|
|
19
|
+
}, l = function(e, t) {
|
|
20
|
+
if (t === "__proto__") {
|
|
21
|
+
if (!n.call(e, t)) return;
|
|
22
|
+
if (a) return a(e, t).value;
|
|
23
|
+
}
|
|
24
|
+
return e[t];
|
|
25
|
+
};
|
|
26
|
+
t.exports = function e() {
|
|
27
|
+
var t, n, r, i, a, u, d = arguments[0], f = 1, p = arguments.length, m = !1;
|
|
28
|
+
for (typeof d == "boolean" && (m = d, d = arguments[1] || {}, f = 2), (d == null || typeof d != "object" && typeof d != "function") && (d = {}); f < p; ++f) if (t = arguments[f], t != null) for (n in t) r = l(d, n), i = l(t, n), d !== i && (m && i && (s(i) || (a = o(i))) ? (a ? (a = !1, u = r && o(r) ? r : []) : u = r && s(r) ? r : {}, c(d, {
|
|
29
|
+
name: n,
|
|
30
|
+
newValue: e(m, u, i)
|
|
31
|
+
})) : i !== void 0 && c(d, {
|
|
32
|
+
name: n,
|
|
33
|
+
newValue: i
|
|
34
|
+
}));
|
|
35
|
+
return d;
|
|
36
|
+
};
|
|
37
|
+
}));
|
|
38
|
+
//#endregion
|
|
39
|
+
export default t();
|
|
40
|
+
export { t as require_extend };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/extend/index.js"],"sourcesContent":["'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar defineProperty = Object.defineProperty;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) { /**/ }\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\nvar setProperty = function setProperty(target, options) {\n\tif (defineProperty && options.name === '__proto__') {\n\t\tdefineProperty(target, options.name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: options.newValue,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\ttarget[options.name] = options.newValue;\n\t}\n};\n\n// Return undefined instead of __proto__ if '__proto__' is not an own property\nvar getProperty = function getProperty(obj, name) {\n\tif (name === '__proto__') {\n\t\tif (!hasOwn.call(obj, name)) {\n\t\t\treturn void 0;\n\t\t} else if (gOPD) {\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\n\t\t\treturn gOPD(obj, name).value;\n\t\t}\n\t}\n\n\treturn obj[name];\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone;\n\tvar target = arguments[0];\n\tvar i = 1;\n\tvar length = arguments.length;\n\tvar deep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = getProperty(target, name);\n\t\t\t\tcopy = getProperty(options, name);\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n"],"x_google_ignoreList":[0],"mappings":";;;CAEA,IAAI,IAAS,OAAO,UAAU,gBAC1B,IAAQ,OAAO,UAAU,UACzB,IAAiB,OAAO,gBACxB,IAAO,OAAO,0BAEd,IAAU,SAAiB,GAAK;AAKnC,SAJI,OAAO,MAAM,WAAY,aACrB,MAAM,QAAQ,EAAI,GAGnB,EAAM,KAAK,EAAI,KAAK;IAGxB,IAAgB,SAAuB,GAAK;AAC/C,MAAI,CAAC,KAAO,EAAM,KAAK,EAAI,KAAK,kBAC/B,QAAO;EAGR,IAAI,IAAoB,EAAO,KAAK,GAAK,cAAc,EACnD,IAAmB,EAAI,eAAe,EAAI,YAAY,aAAa,EAAO,KAAK,EAAI,YAAY,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AAQ;GAAM,UAAU;GAAM,CAAC;AAQxD,SAAO"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import "../../devlop/lib/default.js";
|
|
3
|
+
import { stringify as t } from "../../comma-separated-tokens/index.js";
|
|
4
|
+
import { name as n } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
5
|
+
import { whitespace as r } from "../../hast-util-whitespace/lib/index.js";
|
|
6
|
+
import { hastToReact as i } from "../../property-information/lib/hast-to-react.js";
|
|
7
|
+
import { find as a } from "../../property-information/lib/find.js";
|
|
8
|
+
import { html as o, svg as s } from "../../property-information/index.js";
|
|
9
|
+
import { stringify as c } from "../../space-separated-tokens/index.js";
|
|
10
|
+
import { require_cjs as l } from "../../style-to-js/cjs/index.js";
|
|
11
|
+
import { pointStart as u } from "../../unist-util-position/lib/index.js";
|
|
12
|
+
import { VFileMessage as d } from "../../vfile-message/lib/index.js";
|
|
13
|
+
//#region node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
14
|
+
var f = /* @__PURE__ */ e(l(), 1), p = {}.hasOwnProperty, m = /* @__PURE__ */ new Map(), h = /[A-Z]/g, g = new Set([
|
|
15
|
+
"table",
|
|
16
|
+
"tbody",
|
|
17
|
+
"thead",
|
|
18
|
+
"tfoot",
|
|
19
|
+
"tr"
|
|
20
|
+
]), _ = new Set(["td", "th"]), v = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
21
|
+
function y(e, t) {
|
|
22
|
+
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
23
|
+
let n = t.filePath || void 0, r;
|
|
24
|
+
if (t.development) {
|
|
25
|
+
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
26
|
+
r = A(n, t.jsxDEV);
|
|
27
|
+
} else {
|
|
28
|
+
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
29
|
+
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
30
|
+
r = k(n, t.jsx, t.jsxs);
|
|
31
|
+
}
|
|
32
|
+
let i = {
|
|
33
|
+
Fragment: t.Fragment,
|
|
34
|
+
ancestors: [],
|
|
35
|
+
components: t.components || {},
|
|
36
|
+
create: r,
|
|
37
|
+
elementAttributeNameCase: t.elementAttributeNameCase || "react",
|
|
38
|
+
evaluater: t.createEvaluater ? t.createEvaluater() : void 0,
|
|
39
|
+
filePath: n,
|
|
40
|
+
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
41
|
+
passKeys: t.passKeys !== !1,
|
|
42
|
+
passNode: t.passNode || !1,
|
|
43
|
+
schema: t.space === "svg" ? s : o,
|
|
44
|
+
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
45
|
+
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
46
|
+
}, a = b(i, e, void 0);
|
|
47
|
+
return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
|
|
48
|
+
}
|
|
49
|
+
function b(e, t, n) {
|
|
50
|
+
if (t.type === "element") return x(e, t, n);
|
|
51
|
+
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return S(e, t);
|
|
52
|
+
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return w(e, t, n);
|
|
53
|
+
if (t.type === "mdxjsEsm") return C(e, t);
|
|
54
|
+
if (t.type === "root") return T(e, t, n);
|
|
55
|
+
if (t.type === "text") return E(e, t);
|
|
56
|
+
}
|
|
57
|
+
function x(e, t, n) {
|
|
58
|
+
let i = e.schema, a = i;
|
|
59
|
+
t.tagName.toLowerCase() === "svg" && i.space === "html" && (a = s, e.schema = a), e.ancestors.push(t);
|
|
60
|
+
let o = I(e, t.tagName, !1), c = j(e, t), l = N(e, t);
|
|
61
|
+
return g.has(t.tagName) && (l = l.filter(function(e) {
|
|
62
|
+
return typeof e == "string" ? !r(e) : !0;
|
|
63
|
+
})), D(e, c, o, t), O(c, l), e.ancestors.pop(), e.schema = i, e.create(t, o, c, n);
|
|
64
|
+
}
|
|
65
|
+
function S(e, t) {
|
|
66
|
+
if (t.data && t.data.estree && e.evaluater) {
|
|
67
|
+
let n = t.data.estree.body[0];
|
|
68
|
+
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
69
|
+
}
|
|
70
|
+
L(e, t.position);
|
|
71
|
+
}
|
|
72
|
+
function C(e, t) {
|
|
73
|
+
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
74
|
+
L(e, t.position);
|
|
75
|
+
}
|
|
76
|
+
function w(e, t, n) {
|
|
77
|
+
let r = e.schema, i = r;
|
|
78
|
+
t.name === "svg" && r.space === "html" && (i = s, e.schema = i), e.ancestors.push(t);
|
|
79
|
+
let a = t.name === null ? e.Fragment : I(e, t.name, !0), o = M(e, t), c = N(e, t);
|
|
80
|
+
return D(e, o, a, t), O(o, c), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
81
|
+
}
|
|
82
|
+
function T(e, t, n) {
|
|
83
|
+
let r = {};
|
|
84
|
+
return O(r, N(e, t)), e.create(t, e.Fragment, r, n);
|
|
85
|
+
}
|
|
86
|
+
function E(e, t) {
|
|
87
|
+
return t.value;
|
|
88
|
+
}
|
|
89
|
+
function D(e, t, n, r) {
|
|
90
|
+
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
91
|
+
}
|
|
92
|
+
function O(e, t) {
|
|
93
|
+
if (t.length > 0) {
|
|
94
|
+
let n = t.length > 1 ? t : t[0];
|
|
95
|
+
n && (e.children = n);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function k(e, t, n) {
|
|
99
|
+
return r;
|
|
100
|
+
function r(e, r, i, a) {
|
|
101
|
+
let o = Array.isArray(i.children) ? n : t;
|
|
102
|
+
return a ? o(r, i, a) : o(r, i);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function A(e, t) {
|
|
106
|
+
return n;
|
|
107
|
+
function n(n, r, i, a) {
|
|
108
|
+
let o = Array.isArray(i.children), s = u(n);
|
|
109
|
+
return t(r, i, a, o, {
|
|
110
|
+
columnNumber: s ? s.column - 1 : void 0,
|
|
111
|
+
fileName: e,
|
|
112
|
+
lineNumber: s ? s.line : void 0
|
|
113
|
+
}, void 0);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function j(e, t) {
|
|
117
|
+
let n = {}, r, i;
|
|
118
|
+
for (i in t.properties) if (i !== "children" && p.call(t.properties, i)) {
|
|
119
|
+
let a = P(e, i, t.properties[i]);
|
|
120
|
+
if (a) {
|
|
121
|
+
let [i, o] = a;
|
|
122
|
+
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && _.has(t.tagName) ? r = o : n[i] = o;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (r) {
|
|
126
|
+
let t = n.style ||= {};
|
|
127
|
+
t[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = r;
|
|
128
|
+
}
|
|
129
|
+
return n;
|
|
130
|
+
}
|
|
131
|
+
function M(e, t) {
|
|
132
|
+
let n = {};
|
|
133
|
+
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
134
|
+
let t = r.data.estree.body[0];
|
|
135
|
+
t.type;
|
|
136
|
+
let i = t.expression;
|
|
137
|
+
i.type;
|
|
138
|
+
let a = i.properties[0];
|
|
139
|
+
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
140
|
+
} else L(e, t.position);
|
|
141
|
+
else {
|
|
142
|
+
let i = r.name, a;
|
|
143
|
+
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
144
|
+
let t = r.value.data.estree.body[0];
|
|
145
|
+
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
146
|
+
} else L(e, t.position);
|
|
147
|
+
else a = r.value === null ? !0 : r.value;
|
|
148
|
+
n[i] = a;
|
|
149
|
+
}
|
|
150
|
+
return n;
|
|
151
|
+
}
|
|
152
|
+
function N(e, t) {
|
|
153
|
+
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : m;
|
|
154
|
+
for (; ++r < t.children.length;) {
|
|
155
|
+
let a = t.children[r], o;
|
|
156
|
+
if (e.passKeys) {
|
|
157
|
+
let e = a.type === "element" ? a.tagName : a.type === "mdxJsxFlowElement" || a.type === "mdxJsxTextElement" ? a.name : void 0;
|
|
158
|
+
if (e) {
|
|
159
|
+
let t = i.get(e) || 0;
|
|
160
|
+
o = e + "-" + t, i.set(e, t + 1);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let s = b(e, a, o);
|
|
164
|
+
s !== void 0 && n.push(s);
|
|
165
|
+
}
|
|
166
|
+
return n;
|
|
167
|
+
}
|
|
168
|
+
function P(e, n, r) {
|
|
169
|
+
let o = a(e.schema, n);
|
|
170
|
+
if (!(r == null || typeof r == "number" && Number.isNaN(r))) {
|
|
171
|
+
if (Array.isArray(r) && (r = o.commaSeparated ? t(r) : c(r)), o.property === "style") {
|
|
172
|
+
let t = typeof r == "object" ? r : F(e, String(r));
|
|
173
|
+
return e.stylePropertyNameCase === "css" && (t = R(t)), ["style", t];
|
|
174
|
+
}
|
|
175
|
+
return [e.elementAttributeNameCase === "react" && o.space ? i[o.property] || o.property : o.attribute, r];
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function F(e, t) {
|
|
179
|
+
try {
|
|
180
|
+
return (0, f.default)(t, { reactCompat: !0 });
|
|
181
|
+
} catch (t) {
|
|
182
|
+
if (e.ignoreInvalidStyle) return {};
|
|
183
|
+
let n = t, r = new d("Cannot parse `style` attribute", {
|
|
184
|
+
ancestors: e.ancestors,
|
|
185
|
+
cause: n,
|
|
186
|
+
ruleId: "style",
|
|
187
|
+
source: "hast-util-to-jsx-runtime"
|
|
188
|
+
});
|
|
189
|
+
throw r.file = e.filePath || void 0, r.url = v + "#cannot-parse-style-attribute", r;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function I(e, t, r) {
|
|
193
|
+
let i;
|
|
194
|
+
if (!r) i = {
|
|
195
|
+
type: "Literal",
|
|
196
|
+
value: t
|
|
197
|
+
};
|
|
198
|
+
else if (t.includes(".")) {
|
|
199
|
+
let e = t.split("."), r = -1, a;
|
|
200
|
+
for (; ++r < e.length;) {
|
|
201
|
+
let t = n(e[r]) ? {
|
|
202
|
+
type: "Identifier",
|
|
203
|
+
name: e[r]
|
|
204
|
+
} : {
|
|
205
|
+
type: "Literal",
|
|
206
|
+
value: e[r]
|
|
207
|
+
};
|
|
208
|
+
a = a ? {
|
|
209
|
+
type: "MemberExpression",
|
|
210
|
+
object: a,
|
|
211
|
+
property: t,
|
|
212
|
+
computed: !!(r && t.type === "Literal"),
|
|
213
|
+
optional: !1
|
|
214
|
+
} : t;
|
|
215
|
+
}
|
|
216
|
+
i = a;
|
|
217
|
+
} else i = n(t) && !/^[a-z]/.test(t) ? {
|
|
218
|
+
type: "Identifier",
|
|
219
|
+
name: t
|
|
220
|
+
} : {
|
|
221
|
+
type: "Literal",
|
|
222
|
+
value: t
|
|
223
|
+
};
|
|
224
|
+
if (i.type === "Literal") {
|
|
225
|
+
let t = i.value;
|
|
226
|
+
return p.call(e.components, t) ? e.components[t] : t;
|
|
227
|
+
}
|
|
228
|
+
if (e.evaluater) return e.evaluater.evaluateExpression(i);
|
|
229
|
+
L(e);
|
|
230
|
+
}
|
|
231
|
+
function L(e, t) {
|
|
232
|
+
let n = new d("Cannot handle MDX estrees without `createEvaluater`", {
|
|
233
|
+
ancestors: e.ancestors,
|
|
234
|
+
place: t,
|
|
235
|
+
ruleId: "mdx-estree",
|
|
236
|
+
source: "hast-util-to-jsx-runtime"
|
|
237
|
+
});
|
|
238
|
+
throw n.file = e.filePath || void 0, n.url = v + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
239
|
+
}
|
|
240
|
+
function R(e) {
|
|
241
|
+
let t = {}, n;
|
|
242
|
+
for (n in e) p.call(e, n) && (t[z(n)] = e[n]);
|
|
243
|
+
return t;
|
|
244
|
+
}
|
|
245
|
+
function z(e) {
|
|
246
|
+
let t = e.replace(h, B);
|
|
247
|
+
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
248
|
+
}
|
|
249
|
+
function B(e) {
|
|
250
|
+
return "-" + e.toLowerCase();
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
export { y as toJsxRuntime };
|
|
254
|
+
|
|
255
|
+
//# sourceMappingURL=index.js.map
|