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AuBE,QEhFhB,SAAiBzR,GAEtB,OADAkF,EAAAA,EAAAA,YAAU,kBAAM0B,GAAkBzF,EAAAA,EAAAA,GAAS,CAAC,EAAGnB,GAAO,GAAE,CAACA,IAClD,IACT,EF8EAuR,GAAuBG,QGlFhB,SAAiB7M,GACtB,IACExB,EACEwB,EADFxB,SAGF,OADA6B,EAAAA,EAAAA,YAAU,kBAAM0B,EAAiBvD,EAAS,GAAE,CAACA,IACtC,IACT,EH6EA","sources":["../../src/main.js","../../node_modules/@uiw/github-corners/src/index.ts","../../node_modules/@uiw/react-github-corners/src/index.tsx","../../node_modules/@uiw/react-back-to-top/esm/index.js","../../node_modules/@uiw/react-markdown-preview-example/esm/store.js","../../node_modules/@uiw/react-markdown-preview/esm/nodes/octiconLink.js","../../node_modules/@uiw/react-markdown-preview/esm/plugins/useCopied.js","../../node_modules/@uiw/react-markdown-preview-example/esm/Markdown.js","../../node_modules/@uiw/react-markdown-preview-example/esm/Logo.js","../../node_modules/@uiw/react-markdown-preview/esm/plugins/reservedMeta.js","../../node_modules/@uiw/react-markdown-preview/esm/index.js","../../node_modules/@uiw/react-markdown-preview/esm/nodes/copy.js","../../node_modules/@uiw/react-markdown-preview-example/esm/index.js","../../node_modules/@uiw/react-markdown-preview-example/esm/Github.js","../../node_modules/@uiw/react-markdown-preview-example/esm/Corners.js","../../node_modules/@uiw/react-markdown-preview-example/esm/Example.js"],"sourcesContent":["/**\n * *** This styling is an extra step which is likely not required. ***\n * https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard\n * \n * Why is it here? To ensure:\n * \n * 1. the element is able to have focus and selection.\n * 2. if element was to flash render it has minimal visual impact.\n * 3. less flakyness with selection and copying which **might** occur if\n * the textarea element is not visible.\n *\n * The likelihood is the element won't even render, not even a flash,\n * so some of these are just precautions. However in IE the element\n * is visible whilst the popup box asking the user for permission for\n * the web page to copy to the clipboard.\n * \n * Place in top-left corner of screen regardless of scroll position.\n *\n * @typedef CopyTextToClipboard\n * @property {(text: string, method?: (isCopy: boolean) => void) => void} void\n * @returns {void}\n * \n * @param {string} text \n * @param {CopyTextToClipboard} cb \n */\nexport default function copyTextToClipboard(text, cb) {\n if (typeof document === \"undefined\") return;\n const el = document.createElement('textarea');\n el.value = text;\n el.setAttribute('readonly', '');\n el.style = {\n position: 'absolute',\n left: '-9999px',\n }\n document.body.appendChild(el);\n const selected = document.getSelection().rangeCount > 0 ? document.getSelection().getRangeAt(0) : false;\n el.select();\n let isCopy = false;\n try {\n const successful = document.execCommand('copy');\n isCopy = !!successful;\n } catch (err) {\n isCopy = false;\n }\n document.body.removeChild(el);\n if (selected && document.getSelection) {\n document.getSelection().removeAllRanges();\n document.getSelection().addRange(selected);\n }\n cb && cb(isCopy);\n};\n","// @ts-ignore\ndeclare global {\n interface HTMLElementTagNameMap {\n 'github-corners': GithubCorners;\n }\n namespace JSX {\n interface IntrinsicElements {\n 'github-corners': Partial | {\n style?: Partial | React.CSSProperties;\n };\n }\n }\n}\n\nconst GITHUB_CORNERS_TEMPLATE = document.createElement(\"template\");\nGITHUB_CORNERS_TEMPLATE.innerHTML = `\n\n\n \n \n \n \n \n \n \n\n`;\n\nexport class GithubCorners extends HTMLElement {\n /** Sets the z-order of a positioned element and its descendants or flex items. */\n 'z-index'?: string;\n height?: string | number;\n width?: string | number;\n href?: string;\n color?: string;\n fill?: string;\n position?: string;\n target?: string;\n top?: string;\n left?: string;\n right?: string = '0';\n bottom?: string;\n transform?: string;\n private shadow: ShadowRoot\n static get observedAttributes(): string[] {\n return ['style', 'z-index', 'target', 'height', 'width', 'href', 'color', 'fill', 'position', 'top', 'left', 'right', 'bottom', 'transform'];\n }\n constructor() {\n super();\n this.shadow = this.attachShadow({ mode: 'open' });\n this.shadow.appendChild(this.ownerDocument.importNode(GITHUB_CORNERS_TEMPLATE.content, true));\n this.update()\n }\n private setAttr(name: string, value: string) {\n const svg = this.shadow.querySelector('svg');\n if (/(href)/.test(name.toLocaleLowerCase())) {\n svg.lastElementChild.setAttribute('xlink:href', value);\n } else if (/(color|fill)/.test(name.toLocaleLowerCase())) {\n (svg.firstElementChild as HTMLAnchorElement).style[name as any] = value;\n } else if (/(z-index|position|top|left|right|bottom|transform)/.test(name.toLocaleLowerCase())) {\n svg.style[name as any] = value;\n } else {\n svg.setAttribute(name, value);\n }\n }\n private update() {\n ;[...this.getAttributeNames(), 'right'].forEach((name) => {\n const value = this.getAttribute(name) || this[name as keyof GithubCorners] as any || '';\n this.setAttr(name, value);\n });\n }\n attributeChangedCallback(name: string, oldValue: string, newValue: string) {\n if (oldValue !== newValue) {\n this.setAttr(name, newValue);\n }\n }\n}\n\ncustomElements.define('github-corners', GithubCorners);","import React from 'react';\nimport '@uiw/github-corners';\n\nexport interface GitHubCornersProps extends React.AnchorHTMLAttributes {\n /**\n * The link to your project page.\n */\n href?: string;\n /**\n * The width and height of the corner. \n * Default: `80`\n */\n size?: number;\n /**\n * The background color of the corner.\n * Default: `#151513`\n */\n bgColor?: string;\n /**\n * The Github logo color of the corner.\n * Default: `#fff`\n */\n color?: string;\n /**\n * The position of corner. \n * Default: `right`\n */\n position?: 'left' | 'right';\n /** Is it displayed at the bottom? */\n bottom?: boolean,\n /** \n * It is positioned relative to the initial containing block established.\n * Default: `false`\n */\n fixed?: boolean;\n /**\n * Sets the z-order of a positioned element and its descendants or flex items.\n */\n zIndex?: number;\n}\n\nexport default function githubCorners(props: GitHubCornersProps) {\n const { size = 80, fixed = false, bottom, zIndex, className, style, bgColor = '#151513', color = '#fff', position = 'right', ...otherProps } = props;\n const styl: React.CSSProperties = position === 'left' ? { left: 0, right: 'initial', transform: 'scale(-1, 1)' } : { right: 0, left: 'initial', transform: 'scale(1, 1)' };\n if (bottom) {\n styl.bottom = 0;\n styl.top = 'initial';\n styl.transform = position === 'left' ? 'scale(-1, -1)' : 'scale(1, -1)';\n } else {\n styl.bottom = 'initial';\n styl.top = 0;\n }\n return (\n \n );\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"prefixCls\", \"element\", \"top\", \"size\", \"strokeWidth\", \"smooth\", \"hideProgress\", \"children\"];\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar warpperStyle = {\n position: 'sticky',\n bottom: 15,\n right: 15,\n visibility: 'visible',\n opacity: 0,\n transition: 'visibility 0.3s linear 0s, opacity 0.3s linear 0s',\n cursor: 'pointer',\n userSelect: 'none'\n};\nvar svgStyle = {\n display: 'block',\n transform: 'rotate(-90deg)'\n};\nvar circleStyle = {\n transition: 'stroke-dashoffset 0.3s linear 0s'\n};\nvar childStyle = {\n position: 'absolute',\n top: 0,\n display: 'flex',\n height: '100%',\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center',\n color: '#fff',\n fontSize: 12\n};\nvar documentElement = document.documentElement;\nexport default function BackToUp(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n className,\n prefixCls = 'w-back-to-up',\n element = documentElement,\n top = 120,\n size = 35,\n strokeWidth = 3,\n smooth = true,\n hideProgress = false,\n children\n } = props,\n others = _objectWithoutPropertiesLoose(props, _excluded);\n var $dom = useRef(null);\n var cls = [className, prefixCls].filter(Boolean).join(' ');\n var style = Object.assign({}, warpperStyle, {\n position: element === documentElement ? 'fixed' : 'sticky'\n }, others.style, {\n width: size,\n height: size,\n opacity: top === 0 ? 1 : 0\n });\n var center = useMemo(() => size / 2, [size]);\n var radius = useMemo(() => size / 2 - strokeWidth / 2, [size, strokeWidth]);\n var dasharray = useMemo(() => Math.PI * radius * 2, [radius]);\n var [progress, setProgress] = useState(dasharray || 0);\n var handleScroll = ev => {\n var {\n clientHeight,\n scrollHeight,\n scrollTop\n } = element || documentElement;\n var percentage = scrollTop / (scrollHeight - clientHeight);\n setProgress(dasharray - dasharray * percentage || 0);\n if ($dom.current && top > 0) {\n $dom.current.style.opacity = scrollTop > top ? '1' : '0';\n }\n };\n useEffect(() => {\n var scrollElement = element === documentElement ? document : element;\n if (scrollElement) {\n scrollElement.addEventListener('scroll', handleScroll, {\n passive: true\n });\n }\n return () => {\n if (scrollElement) {\n scrollElement.removeEventListener('scroll', handleScroll);\n }\n };\n }, [element]);\n var goToUp = ev => {\n element.scrollTo({\n top: 0,\n behavior: smooth ? 'smooth' : 'auto'\n });\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: cls,\n ref: $dom\n }, others, {\n onClick: goToUp,\n style: style,\n children: [!hideProgress && /*#__PURE__*/_jsxs(\"svg\", {\n viewBox: \"0 0 \" + size + \" \" + size,\n width: size,\n height: size,\n focusable: \"false\",\n style: svgStyle,\n children: [/*#__PURE__*/_jsx(\"circle\", {\n fill: \"rgb(0 0 0 / 75%)\",\n stroke: \"rgb(200 200 200 / 85%)\",\n strokeWidth: strokeWidth,\n r: radius,\n cx: center,\n cy: center\n }), /*#__PURE__*/_jsx(\"circle\", {\n fill: \"none\",\n stroke: \"rgb(0 0 0 / 50%)\",\n strokeWidth: strokeWidth,\n r: radius,\n cx: center,\n cy: center,\n strokeDasharray: dasharray,\n strokeDashoffset: progress || 0,\n style: circleStyle\n })]\n }), children && /*#__PURE__*/_jsx(\"div\", {\n style: childStyle,\n children: children\n })]\n }));\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useSyncExternalStore } from 'react';\nvar globalStore = {\n corners: {\n fixed: true,\n target: '__blank',\n zIndex: 10\n },\n darkMode: {\n permanent: true,\n dark: 'Dark',\n light: 'Light'\n },\n example: null\n};\nvar listeners = [];\nexport var store = {\n setCorners(opts) {\n globalStore = _extends({}, globalStore, {\n corners: _extends({}, globalStore.corners, opts)\n });\n emitChange();\n },\n setDarkMode(opts) {\n globalStore = _extends({}, globalStore, {\n darkMode: _extends({}, globalStore.darkMode, opts)\n });\n console.log('globalStore:', globalStore);\n emitChange();\n },\n setExample(example) {\n globalStore = _extends({}, globalStore, {\n example\n });\n emitChange();\n }\n};\nfunction getSnapshot() {\n return globalStore;\n}\nfunction subscribe(listener) {\n listeners = [...listeners, listener];\n return () => {\n listeners = listeners.filter(l => l !== listener);\n };\n}\nfunction emitChange() {\n for (var listener of listeners) {\n listener();\n }\n}\nexport function useStores() {\n return useSyncExternalStore(subscribe, getSnapshot);\n}","export var octiconLink = {\n type: 'element',\n tagName: 'svg',\n properties: {\n className: 'octicon octicon-link',\n viewBox: '0 0 16 16',\n version: '1.1',\n width: '16',\n height: '16',\n ariaHidden: 'true'\n },\n children: [{\n type: 'element',\n tagName: 'path',\n children: [],\n properties: {\n fillRule: 'evenodd',\n d: 'M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'\n }\n }]\n};","import copyTextToClipboard from '@uiw/copy-to-clipboard';\nimport { useEffect } from 'react';\nfunction getParentElement(target) {\n if (!target) return null;\n var dom = target;\n if (dom.dataset.code && dom.classList.contains('copied')) {\n return dom;\n }\n if (dom.parentElement) {\n return getParentElement(dom.parentElement);\n }\n return null;\n}\nexport function useCopied(container) {\n var handle = event => {\n var target = getParentElement(event.target);\n if (!target) return;\n target.classList.add('active');\n copyTextToClipboard(target.dataset.code, function () {\n setTimeout(() => {\n target.classList.remove('active');\n }, 2000);\n });\n };\n useEffect(() => {\n var _container$current, _container$current2;\n (_container$current = container.current) == null ? void 0 : _container$current.removeEventListener('click', handle, false);\n (_container$current2 = container.current) == null ? void 0 : _container$current2.addEventListener('click', handle, false);\n return () => {\n var _container$current3;\n (_container$current3 = container.current) == null ? void 0 : _container$current3.removeEventListener('click', handle, false);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [container]);\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _taggedTemplateLiteralLoose from \"@babel/runtime/helpers/taggedTemplateLiteralLoose\";\nvar _excluded = [\"inline\", \"node\", \"components\", \"data\"],\n _excluded2 = [\"data-meta\", \"data-md\"],\n _excluded3 = [\"source\", \"components\", \"data\", \"rehypeRewrite\"];\nvar _templateObject;\nimport CodeLayout from 'react-code-preview-layout';\nimport { getMetaId, isMeta, getURLParameters } from 'markdown-react-code-preview-loader';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport styled from 'styled-components';\nimport rehypeIgnore from 'rehype-ignore';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Preview = CodeLayout.Preview;\nvar Code = CodeLayout.Code;\nvar Toolbar = CodeLayout.Toolbar;\nvar MarkdownStyle = styled(MarkdownPreview)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([\"\\n margin: 0 auto;\\n box-shadow:\\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\\n border: 1px solid var(--color-border-default, #30363d);\\n text-align: left;\\n max-width: 56rem;\\n overflow: auto;\\n padding: 2rem;\\n border-radius: 0.55rem;\\n\"])));\nvar CodePreview = _ref => {\n var _node$position;\n var {\n inline,\n node,\n components,\n data\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var _ref2 = props,\n {\n 'data-md': metaData\n } = _ref2,\n rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);\n if (inline || !isMeta(metaData)) {\n return /*#__PURE__*/_jsx(\"code\", _extends({}, props));\n }\n var line = (_node$position = node.position) == null ? void 0 : _node$position.start.line;\n var metaId = getMetaId(metaData) || String(line);\n var Child = components[\"\" + metaId];\n if (metaId && typeof Child === 'function') {\n var code = data[metaId].value || '';\n var {\n title,\n boreder = 1,\n checkered = 1,\n code: codeNum = 1,\n toolbar = 1\n } = getURLParameters(metaData);\n return /*#__PURE__*/_jsxs(CodeLayout, {\n bordered: !!Number(boreder),\n disableCheckered: !Number(checkered),\n style: {\n marginBottom: 16\n },\n children: [/*#__PURE__*/_jsx(Preview, {\n children: /*#__PURE__*/_jsx(Child, {})\n }), !!Number(toolbar) && /*#__PURE__*/_jsx(Toolbar, {\n text: code,\n visibleButton: !!Number(codeNum),\n children: title || 'Code Example'\n }), !!Number(codeNum) && /*#__PURE__*/_jsx(Code, {\n tagName: \"pre\",\n style: {\n marginBottom: 0\n },\n children: /*#__PURE__*/_jsx(\"code\", _extends({}, rest))\n })]\n });\n }\n return /*#__PURE__*/_jsx(\"code\", _extends({}, rest));\n};\nexport default function Markdown(props) {\n var {\n components,\n data,\n rehypeRewrite: _rehypeRewrite\n } = props,\n reset = _objectWithoutPropertiesLoose(props, _excluded3);\n return /*#__PURE__*/_jsx(MarkdownStyle, _extends({\n disableCopy: true,\n rehypePlugins: [rehypeIgnore, ...(reset.rehypePlugins || [])]\n }, reset, {\n rehypeRewrite: (node, index, parent) => {\n var _node$children$0$data;\n if (node.type === 'element' && node.tagName === 'pre' && (_node$children$0$data = node.children[0].data) != null && _node$children$0$data.meta) {\n var _node$children$0$data2;\n var meta = (_node$children$0$data2 = node.children[0].data) == null ? void 0 : _node$children$0$data2.meta;\n if (isMeta(meta)) {\n node.tagName = 'div';\n if (!node.properties) {\n node.properties = {};\n }\n node.properties['data-md'] = meta;\n node.properties['data-meta'] = 'preview';\n }\n }\n _rehypeRewrite && _rehypeRewrite(node, index, parent);\n },\n source: data.source,\n components: _extends({}, components, {\n div: rest => /*#__PURE__*/_jsx(CodePreview, _extends({}, rest, {\n components: data.components,\n data: data.data\n }))\n })\n }));\n}","import _taggedTemplateLiteralLoose from \"@babel/runtime/helpers/taggedTemplateLiteralLoose\";\nvar _templateObject, _templateObject2;\nimport { keyframes, styled } from 'styled-components';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar rotate = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([\"\\n from {\\n transform: rotate(0deg);\\n }\\n\\n to {\\n transform: rotate(360deg);\\n }\\n\"])));\nvar SVG = styled.svg(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose([\"\\n color: var(--rmpe-logo-color, #61dafb);\\n height: 8rem;\\n margin-bottom: 3rem;\\n pointer-events: none;\\n animation: \", \" infinite 20s linear;\\n\"])), rotate);\nexport var Logo = /*#__PURE__*/_jsxs(SVG, {\n width: \"100%\",\n height: \"100%\",\n viewBox: \"-10.5 -9.45 21 18.9\",\n fill: \"none\",\n children: [/*#__PURE__*/_jsx(\"circle\", {\n cx: \"0\",\n cy: \"0\",\n r: \"2\",\n fill: \"currentColor\"\n }), /*#__PURE__*/_jsxs(\"g\", {\n stroke: \"currentColor\",\n strokeWidth: \"1\",\n fill: \"none\",\n children: [/*#__PURE__*/_jsx(\"ellipse\", {\n rx: \"10\",\n ry: \"4.5\"\n }), /*#__PURE__*/_jsx(\"ellipse\", {\n rx: \"10\",\n ry: \"4.5\",\n transform: \"rotate(60)\"\n }), /*#__PURE__*/_jsx(\"ellipse\", {\n rx: \"10\",\n ry: \"4.5\",\n transform: \"rotate(120)\"\n })]\n })]\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { visit } from 'unist-util-visit';\nexport var reservedMeta = function reservedMeta(options) {\n if (options === void 0) {\n options = {};\n }\n return tree => {\n visit(tree, node => {\n if (node.type === 'element' && node.tagName === 'code' && node.data && node.data.meta) {\n node.properties = _extends({}, node.properties, {\n 'data-meta': String(node.data.meta)\n });\n }\n });\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"source\", \"style\", \"disableCopy\", \"skipHtml\", \"onScroll\", \"onMouseOver\", \"pluginsFilter\", \"rehypeRewrite\", \"wrapperElement\", \"warpperElement\"];\nimport React, { useImperativeHandle } from 'react';\nimport ReactMarkdown from 'react-markdown';\nimport gfm from 'remark-gfm';\nimport raw from 'rehype-raw';\nimport slug from 'rehype-slug';\nimport headings from 'rehype-autolink-headings';\nimport rehypeAttrs from 'rehype-attr';\nimport rehypeIgnore from 'rehype-ignore';\nimport rehypePrism from 'rehype-prism-plus';\nimport rehypeRewrite, { getCodeString } from 'rehype-rewrite';\nimport { octiconLink } from './nodes/octiconLink';\nimport { copyElement } from './nodes/copy';\nimport { useCopied } from './plugins/useCopied';\nimport \"./styles/markdown.css\";\nimport { reservedMeta } from './plugins/reservedMeta';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'wmde-markdown wmde-markdown-color',\n className,\n source,\n style,\n disableCopy = false,\n skipHtml = true,\n onScroll,\n onMouseOver,\n pluginsFilter,\n rehypeRewrite: rewrite,\n wrapperElement = {},\n warpperElement = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var mdp = React.useRef(null);\n useImperativeHandle(ref, () => _extends({}, props, {\n mdp\n }), [mdp, props]);\n var cls = (prefixCls || '') + \" \" + (className || '');\n useCopied(mdp);\n var rehypeRewriteHandle = (node, index, parent) => {\n if (node.type === 'element' && parent && parent.type === 'root' && /h(1|2|3|4|5|6)/.test(node.tagName)) {\n var child = node.children && node.children[0];\n if (child && child.properties && child.properties.ariaHidden === 'true') {\n child.properties = _extends({\n class: 'anchor'\n }, child.properties);\n child.children = [octiconLink];\n }\n }\n if (node.type === 'element' && node.tagName === 'pre' && !disableCopy) {\n var code = getCodeString(node.children);\n node.children.push(copyElement(code));\n }\n rewrite && rewrite(node, index, parent);\n };\n var rehypePlugins = [reservedMeta, [rehypePrism, {\n ignoreMissing: true\n }], slug, headings, rehypeIgnore, [rehypeRewrite, {\n rewrite: rehypeRewriteHandle\n }], [rehypeAttrs, {\n properties: 'attr'\n }], ...(other.rehypePlugins || [])];\n var customProps = {\n allowElement: (element, index, parent) => {\n if (other.allowElement) {\n return other.allowElement(element, index, parent);\n }\n return /^[A-Za-z0-9]+$/.test(element.tagName);\n }\n };\n if (skipHtml) {\n rehypePlugins.push(raw);\n }\n var remarkPlugins = [...(other.remarkPlugins || []), gfm];\n var wrapperProps = _extends({}, warpperElement, wrapperElement);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: mdp,\n onScroll: onScroll,\n onMouseOver: onMouseOver\n }, wrapperProps, {\n className: cls,\n style: style,\n children: /*#__PURE__*/_jsx(ReactMarkdown, _extends({}, customProps, other, {\n skipHtml: skipHtml,\n rehypePlugins: pluginsFilter ? pluginsFilter('rehype', rehypePlugins) : rehypePlugins,\n remarkPlugins: pluginsFilter ? pluginsFilter('remark', remarkPlugins) : remarkPlugins,\n children: source || ''\n }))\n }));\n});","export function copyElement(str) {\n if (str === void 0) {\n str = '';\n }\n return {\n type: 'element',\n tagName: 'div',\n properties: {\n class: 'copied',\n 'data-code': str\n },\n children: [{\n type: 'element',\n tagName: 'svg',\n properties: {\n className: 'octicon-copy',\n ariaHidden: 'true',\n viewBox: '0 0 16 16',\n fill: 'currentColor',\n height: 12,\n width: 12\n },\n children: [{\n type: 'element',\n tagName: 'path',\n properties: {\n fillRule: 'evenodd',\n d: 'M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z'\n },\n children: []\n }, {\n type: 'element',\n tagName: 'path',\n properties: {\n fillRule: 'evenodd',\n d: 'M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z'\n },\n children: []\n }]\n }, {\n type: 'element',\n tagName: 'svg',\n properties: {\n className: 'octicon-check',\n ariaHidden: 'true',\n viewBox: '0 0 16 16',\n fill: 'currentColor',\n height: 12,\n width: 12\n },\n children: [{\n type: 'element',\n tagName: 'path',\n properties: {\n fillRule: 'evenodd',\n d: 'M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'\n },\n children: []\n }]\n }]\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _taggedTemplateLiteralLoose from \"@babel/runtime/helpers/taggedTemplateLiteralLoose\";\nvar _excluded = [\"version\", \"title\", \"description\", \"source\", \"logo\", \"components\", \"data\", \"markdownProps\", \"exampleProps\", \"className\", \"children\", \"disableCorners\", \"disableDarkMode\", \"disableHeader\", \"disableBackToUp\"];\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;\nimport { forwardRef } from 'react';\nimport '@wcj/dark-mode';\nimport { styled } from 'styled-components';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport BackToUp from '@uiw/react-back-to-top';\nimport { Github } from './Github';\nimport { Corners } from './Corners';\nimport { Example } from './Example';\nimport { useStores } from './store';\nimport Markdown from './Markdown';\nimport { Logo } from './Logo';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar ExampleWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([\"\\n max-width: 56rem;\\n margin: 0 auto;\\n padding: 2.3rem 3rem;\\n display: flex;\\n justify-content: center;\\n\"])));\nvar Wrappper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose([\"\\n padding-bottom: 12rem;\\n\"])));\nvar Header = styled.header(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose([\"\\n padding: 6rem 0 2rem 0;\\n text-align: center;\\n h1 {\\n font-weight: 900;\\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif,\\n 'Apple Color Emoji', 'Segoe UI Emoji';\\n }\\n\"])));\nvar SupVersion = styled.sup(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose([\"\\n font-weight: 200;\\n font-size: 0.78rem;\\n margin-left: 0.5em;\\n margin-top: -0.3em;\\n position: absolute;\\n\"])));\nvar Description = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose([\"\\n max-width: 460px;\\n margin: 0 auto;\\n color: var(--color-fg-subtle, #6e7781);\\n\"])));\nvar InternalMarkdownPreviewExample = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n version,\n title,\n description,\n source,\n logo = Logo,\n components,\n data,\n markdownProps,\n exampleProps,\n className = '',\n children,\n disableCorners = false,\n disableDarkMode = false,\n disableHeader = false,\n disableBackToUp = false\n } = props,\n reset = _objectWithoutPropertiesLoose(props, _excluded);\n var store = useStores();\n return /*#__PURE__*/_jsxs(Wrappper, _extends({\n className: \"wmde-markdown-var \" + className\n }, reset, {\n children: [!disableDarkMode && /*#__PURE__*/_jsx(\"dark-mode\", _extends({\n permanent: true,\n style: {\n position: 'fixed',\n top: 8,\n left: 12,\n zIndex: 99,\n fontSize: 28\n }\n }, store.darkMode)), !disableCorners && /*#__PURE__*/_jsx(GitHubCorners, _extends({\n fixed: true,\n target: \"__blank\",\n zIndex: 10\n }, store.corners)), !disableHeader && /*#__PURE__*/_jsxs(Header, {\n children: [logo, title && /*#__PURE__*/_jsxs(\"h1\", {\n children: [title, version && /*#__PURE__*/_jsx(SupVersion, {\n children: version\n })]\n }), description && /*#__PURE__*/_jsx(Description, {\n children: description\n })]\n }), /*#__PURE__*/_jsx(\"div\", {}), store.example && /*#__PURE__*/_jsx(ExampleWrapper, _extends({}, exampleProps, {\n children: store.example\n })), /*#__PURE__*/_jsx(Markdown, _extends({}, markdownProps, {\n source: source,\n data: {\n data,\n components,\n source\n }\n })), children, !disableBackToUp && /*#__PURE__*/_jsx(BackToUp, {\n children: \"Top\"\n })]\n }));\n});\nvar MarkdownPreviewExample = InternalMarkdownPreviewExample;\nMarkdownPreviewExample.Github = Github;\nMarkdownPreviewExample.Corners = Corners;\nMarkdownPreviewExample.Example = Example;\nexport default MarkdownPreviewExample;","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useEffect } from 'react';\nimport { store } from './store';\nexport function Github(props) {\n useEffect(() => store.setCorners(_extends({}, props)), [props]);\n return null;\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useEffect } from 'react';\nimport { store } from './store';\nexport function Corners(props) {\n useEffect(() => store.setDarkMode(_extends({}, props)), [props]);\n return null;\n}","import { useEffect } from 'react';\nimport { store } from './store';\nexport function Example(_ref) {\n var {\n children\n } = _ref;\n useEffect(() => store.setExample(children), [children]);\n return null;\n}"],"names":["copyTextToClipboard","text","cb","document","el","createElement","value","setAttribute","style","position","left","body","appendChild","selected","getSelection","rangeCount","getRangeAt","select","isCopy","execCommand","err","removeChild","removeAllRanges","addRange","GITHUB_CORNERS_TEMPLATE","innerHTML","GithubCorners","_HTMLElement","_inherits","_super","_createSuper","_this","_classCallCheck","call","right","shadow","attachShadow","mode","ownerDocument","importNode","content","update","_createClass","key","name","svg","this","querySelector","test","toLocaleLowerCase","lastElementChild","firstElementChild","_this2","concat","_toConsumableArray","getAttributeNames","forEach","getAttribute","setAttr","oldValue","newValue","get","_wrapNativeSuper","HTMLElement","customElements","define","githubCorners","props","_props$size","size","_props$fixed","fixed","bottom","zIndex","_props$bgColor","bgColor","_props$color","color","_props$position","otherProps","_objectWithoutPropertiesLoose","_excluded","styl","transform","top","_jsx","_extends","target","width","height","href","fill","warpperStyle","visibility","opacity","transition","cursor","userSelect","svgStyle","display","circleStyle","childStyle","alignItems","justifyContent","fontSize","documentElement","BackToUp","_props","className","_props$prefixCls","prefixCls","_props$element","element","_props$top","_props$strokeWidth","strokeWidth","_props$smooth","smooth","_props$hideProgress","hideProgress","children","others","$dom","useRef","cls","filter","Boolean","join","Object","assign","center","useMemo","radius","dasharray","Math","PI","_useState","useState","_useState2","_slicedToArray","progress","setProgress","handleScroll","ev","_ref","clientHeight","scrollHeight","scrollTop","current","useEffect","scrollElement","addEventListener","passive","removeEventListener","_jsxs","ref","onClick","scrollTo","behavior","viewBox","focusable","stroke","r","cx","cy","strokeDasharray","strokeDashoffset","globalStore","corners","darkMode","permanent","dark","light","example","listeners","store","opts","emitChange","console","log","getSnapshot","subscribe","listener","l","_step","_iterator","_createForOfIteratorHelper","s","n","done","e","f","octiconLink","type","tagName","properties","version","ariaHidden","fillRule","d","getParentElement","dom","dataset","code","classList","contains","parentElement","useCopied","container","handle","event","add","setTimeout","remove","_container$current","_container$current2","_container$current3","_templateObject","_templateObject2","reservedMeta","options","tree","visit","node","data","meta","String","React","source","_props$disableCopy","disableCopy","_props$skipHtml","skipHtml","onScroll","onMouseOver","pluginsFilter","rewrite","rehypeRewrite","_props$wrapperElement","wrapperElement","_props$warpperElement","warpperElement","other","mdp","useImperativeHandle","rehypePlugins","rehypePrism","ignoreMissing","slug","headings","rehypeIgnore","index","parent","child","class","getCodeString","push","str","rehypeAttrs","customProps","allowElement","raw","remarkPlugins","gfm","wrapperProps","ReactMarkdown","_excluded2","_excluded3","Preview","CodeLayout","Code","Toolbar","MarkdownStyle","styled","MarkdownPreview","_taggedTemplateLiteralLoose","CodePreview","_node$position","inline","components","_ref2","metaData","rest","isMeta","line","start","metaId","getMetaId","Child","_getURLParameters","getURLParameters","title","_getURLParameters$bor","boreder","_getURLParameters$che","checkered","_getURLParameters$cod","codeNum","_getURLParameters$too","toolbar","bordered","Number","disableCheckered","marginBottom","visibleButton","Markdown","_rehypeRewrite","reset","_node$children$0$data","_node$children$0$data2","div","_templateObject3","_templateObject4","_templateObject5","rotate","keyframes","SVG","Logo","rx","ry","ExampleWrapper","Wrappper","Header","header","SupVersion","sup","Description","p","InternalMarkdownPreviewExample","forwardRef","description","_props$logo","logo","markdownProps","exampleProps","_props$className","_props$disableCorners","disableCorners","_props$disableDarkMod","disableDarkMode","_props$disableHeader","disableHeader","_props$disableBackToU","disableBackToUp","useSyncExternalStore","GitHubCorners","MarkdownPreviewExample","Github","Corners","Example"],"sourceRoot":""}