@elmethis/react 0.3.5 → 0.3.7
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/lib/index.react.cjs +1 -1
- package/lib/index.react.mjs +600 -583
- package/lib-types/components/code/ElmCodeBlock.d.ts +9 -0
- package/lib-types/components/code/ElmCodeBlock.d.ts.map +1 -1
- package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +1 -1
- package/lib-types/components/copilotkit/ToolApproval.d.ts +16 -0
- package/lib-types/components/copilotkit/ToolApproval.d.ts.map +1 -0
- package/lib-types/components/copilotkit/ToolApproval.stories.d.ts +7 -0
- package/lib-types/components/copilotkit/ToolApproval.stories.d.ts.map +1 -0
- package/lib-types/components/others/ElmMarkdown.d.ts.map +1 -1
- package/package.json +2 -1
package/lib/index.react.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./ElmMermaid-BFqvHKdQ.js";
|
|
2
2
|
import t, { Suspense as n, createContext as r, lazy as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
3
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
|
-
import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as
|
|
5
|
-
import { mdiAccount as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { kebabCase as
|
|
8
|
-
import { marked as
|
|
9
|
-
var
|
|
4
|
+
import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as ee, rgbToColorString as te } from "polished";
|
|
5
|
+
import { mdiAccount as y, mdiAlert as ne, mdiAlertCircle as re, mdiAlertOctagram as ie, mdiApplicationOutline as ae, mdiArchive as oe, mdiArrowDownDropCircleOutline as se, mdiArrowLeft as ce, mdiBackspaceOutline as le, mdiCalendarMonth as ue, mdiCalendarRefresh as de, mdiCheck as fe, mdiCheckCircle as pe, mdiCheckCircleOutline as me, mdiChevronRight as he, mdiChevronUp as ge, mdiClipboardCheckMultipleOutline as _e, mdiClipboardMultipleOutline as ve, mdiCloseCircleOutline as ye, mdiConsoleLine as be, mdiDownload as xe, mdiEarth as Se, mdiEmail as Ce, mdiEyeOffOutline as we, mdiEyeOutline as Te, mdiFileOutline as Ee, mdiFolderOpen as De, mdiFormatQuoteClose as Oe, mdiFormatQuoteOpen as ke, mdiHome as Ae, mdiInformation as je, mdiKey as Me, mdiKeyboardReturn as Ne, mdiLightbulbOn as Pe, mdiLinkVariant as Fe, mdiLoading as Ie, mdiLock as Le, mdiLoginVariant as Re, mdiLogoutVariant as ze, mdiMagnify as Be, mdiMenuDown as Ve, mdiMessageImageOutline as He, mdiPen as Ue, mdiPlus as We, mdiReload as Ge, mdiShieldAlert as Ke, mdiTable as qe, mdiTag as Je, mdiText as Ye } from "@mdi/js";
|
|
6
|
+
import { createPortal as Xe } from "react-dom";
|
|
7
|
+
import { kebabCase as Ze } from "lodash-es";
|
|
8
|
+
import { marked as Qe } from "marked";
|
|
9
|
+
var $e = { icon: "_icon_k0isg_1" }, b = ({ src: e, alt: t }) => {
|
|
10
10
|
let [n, r] = d(e);
|
|
11
11
|
return /* @__PURE__ */ p("img", {
|
|
12
|
-
className:
|
|
12
|
+
className: $e.icon,
|
|
13
13
|
src: n,
|
|
14
14
|
alt: t,
|
|
15
15
|
onError: () => {
|
|
16
16
|
r("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"gray\" d=\"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2\"/></svg>");
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, et = { icon: "_icon_18sdb_1" }, tt = {
|
|
20
20
|
rust: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20fill='%23a84f33'%20width='128'%20height='128'%20%3e%3cpath%20d='M62.96.242c-.232.135-1.203%201.528-2.16%203.097c-2.4%203.94-2.426%203.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916%201.612-1.504%203.183c-1.346%203.6-1.41%203.715-2.156%203.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291%200-1.655.706-2.27%204.4c-.78%204.697-.754%204.681-4.988%202.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475%204.246l.178%203.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692%202.964c.38%201.63.745%203.2.814%203.487c.067.287-.05.746-.26%201.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51%205.3c.718%201.56%201.305%202.98%201.305%203.15c0%20.898-.717%201.224-3.794%201.727c-1.722.28-3.218.51-3.326.51c-.107%200-.43.235-.717.522c-.937.936-.671%201.816%201.453%204.814c2.646%203.735%202.642%203.75-1.73%205.421c-4.971%201.902-5.072%202.37-1.287%205.96c3.525%203.344%203.53%203.295-.461%205.804C.208%2062.8.162%2062.846.085%2063.876c-.093%201.253-.071%201.275%203.538%203.48c3.57%202.18%203.57%202.246.067%205.56C-.078%2076.48.038%2077%205.013%2078.877c4.347%201.64%204.353%201.66%201.702%205.394c-1.502%202.117-1.981%203-1.981%203.653c0%201.223.637%201.535%204.44%202.174c3.206.54%203.92.857%203.92%201.741c0%20.182-.588%201.612-1.307%203.177c-2.236%204.87-1.981%205.275%203.31%205.275c4.93%200%204.799-.15%203.737%204.294c-.8%203.35-.813%203.992-.088%204.715c.554.556%201.6.494%204.87-.289c2.499-.596%202.937-.637%203.516-.328l.66.354l-.177%203.594c-.178%203.593-.177%203.595.475%204.248c.358.36.884.652%201.165.652s1.903-.63%203.604-1.404c4.22-1.916%204.194-1.932%204.973%202.75c.617%203.711.977%204.4%202.294%204.4c.327%200%201.83-.88%203.34-1.958c2.654-1.893%203.342-2.19%204.049-1.74c.182.115.89%201.67%201.572%203.455c1.003%202.625%201.37%203.31%201.929%203.576c1.062.51%201.72.1%204.218-2.62c3.016-3.286%203.14-3.27%205.602.72c2.72%204.406%203.424%204.396%206.212-.089c2.402-3.864%202.374-3.862%205.621-.47c2.157%202.25%202.616%202.61%203.343%202.61c.464%200%201.019-.175%201.23-.388c.214-.213.92-1.786%201.568-3.496c.649-1.71%201.321-3.2%201.495-3.31c.687-.436%201.398-.13%204.048%201.752c1.56%201.108%203.028%201.96%203.377%201.96c1.296%200%201.764-.92%202.302-4.535c.46-3.082.554-3.378%201.16-3.685c.596-.302.954-.2%203.75%201.07c1.701.77%203.323%201.402%203.604%201.402s.816-.302%201.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486%203.615.204c3.656.835%204.338.857%205.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19%203.78-4.19c3.374%200%203.75-.049%204.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227%204.065-1.767c2.033-.329%203.553-.71%203.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738%201.599-5.297c5.064-1.866%205.209-2.488%201.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853%204.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593%203.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18%201.982-2.903%201.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574%201.307-3.113c1.406-3.013%201.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27%200-1.884.64-3.583%201.421c-2.838%201.306-3.143%201.393-3.757%201.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311%200-1.853.925-3.426%202.055c-2.584%201.856-2.93%202.032-3.574%201.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637%200-1.213.458-3.28%202.604c-3.25%203.375-3.261%203.374-5.65-.545C66.073%201.78%2065.075.382%2064.81.24c-.597-.32-1.3-.32-1.85.002m2.96%2011.798c2.83%202.014%201.326%206.75-2.144%206.75c-3.368%200-5.064-4.057-2.66-6.36c1.358-1.3%203.304-1.459%204.805-.39m-3.558%2012.507c1.855.705%202.616.282%206.852-3.8l3.182-3.07l1.347.18c4.225.56%2012.627%204.25%2017.455%207.666c4.436%203.14%2010.332%209.534%2012.845%2013.93l.537.942l-2.38%205.364c-1.31%202.95-2.382%205.673-2.382%206.053c0%20.878.576%202.267%201.13%202.726c.234.195%202.457%201.265%204.939%202.378l4.51%202.025l.178%201.148c.23%201.495.26%205.167.052%206.21l-.163.816h-2.575c-2.987%200-2.756-.267-2.918%203.396c-.118%202.656-.76%204.124-2.22%205.075c-2.377%201.551-6.304%201.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915%202.145-1.803c4.298-3.24%206.77-7.012%207.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057%200-25.56-.092-25.56-.204c0-.263%203.125-3.295%204.965-4.816c5.054-4.178%2011.618-7.465%2018.417-9.22l2.35-.61l3.34%203.387c1.839%201.863%203.64%203.5%204.003%203.637M20.3%2046.34c1.539%201.008%202.17%203.54%201.26%205.062c-1.405%202.356-4.966%202.455-6.373.178c-2.046-3.309%201.895-7.349%205.113-5.24m90.672.13c4.026%202.454.906%208.493-3.404%206.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6%202.523-.579%203.56.053M32.163%2061.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283%204.706-2.262%204.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39%2047.132c2.843.74%204.345%202.245%204.349%204.355c.002%201.55-.765%202.52-2.67%203.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078%200%208.112.086%209.288.393m-2.934%2021.554c1.41.392%203.076%201.616%203.93%202.888c.898%201.337%201.423%203.076%202.667%208.836c1.05%204.87%201.727%206.46%203.62%208.532c2.345%202.566%201.8%202.466%2013.514%202.466c5.61%200%2010.198.09%2010.198.2c0%20.197-3.863%204.764-4.03%204.764c-.048%200-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642%206.032l-1.008%204.702l-.91.448c-1.518.75-6.453%202.292-9.01%202.82c-4.228.87-8.828%201.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248%200-3.923-4.249-3.923-4.535c0-.09%208.728-.194%2019.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002%207.02.12%207.539.264M37.57%20100.02c3.084%201.88%201.605%206.804-2.043%206.8c-3.74%200-5.127-4.88-1.94-6.826c1.055-.643%202.908-.63%203.983.026m56.48.206c1.512%201.108%202.015%203.413%201.079%204.95c-2.46%204.034-8.612.827-6.557-3.419c1.01-2.085%203.695-2.837%205.478-1.53'%20/%3e%3c/svg%3e",
|
|
21
21
|
javascript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23f0db4f'%20d='M1.408%201.408h125.184v125.185H1.408z'%20/%3e%3cpath%20fill='%23323330'%20d='M116.347%2096.736c-.917-5.711-4.641-10.508-15.672-14.981c-3.832-1.761-8.104-3.022-9.377-5.926c-.452-1.69-.512-2.642-.226-3.665c.821-3.32%204.784-4.355%207.925-3.403c2.023.678%203.938%202.237%205.093%204.724c5.402-3.498%205.391-3.475%209.163-5.879c-1.381-2.141-2.118-3.129-3.022-4.045c-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902%202.748-8.877%205.235c-5.926%206.724-4.236%2018.492%202.975%2023.335c7.104%205.332%2017.54%206.545%2018.873%2011.531c1.297%206.104-4.486%208.08-10.234%207.378c-4.236-.881-6.592-3.034-9.139-6.949c-4.688%202.713-4.688%202.713-9.508%205.485c1.143%202.499%202.344%203.63%204.26%205.795c9.068%209.198%2031.76%208.746%2035.83-5.176c.165-.478%201.261-3.666.38-8.581M69.462%2058.943H57.753l-.048%2030.272c0%206.438.333%2012.34-.714%2014.149c-1.713%203.558-6.152%203.117-8.175%202.427c-2.059-1.012-3.106-2.451-4.319-4.485c-.333-.584-.583-1.036-.667-1.071l-9.52%205.83c1.583%203.249%203.915%206.069%206.902%207.901c4.462%202.678%2010.459%203.499%2016.731%202.059c4.082-1.189%207.604-3.652%209.448-7.401c2.666-4.915%202.094-10.864%202.07-17.444c.06-10.735.001-21.468.001-32.237'%20/%3e%3c/svg%3e",
|
|
22
22
|
typescript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23fff'%20d='M22.67%2047h99.67v73.67H22.67z'%20/%3e%3cpath%20fill='%23007acc'%20d='M1.5%2063.91v62.5h125v-125H1.5zm100.73-5a15.56%2015.56%200%200%201%207.82%204.5a20.6%2020.6%200%200%201%203%204c0%20.16-5.4%203.81-8.69%205.85c-.12.08-.6-.44-1.13-1.23a7.09%207.09%200%200%200-5.87-3.53c-3.79-.26-6.23%201.73-6.21%205a4.6%204.6%200%200%200%20.54%202.34c.83%201.73%202.38%202.76%207.24%204.86c8.95%203.85%2012.78%206.39%2015.16%2010c2.66%204%203.25%2010.46%201.45%2015.24c-2%205.2-6.9%208.73-13.83%209.9a38.3%2038.3%200%200%201-9.52-.1a23%2023%200%200%201-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9%209%200%200%201%201.15-.73L82%20101l3.59-2.08l.75%201.11a16.8%2016.8%200%200%200%204.74%204.54c4%202.1%209.46%201.81%2012.16-.62a5.43%205.43%200%200%200%20.69-6.92c-1-1.39-3-2.56-8.59-5c-6.45-2.78-9.23-4.5-11.77-7.24a16.5%2016.5%200%200%201-3.43-6.25a25%2025%200%200%201-.22-8c1.33-6.23%206-10.58%2012.82-11.87a31.7%2031.7%200%200%201%209.49.26zm-29.34%205.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49%2049%200%200%201%20.12-5.17C29.08%2059%2039%2059%2051%2059h21.83z'%20/%3e%3c/svg%3e",
|
|
@@ -36,9 +36,9 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
36
36
|
cpp: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%2300599c'%20d='M118.766%2095.82c.89-1.543%201.441-3.28%201.441-4.843V36.78c0-1.558-.55-3.297-1.441-4.84l-55.32%2031.94Zm0%200'%20/%3e%3cpath%20fill='%23004482'%20d='m68.36%20126.586l46.933-27.094c1.352-.781%202.582-2.129%203.473-3.672l-55.32-31.94L8.12%2095.82c.89%201.543%202.121%202.89%203.473%203.672l46.933%2027.094c2.703%201.562%207.13%201.562%209.832%200Zm0%200'%20/%3e%3cpath%20fill='%23659ad2'%20d='M118.766%2031.941c-.891-1.546-2.121-2.894-3.473-3.671L68.359%201.172c-2.703-1.563-7.129-1.563-9.832%200L11.594%2028.27C8.89%2029.828%206.68%2033.66%206.68%2036.78v54.196c0%201.562.55%203.3%201.441%204.843L63.445%2063.88Zm0%200'%20/%3e%3cpath%20fill='%23fff'%20d='M63.445%2026.035c-20.867%200-37.843%2016.977-37.843%2037.844s16.976%2037.844%2037.843%2037.844c13.465%200%2026.024-7.247%2032.77-18.91L79.84%2073.335c-3.38%205.84-9.66%209.465-16.395%209.465c-10.433%200-18.922-8.488-18.922-18.922s8.49-18.922%2018.922-18.922c6.73%200%2013.017%203.629%2016.39%209.465l16.38-9.477c-6.75-11.664-19.305-18.91-32.77-18.91zM92.88%2057.57v4.207h-4.207v4.203h4.207v4.207h4.203V65.98h4.203v-4.203h-4.203V57.57zm15.766%200v4.207h-4.204v4.203h4.204v4.207h4.207V65.98h4.203v-4.203h-4.203V57.57z'%20/%3e%3c/svg%3e",
|
|
37
37
|
c: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23659ad3'%20d='M115.4%2030.7L67.1%202.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48%2027.9c-1.7%201-2.9%203.5-2.9%205.4v55.7c0%201.1.2%202.4%201%203.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7'%20/%3e%3cpath%20fill='%2303599c'%20d='M10.7%2095.3c.5.8%201.2%201.5%201.9%201.9l48.2%2027.9c.8.5%201.9.7%203.1.7s2.3-.3%203.1-.7l48-27.9c1.7-1%202.9-3.5%202.9-5.4V36.1c0-.9-.1-1.9-.6-2.8z'%20/%3e%3cpath%20fill='%23fff'%20d='M85.3%2076.1C81.1%2083.5%2073.1%2088.5%2064%2088.5c-13.5%200-24.5-11-24.5-24.5s11-24.5%2024.5-24.5c9.1%200%2017.1%205%2021.3%2012.5l13-7.5c-6.8-11.9-19.6-20-34.3-20c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5c14.6%200%2027.4-8%2034.2-19.8z'%20/%3e%3c/svg%3e",
|
|
38
38
|
file: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e"
|
|
39
|
-
},
|
|
40
|
-
className:
|
|
41
|
-
src:
|
|
39
|
+
}, nt = (e) => /* @__PURE__ */ p("img", {
|
|
40
|
+
className: et.icon,
|
|
41
|
+
src: tt[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
|
|
42
42
|
width: e.size,
|
|
43
43
|
height: e.size,
|
|
44
44
|
alt: e.language,
|
|
@@ -47,7 +47,7 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
47
47
|
height: e.size,
|
|
48
48
|
...e.style
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), rt = [
|
|
51
51
|
"rust",
|
|
52
52
|
"javascript",
|
|
53
53
|
"typescript",
|
|
@@ -67,10 +67,10 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
67
67
|
"cpp",
|
|
68
68
|
"c",
|
|
69
69
|
"file"
|
|
70
|
-
],
|
|
70
|
+
], it = {
|
|
71
71
|
icon: "_icon_g71ox_1",
|
|
72
72
|
"icon-theme-color": "_icon-theme-color_g71ox_10"
|
|
73
|
-
},
|
|
73
|
+
}, x = (e) => /* @__PURE__ */ p("div", {
|
|
74
74
|
style: e.style,
|
|
75
75
|
children: /* @__PURE__ */ p("svg", {
|
|
76
76
|
width: e.size || "1.25rem",
|
|
@@ -84,19 +84,19 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
84
84
|
"--elmethis-scoped-color-dark": e.colorDark ?? e.color,
|
|
85
85
|
...e.style
|
|
86
86
|
},
|
|
87
|
-
className: e.useThemeColor ?
|
|
87
|
+
className: e.useThemeColor ? it["icon-theme-color"] : it.icon,
|
|
88
88
|
fill: "currentColor",
|
|
89
89
|
d: e.d
|
|
90
90
|
})
|
|
91
91
|
})
|
|
92
|
-
}),
|
|
92
|
+
}), at = {
|
|
93
93
|
wrapper: "_wrapper_1q92c_15",
|
|
94
94
|
dot: "_dot_1q92c_22",
|
|
95
95
|
bounce: "_bounce_1q92c_1"
|
|
96
|
-
},
|
|
96
|
+
}, S = (e) => {
|
|
97
97
|
let { color: t, size: n = "64px", style: r } = e;
|
|
98
98
|
return /* @__PURE__ */ p("div", {
|
|
99
|
-
className:
|
|
99
|
+
className: at.wrapper,
|
|
100
100
|
style: {
|
|
101
101
|
width: n,
|
|
102
102
|
height: n,
|
|
@@ -107,51 +107,51 @@ var Ze = { icon: "_icon_k0isg_1" }, S = ({ src: e, alt: t }) => {
|
|
|
107
107
|
2,
|
|
108
108
|
3
|
|
109
109
|
].map((e) => /* @__PURE__ */ p("div", {
|
|
110
|
-
className:
|
|
110
|
+
className: at.dot,
|
|
111
111
|
"aria-hidden": !0,
|
|
112
112
|
style: t ? { backgroundColor: t } : void 0
|
|
113
113
|
}, e))
|
|
114
114
|
});
|
|
115
|
-
},
|
|
115
|
+
}, ot = {
|
|
116
116
|
wrapper: "_wrapper_1yu3x_19",
|
|
117
117
|
square: "_square_1yu3x_28",
|
|
118
118
|
appear: "_appear_1yu3x_1"
|
|
119
|
-
},
|
|
120
|
-
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i =
|
|
119
|
+
}, st = 1200, ct = (e) => {
|
|
120
|
+
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = st / (n * 3), a = Array.from({ length: n });
|
|
121
121
|
return /* @__PURE__ */ p("div", {
|
|
122
|
-
className:
|
|
122
|
+
className: ot.wrapper,
|
|
123
123
|
style: {
|
|
124
124
|
"--size": t,
|
|
125
125
|
"--dimensions": n,
|
|
126
|
-
"--duration": `${
|
|
126
|
+
"--duration": `${st}ms`,
|
|
127
127
|
...r
|
|
128
128
|
},
|
|
129
129
|
children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
|
|
130
|
-
className:
|
|
130
|
+
className: ot.square,
|
|
131
131
|
style: { "--delay": `${i * (t + n)}ms` }
|
|
132
132
|
}, `${t}-${n}`)))
|
|
133
133
|
});
|
|
134
|
-
},
|
|
135
|
-
function
|
|
134
|
+
}, lt = { icon: "_icon_x4u0f_1" }, ut = "elmethis-theme";
|
|
135
|
+
function dt() {
|
|
136
136
|
if (typeof document < "u") {
|
|
137
137
|
let e = document.documentElement.getAttribute("data-theme");
|
|
138
138
|
if (e != null) return e === "dark";
|
|
139
139
|
}
|
|
140
140
|
if (typeof localStorage < "u") {
|
|
141
|
-
let e = localStorage.getItem(
|
|
141
|
+
let e = localStorage.getItem(ut);
|
|
142
142
|
if (e != null) return e === "dark";
|
|
143
143
|
}
|
|
144
144
|
return !1;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let [e, t] = d(
|
|
146
|
+
function ft() {
|
|
147
|
+
let [e, t] = d(dt), n = a(() => {
|
|
148
148
|
t((e) => !e);
|
|
149
149
|
}, []);
|
|
150
150
|
return s(() => {
|
|
151
151
|
if (typeof document < "u") {
|
|
152
152
|
document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
|
|
153
153
|
let t = document.querySelector("body");
|
|
154
|
-
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(
|
|
154
|
+
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(ut, e ? "dark" : "light");
|
|
155
155
|
}
|
|
156
156
|
}, [e]), {
|
|
157
157
|
isDarkTheme: e,
|
|
@@ -160,14 +160,14 @@ function ut() {
|
|
|
160
160
|
}
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region src/components/icon/ElmToggleTheme.tsx
|
|
163
|
-
var
|
|
164
|
-
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } =
|
|
163
|
+
var pt = (e) => {
|
|
164
|
+
let { size: t = "2rem", style: n } = e, { isDarkTheme: r, toggleTheme: i } = ft();
|
|
165
165
|
return r ? /* @__PURE__ */ m("svg", {
|
|
166
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
167
167
|
width: t,
|
|
168
168
|
height: t,
|
|
169
169
|
viewBox: "0 0 24 24",
|
|
170
|
-
className:
|
|
170
|
+
className: lt.icon,
|
|
171
171
|
style: n,
|
|
172
172
|
onClick: i,
|
|
173
173
|
children: [
|
|
@@ -396,7 +396,7 @@ var dt = (e) => {
|
|
|
396
396
|
width: t,
|
|
397
397
|
height: t,
|
|
398
398
|
viewBox: "0 0 24 24",
|
|
399
|
-
className:
|
|
399
|
+
className: lt.icon,
|
|
400
400
|
style: n,
|
|
401
401
|
onClick: i,
|
|
402
402
|
children: [
|
|
@@ -589,19 +589,19 @@ var dt = (e) => {
|
|
|
589
589
|
})
|
|
590
590
|
]
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, C = {
|
|
593
593
|
arrow: "_arrow_kn879_19",
|
|
594
594
|
loading: "_loading_kn879_49",
|
|
595
595
|
normal: "_normal_kn879_55",
|
|
596
596
|
pending: "_pending_kn879_64"
|
|
597
|
-
},
|
|
597
|
+
}, mt = (e) => {
|
|
598
598
|
let { direction: t = "right", loading: n = !1, pending: r = !1, size: i = "2rem", style: a } = e, o = t === "up" ? "rotate(270deg)" : t === "down" ? "rotate(90deg)" : t === "left" ? "rotate(180deg)" : "rotate(0deg)";
|
|
599
599
|
return /* @__PURE__ */ p("div", {
|
|
600
600
|
className: [
|
|
601
|
-
|
|
602
|
-
!n && !r ?
|
|
603
|
-
n ?
|
|
604
|
-
!n && r ?
|
|
601
|
+
C.arrow,
|
|
602
|
+
!n && !r ? C.normal : void 0,
|
|
603
|
+
n ? C.loading : void 0,
|
|
604
|
+
!n && r ? C.pending : void 0
|
|
605
605
|
].filter(Boolean).join(" "),
|
|
606
606
|
style: {
|
|
607
607
|
"--size": i,
|
|
@@ -609,26 +609,26 @@ var dt = (e) => {
|
|
|
609
609
|
...a
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
|
-
},
|
|
612
|
+
}, ht = {
|
|
613
613
|
wrapper: "_wrapper_1c6r3_1",
|
|
614
614
|
favicon: "_favicon_1c6r3_24",
|
|
615
615
|
text: "_text_1c6r3_29"
|
|
616
|
-
},
|
|
616
|
+
}, gt = {
|
|
617
617
|
text: "_text_1nnze_1",
|
|
618
618
|
link: "_link_1nnze_19"
|
|
619
|
-
},
|
|
619
|
+
}, w = (e) => {
|
|
620
620
|
let t = (e) => {
|
|
621
621
|
let t = e.children;
|
|
622
622
|
return e.kbd && (t = /* @__PURE__ */ p("kbd", { children: t })), e.code && (t = /* @__PURE__ */ p("code", { children: t })), e.strikethrough && (t = /* @__PURE__ */ p("del", { children: t })), e.underline && (t = /* @__PURE__ */ p("ins", { children: t })), e.italic && (t = /* @__PURE__ */ p("em", { children: t })), e.bold && (t = /* @__PURE__ */ p("strong", { children: t })), e.ruby && (t = /* @__PURE__ */ m("ruby", { children: [t, /* @__PURE__ */ p("rt", { children: e.ruby })] })), t;
|
|
623
623
|
}, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
|
|
624
|
-
className:
|
|
624
|
+
className: gt.link,
|
|
625
625
|
href: t,
|
|
626
626
|
target: "_blank",
|
|
627
627
|
rel: "noopener noreferrer",
|
|
628
|
-
children: [e && /* @__PURE__ */ p(
|
|
628
|
+
children: [e && /* @__PURE__ */ p(b, { src: e }), n]
|
|
629
629
|
}), r = (e) => e.href ? n(e) : t(e);
|
|
630
630
|
return /* @__PURE__ */ p("span", {
|
|
631
|
-
className:
|
|
631
|
+
className: gt.text,
|
|
632
632
|
style: {
|
|
633
633
|
"--elmethis-text-color-light": e.color,
|
|
634
634
|
"--elmethis-text-color-dark": e.color,
|
|
@@ -640,35 +640,35 @@ var dt = (e) => {
|
|
|
640
640
|
},
|
|
641
641
|
children: r(e)
|
|
642
642
|
});
|
|
643
|
-
},
|
|
643
|
+
}, _t = (e) => {
|
|
644
644
|
let { name: t, href: n, favicon: r, style: i } = e;
|
|
645
645
|
return /* @__PURE__ */ m("a", {
|
|
646
|
-
className:
|
|
646
|
+
className: ht.wrapper,
|
|
647
647
|
href: n,
|
|
648
648
|
target: "_blank",
|
|
649
649
|
rel: "noopener noreferrer",
|
|
650
650
|
style: i,
|
|
651
|
-
children: [r == null ? /* @__PURE__ */ p(
|
|
652
|
-
d:
|
|
651
|
+
children: [r == null ? /* @__PURE__ */ p(x, {
|
|
652
|
+
d: Se,
|
|
653
653
|
size: "2.5rem",
|
|
654
654
|
style: { opacity: .7 }
|
|
655
655
|
}) : /* @__PURE__ */ p("img", {
|
|
656
|
-
className:
|
|
656
|
+
className: ht.favicon,
|
|
657
657
|
src: r,
|
|
658
658
|
alt: `favicon of ${t ?? n}`
|
|
659
659
|
}), /* @__PURE__ */ p("div", {
|
|
660
|
-
className:
|
|
661
|
-
children: /* @__PURE__ */ p(
|
|
660
|
+
className: ht.text,
|
|
661
|
+
children: /* @__PURE__ */ p(w, {
|
|
662
662
|
size: ".6rem",
|
|
663
663
|
children: t ?? n
|
|
664
664
|
})
|
|
665
665
|
})]
|
|
666
666
|
});
|
|
667
|
-
},
|
|
667
|
+
}, vt = {
|
|
668
668
|
cube: "_cube_1merk_1",
|
|
669
669
|
"elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
|
|
670
670
|
face: "_face_1merk_8"
|
|
671
|
-
},
|
|
671
|
+
}, yt = [
|
|
672
672
|
{
|
|
673
673
|
name: "front",
|
|
674
674
|
rotate: ""
|
|
@@ -693,51 +693,51 @@ var dt = (e) => {
|
|
|
693
693
|
name: "bottom",
|
|
694
694
|
rotate: "rotateX(-90deg)"
|
|
695
695
|
}
|
|
696
|
-
],
|
|
696
|
+
], bt = (e) => {
|
|
697
697
|
let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
|
|
698
698
|
return /* @__PURE__ */ p("div", {
|
|
699
|
-
className:
|
|
699
|
+
className: vt.cube,
|
|
700
700
|
style: {
|
|
701
701
|
width: `${t}px`,
|
|
702
702
|
height: `${t}px`,
|
|
703
703
|
...n
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
706
|
-
className:
|
|
705
|
+
children: yt.map((e) => /* @__PURE__ */ p("div", {
|
|
706
|
+
className: vt.face,
|
|
707
707
|
style: { transform: `${e.rotate} ${r}` }
|
|
708
708
|
}, e.name))
|
|
709
709
|
});
|
|
710
|
-
},
|
|
711
|
-
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ?
|
|
710
|
+
}, xt = { icon: "_icon_140bn_1" }, St = (e) => {
|
|
711
|
+
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Ie : n ? ze : Re, o = r ? "gray" : n ? "#b36472" : "#6987b8";
|
|
712
712
|
return /* @__PURE__ */ p("div", {
|
|
713
|
-
className:
|
|
713
|
+
className: xt.icon,
|
|
714
714
|
style: i,
|
|
715
|
-
children: /* @__PURE__ */ p(
|
|
715
|
+
children: /* @__PURE__ */ p(x, {
|
|
716
716
|
d: a,
|
|
717
717
|
color: o,
|
|
718
718
|
size: t
|
|
719
719
|
})
|
|
720
720
|
});
|
|
721
|
-
},
|
|
722
|
-
className:
|
|
721
|
+
}, Ct = { paragraph: "_paragraph_ewdky_1" }, wt = (e) => /* @__PURE__ */ p("p", {
|
|
722
|
+
className: Ct.paragraph,
|
|
723
723
|
style: {
|
|
724
724
|
backgroundColor: e.backgroundColor,
|
|
725
725
|
...e.style
|
|
726
726
|
},
|
|
727
727
|
children: e.children
|
|
728
|
-
}),
|
|
728
|
+
}), T = {
|
|
729
729
|
blockquote: "_blockquote_x79j0_1",
|
|
730
730
|
cite: "_cite_x79j0_16",
|
|
731
731
|
icon: "_icon_x79j0_37"
|
|
732
|
-
},
|
|
732
|
+
}, Tt = (e) => /* @__PURE__ */ m("blockquote", {
|
|
733
733
|
ref: u(null),
|
|
734
|
-
className:
|
|
734
|
+
className: T.blockquote,
|
|
735
735
|
cite: e.cite,
|
|
736
736
|
style: { ...e.style },
|
|
737
737
|
children: [
|
|
738
738
|
e.children,
|
|
739
739
|
e.cite && /* @__PURE__ */ p("cite", {
|
|
740
|
-
className:
|
|
740
|
+
className: T.cite,
|
|
741
741
|
children: /* @__PURE__ */ p("a", {
|
|
742
742
|
href: e.cite,
|
|
743
743
|
target: "_blank",
|
|
@@ -746,7 +746,7 @@ var dt = (e) => {
|
|
|
746
746
|
})
|
|
747
747
|
}),
|
|
748
748
|
/* @__PURE__ */ p("svg", {
|
|
749
|
-
className:
|
|
749
|
+
className: T.icon,
|
|
750
750
|
style: {
|
|
751
751
|
top: "0.25rem",
|
|
752
752
|
left: "0.25rem"
|
|
@@ -754,10 +754,10 @@ var dt = (e) => {
|
|
|
754
754
|
viewBox: "0 0 24 24",
|
|
755
755
|
width: "1rem",
|
|
756
756
|
height: "1rem",
|
|
757
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
757
|
+
children: /* @__PURE__ */ p("path", { d: ke })
|
|
758
758
|
}),
|
|
759
759
|
/* @__PURE__ */ p("svg", {
|
|
760
|
-
className:
|
|
760
|
+
className: T.icon,
|
|
761
761
|
style: {
|
|
762
762
|
bottom: "0.25rem",
|
|
763
763
|
right: "0.25rem"
|
|
@@ -765,69 +765,69 @@ var dt = (e) => {
|
|
|
765
765
|
viewBox: "0 0 24 24",
|
|
766
766
|
width: "1rem",
|
|
767
767
|
height: "1rem",
|
|
768
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
768
|
+
children: /* @__PURE__ */ p("path", { d: Oe })
|
|
769
769
|
})
|
|
770
770
|
]
|
|
771
|
-
}),
|
|
771
|
+
}), Et = {
|
|
772
772
|
callout: "_callout_16oli_1",
|
|
773
773
|
header: "_header_16oli_24"
|
|
774
|
-
},
|
|
774
|
+
}, Dt = Object.freeze({
|
|
775
775
|
note: {
|
|
776
776
|
code: "#6987b8",
|
|
777
|
-
icon:
|
|
777
|
+
icon: je
|
|
778
778
|
},
|
|
779
779
|
tip: {
|
|
780
780
|
code: "#59b57c",
|
|
781
|
-
icon:
|
|
781
|
+
icon: Pe
|
|
782
782
|
},
|
|
783
783
|
important: {
|
|
784
784
|
code: "#9771bd",
|
|
785
|
-
icon:
|
|
785
|
+
icon: Ke
|
|
786
786
|
},
|
|
787
787
|
warning: {
|
|
788
788
|
code: "#b8a36e",
|
|
789
|
-
icon:
|
|
789
|
+
icon: ne
|
|
790
790
|
},
|
|
791
791
|
caution: {
|
|
792
792
|
code: "#b36472",
|
|
793
|
-
icon:
|
|
793
|
+
icon: ie
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
796
|
-
let n =
|
|
795
|
+
}), Ot = ({ type: e = "note", ...t }) => {
|
|
796
|
+
let n = Dt[e];
|
|
797
797
|
return /* @__PURE__ */ m("aside", {
|
|
798
|
-
className:
|
|
798
|
+
className: Et.callout,
|
|
799
799
|
style: {
|
|
800
800
|
"--elmethis-scoped-border-color": n.code,
|
|
801
801
|
"--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
|
|
802
802
|
...t.style
|
|
803
803
|
},
|
|
804
804
|
children: [/* @__PURE__ */ m("div", {
|
|
805
|
-
className:
|
|
806
|
-
children: [/* @__PURE__ */ p(
|
|
805
|
+
className: Et.header,
|
|
806
|
+
children: [/* @__PURE__ */ p(x, {
|
|
807
807
|
d: n.icon,
|
|
808
808
|
size: "1.25em",
|
|
809
809
|
color: n.code
|
|
810
|
-
}), /* @__PURE__ */ p(
|
|
810
|
+
}), /* @__PURE__ */ p(w, {
|
|
811
811
|
color: n.code,
|
|
812
812
|
children: e.toUpperCase()
|
|
813
813
|
})]
|
|
814
814
|
}), /* @__PURE__ */ p("div", { children: t.children })]
|
|
815
815
|
});
|
|
816
|
-
},
|
|
817
|
-
className:
|
|
816
|
+
}, kt = { divider: "_divider_uq5jr_1" }, At = (e) => /* @__PURE__ */ p("hr", {
|
|
817
|
+
className: kt.divider,
|
|
818
818
|
style: e.style
|
|
819
|
-
}),
|
|
819
|
+
}), jt = { fragment: "_fragment_il7xb_1" }, Mt = (e) => {
|
|
820
820
|
let t = a((e) => {
|
|
821
821
|
let t = new URL(window.location.href);
|
|
822
822
|
t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
|
|
823
823
|
}, []);
|
|
824
824
|
return /* @__PURE__ */ p("span", {
|
|
825
|
-
className:
|
|
825
|
+
className: jt.fragment,
|
|
826
826
|
style: e.style,
|
|
827
827
|
onClick: () => t(e.id),
|
|
828
828
|
children: "#"
|
|
829
829
|
});
|
|
830
|
-
},
|
|
830
|
+
}, E = {
|
|
831
831
|
"heading-common": "_heading-common_1ytfd_1",
|
|
832
832
|
h1: "_h1_1ytfd_22",
|
|
833
833
|
h2: "_h2_1ytfd_57",
|
|
@@ -837,14 +837,14 @@ var dt = (e) => {
|
|
|
837
837
|
h5: "_h5_1ytfd_134",
|
|
838
838
|
h6: "_h6_1ytfd_138",
|
|
839
839
|
"heading-stretch": "_heading-stretch_1ytfd_1"
|
|
840
|
-
},
|
|
840
|
+
}, Nt = Object.freeze({
|
|
841
841
|
1: 1.5,
|
|
842
842
|
2: 1.4,
|
|
843
843
|
3: 1.3,
|
|
844
844
|
4: 1.2,
|
|
845
845
|
5: 1.15,
|
|
846
846
|
6: 1.1
|
|
847
|
-
}),
|
|
847
|
+
}), Pt = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), D = ({ level: e = 1, disableFragmentIdentifier: t = !1, ...n }) => {
|
|
848
848
|
let r = u(null), [i, a] = d(!1);
|
|
849
849
|
s(() => {
|
|
850
850
|
let e = r.current;
|
|
@@ -854,13 +854,13 @@ var dt = (e) => {
|
|
|
854
854
|
});
|
|
855
855
|
return t.observe(e), () => t.disconnect();
|
|
856
856
|
}, []);
|
|
857
|
-
let o = `h${e}`, c = n.id ?? (n.text ?
|
|
857
|
+
let o = `h${e}`, c = n.id ?? (n.text ? Pt(n.text) : void 0);
|
|
858
858
|
return /* @__PURE__ */ m(o, {
|
|
859
859
|
ref: r,
|
|
860
|
-
className: [
|
|
860
|
+
className: [E["heading-common"], E[`h${e}`]].filter(Boolean).join(" "),
|
|
861
861
|
id: c,
|
|
862
862
|
style: {
|
|
863
|
-
"--font-size": n.size ?? `${
|
|
863
|
+
"--font-size": n.size ?? `${Nt[e]}rem`,
|
|
864
864
|
"--scale": +!!i,
|
|
865
865
|
"--opacity": +!!i,
|
|
866
866
|
...n.style
|
|
@@ -868,71 +868,71 @@ var dt = (e) => {
|
|
|
868
868
|
children: [
|
|
869
869
|
n.text && /* @__PURE__ */ p("span", { children: n.text }),
|
|
870
870
|
n.children,
|
|
871
|
-
!t && c && /* @__PURE__ */ p(
|
|
871
|
+
!t && c && /* @__PURE__ */ p(Mt, { id: c }),
|
|
872
872
|
e === 2 && /* @__PURE__ */ p("span", {
|
|
873
|
-
className:
|
|
873
|
+
className: E.h2__underline,
|
|
874
874
|
"aria-hidden": "true"
|
|
875
875
|
})
|
|
876
876
|
]
|
|
877
877
|
});
|
|
878
|
-
},
|
|
878
|
+
}, Ft = {
|
|
879
879
|
"elmethis-list-common": "_elmethis-list-common_1qwri_1",
|
|
880
880
|
"elmethis-bulleted-list": "_elmethis-bulleted-list_1qwri_7",
|
|
881
881
|
"elmethis-numbered-list": "_elmethis-numbered-list_1qwri_25"
|
|
882
|
-
},
|
|
883
|
-
let n = [
|
|
882
|
+
}, It = ({ listStyle: e = "unordered", ...t }) => {
|
|
883
|
+
let n = [Ft["elmethis-list-common"], e === "unordered" ? Ft["elmethis-bulleted-list"] : Ft["elmethis-numbered-list"]].join(" ");
|
|
884
884
|
return p(e === "ordered" ? "ol" : "ul", {
|
|
885
885
|
className: n,
|
|
886
886
|
style: t.style,
|
|
887
887
|
children: t.children
|
|
888
888
|
});
|
|
889
|
-
},
|
|
889
|
+
}, Lt = {
|
|
890
890
|
text: "_text_zrzts_1",
|
|
891
891
|
cursor: "_cursor_zrzts_30",
|
|
892
892
|
blink: "_blink_zrzts_1"
|
|
893
|
-
},
|
|
893
|
+
}, O = (e) => new Promise((t) => {
|
|
894
894
|
setTimeout(t, e);
|
|
895
|
-
}),
|
|
895
|
+
}), Rt = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
|
|
896
896
|
let [i, a] = d(""), o = u(!1);
|
|
897
897
|
return s(() => (o.current = !1, (async () => {
|
|
898
898
|
for (; !o.current;) for (let n of e) {
|
|
899
899
|
for (let e = 0; e < n.length; e++) {
|
|
900
|
-
if (o.current || (await
|
|
900
|
+
if (o.current || (await O(75), o.current)) return;
|
|
901
901
|
a(n.slice(0, e + 1));
|
|
902
902
|
}
|
|
903
|
-
if (await
|
|
904
|
-
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await
|
|
905
|
-
if (await
|
|
903
|
+
if (await O(t), o.current) return;
|
|
904
|
+
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await O(25), o.current)) return;
|
|
905
|
+
if (await O(200), o.current) return;
|
|
906
906
|
}
|
|
907
907
|
})(), () => {
|
|
908
908
|
o.current = !0;
|
|
909
909
|
}), [e, t]), /* @__PURE__ */ m("span", {
|
|
910
|
-
className:
|
|
910
|
+
className: Lt.text,
|
|
911
911
|
style: {
|
|
912
912
|
fontSize: n,
|
|
913
913
|
...r.style
|
|
914
914
|
},
|
|
915
915
|
children: [i, /* @__PURE__ */ p("span", {
|
|
916
|
-
className:
|
|
916
|
+
className: Lt.cursor,
|
|
917
917
|
children: "\xA0"
|
|
918
918
|
})]
|
|
919
919
|
});
|
|
920
|
-
},
|
|
921
|
-
className:
|
|
920
|
+
}, zt = { "elm-template": "_elm-template_18rwn_1" }, Bt = (e) => /* @__PURE__ */ p("div", {
|
|
921
|
+
className: zt["elm-template"],
|
|
922
922
|
style: e.style,
|
|
923
923
|
children: "PLACEHOLDER"
|
|
924
|
-
}),
|
|
924
|
+
}), k = {
|
|
925
925
|
progress: "_progress_e6hmw_1",
|
|
926
926
|
container: "_container_e6hmw_27",
|
|
927
927
|
value: "_value_e6hmw_41",
|
|
928
928
|
loading: "_loading_e6hmw_56",
|
|
929
929
|
buffer: "_buffer_e6hmw_72"
|
|
930
|
-
},
|
|
931
|
-
className:
|
|
930
|
+
}, Vt = ({ value: e, buffer: t, max: n = 100, weight: r = "4px", round: i = !0, color: a, loading: o = !1, style: s }) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("progress", {
|
|
931
|
+
className: k.progress,
|
|
932
932
|
value: e,
|
|
933
933
|
max: n
|
|
934
934
|
}), /* @__PURE__ */ m("div", {
|
|
935
|
-
className:
|
|
935
|
+
className: k.container,
|
|
936
936
|
style: {
|
|
937
937
|
"--weight": r,
|
|
938
938
|
"--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
|
|
@@ -941,19 +941,19 @@ var dt = (e) => {
|
|
|
941
941
|
},
|
|
942
942
|
children: [
|
|
943
943
|
/* @__PURE__ */ p("div", {
|
|
944
|
-
className:
|
|
944
|
+
className: k.value,
|
|
945
945
|
style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
|
|
946
946
|
}),
|
|
947
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
947
|
+
o && /* @__PURE__ */ p("div", { className: k.loading }),
|
|
948
948
|
/* @__PURE__ */ p("div", {
|
|
949
|
-
className:
|
|
949
|
+
className: k.buffer,
|
|
950
950
|
style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
|
|
951
951
|
})
|
|
952
952
|
]
|
|
953
|
-
})] }),
|
|
953
|
+
})] }), Ht = {
|
|
954
954
|
container: "_container_13d02_1",
|
|
955
955
|
bar: "_bar_13d02_15"
|
|
956
|
-
},
|
|
956
|
+
}, Ut = ({ progress: e, weight: t = "4px", round: n = !0, style: r }) => {
|
|
957
957
|
let i = l(() => {
|
|
958
958
|
let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
|
|
959
959
|
return e.map((e, t) => ({
|
|
@@ -963,52 +963,52 @@ var dt = (e) => {
|
|
|
963
963
|
}));
|
|
964
964
|
}, [e]);
|
|
965
965
|
return /* @__PURE__ */ p("div", {
|
|
966
|
-
className:
|
|
966
|
+
className: Ht.container,
|
|
967
967
|
style: {
|
|
968
968
|
"--weight": t,
|
|
969
969
|
"--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
|
|
970
970
|
...r
|
|
971
971
|
},
|
|
972
972
|
children: i.map((e, t) => /* @__PURE__ */ p("div", {
|
|
973
|
-
className:
|
|
973
|
+
className: Ht.bar,
|
|
974
974
|
style: {
|
|
975
975
|
"--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
|
|
976
976
|
"--color": e.color
|
|
977
977
|
}
|
|
978
978
|
}, t))
|
|
979
979
|
});
|
|
980
|
-
},
|
|
980
|
+
}, Wt = { wrapper: "_wrapper_17chp_1" }, Gt = Object.freeze({
|
|
981
981
|
pending: {
|
|
982
982
|
color: "#6987b8",
|
|
983
|
-
icon:
|
|
983
|
+
icon: Ge
|
|
984
984
|
},
|
|
985
985
|
error: {
|
|
986
986
|
color: "#c56565",
|
|
987
|
-
icon:
|
|
987
|
+
icon: re
|
|
988
988
|
},
|
|
989
989
|
warning: {
|
|
990
990
|
color: "#cdb57b",
|
|
991
|
-
icon:
|
|
991
|
+
icon: ne
|
|
992
992
|
},
|
|
993
993
|
success: {
|
|
994
994
|
color: "#59b57c",
|
|
995
|
-
icon:
|
|
995
|
+
icon: pe
|
|
996
996
|
}
|
|
997
|
-
}),
|
|
998
|
-
let { color: r, icon: i } =
|
|
997
|
+
}), Kt = ({ status: e, message: t, style: n }) => {
|
|
998
|
+
let { color: r, icon: i } = Gt[e];
|
|
999
999
|
return /* @__PURE__ */ m("div", {
|
|
1000
|
-
className:
|
|
1000
|
+
className: Wt.wrapper,
|
|
1001
1001
|
style: n,
|
|
1002
|
-
children: [/* @__PURE__ */ p(
|
|
1002
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1003
1003
|
d: i,
|
|
1004
1004
|
color: r,
|
|
1005
1005
|
size: "1em"
|
|
1006
|
-
}), /* @__PURE__ */ p(
|
|
1006
|
+
}), /* @__PURE__ */ p(w, {
|
|
1007
1007
|
color: r,
|
|
1008
1008
|
children: t
|
|
1009
1009
|
})]
|
|
1010
1010
|
});
|
|
1011
|
-
},
|
|
1011
|
+
}, A = {
|
|
1012
1012
|
wrapper: "_wrapper_gcui5_1",
|
|
1013
1013
|
error: "_error_gcui5_9",
|
|
1014
1014
|
"image-frame": "_image-frame_gcui5_21",
|
|
@@ -1020,7 +1020,7 @@ var dt = (e) => {
|
|
|
1020
1020
|
"alt-text": "_alt-text_gcui5_90",
|
|
1021
1021
|
modal: "_modal_gcui5_94",
|
|
1022
1022
|
"modal-image": "_modal-image_gcui5_108"
|
|
1023
|
-
},
|
|
1023
|
+
}, j = ({ src: e, alt: t, block: n = !1, enableModal: r = !1, width: i, height: a, style: o }) => {
|
|
1024
1024
|
let [c, l] = d(!0), [f, h] = d(!1), [g, _] = d(!1), v = u(null);
|
|
1025
1025
|
return s(() => {
|
|
1026
1026
|
let t = new Image();
|
|
@@ -1035,30 +1035,30 @@ var dt = (e) => {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1037
1037
|
}, []), /* @__PURE__ */ m("div", {
|
|
1038
|
-
className:
|
|
1038
|
+
className: A.wrapper,
|
|
1039
1039
|
ref: v,
|
|
1040
1040
|
style: o,
|
|
1041
1041
|
children: [
|
|
1042
1042
|
f && /* @__PURE__ */ p("div", {
|
|
1043
|
-
className:
|
|
1044
|
-
children: /* @__PURE__ */ p(
|
|
1043
|
+
className: A.error,
|
|
1044
|
+
children: /* @__PURE__ */ p(w, {
|
|
1045
1045
|
color: "#c56565",
|
|
1046
1046
|
size: "1.5rem",
|
|
1047
1047
|
children: "Error loading image"
|
|
1048
1048
|
})
|
|
1049
1049
|
}),
|
|
1050
1050
|
/* @__PURE__ */ m("div", {
|
|
1051
|
-
className:
|
|
1051
|
+
className: A["image-frame"],
|
|
1052
1052
|
style: o,
|
|
1053
1053
|
children: [c && /* @__PURE__ */ p("div", {
|
|
1054
|
-
className:
|
|
1054
|
+
className: A.fallback,
|
|
1055
1055
|
style: {
|
|
1056
1056
|
aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
|
|
1057
1057
|
width: i ? `${i}px` : void 0,
|
|
1058
1058
|
height: a ? `${a}px` : void 0
|
|
1059
1059
|
}
|
|
1060
1060
|
}), /* @__PURE__ */ p("img", {
|
|
1061
|
-
className: n ?
|
|
1061
|
+
className: n ? A["image-block"] : A["image-inline"],
|
|
1062
1062
|
src: e,
|
|
1063
1063
|
alt: t,
|
|
1064
1064
|
width: i,
|
|
@@ -1076,24 +1076,24 @@ var dt = (e) => {
|
|
|
1076
1076
|
})]
|
|
1077
1077
|
}),
|
|
1078
1078
|
n && !c && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
|
|
1079
|
-
className:
|
|
1080
|
-
children: [/* @__PURE__ */ p(
|
|
1081
|
-
d:
|
|
1079
|
+
className: A["alt-container"],
|
|
1080
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1081
|
+
d: He,
|
|
1082
1082
|
color: "#b69545",
|
|
1083
1083
|
style: { flexShrink: 0 }
|
|
1084
1084
|
}), /* @__PURE__ */ p("div", {
|
|
1085
|
-
className:
|
|
1086
|
-
children: /* @__PURE__ */ p(
|
|
1085
|
+
className: A["alt-text"],
|
|
1086
|
+
children: /* @__PURE__ */ p(w, {
|
|
1087
1087
|
size: "0.8rem",
|
|
1088
1088
|
children: t
|
|
1089
1089
|
})
|
|
1090
1090
|
})]
|
|
1091
1091
|
}),
|
|
1092
1092
|
g && /* @__PURE__ */ p("div", {
|
|
1093
|
-
className:
|
|
1093
|
+
className: A.modal,
|
|
1094
1094
|
onClick: () => _(!1),
|
|
1095
1095
|
children: /* @__PURE__ */ p("img", {
|
|
1096
|
-
className:
|
|
1096
|
+
className: A["modal-image"],
|
|
1097
1097
|
src: e,
|
|
1098
1098
|
alt: t,
|
|
1099
1099
|
width: i,
|
|
@@ -1102,7 +1102,7 @@ var dt = (e) => {
|
|
|
1102
1102
|
})
|
|
1103
1103
|
]
|
|
1104
1104
|
});
|
|
1105
|
-
},
|
|
1105
|
+
}, M = {
|
|
1106
1106
|
file: "_file_sk4pw_1",
|
|
1107
1107
|
"left-container": "_left-container_sk4pw_19",
|
|
1108
1108
|
"right-container": "_right-container_sk4pw_26",
|
|
@@ -1110,49 +1110,49 @@ var dt = (e) => {
|
|
|
1110
1110
|
};
|
|
1111
1111
|
//#endregion
|
|
1112
1112
|
//#region src/components/media/ElmFile.tsx
|
|
1113
|
-
function
|
|
1113
|
+
function qt(e) {
|
|
1114
1114
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1115
1115
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1116
1116
|
}
|
|
1117
|
-
var
|
|
1117
|
+
var Jt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
1118
1118
|
let i = a(async () => {
|
|
1119
1119
|
let n;
|
|
1120
1120
|
try {
|
|
1121
1121
|
let r = await fetch(t);
|
|
1122
1122
|
if (!r.ok) throw Error("Failed to download file");
|
|
1123
1123
|
let i = await r.blob();
|
|
1124
|
-
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ??
|
|
1124
|
+
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? qt(t) ?? "file", n.click();
|
|
1125
1125
|
} catch (e) {
|
|
1126
1126
|
console.error("ERROR:", e);
|
|
1127
1127
|
} finally {
|
|
1128
1128
|
n && URL.revokeObjectURL(n.href);
|
|
1129
1129
|
}
|
|
1130
|
-
}, [t, e]), o = e ??
|
|
1130
|
+
}, [t, e]), o = e ?? qt(t) ?? "unknown file";
|
|
1131
1131
|
return /* @__PURE__ */ m("div", {
|
|
1132
|
-
className:
|
|
1132
|
+
className: M.file,
|
|
1133
1133
|
style: r,
|
|
1134
1134
|
children: [/* @__PURE__ */ m("div", {
|
|
1135
|
-
className:
|
|
1136
|
-
children: [/* @__PURE__ */ p(
|
|
1137
|
-
d:
|
|
1135
|
+
className: M["left-container"],
|
|
1136
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1137
|
+
d: Ee,
|
|
1138
1138
|
size: "1.25em"
|
|
1139
|
-
}), /* @__PURE__ */ p(
|
|
1139
|
+
}), /* @__PURE__ */ p(w, { children: o })]
|
|
1140
1140
|
}), /* @__PURE__ */ m("div", {
|
|
1141
|
-
className:
|
|
1141
|
+
className: M["right-container"],
|
|
1142
1142
|
children: [n && /* @__PURE__ */ p("span", {
|
|
1143
1143
|
style: { opacity: .6 },
|
|
1144
|
-
children: /* @__PURE__ */ p(
|
|
1144
|
+
children: /* @__PURE__ */ p(w, { children: n })
|
|
1145
1145
|
}), /* @__PURE__ */ p("div", {
|
|
1146
|
-
className:
|
|
1146
|
+
className: M["download-icon"],
|
|
1147
1147
|
onClick: i,
|
|
1148
|
-
children: /* @__PURE__ */ p(
|
|
1149
|
-
d:
|
|
1148
|
+
children: /* @__PURE__ */ p(x, {
|
|
1149
|
+
d: xe,
|
|
1150
1150
|
size: "1.25em"
|
|
1151
1151
|
})
|
|
1152
1152
|
})]
|
|
1153
1153
|
})]
|
|
1154
1154
|
});
|
|
1155
|
-
},
|
|
1155
|
+
}, N = {
|
|
1156
1156
|
parent: "_parent_1hx4v_1",
|
|
1157
1157
|
bookmark: "_bookmark_1hx4v_23",
|
|
1158
1158
|
image: "_image_1hx4v_42",
|
|
@@ -1161,21 +1161,21 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1161
1161
|
date: "_date_1hx4v_81",
|
|
1162
1162
|
link: "_link_1hx4v_90",
|
|
1163
1163
|
favicon: "_favicon_1hx4v_100"
|
|
1164
|
-
},
|
|
1164
|
+
}, Yt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u }) => {
|
|
1165
1165
|
let [h, g] = d(!1), _ = (e) => {
|
|
1166
1166
|
c && (e.preventDefault(), c());
|
|
1167
1167
|
}, v = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
|
|
1168
1168
|
return /* @__PURE__ */ p("div", {
|
|
1169
|
-
className:
|
|
1169
|
+
className: N.parent,
|
|
1170
1170
|
style: u,
|
|
1171
1171
|
children: /* @__PURE__ */ m("a", {
|
|
1172
|
-
className:
|
|
1172
|
+
className: N.bookmark,
|
|
1173
1173
|
href: a,
|
|
1174
1174
|
target: t ? "_blank" : void 0,
|
|
1175
1175
|
rel: "noopener noreferrer",
|
|
1176
1176
|
onClick: _,
|
|
1177
1177
|
children: [i != null && !h && /* @__PURE__ */ p("div", {
|
|
1178
|
-
className:
|
|
1178
|
+
className: N.image,
|
|
1179
1179
|
children: /* @__PURE__ */ p("img", {
|
|
1180
1180
|
src: i,
|
|
1181
1181
|
alt: "OGP Image",
|
|
@@ -1187,16 +1187,16 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
})
|
|
1189
1189
|
}), /* @__PURE__ */ m("div", {
|
|
1190
|
-
className:
|
|
1190
|
+
className: N.typography,
|
|
1191
1191
|
children: [
|
|
1192
1192
|
/* @__PURE__ */ p("div", {
|
|
1193
|
-
className:
|
|
1194
|
-
children: /* @__PURE__ */ p(
|
|
1193
|
+
className: N.title,
|
|
1194
|
+
children: /* @__PURE__ */ p(w, {
|
|
1195
1195
|
bold: !0,
|
|
1196
1196
|
children: n ?? "No title provided"
|
|
1197
1197
|
})
|
|
1198
1198
|
}),
|
|
1199
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
1199
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(w, {
|
|
1200
1200
|
size: "0.8rem",
|
|
1201
1201
|
children: /* @__PURE__ */ p("span", {
|
|
1202
1202
|
style: { opacity: .6 },
|
|
@@ -1204,24 +1204,24 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1204
1204
|
})
|
|
1205
1205
|
}) }),
|
|
1206
1206
|
(o != null || s != null) && /* @__PURE__ */ m("div", {
|
|
1207
|
-
className:
|
|
1208
|
-
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1209
|
-
d:
|
|
1207
|
+
className: N.date,
|
|
1208
|
+
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
|
|
1209
|
+
d: ue,
|
|
1210
1210
|
size: "1em"
|
|
1211
|
-
}), /* @__PURE__ */ p(
|
|
1211
|
+
}), /* @__PURE__ */ p(w, {
|
|
1212
1212
|
size: "0.8rem",
|
|
1213
1213
|
children: o
|
|
1214
|
-
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1215
|
-
d:
|
|
1214
|
+
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(x, {
|
|
1215
|
+
d: de,
|
|
1216
1216
|
size: "1em"
|
|
1217
|
-
}), /* @__PURE__ */ p(
|
|
1217
|
+
}), /* @__PURE__ */ p(w, {
|
|
1218
1218
|
size: "0.8rem",
|
|
1219
1219
|
children: s
|
|
1220
1220
|
})] })]
|
|
1221
1221
|
}),
|
|
1222
1222
|
!e && a != null && /* @__PURE__ */ m("div", {
|
|
1223
|
-
className:
|
|
1224
|
-
children: [l && /* @__PURE__ */ p(
|
|
1223
|
+
className: N.link,
|
|
1224
|
+
children: [l && /* @__PURE__ */ p(b, { src: l }), /* @__PURE__ */ p(w, {
|
|
1225
1225
|
size: "0.8rem",
|
|
1226
1226
|
color: "#6987b8",
|
|
1227
1227
|
children: a
|
|
@@ -1231,11 +1231,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1231
1231
|
})]
|
|
1232
1232
|
})
|
|
1233
1233
|
});
|
|
1234
|
-
},
|
|
1234
|
+
}, P = {
|
|
1235
1235
|
container: "_container_1r6mu_1",
|
|
1236
1236
|
"link-container": "_link-container_1r6mu_10",
|
|
1237
1237
|
text: "_text_1r6mu_36"
|
|
1238
|
-
},
|
|
1238
|
+
}, Xt = ({ links: e, style: n }) => {
|
|
1239
1239
|
let r = u(null), [i, a] = d(!1);
|
|
1240
1240
|
return s(() => {
|
|
1241
1241
|
let e = r.current;
|
|
@@ -1245,44 +1245,44 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1245
1245
|
});
|
|
1246
1246
|
return t.observe(e), () => t.disconnect();
|
|
1247
1247
|
}, []), /* @__PURE__ */ p("nav", {
|
|
1248
|
-
className:
|
|
1248
|
+
className: P.container,
|
|
1249
1249
|
ref: r,
|
|
1250
1250
|
style: {
|
|
1251
1251
|
"--opacity": +!!i,
|
|
1252
1252
|
...n
|
|
1253
1253
|
},
|
|
1254
1254
|
children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
|
|
1255
|
-
className:
|
|
1255
|
+
className: P["link-container"],
|
|
1256
1256
|
onClick: n.onClick,
|
|
1257
1257
|
children: [/* @__PURE__ */ p("span", {
|
|
1258
|
-
className:
|
|
1258
|
+
className: P.text,
|
|
1259
1259
|
style: { "--delay": `${r * 100}ms` },
|
|
1260
|
-
children: /* @__PURE__ */ p(
|
|
1261
|
-
d: r === 0 ?
|
|
1260
|
+
children: /* @__PURE__ */ p(x, {
|
|
1261
|
+
d: r === 0 ? Ae : r === e.length - 1 ? ae : De,
|
|
1262
1262
|
size: "1.25em"
|
|
1263
1263
|
})
|
|
1264
1264
|
}), /* @__PURE__ */ p("span", {
|
|
1265
|
-
className:
|
|
1265
|
+
className: P.text,
|
|
1266
1266
|
style: { "--delay": `${r * 100 + 50}ms` },
|
|
1267
|
-
children: /* @__PURE__ */ p(
|
|
1267
|
+
children: /* @__PURE__ */ p(w, { children: n.text })
|
|
1268
1268
|
})]
|
|
1269
1269
|
}), e.length !== r + 1 && /* @__PURE__ */ p("span", {
|
|
1270
|
-
className:
|
|
1270
|
+
className: P.text,
|
|
1271
1271
|
style: { "--delay": `${r * 100 + 100}ms` },
|
|
1272
|
-
children: /* @__PURE__ */ p(
|
|
1273
|
-
d:
|
|
1272
|
+
children: /* @__PURE__ */ p(x, {
|
|
1273
|
+
d: he,
|
|
1274
1274
|
size: "1em",
|
|
1275
1275
|
color: "#b69545"
|
|
1276
1276
|
})
|
|
1277
1277
|
})] }, r))
|
|
1278
1278
|
});
|
|
1279
|
-
},
|
|
1279
|
+
}, F = {
|
|
1280
1280
|
wrapper: "_wrapper_1tlqa_1",
|
|
1281
1281
|
"wrapper--visible": "_wrapper--visible_1tlqa_33",
|
|
1282
1282
|
partial: "_partial_1tlqa_63",
|
|
1283
1283
|
move: "_move_1tlqa_1",
|
|
1284
1284
|
text: "_text_1tlqa_104"
|
|
1285
|
-
},
|
|
1285
|
+
}, Zt = ({ position: e = "right", style: t }) => {
|
|
1286
1286
|
let [n, r] = d(!1);
|
|
1287
1287
|
s(() => {
|
|
1288
1288
|
let e = () => {
|
|
@@ -1297,7 +1297,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
};
|
|
1299
1299
|
return /* @__PURE__ */ m("nav", {
|
|
1300
|
-
className: `${
|
|
1300
|
+
className: `${F.wrapper} ${n ? F["wrapper--visible"] : ""}`,
|
|
1301
1301
|
style: {
|
|
1302
1302
|
"--size": "64px",
|
|
1303
1303
|
left: e === "left" ? "0" : "auto",
|
|
@@ -1308,75 +1308,75 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1308
1308
|
children: [
|
|
1309
1309
|
/* @__PURE__ */ p("div", {
|
|
1310
1310
|
"aria-hidden": "true",
|
|
1311
|
-
className:
|
|
1311
|
+
className: F.partial
|
|
1312
1312
|
}),
|
|
1313
1313
|
/* @__PURE__ */ p("div", {
|
|
1314
1314
|
"aria-hidden": "true",
|
|
1315
|
-
className:
|
|
1315
|
+
className: F.partial
|
|
1316
1316
|
}),
|
|
1317
1317
|
/* @__PURE__ */ p("div", {
|
|
1318
1318
|
"aria-hidden": "true",
|
|
1319
|
-
className:
|
|
1319
|
+
className: F.partial
|
|
1320
1320
|
}),
|
|
1321
1321
|
/* @__PURE__ */ p("span", {
|
|
1322
|
-
className:
|
|
1322
|
+
className: F.text,
|
|
1323
1323
|
children: "Back to Top"
|
|
1324
1324
|
})
|
|
1325
1325
|
]
|
|
1326
1326
|
});
|
|
1327
|
-
},
|
|
1327
|
+
}, Qt = {
|
|
1328
1328
|
toc: "_toc_eubcy_1",
|
|
1329
1329
|
link: "_link_eubcy_15"
|
|
1330
|
-
},
|
|
1331
|
-
className:
|
|
1330
|
+
}, $t = ({ headings: e, style: t }) => /* @__PURE__ */ p("nav", {
|
|
1331
|
+
className: Qt.toc,
|
|
1332
1332
|
style: t,
|
|
1333
1333
|
children: e.map((e, t) => /* @__PURE__ */ m("a", {
|
|
1334
|
-
className:
|
|
1334
|
+
className: Qt.link,
|
|
1335
1335
|
href: `#${e.id ?? e.text}`,
|
|
1336
1336
|
style: { "--padding-left": `${e.level * .5}rem` },
|
|
1337
1337
|
children: [
|
|
1338
|
-
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(
|
|
1338
|
+
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(w, {
|
|
1339
1339
|
size: "0.6rem",
|
|
1340
1340
|
color: "#6987b8",
|
|
1341
1341
|
children: `H${e.level}`
|
|
1342
1342
|
}) }),
|
|
1343
|
-
/* @__PURE__ */ p(
|
|
1344
|
-
/* @__PURE__ */ p(
|
|
1345
|
-
d:
|
|
1343
|
+
/* @__PURE__ */ p(w, { children: e.text }),
|
|
1344
|
+
/* @__PURE__ */ p(x, {
|
|
1345
|
+
d: Ve,
|
|
1346
1346
|
size: "1em",
|
|
1347
1347
|
color: "#6987b8"
|
|
1348
1348
|
})
|
|
1349
1349
|
]
|
|
1350
1350
|
}, t))
|
|
1351
|
-
}),
|
|
1351
|
+
}), en = { "block-fallback": "_block-fallback_adya7_1" }, tn = {
|
|
1352
1352
|
"rectangle-wave": "_rectangle-wave_gxedo_21",
|
|
1353
1353
|
"elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
|
|
1354
|
-
},
|
|
1354
|
+
}, nn = (e) => /* @__PURE__ */ p("div", {
|
|
1355
1355
|
"aria-hidden": !0,
|
|
1356
|
-
className:
|
|
1356
|
+
className: tn["rectangle-wave"],
|
|
1357
1357
|
style: e.style
|
|
1358
|
-
}),
|
|
1358
|
+
}), rn = (e) => {
|
|
1359
1359
|
let { height: t = "16rem", style: n } = e;
|
|
1360
1360
|
return /* @__PURE__ */ m("div", {
|
|
1361
|
-
className:
|
|
1361
|
+
className: en["block-fallback"],
|
|
1362
1362
|
style: {
|
|
1363
1363
|
"--height": t,
|
|
1364
1364
|
...n
|
|
1365
1365
|
},
|
|
1366
|
-
children: [/* @__PURE__ */ p(
|
|
1366
|
+
children: [/* @__PURE__ */ p(S, {}), /* @__PURE__ */ p(nn, {})]
|
|
1367
1367
|
});
|
|
1368
|
-
},
|
|
1368
|
+
}, an = {
|
|
1369
1369
|
circle: "_circle_ycu2l_19",
|
|
1370
1370
|
"draw-line": "_draw-line_ycu2l_1",
|
|
1371
1371
|
rotate: "_rotate_ycu2l_1"
|
|
1372
|
-
},
|
|
1372
|
+
}, on = (e) => {
|
|
1373
1373
|
let { radius: t = 16, weight: n = 2, style: r } = e;
|
|
1374
1374
|
return /* @__PURE__ */ p("svg", {
|
|
1375
1375
|
height: t * 2,
|
|
1376
1376
|
width: t * 2,
|
|
1377
1377
|
style: r,
|
|
1378
1378
|
children: /* @__PURE__ */ p("circle", {
|
|
1379
|
-
className:
|
|
1379
|
+
className: an.circle,
|
|
1380
1380
|
cx: t,
|
|
1381
1381
|
cy: t,
|
|
1382
1382
|
r: t - n,
|
|
@@ -1384,34 +1384,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1384
1384
|
strokeWidth: n
|
|
1385
1385
|
})
|
|
1386
1386
|
});
|
|
1387
|
-
},
|
|
1387
|
+
}, I = {
|
|
1388
1388
|
unsupported: "_unsupported_1xu4c_1",
|
|
1389
1389
|
message: "_message_1xu4c_13",
|
|
1390
1390
|
icon: "_icon_1xu4c_20",
|
|
1391
1391
|
details: "_details_1xu4c_24"
|
|
1392
|
-
},
|
|
1393
|
-
className:
|
|
1392
|
+
}, sn = (e) => /* @__PURE__ */ m("div", {
|
|
1393
|
+
className: I.unsupported,
|
|
1394
1394
|
style: e.style,
|
|
1395
1395
|
children: [/* @__PURE__ */ m("div", {
|
|
1396
|
-
className:
|
|
1396
|
+
className: I.message,
|
|
1397
1397
|
children: [/* @__PURE__ */ p("svg", {
|
|
1398
1398
|
viewBox: "0 0 24 24",
|
|
1399
1399
|
width: "1.25rem",
|
|
1400
1400
|
height: "1.25rem",
|
|
1401
|
-
className:
|
|
1402
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
1403
|
-
}), /* @__PURE__ */ p(
|
|
1401
|
+
className: I.icon,
|
|
1402
|
+
children: /* @__PURE__ */ p("path", { d: je })
|
|
1403
|
+
}), /* @__PURE__ */ p(w, {
|
|
1404
1404
|
color: "#868e9c",
|
|
1405
1405
|
children: "UNSUPPORTED BLOCK"
|
|
1406
1406
|
})]
|
|
1407
1407
|
}), e.details && /* @__PURE__ */ p("div", {
|
|
1408
|
-
className:
|
|
1409
|
-
children: /* @__PURE__ */ p(
|
|
1408
|
+
className: I.details,
|
|
1409
|
+
children: /* @__PURE__ */ p(w, {
|
|
1410
1410
|
color: "#868e9c",
|
|
1411
1411
|
children: e.details
|
|
1412
1412
|
})
|
|
1413
1413
|
})]
|
|
1414
|
-
}),
|
|
1414
|
+
}), L = {
|
|
1415
1415
|
button: "_button_c0mex_1",
|
|
1416
1416
|
"button-ornament": "_button-ornament_c0mex_29",
|
|
1417
1417
|
normal: "_normal_c0mex_40",
|
|
@@ -1421,7 +1421,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1421
1421
|
flex: "_flex_c0mex_95",
|
|
1422
1422
|
ripple: "_ripple_c0mex_117",
|
|
1423
1423
|
"button-ripple": "_button-ripple_c0mex_1"
|
|
1424
|
-
},
|
|
1424
|
+
}, cn = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
|
|
1425
1425
|
let [o, c] = d(!1), l = u(void 0), { onClick: f } = i, h = a(() => {
|
|
1426
1426
|
!e && !n && f && (c(!0), l.current = window.setTimeout(() => c(!1), 300), f());
|
|
1427
1427
|
}, [
|
|
@@ -1433,11 +1433,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1433
1433
|
l.current && clearTimeout(l.current);
|
|
1434
1434
|
}, []), /* @__PURE__ */ m("button", {
|
|
1435
1435
|
className: [
|
|
1436
|
-
|
|
1437
|
-
!e && !n ?
|
|
1438
|
-
i.color ?
|
|
1439
|
-
!i.color && !r ?
|
|
1440
|
-
!i.color && r ?
|
|
1436
|
+
L.button,
|
|
1437
|
+
!e && !n ? L.enable : "",
|
|
1438
|
+
i.color ? L.colored : "",
|
|
1439
|
+
!i.color && !r ? L.normal : "",
|
|
1440
|
+
!i.color && r ? L.primary : ""
|
|
1441
1441
|
].filter(Boolean).join(" "),
|
|
1442
1442
|
style: {
|
|
1443
1443
|
display: t ? "flex" : "inline-flex",
|
|
@@ -1449,15 +1449,15 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1449
1449
|
},
|
|
1450
1450
|
onClick: h,
|
|
1451
1451
|
children: [
|
|
1452
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
1453
|
-
e ? /* @__PURE__ */ p(
|
|
1454
|
-
className:
|
|
1452
|
+
o && /* @__PURE__ */ p("div", { className: L.ripple }),
|
|
1453
|
+
e ? /* @__PURE__ */ p(S, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
|
|
1454
|
+
className: L.flex,
|
|
1455
1455
|
children: i.children
|
|
1456
1456
|
}),
|
|
1457
|
-
/* @__PURE__ */ p("div", { className:
|
|
1457
|
+
/* @__PURE__ */ p("div", { className: L["button-ornament"] })
|
|
1458
1458
|
]
|
|
1459
1459
|
});
|
|
1460
|
-
},
|
|
1460
|
+
}, R = {
|
|
1461
1461
|
container: "_container_12edl_1",
|
|
1462
1462
|
"container-disable": "_container-disable_12edl_14",
|
|
1463
1463
|
checkbox: "_checkbox_12edl_23",
|
|
@@ -1467,7 +1467,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1467
1467
|
loading: "_loading_12edl_48",
|
|
1468
1468
|
"check-line": "_check-line_12edl_67",
|
|
1469
1469
|
"elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_12edl_1"
|
|
1470
|
-
},
|
|
1470
|
+
}, ln = ({ loading: e = !1, disable: t = !1, checked: n = !1, ...r }) => {
|
|
1471
1471
|
let { onChange: i } = r, o = a(() => {
|
|
1472
1472
|
!e && !t && i && i(!n);
|
|
1473
1473
|
}, [
|
|
@@ -1475,10 +1475,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1475
1475
|
t,
|
|
1476
1476
|
n,
|
|
1477
1477
|
i
|
|
1478
|
-
]), s = [
|
|
1479
|
-
|
|
1480
|
-
n ?
|
|
1481
|
-
e ?
|
|
1478
|
+
]), s = [R.container, t ? R["container-disable"] : ""].filter(Boolean).join(" "), c = [
|
|
1479
|
+
R.rect,
|
|
1480
|
+
n ? R["rect-checked"] : "",
|
|
1481
|
+
e ? R["rect-loading"] : ""
|
|
1482
1482
|
].filter(Boolean).join(" ");
|
|
1483
1483
|
return /* @__PURE__ */ p("div", {
|
|
1484
1484
|
className: s,
|
|
@@ -1493,13 +1493,13 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1493
1493
|
children: [/* @__PURE__ */ m("svg", {
|
|
1494
1494
|
width: "24",
|
|
1495
1495
|
height: "24",
|
|
1496
|
-
className:
|
|
1496
|
+
className: R.checkbox,
|
|
1497
1497
|
children: [
|
|
1498
1498
|
/* @__PURE__ */ m("circle", {
|
|
1499
1499
|
cx: "0",
|
|
1500
1500
|
cy: "0",
|
|
1501
1501
|
r: "2",
|
|
1502
|
-
className:
|
|
1502
|
+
className: R.loading,
|
|
1503
1503
|
style: { opacity: +!!e },
|
|
1504
1504
|
children: [/* @__PURE__ */ p("animate", {
|
|
1505
1505
|
attributeName: "cx",
|
|
@@ -1521,7 +1521,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1521
1521
|
cx: "20",
|
|
1522
1522
|
cy: "20",
|
|
1523
1523
|
r: "2",
|
|
1524
|
-
className:
|
|
1524
|
+
className: R.loading,
|
|
1525
1525
|
style: { opacity: +!!e },
|
|
1526
1526
|
children: [/* @__PURE__ */ p("animate", {
|
|
1527
1527
|
attributeName: "cx",
|
|
@@ -1548,7 +1548,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1548
1548
|
strokeWidth: "0.8"
|
|
1549
1549
|
}),
|
|
1550
1550
|
n && /* @__PURE__ */ p("polyline", {
|
|
1551
|
-
className:
|
|
1551
|
+
className: R["check-line"],
|
|
1552
1552
|
points: "5,12 10,17 19,8",
|
|
1553
1553
|
strokeWidth: "1.5",
|
|
1554
1554
|
fill: "transparent"
|
|
@@ -1613,7 +1613,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1613
1613
|
}), /* @__PURE__ */ p("span", { children: r.label })]
|
|
1614
1614
|
})
|
|
1615
1615
|
});
|
|
1616
|
-
},
|
|
1616
|
+
}, z = {
|
|
1617
1617
|
wrapper: "_wrapper_3ipdq_1",
|
|
1618
1618
|
active: "_active_3ipdq_29",
|
|
1619
1619
|
header: "_header_3ipdq_33",
|
|
@@ -1625,7 +1625,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1625
1625
|
pulldown: "_pulldown_3ipdq_85",
|
|
1626
1626
|
option: "_option_3ipdq_105",
|
|
1627
1627
|
description: "_description_3ipdq_127"
|
|
1628
|
-
},
|
|
1628
|
+
}, un = ({ disabled: e = !1, loading: t = !1, ...n }) => {
|
|
1629
1629
|
let [r, i] = d(!1), o = u(null), c = a(() => {
|
|
1630
1630
|
!e && !t && i((e) => !e);
|
|
1631
1631
|
}, [e, t]), { options: l, onSelect: f } = n, h = a((e) => {
|
|
@@ -1639,7 +1639,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1639
1639
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1640
1640
|
}, []), /* @__PURE__ */ m("div", {
|
|
1641
1641
|
ref: o,
|
|
1642
|
-
className: [
|
|
1642
|
+
className: [z.wrapper, r ? z.active : ""].filter(Boolean).join(" "),
|
|
1643
1643
|
style: {
|
|
1644
1644
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1645
1645
|
"--highlight-color": r ? "#bfa056" : void 0,
|
|
@@ -1647,46 +1647,46 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1647
1647
|
},
|
|
1648
1648
|
onClick: c,
|
|
1649
1649
|
children: [/* @__PURE__ */ p("div", {
|
|
1650
|
-
className:
|
|
1650
|
+
className: z.header,
|
|
1651
1651
|
children: /* @__PURE__ */ p("span", {
|
|
1652
|
-
className:
|
|
1652
|
+
className: z.label,
|
|
1653
1653
|
children: n.label
|
|
1654
1654
|
})
|
|
1655
1655
|
}), /* @__PURE__ */ p("div", {
|
|
1656
|
-
className:
|
|
1656
|
+
className: z.body,
|
|
1657
1657
|
children: /* @__PURE__ */ m("div", {
|
|
1658
|
-
className:
|
|
1658
|
+
className: z.select,
|
|
1659
1659
|
children: [
|
|
1660
1660
|
/* @__PURE__ */ p("div", {
|
|
1661
|
-
className:
|
|
1661
|
+
className: z.selected,
|
|
1662
1662
|
children: n.selectedOption ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
|
|
1663
|
-
className:
|
|
1663
|
+
className: z.description,
|
|
1664
1664
|
children: n.selectedOption.description
|
|
1665
1665
|
})] }) : /* @__PURE__ */ m("div", {
|
|
1666
|
-
className:
|
|
1667
|
-
children: [/* @__PURE__ */ p(
|
|
1666
|
+
className: z.fallback,
|
|
1667
|
+
children: [/* @__PURE__ */ p(x, { d: se }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
|
|
1668
1668
|
})
|
|
1669
1669
|
}),
|
|
1670
|
-
/* @__PURE__ */ p(
|
|
1671
|
-
d:
|
|
1670
|
+
/* @__PURE__ */ p(x, {
|
|
1671
|
+
d: Ve,
|
|
1672
1672
|
size: "1.5rem"
|
|
1673
1673
|
}),
|
|
1674
1674
|
r && /* @__PURE__ */ p("div", {
|
|
1675
|
-
className:
|
|
1675
|
+
className: z.pulldown,
|
|
1676
1676
|
children: n.options.map((e) => /* @__PURE__ */ m("div", {
|
|
1677
|
-
className:
|
|
1677
|
+
className: z.option,
|
|
1678
1678
|
onClick: (t) => {
|
|
1679
1679
|
t.stopPropagation(), h(e.id);
|
|
1680
1680
|
},
|
|
1681
1681
|
children: [
|
|
1682
|
-
/* @__PURE__ */ p(
|
|
1683
|
-
d:
|
|
1682
|
+
/* @__PURE__ */ p(x, {
|
|
1683
|
+
d: he,
|
|
1684
1684
|
color: "#868e9c",
|
|
1685
1685
|
size: "0.75em"
|
|
1686
1686
|
}),
|
|
1687
1687
|
/* @__PURE__ */ p("span", { children: e.label }),
|
|
1688
1688
|
e.description && /* @__PURE__ */ p("span", {
|
|
1689
|
-
className:
|
|
1689
|
+
className: z.description,
|
|
1690
1690
|
children: e.description
|
|
1691
1691
|
})
|
|
1692
1692
|
]
|
|
@@ -1696,7 +1696,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1696
1696
|
})
|
|
1697
1697
|
})]
|
|
1698
1698
|
});
|
|
1699
|
-
},
|
|
1699
|
+
}, B = {
|
|
1700
1700
|
switch: "_switch_8t362_1",
|
|
1701
1701
|
bar: "_bar_8t362_5",
|
|
1702
1702
|
"bar-checked": "_bar-checked_8t362_21",
|
|
@@ -1704,7 +1704,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1704
1704
|
circle: "_circle_8t362_30",
|
|
1705
1705
|
"circle-checked": "_circle-checked_8t362_45",
|
|
1706
1706
|
"circle-disabled": "_circle-disabled_8t362_49"
|
|
1707
|
-
},
|
|
1707
|
+
}, dn = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
|
|
1708
1708
|
let { onChange: o } = i, s = a(() => {
|
|
1709
1709
|
!n && o && o(!r);
|
|
1710
1710
|
}, [
|
|
@@ -1712,13 +1712,13 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1712
1712
|
r,
|
|
1713
1713
|
o
|
|
1714
1714
|
]), c = [
|
|
1715
|
-
|
|
1716
|
-
r ?
|
|
1717
|
-
n ?
|
|
1715
|
+
B.bar,
|
|
1716
|
+
r ? B["bar-checked"] : "",
|
|
1717
|
+
n ? B["bar-disabled"] : ""
|
|
1718
1718
|
].filter(Boolean).join(" "), l = [
|
|
1719
|
-
|
|
1720
|
-
r ?
|
|
1721
|
-
n ?
|
|
1719
|
+
B.circle,
|
|
1720
|
+
r ? B["circle-checked"] : "",
|
|
1721
|
+
n ? B["circle-disabled"] : ""
|
|
1722
1722
|
].filter(Boolean).join(" ");
|
|
1723
1723
|
return /* @__PURE__ */ m("div", {
|
|
1724
1724
|
onClick: s,
|
|
@@ -1730,7 +1730,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1730
1730
|
...i.style
|
|
1731
1731
|
},
|
|
1732
1732
|
children: [/* @__PURE__ */ p("input", {
|
|
1733
|
-
className:
|
|
1733
|
+
className: B.switch,
|
|
1734
1734
|
type: "checkbox",
|
|
1735
1735
|
checked: r,
|
|
1736
1736
|
disabled: n,
|
|
@@ -1740,7 +1740,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1740
1740
|
children: /* @__PURE__ */ p("div", { className: l })
|
|
1741
1741
|
})]
|
|
1742
1742
|
});
|
|
1743
|
-
},
|
|
1743
|
+
}, V = {
|
|
1744
1744
|
loading: "_loading_1y96m_23",
|
|
1745
1745
|
wrapper: "_wrapper_1y96m_38",
|
|
1746
1746
|
active: "_active_1y96m_66",
|
|
@@ -1754,32 +1754,32 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1754
1754
|
suffix: "_suffix_1y96m_159",
|
|
1755
1755
|
counter: "_counter_1y96m_172",
|
|
1756
1756
|
"counter-over": "_counter-over_1y96m_177"
|
|
1757
|
-
},
|
|
1758
|
-
text:
|
|
1759
|
-
pen:
|
|
1760
|
-
email:
|
|
1761
|
-
user:
|
|
1762
|
-
lock:
|
|
1763
|
-
key:
|
|
1764
|
-
earth:
|
|
1765
|
-
tag:
|
|
1766
|
-
archive:
|
|
1767
|
-
link:
|
|
1768
|
-
search:
|
|
1769
|
-
},
|
|
1770
|
-
let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o,
|
|
1757
|
+
}, fn = {
|
|
1758
|
+
text: Ye,
|
|
1759
|
+
pen: Ue,
|
|
1760
|
+
email: Ce,
|
|
1761
|
+
user: y,
|
|
1762
|
+
lock: Le,
|
|
1763
|
+
key: Me,
|
|
1764
|
+
earth: Se,
|
|
1765
|
+
tag: Je,
|
|
1766
|
+
archive: oe,
|
|
1767
|
+
link: Fe,
|
|
1768
|
+
search: Be
|
|
1769
|
+
}, pn = ({ disabled: e = !1, loading: t = !1, isPassword: n = !1, required: r = !1, value: i = "", ...o }) => {
|
|
1770
|
+
let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, ee = a(() => {
|
|
1771
1771
|
!t && !e && v && v("");
|
|
1772
1772
|
}, [
|
|
1773
1773
|
t,
|
|
1774
1774
|
e,
|
|
1775
1775
|
v
|
|
1776
|
-
]),
|
|
1776
|
+
]), te = a(() => {
|
|
1777
1777
|
!t && !e && _((e) => e === "text" ? "password" : "text");
|
|
1778
|
-
}, [t, e]),
|
|
1778
|
+
}, [t, e]), y = a((e) => (t) => {
|
|
1779
1779
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
|
|
1780
1780
|
}, []);
|
|
1781
1781
|
return /* @__PURE__ */ m("div", {
|
|
1782
|
-
className: [
|
|
1782
|
+
className: [V.wrapper, f ? V.active : ""].filter(Boolean).join(" "),
|
|
1783
1783
|
style: {
|
|
1784
1784
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1785
1785
|
"--highlight-color": f ? "#bfa056" : void 0,
|
|
@@ -1787,16 +1787,16 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1787
1787
|
},
|
|
1788
1788
|
children: [
|
|
1789
1789
|
/* @__PURE__ */ m("div", {
|
|
1790
|
-
className:
|
|
1790
|
+
className: V.header,
|
|
1791
1791
|
children: [/* @__PURE__ */ m("label", {
|
|
1792
1792
|
htmlFor: s,
|
|
1793
|
-
className:
|
|
1793
|
+
className: V.label,
|
|
1794
1794
|
children: [/* @__PURE__ */ p("span", { children: o.label }), r && /* @__PURE__ */ p("span", {
|
|
1795
|
-
className:
|
|
1795
|
+
className: V.required,
|
|
1796
1796
|
children: "*"
|
|
1797
1797
|
})]
|
|
1798
1798
|
}), o.maxLength != null && /* @__PURE__ */ m("span", {
|
|
1799
|
-
className: [
|
|
1799
|
+
className: [V.counter, i.length > o.maxLength ? V["counter-over"] : ""].filter(Boolean).join(" "),
|
|
1800
1800
|
children: [
|
|
1801
1801
|
i.length,
|
|
1802
1802
|
" / ",
|
|
@@ -1805,10 +1805,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1805
1805
|
})]
|
|
1806
1806
|
}),
|
|
1807
1807
|
/* @__PURE__ */ m("div", {
|
|
1808
|
-
className:
|
|
1808
|
+
className: V.body,
|
|
1809
1809
|
children: [
|
|
1810
|
-
o.icon && /* @__PURE__ */ p(
|
|
1811
|
-
d:
|
|
1810
|
+
o.icon && /* @__PURE__ */ p(x, {
|
|
1811
|
+
d: fn[o.icon],
|
|
1812
1812
|
size: "1.5rem",
|
|
1813
1813
|
color: "gray"
|
|
1814
1814
|
}),
|
|
@@ -1816,7 +1816,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1816
1816
|
id: s,
|
|
1817
1817
|
ref: l,
|
|
1818
1818
|
type: g,
|
|
1819
|
-
className:
|
|
1819
|
+
className: V.input,
|
|
1820
1820
|
placeholder: o.placeholder,
|
|
1821
1821
|
value: i,
|
|
1822
1822
|
onChange: (e) => v?.(e.target.value),
|
|
@@ -1827,32 +1827,32 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1827
1827
|
"aria-required": r
|
|
1828
1828
|
}),
|
|
1829
1829
|
/* @__PURE__ */ m("div", {
|
|
1830
|
-
className:
|
|
1830
|
+
className: V["icon-box"],
|
|
1831
1831
|
children: [
|
|
1832
1832
|
o.suffix != null && /* @__PURE__ */ p("span", {
|
|
1833
|
-
className:
|
|
1833
|
+
className: V.suffix,
|
|
1834
1834
|
children: o.suffix
|
|
1835
1835
|
}),
|
|
1836
1836
|
/* @__PURE__ */ p("div", {
|
|
1837
|
-
className:
|
|
1838
|
-
onClick:
|
|
1839
|
-
onKeyDown:
|
|
1837
|
+
className: V.icon,
|
|
1838
|
+
onClick: te,
|
|
1839
|
+
onKeyDown: y(te),
|
|
1840
1840
|
role: "button",
|
|
1841
1841
|
tabIndex: 0,
|
|
1842
|
-
children: /* @__PURE__ */ p(
|
|
1843
|
-
d: g === "text" ?
|
|
1842
|
+
children: /* @__PURE__ */ p(x, {
|
|
1843
|
+
d: g === "text" ? Te : we,
|
|
1844
1844
|
size: "1.75em",
|
|
1845
1845
|
color: "gray"
|
|
1846
1846
|
})
|
|
1847
1847
|
}),
|
|
1848
1848
|
/* @__PURE__ */ p("div", {
|
|
1849
|
-
className:
|
|
1850
|
-
onClick:
|
|
1851
|
-
onKeyDown:
|
|
1849
|
+
className: V.icon,
|
|
1850
|
+
onClick: ee,
|
|
1851
|
+
onKeyDown: y(ee),
|
|
1852
1852
|
role: "button",
|
|
1853
1853
|
tabIndex: 0,
|
|
1854
|
-
children: /* @__PURE__ */ p(
|
|
1855
|
-
d:
|
|
1854
|
+
children: /* @__PURE__ */ p(x, {
|
|
1855
|
+
d: le,
|
|
1856
1856
|
size: "1.75em",
|
|
1857
1857
|
color: "gray"
|
|
1858
1858
|
})
|
|
@@ -1862,41 +1862,41 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1862
1862
|
]
|
|
1863
1863
|
}),
|
|
1864
1864
|
/* @__PURE__ */ p("div", {
|
|
1865
|
-
className:
|
|
1865
|
+
className: V.loading,
|
|
1866
1866
|
style: { opacity: t ? .2 : 0 }
|
|
1867
1867
|
})
|
|
1868
1868
|
]
|
|
1869
1869
|
});
|
|
1870
|
-
},
|
|
1871
|
-
className:
|
|
1870
|
+
}, mn = { validation: "_validation_wuw0j_1" }, hn = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
|
|
1871
|
+
className: mn.validation,
|
|
1872
1872
|
style: {
|
|
1873
1873
|
"--opacity": t.isValid ? 1 : .5,
|
|
1874
1874
|
...t.style
|
|
1875
1875
|
},
|
|
1876
|
-
children: [/* @__PURE__ */ p(
|
|
1877
|
-
d: t.isValid ?
|
|
1876
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1877
|
+
d: t.isValid ? pe : me,
|
|
1878
1878
|
color: t.isValid ? e : void 0
|
|
1879
1879
|
}), /* @__PURE__ */ p("span", {
|
|
1880
1880
|
style: { color: t.isValid ? e : void 0 },
|
|
1881
1881
|
children: t.text
|
|
1882
1882
|
})]
|
|
1883
|
-
}),
|
|
1884
|
-
className:
|
|
1883
|
+
}), gn = { column: "_column_12uje_1" }, _n = (e) => /* @__PURE__ */ p("div", {
|
|
1884
|
+
className: gn.column,
|
|
1885
1885
|
style: e.style,
|
|
1886
1886
|
children: e.children
|
|
1887
|
-
}),
|
|
1888
|
-
className:
|
|
1887
|
+
}), vn = { "column-list": "_column-list_rt1o3_1" }, yn = (e) => /* @__PURE__ */ p("div", {
|
|
1888
|
+
className: vn["column-list"],
|
|
1889
1889
|
style: e.style,
|
|
1890
1890
|
children: e.children
|
|
1891
|
-
}),
|
|
1891
|
+
}), bn = {
|
|
1892
1892
|
body: "_body_gd5gc_1",
|
|
1893
1893
|
button: "_button_gd5gc_5"
|
|
1894
|
-
},
|
|
1894
|
+
}, H = {
|
|
1895
1895
|
provider: "_provider_94i7o_1",
|
|
1896
1896
|
"provider-enter": "_provider-enter_94i7o_19",
|
|
1897
1897
|
"provider-exit": "_provider-exit_94i7o_23",
|
|
1898
1898
|
modal: "_modal_94i7o_27"
|
|
1899
|
-
},
|
|
1899
|
+
}, xn = ({ closeOnClickOutside: e = !0, onChange: t, ...n }) => {
|
|
1900
1900
|
let [r, i] = d(!1), o = n.value ?? !1;
|
|
1901
1901
|
s(() => {
|
|
1902
1902
|
if (o) {
|
|
@@ -1912,11 +1912,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1912
1912
|
}, [e, t]), l = a((e) => {
|
|
1913
1913
|
e.stopPropagation();
|
|
1914
1914
|
}, []);
|
|
1915
|
-
return !o && !r ? null :
|
|
1916
|
-
className: `${
|
|
1915
|
+
return !o && !r ? null : Xe(/* @__PURE__ */ p("div", {
|
|
1916
|
+
className: `${H.provider} ${o ? H["provider-enter"] : H["provider-exit"]}`,
|
|
1917
1917
|
onClick: c,
|
|
1918
1918
|
children: /* @__PURE__ */ p("div", {
|
|
1919
|
-
className:
|
|
1919
|
+
className: H.modal,
|
|
1920
1920
|
style: {
|
|
1921
1921
|
"--width": n.width,
|
|
1922
1922
|
...n.style
|
|
@@ -1925,7 +1925,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1925
1925
|
children: n.children
|
|
1926
1926
|
})
|
|
1927
1927
|
}), document.body);
|
|
1928
|
-
},
|
|
1928
|
+
}, Sn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1929
1929
|
let [s, c] = d(!1), l = a(() => {
|
|
1930
1930
|
t && t(!1);
|
|
1931
1931
|
}, [t]), u = a(async () => {
|
|
@@ -1941,63 +1941,63 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
1941
1941
|
i,
|
|
1942
1942
|
t
|
|
1943
1943
|
]);
|
|
1944
|
-
return /* @__PURE__ */ p(
|
|
1944
|
+
return /* @__PURE__ */ p(xn, {
|
|
1945
1945
|
value: o.value,
|
|
1946
1946
|
onChange: t,
|
|
1947
1947
|
closeOnClickOutside: e,
|
|
1948
1948
|
children: /* @__PURE__ */ m("div", { children: [
|
|
1949
|
-
/* @__PURE__ */ p(
|
|
1949
|
+
/* @__PURE__ */ p(D, {
|
|
1950
1950
|
level: 2,
|
|
1951
1951
|
disableFragmentIdentifier: !0,
|
|
1952
1952
|
children: o.title
|
|
1953
1953
|
}),
|
|
1954
1954
|
/* @__PURE__ */ p("div", {
|
|
1955
|
-
className:
|
|
1955
|
+
className: bn.body,
|
|
1956
1956
|
children: o.children
|
|
1957
1957
|
}),
|
|
1958
1958
|
/* @__PURE__ */ m("div", {
|
|
1959
|
-
className:
|
|
1960
|
-
children: [/* @__PURE__ */ m(
|
|
1959
|
+
className: bn.button,
|
|
1960
|
+
children: [/* @__PURE__ */ m(cn, {
|
|
1961
1961
|
block: !0,
|
|
1962
1962
|
onClick: l,
|
|
1963
1963
|
loading: s,
|
|
1964
|
-
children: [/* @__PURE__ */ p(
|
|
1965
|
-
}), /* @__PURE__ */ m(
|
|
1964
|
+
children: [/* @__PURE__ */ p(x, { d: ce }), /* @__PURE__ */ p("span", { children: "Cancel" })]
|
|
1965
|
+
}), /* @__PURE__ */ m(cn, {
|
|
1966
1966
|
block: !0,
|
|
1967
1967
|
onClick: u,
|
|
1968
1968
|
primary: !0,
|
|
1969
1969
|
loading: s,
|
|
1970
|
-
children: [/* @__PURE__ */ p(
|
|
1971
|
-
d:
|
|
1970
|
+
children: [/* @__PURE__ */ p(x, {
|
|
1971
|
+
d: pe,
|
|
1972
1972
|
color: "currentColor"
|
|
1973
1973
|
}), /* @__PURE__ */ p("span", { children: "Confirm" })]
|
|
1974
1974
|
})]
|
|
1975
1975
|
})
|
|
1976
1976
|
] })
|
|
1977
1977
|
});
|
|
1978
|
-
},
|
|
1978
|
+
}, U = {
|
|
1979
1979
|
window: "_window_l8snl_1",
|
|
1980
1980
|
header: "_header_l8snl_14",
|
|
1981
1981
|
dot: "_dot_l8snl_25"
|
|
1982
|
-
},
|
|
1983
|
-
className:
|
|
1982
|
+
}, Cn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
1983
|
+
className: U.window,
|
|
1984
1984
|
style: t.style,
|
|
1985
1985
|
children: [/* @__PURE__ */ m("div", {
|
|
1986
|
-
className:
|
|
1986
|
+
className: U.header,
|
|
1987
1987
|
children: [
|
|
1988
1988
|
/* @__PURE__ */ p("div", {
|
|
1989
1989
|
"aria-hidden": !0,
|
|
1990
|
-
className:
|
|
1990
|
+
className: U.dot,
|
|
1991
1991
|
style: { "--bg": "#c48691" }
|
|
1992
1992
|
}),
|
|
1993
1993
|
/* @__PURE__ */ p("div", {
|
|
1994
1994
|
"aria-hidden": !0,
|
|
1995
|
-
className:
|
|
1995
|
+
className: U.dot,
|
|
1996
1996
|
style: { "--bg": "#c9b990" }
|
|
1997
1997
|
}),
|
|
1998
1998
|
/* @__PURE__ */ p("div", {
|
|
1999
1999
|
"aria-hidden": !0,
|
|
2000
|
-
className:
|
|
2000
|
+
className: U.dot,
|
|
2001
2001
|
style: { "--bg": "#7cc598" }
|
|
2002
2002
|
})
|
|
2003
2003
|
]
|
|
@@ -2005,7 +2005,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2005
2005
|
style: { minHeight: e },
|
|
2006
2006
|
children: t.children
|
|
2007
2007
|
})]
|
|
2008
|
-
}),
|
|
2008
|
+
}), wn = { parallax: "_parallax_1tovg_1" }, Tn = (e) => {
|
|
2009
2009
|
let [t, n] = d(0);
|
|
2010
2010
|
return s(() => {
|
|
2011
2011
|
let e = null, t = () => {
|
|
@@ -2017,7 +2017,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2017
2017
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2018
2018
|
};
|
|
2019
2019
|
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2020
|
-
className:
|
|
2020
|
+
className: wn.parallax,
|
|
2021
2021
|
style: {
|
|
2022
2022
|
backgroundImage: `url(${e.imageUrl1})`,
|
|
2023
2023
|
transform: `scale(1.2) translateY(${t / 400}%)`,
|
|
@@ -2025,22 +2025,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2025
2025
|
...e.style
|
|
2026
2026
|
}
|
|
2027
2027
|
}), /* @__PURE__ */ p("div", {
|
|
2028
|
-
className:
|
|
2028
|
+
className: wn.parallax,
|
|
2029
2029
|
style: {
|
|
2030
2030
|
backgroundImage: `url(${e.imageUrl2})`,
|
|
2031
2031
|
transform: `scale(1.2) translateY(${t / 900}%)`,
|
|
2032
2032
|
transformOrigin: "bottom"
|
|
2033
2033
|
}
|
|
2034
2034
|
})] });
|
|
2035
|
-
},
|
|
2035
|
+
}, En = {
|
|
2036
2036
|
container: "_container_1mzm0_1",
|
|
2037
2037
|
title: "_title_1mzm0_16",
|
|
2038
2038
|
text: "_text_1mzm0_22"
|
|
2039
|
-
},
|
|
2039
|
+
}, Dn = {
|
|
2040
2040
|
original: "_original_3zasf_1",
|
|
2041
2041
|
tooltip: "_tooltip_3zasf_5",
|
|
2042
2042
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2043
|
-
},
|
|
2043
|
+
}, On = (e) => {
|
|
2044
2044
|
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2045
2045
|
let e = t.current;
|
|
2046
2046
|
if (!e) return;
|
|
@@ -2057,63 +2057,63 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2057
2057
|
n && c();
|
|
2058
2058
|
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2059
2059
|
ref: t,
|
|
2060
|
-
className:
|
|
2060
|
+
className: Dn.original,
|
|
2061
2061
|
onMouseOver: () => r(!0),
|
|
2062
2062
|
onMouseLeave: () => r(!1),
|
|
2063
2063
|
style: e.style,
|
|
2064
2064
|
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2065
|
-
className: `${
|
|
2065
|
+
className: `${Dn.tooltip} ${Dn["tooltip-enter"]}`,
|
|
2066
2066
|
style: i,
|
|
2067
2067
|
children: e.tooltip
|
|
2068
2068
|
})]
|
|
2069
2069
|
});
|
|
2070
|
-
},
|
|
2070
|
+
}, kn = (e) => /* @__PURE__ */ p(On, {
|
|
2071
2071
|
original: e.children,
|
|
2072
2072
|
tooltip: /* @__PURE__ */ m("div", {
|
|
2073
|
-
className:
|
|
2073
|
+
className: En.container,
|
|
2074
2074
|
style: e.style,
|
|
2075
2075
|
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2076
|
-
className:
|
|
2076
|
+
className: En.title,
|
|
2077
2077
|
children: e.title
|
|
2078
2078
|
}), /* @__PURE__ */ p("div", {
|
|
2079
|
-
className:
|
|
2079
|
+
className: En.text,
|
|
2080
2080
|
children: e.text
|
|
2081
2081
|
})]
|
|
2082
2082
|
})
|
|
2083
|
-
}),
|
|
2083
|
+
}), An = {
|
|
2084
2084
|
snackbar: "_snackbar_1f0go_1",
|
|
2085
2085
|
icon: "_icon_1f0go_19",
|
|
2086
2086
|
progress: "_progress_1f0go_45"
|
|
2087
|
-
},
|
|
2088
|
-
className:
|
|
2087
|
+
}, jn = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2088
|
+
className: An.snackbar,
|
|
2089
2089
|
style: t.style,
|
|
2090
2090
|
children: [
|
|
2091
|
-
t.label == null ? t.children : /* @__PURE__ */ p(
|
|
2091
|
+
t.label == null ? t.children : /* @__PURE__ */ p(w, { children: t.label }),
|
|
2092
2092
|
/* @__PURE__ */ p("div", {
|
|
2093
|
-
className:
|
|
2093
|
+
className: An.icon,
|
|
2094
2094
|
onClick: t.close,
|
|
2095
|
-
children: /* @__PURE__ */ p(
|
|
2096
|
-
d:
|
|
2095
|
+
children: /* @__PURE__ */ p(x, {
|
|
2096
|
+
d: ye,
|
|
2097
2097
|
size: "1em"
|
|
2098
2098
|
})
|
|
2099
2099
|
}),
|
|
2100
2100
|
/* @__PURE__ */ p("div", {
|
|
2101
|
-
className:
|
|
2101
|
+
className: An.progress,
|
|
2102
2102
|
style: { animationDuration: `${e}ms` }
|
|
2103
2103
|
})
|
|
2104
2104
|
]
|
|
2105
|
-
}),
|
|
2105
|
+
}), Mn = {
|
|
2106
2106
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2107
2107
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2108
2108
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2109
|
-
},
|
|
2110
|
-
className:
|
|
2109
|
+
}, Nn = (e) => /* @__PURE__ */ p("div", {
|
|
2110
|
+
className: Mn["snackbar-screen"],
|
|
2111
2111
|
style: e.style,
|
|
2112
2112
|
children: /* @__PURE__ */ p("div", {
|
|
2113
|
-
className:
|
|
2113
|
+
className: Mn["snackbar-container"],
|
|
2114
2114
|
children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
|
|
2115
|
-
className:
|
|
2116
|
-
children: /* @__PURE__ */ p(
|
|
2115
|
+
className: Mn["snackbar-item"],
|
|
2116
|
+
children: /* @__PURE__ */ p(jn, {
|
|
2117
2117
|
label: e.label,
|
|
2118
2118
|
timeout: e.timeout,
|
|
2119
2119
|
close: e.close,
|
|
@@ -2121,34 +2121,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2121
2121
|
})
|
|
2122
2122
|
}, e.id))
|
|
2123
2123
|
})
|
|
2124
|
-
}),
|
|
2124
|
+
}), W = {
|
|
2125
2125
|
"elm-tabs": "_elm-tabs_ykoqx_1",
|
|
2126
2126
|
"tab-container": "_tab-container_ykoqx_18",
|
|
2127
2127
|
tab: "_tab_ykoqx_18",
|
|
2128
2128
|
active: "_active_ykoqx_40",
|
|
2129
2129
|
"tab-content-container": "_tab-content-container_ykoqx_51",
|
|
2130
2130
|
"tab-content": "_tab-content_ykoqx_51"
|
|
2131
|
-
},
|
|
2131
|
+
}, Pn = (e) => {
|
|
2132
2132
|
let [t, n] = d(0);
|
|
2133
2133
|
return /* @__PURE__ */ m("div", {
|
|
2134
|
-
className:
|
|
2134
|
+
className: W["elm-tabs"],
|
|
2135
2135
|
style: e.style,
|
|
2136
2136
|
children: [/* @__PURE__ */ p("div", {
|
|
2137
|
-
className:
|
|
2137
|
+
className: W["tab-container"],
|
|
2138
2138
|
children: e.tabLabels.map((e, r) => /* @__PURE__ */ p("div", {
|
|
2139
|
-
className: `${
|
|
2139
|
+
className: `${W.tab} ${t === r ? W.active : ""}`,
|
|
2140
2140
|
onClick: () => n(r),
|
|
2141
2141
|
children: e
|
|
2142
2142
|
}, r))
|
|
2143
2143
|
}), /* @__PURE__ */ p("div", {
|
|
2144
|
-
className:
|
|
2144
|
+
className: W["tab-content-container"],
|
|
2145
2145
|
children: e.tabContents.map((e, n) => /* @__PURE__ */ p("div", {
|
|
2146
|
-
className: `${
|
|
2146
|
+
className: `${W["tab-content"]} ${t === n ? W.active : ""}`,
|
|
2147
2147
|
children: e
|
|
2148
2148
|
}, n))
|
|
2149
2149
|
})]
|
|
2150
2150
|
});
|
|
2151
|
-
},
|
|
2151
|
+
}, G = {
|
|
2152
2152
|
toggle: "_toggle_1c0pb_1",
|
|
2153
2153
|
open: "_open_1c0pb_8",
|
|
2154
2154
|
summary: "_summary_1c0pb_12",
|
|
@@ -2157,60 +2157,60 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2157
2157
|
"content-open": "_content-open_1c0pb_60",
|
|
2158
2158
|
close: "_close_1c0pb_65",
|
|
2159
2159
|
"close-button": "_close-button_1c0pb_74"
|
|
2160
|
-
},
|
|
2160
|
+
}, Fn = (e) => {
|
|
2161
2161
|
let [t, n] = d(!1), r = e.value !== void 0, i = r ? e.value : t, a = (t) => {
|
|
2162
2162
|
t.preventDefault();
|
|
2163
2163
|
let a = !i;
|
|
2164
2164
|
r ? e.onChange?.(a) : n(a);
|
|
2165
2165
|
};
|
|
2166
2166
|
return /* @__PURE__ */ m("div", {
|
|
2167
|
-
className: `${
|
|
2167
|
+
className: `${G.toggle} ${i ? G.open : ""}`,
|
|
2168
2168
|
style: { ...e.style },
|
|
2169
2169
|
children: [
|
|
2170
2170
|
/* @__PURE__ */ m("div", {
|
|
2171
|
-
className:
|
|
2171
|
+
className: G.summary,
|
|
2172
2172
|
onClick: a,
|
|
2173
2173
|
style: { borderRadius: i ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem" },
|
|
2174
2174
|
children: [/* @__PURE__ */ m("div", {
|
|
2175
|
-
className:
|
|
2175
|
+
className: G["summary-left"],
|
|
2176
2176
|
children: [/* @__PURE__ */ p("span", {
|
|
2177
2177
|
style: {
|
|
2178
2178
|
transform: `rotate(${i ? "90deg" : "0deg"})`,
|
|
2179
2179
|
transition: "transform 200ms",
|
|
2180
2180
|
display: "flex"
|
|
2181
2181
|
},
|
|
2182
|
-
children: /* @__PURE__ */ p(
|
|
2183
|
-
d:
|
|
2182
|
+
children: /* @__PURE__ */ p(x, {
|
|
2183
|
+
d: he,
|
|
2184
2184
|
color: "#59b57c",
|
|
2185
2185
|
size: "1.25em"
|
|
2186
2186
|
})
|
|
2187
|
-
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(
|
|
2187
|
+
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(w, { children: e.summary }) })]
|
|
2188
2188
|
}), /* @__PURE__ */ p("span", {
|
|
2189
2189
|
style: {
|
|
2190
2190
|
transform: `rotate(${i ? "135deg" : "0deg"})`,
|
|
2191
2191
|
transition: "transform 200ms",
|
|
2192
2192
|
display: "flex"
|
|
2193
2193
|
},
|
|
2194
|
-
children: /* @__PURE__ */ p(
|
|
2195
|
-
d:
|
|
2194
|
+
children: /* @__PURE__ */ p(x, {
|
|
2195
|
+
d: We,
|
|
2196
2196
|
color: i ? "#b36472" : "#59b57c"
|
|
2197
2197
|
})
|
|
2198
2198
|
})]
|
|
2199
2199
|
}),
|
|
2200
2200
|
/* @__PURE__ */ p("div", {
|
|
2201
|
-
className: `${
|
|
2201
|
+
className: `${G.content} ${i ? G["content-open"] : ""}`,
|
|
2202
2202
|
children: e.children
|
|
2203
2203
|
}),
|
|
2204
2204
|
i && /* @__PURE__ */ p("div", {
|
|
2205
|
-
className:
|
|
2205
|
+
className: G.close,
|
|
2206
2206
|
onClick: a,
|
|
2207
2207
|
children: /* @__PURE__ */ m("div", {
|
|
2208
|
-
className:
|
|
2209
|
-
children: [/* @__PURE__ */ p(
|
|
2210
|
-
d:
|
|
2208
|
+
className: G["close-button"],
|
|
2209
|
+
children: [/* @__PURE__ */ p(x, {
|
|
2210
|
+
d: ge,
|
|
2211
2211
|
size: "1.25em",
|
|
2212
2212
|
color: "#c56565"
|
|
2213
|
-
}), /* @__PURE__ */ p(
|
|
2213
|
+
}), /* @__PURE__ */ p(w, {
|
|
2214
2214
|
color: "#8e3636",
|
|
2215
2215
|
children: "CLOSE"
|
|
2216
2216
|
})]
|
|
@@ -2218,75 +2218,75 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2218
2218
|
})
|
|
2219
2219
|
]
|
|
2220
2220
|
});
|
|
2221
|
-
},
|
|
2221
|
+
}, K = {
|
|
2222
2222
|
table: "_table_197ge_1",
|
|
2223
2223
|
caption: "_caption_197ge_8",
|
|
2224
2224
|
"caption-inner": "_caption-inner_197ge_18",
|
|
2225
2225
|
spacing: "_spacing_197ge_25"
|
|
2226
|
-
},
|
|
2226
|
+
}, In = r(!1), Ln = r(!1), q = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i }) => /* @__PURE__ */ p(Ln.Provider, {
|
|
2227
2227
|
value: t,
|
|
2228
2228
|
children: /* @__PURE__ */ m("table", {
|
|
2229
|
-
className:
|
|
2229
|
+
className: K.table,
|
|
2230
2230
|
style: i,
|
|
2231
2231
|
children: [
|
|
2232
2232
|
e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
|
|
2233
|
-
className:
|
|
2233
|
+
className: K.caption,
|
|
2234
2234
|
children: [
|
|
2235
|
-
/* @__PURE__ */ p("span", { className:
|
|
2235
|
+
/* @__PURE__ */ p("span", { className: K.spacing }),
|
|
2236
2236
|
/* @__PURE__ */ m("span", {
|
|
2237
|
-
className:
|
|
2237
|
+
className: K["caption-inner"],
|
|
2238
2238
|
children: [/* @__PURE__ */ p("svg", {
|
|
2239
2239
|
viewBox: "0 0 24 24",
|
|
2240
2240
|
width: "1rem",
|
|
2241
2241
|
height: "1rem",
|
|
2242
2242
|
children: /* @__PURE__ */ p("path", {
|
|
2243
|
-
d:
|
|
2243
|
+
d: qe,
|
|
2244
2244
|
fill: "#6987b8"
|
|
2245
2245
|
})
|
|
2246
|
-
}), /* @__PURE__ */ p(
|
|
2246
|
+
}), /* @__PURE__ */ p(w, { children: e })]
|
|
2247
2247
|
}),
|
|
2248
|
-
/* @__PURE__ */ p("span", { className:
|
|
2248
|
+
/* @__PURE__ */ p("span", { className: K.spacing })
|
|
2249
2249
|
]
|
|
2250
2250
|
}) }),
|
|
2251
2251
|
n,
|
|
2252
2252
|
r
|
|
2253
2253
|
]
|
|
2254
2254
|
})
|
|
2255
|
-
}),
|
|
2255
|
+
}), Rn = ({ children: e, style: t }) => /* @__PURE__ */ p(In.Provider, {
|
|
2256
2256
|
value: !1,
|
|
2257
2257
|
children: /* @__PURE__ */ p("tbody", {
|
|
2258
2258
|
style: t,
|
|
2259
2259
|
children: e
|
|
2260
2260
|
})
|
|
2261
|
-
}),
|
|
2261
|
+
}), zn = {
|
|
2262
2262
|
common: "_common_15vhm_1",
|
|
2263
2263
|
td: "_td_15vhm_26",
|
|
2264
2264
|
th: "_th_15vhm_34"
|
|
2265
|
-
},
|
|
2266
|
-
let i = o(
|
|
2265
|
+
}, Bn = ({ children: e, style: t, hasHeader: n = !1, text: r }) => {
|
|
2266
|
+
let i = o(In), a = n || i;
|
|
2267
2267
|
return /* @__PURE__ */ p(a ? "th" : "td", {
|
|
2268
|
-
className: `${
|
|
2268
|
+
className: `${zn.common} ${a ? zn.th : zn.td}`,
|
|
2269
2269
|
style: t,
|
|
2270
2270
|
children: r ?? e
|
|
2271
2271
|
});
|
|
2272
|
-
},
|
|
2272
|
+
}, Vn = { thead: "_thead_184mb_1" }, Hn = ({ children: e, style: t }) => /* @__PURE__ */ p(In.Provider, {
|
|
2273
2273
|
value: !0,
|
|
2274
2274
|
children: /* @__PURE__ */ p("thead", {
|
|
2275
|
-
className:
|
|
2275
|
+
className: Vn.thead,
|
|
2276
2276
|
style: t,
|
|
2277
2277
|
children: e
|
|
2278
2278
|
})
|
|
2279
|
-
}),
|
|
2279
|
+
}), Un = {
|
|
2280
2280
|
tr: "_tr_1l64j_1",
|
|
2281
2281
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2282
|
-
},
|
|
2283
|
-
let n = o(
|
|
2282
|
+
}, J = ({ children: e, style: t }) => {
|
|
2283
|
+
let n = o(Ln);
|
|
2284
2284
|
return /* @__PURE__ */ p("tr", {
|
|
2285
|
-
className: `${
|
|
2285
|
+
className: `${Un.tr} ${n ? Un["has-row-header"] : ""}`,
|
|
2286
2286
|
style: t,
|
|
2287
2287
|
children: e
|
|
2288
2288
|
});
|
|
2289
|
-
},
|
|
2289
|
+
}, Y = {
|
|
2290
2290
|
wrapper: "_wrapper_1yj17_1",
|
|
2291
2291
|
header: "_header_1yj17_18",
|
|
2292
2292
|
header__left: "_header__left_1yj17_36",
|
|
@@ -2296,21 +2296,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r }) => {
|
|
|
2296
2296
|
code: "_code_1yj17_81",
|
|
2297
2297
|
"code-body": "_code-body_1yj17_89",
|
|
2298
2298
|
fallback: "_fallback_1yj17_93"
|
|
2299
|
-
},
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
2299
|
+
}, Wn = { code: "_code_1nyfa_1" }, Gn = null;
|
|
2300
|
+
function Kn() {
|
|
2301
|
+
return Gn || (Gn = import("shiki").then(({ createHighlighter: e }) => e({
|
|
2302
2302
|
langs: /* @__PURE__ */ "abap.bash.c.clojure.coffeescript.cpp.csharp.css.dart.diff.docker.elixir.elm.erlang.fsharp.gherkin.glsl.go.graphql.groovy.haskell.html.java.javascript.json.julia.kotlin.latex.less.lisp.lua.makefile.markdown.matlab.mermaid.nix.objective-c.ocaml.pascal.perl.php.plaintext.powershell.prolog.protobuf.python.r.ruby.rust.sass.scala.scheme.scss.shell.sql.swift.toml.typescript.wasm.xml.yaml".split("."),
|
|
2303
2303
|
themes: ["vitesse-light", "vitesse-dark"]
|
|
2304
|
-
}))),
|
|
2304
|
+
}))), Gn;
|
|
2305
2305
|
}
|
|
2306
2306
|
//#endregion
|
|
2307
2307
|
//#region src/components/code/ElmShikiHighlighter.tsx
|
|
2308
|
-
var
|
|
2309
|
-
let [i, a] = d(`<pre>${e}</pre>`)
|
|
2308
|
+
var qn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
2309
|
+
let [i, a] = d(`<pre>${e}</pre>`);
|
|
2310
2310
|
return s(() => {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2311
|
+
let r = !1;
|
|
2312
|
+
return Kn().then((i) => {
|
|
2313
|
+
if (!r) try {
|
|
2314
|
+
let o = i.codeToHtml(e, {
|
|
2314
2315
|
lang: t,
|
|
2315
2316
|
themes: {
|
|
2316
2317
|
dark: "vitesse-dark",
|
|
@@ -2320,94 +2321,93 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2320
2321
|
"#ffffff": "transparent",
|
|
2321
2322
|
"#121212": "transparent"
|
|
2322
2323
|
}
|
|
2323
|
-
})
|
|
2324
|
-
|
|
2325
|
-
|
|
2324
|
+
});
|
|
2325
|
+
r || (a(o), n?.(!0));
|
|
2326
|
+
} catch {
|
|
2327
|
+
r || n?.(!0);
|
|
2326
2328
|
}
|
|
2327
2329
|
}).catch(() => {
|
|
2328
|
-
|
|
2329
|
-
})
|
|
2330
|
+
r || n?.(!0);
|
|
2331
|
+
}), () => {
|
|
2332
|
+
r = !0;
|
|
2333
|
+
};
|
|
2330
2334
|
}, [
|
|
2331
2335
|
e,
|
|
2332
2336
|
t,
|
|
2333
2337
|
n
|
|
2334
2338
|
]), /* @__PURE__ */ p("div", {
|
|
2335
|
-
className:
|
|
2339
|
+
className: Wn.code,
|
|
2336
2340
|
style: r,
|
|
2337
2341
|
children: /* @__PURE__ */ p("div", {
|
|
2338
2342
|
className: "shiki",
|
|
2339
2343
|
dangerouslySetInnerHTML: { __html: i }
|
|
2340
2344
|
})
|
|
2341
2345
|
});
|
|
2342
|
-
},
|
|
2343
|
-
let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1),
|
|
2344
|
-
s(() =>
|
|
2345
|
-
|
|
2346
|
-
}, 150), () => {
|
|
2347
|
-
b.current && clearTimeout(b.current);
|
|
2348
|
-
}), [e]), s(() => {
|
|
2349
|
-
let e = v.current;
|
|
2346
|
+
}, Jn = ({ code: e, language: t = "txt", caption: n, style: r }) => {
|
|
2347
|
+
let [i, o] = d(!1), [c, l] = d(!1), [f, h] = d(!1), g = u(null), _ = u(null);
|
|
2348
|
+
s(() => {
|
|
2349
|
+
let e = g.current;
|
|
2350
2350
|
if (!e) return;
|
|
2351
2351
|
let t = new IntersectionObserver(([e]) => {
|
|
2352
2352
|
h(e.isIntersecting);
|
|
2353
2353
|
});
|
|
2354
2354
|
return t.observe(e), () => t.disconnect();
|
|
2355
2355
|
}, []);
|
|
2356
|
-
let
|
|
2356
|
+
let v = a(() => {
|
|
2357
2357
|
navigator.clipboard.writeText(e).then(() => {
|
|
2358
|
-
l(!0),
|
|
2358
|
+
l(!0), _.current && clearTimeout(_.current), _.current = setTimeout(() => l(!1), 2e3);
|
|
2359
2359
|
});
|
|
2360
2360
|
}, [e]);
|
|
2361
2361
|
return s(() => () => {
|
|
2362
|
-
|
|
2362
|
+
_.current && clearTimeout(_.current);
|
|
2363
2363
|
}, []), /* @__PURE__ */ m("div", {
|
|
2364
|
-
ref:
|
|
2365
|
-
className:
|
|
2364
|
+
ref: g,
|
|
2365
|
+
className: Y.wrapper,
|
|
2366
2366
|
style: {
|
|
2367
2367
|
opacity: +!!f,
|
|
2368
2368
|
...r
|
|
2369
2369
|
},
|
|
2370
2370
|
children: [/* @__PURE__ */ m("div", {
|
|
2371
|
-
className:
|
|
2371
|
+
className: Y.header,
|
|
2372
2372
|
children: [/* @__PURE__ */ m("div", {
|
|
2373
|
-
className:
|
|
2374
|
-
children: [/* @__PURE__ */ p(
|
|
2373
|
+
className: Y.header__left,
|
|
2374
|
+
children: [/* @__PURE__ */ p(nt, {
|
|
2375
2375
|
language: t,
|
|
2376
2376
|
size: 20
|
|
2377
2377
|
}), /* @__PURE__ */ p("span", {
|
|
2378
|
-
className:
|
|
2379
|
-
children: /* @__PURE__ */ p(
|
|
2378
|
+
className: Y.caption,
|
|
2379
|
+
children: /* @__PURE__ */ p(w, { children: n ?? t })
|
|
2380
2380
|
})]
|
|
2381
2381
|
}), /* @__PURE__ */ p("div", {
|
|
2382
|
-
className:
|
|
2382
|
+
className: Y.header__right,
|
|
2383
2383
|
children: /* @__PURE__ */ p("div", {
|
|
2384
|
-
className:
|
|
2385
|
-
onClick:
|
|
2386
|
-
children: /* @__PURE__ */ p(
|
|
2384
|
+
className: Y["copy-icon"],
|
|
2385
|
+
onClick: v,
|
|
2386
|
+
children: /* @__PURE__ */ p(x, {
|
|
2387
2387
|
size: "1.25em",
|
|
2388
|
-
d: c ?
|
|
2388
|
+
d: c ? _e : ve,
|
|
2389
2389
|
useThemeColor: c
|
|
2390
2390
|
})
|
|
2391
2391
|
})
|
|
2392
2392
|
})]
|
|
2393
2393
|
}), /* @__PURE__ */ m("div", {
|
|
2394
|
-
className:
|
|
2394
|
+
className: Y.code,
|
|
2395
2395
|
children: [/* @__PURE__ */ p("div", {
|
|
2396
|
-
className:
|
|
2396
|
+
className: Y["code-body"],
|
|
2397
2397
|
style: { opacity: +!!i },
|
|
2398
|
-
children: /* @__PURE__ */ p(
|
|
2399
|
-
code:
|
|
2398
|
+
children: /* @__PURE__ */ p(qn, {
|
|
2399
|
+
code: e,
|
|
2400
2400
|
language: t,
|
|
2401
2401
|
onRendered: o
|
|
2402
2402
|
})
|
|
2403
2403
|
}), /* @__PURE__ */ p("div", {
|
|
2404
|
-
className:
|
|
2404
|
+
className: Y.fallback,
|
|
2405
2405
|
style: { opacity: +!i },
|
|
2406
|
-
children: /* @__PURE__ */ p(
|
|
2406
|
+
children: /* @__PURE__ */ p(S, { size: "48px" })
|
|
2407
2407
|
})]
|
|
2408
2408
|
})]
|
|
2409
2409
|
});
|
|
2410
|
-
},
|
|
2410
|
+
}, Yn = { katex: "_katex_1a1aj_1" }, Xn = ({ expression: e, block: t = !1, style: n }) => {
|
|
2411
2411
|
let [r, i] = d();
|
|
2412
2412
|
s(() => {
|
|
2413
2413
|
import("katex").then(({ renderToString: n }) => {
|
|
@@ -2421,17 +2421,17 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
}).catch(() => {});
|
|
2423
2423
|
}, [e, t]);
|
|
2424
|
-
let a = `${
|
|
2424
|
+
let a = `${Yn.katex}`;
|
|
2425
2425
|
return p(t ? "div" : "span", {
|
|
2426
2426
|
className: a,
|
|
2427
2427
|
style: n,
|
|
2428
2428
|
dangerouslySetInnerHTML: r ? { __html: r } : void 0
|
|
2429
2429
|
});
|
|
2430
|
-
},
|
|
2430
|
+
}, X = {
|
|
2431
2431
|
"color-bg": "_color-bg_yiibu_1",
|
|
2432
2432
|
text: "_text_yiibu_17"
|
|
2433
|
-
},
|
|
2434
|
-
let [n, r] = d(!1), i = u(null), o =
|
|
2433
|
+
}, Zn = ({ color: e, style: t }) => {
|
|
2434
|
+
let [n, r] = d(!1), i = u(null), o = ee(e), { hue: s, saturation: c, lightness: l } = v(e), h = te(o), g = `rgb(${o.red}, ${o.green}, ${o.blue})`, _ = `hsl(${Math.floor(s)}, ${Math.floor(c * 100)}%, ${Math.floor(l * 100)}%)`, y = a((e) => {
|
|
2435
2435
|
navigator.clipboard.writeText(e).then(() => {
|
|
2436
2436
|
r(!0), i.current && clearTimeout(i.current), i.current = setTimeout(() => r(!1), 1500);
|
|
2437
2437
|
});
|
|
@@ -2441,45 +2441,45 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2441
2441
|
"--color": e,
|
|
2442
2442
|
...t
|
|
2443
2443
|
},
|
|
2444
|
-
children: /* @__PURE__ */ p(
|
|
2444
|
+
children: /* @__PURE__ */ p(On, {
|
|
2445
2445
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2446
|
-
className:
|
|
2446
|
+
className: X["color-bg"],
|
|
2447
2447
|
style: { "--background-color": e },
|
|
2448
|
-
onClick: () =>
|
|
2449
|
-
children: n && /* @__PURE__ */ p(
|
|
2450
|
-
d:
|
|
2448
|
+
onClick: () => y(h),
|
|
2449
|
+
children: n && /* @__PURE__ */ p(x, {
|
|
2450
|
+
d: fe,
|
|
2451
2451
|
size: "1em",
|
|
2452
2452
|
color: "white"
|
|
2453
2453
|
})
|
|
2454
2454
|
}), /* @__PURE__ */ p("div", {
|
|
2455
|
-
className:
|
|
2456
|
-
onClick: () =>
|
|
2455
|
+
className: X.text,
|
|
2456
|
+
onClick: () => y(h),
|
|
2457
2457
|
children: h
|
|
2458
2458
|
})] }),
|
|
2459
2459
|
tooltip: /* @__PURE__ */ m(f, { children: [
|
|
2460
2460
|
/* @__PURE__ */ p("div", {
|
|
2461
|
-
className:
|
|
2462
|
-
onClick: () =>
|
|
2461
|
+
className: X.text,
|
|
2462
|
+
onClick: () => y(h),
|
|
2463
2463
|
children: h
|
|
2464
2464
|
}),
|
|
2465
2465
|
/* @__PURE__ */ p("div", {
|
|
2466
|
-
className:
|
|
2467
|
-
onClick: () =>
|
|
2466
|
+
className: X.text,
|
|
2467
|
+
onClick: () => y(g),
|
|
2468
2468
|
children: g
|
|
2469
2469
|
}),
|
|
2470
2470
|
/* @__PURE__ */ p("div", {
|
|
2471
|
-
className:
|
|
2472
|
-
onClick: () =>
|
|
2471
|
+
className: X.text,
|
|
2472
|
+
onClick: () => y(_),
|
|
2473
2473
|
children: _
|
|
2474
2474
|
})
|
|
2475
2475
|
] })
|
|
2476
2476
|
})
|
|
2477
2477
|
});
|
|
2478
|
-
},
|
|
2478
|
+
}, Qn = {
|
|
2479
2479
|
container: "_container_a7c06_1",
|
|
2480
2480
|
"row-container": "_row-container_a7c06_9",
|
|
2481
2481
|
"color-name": "_color-name_a7c06_17"
|
|
2482
|
-
},
|
|
2482
|
+
}, $n = [
|
|
2483
2483
|
-3,
|
|
2484
2484
|
-.25,
|
|
2485
2485
|
-.2,
|
|
@@ -2493,18 +2493,18 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2493
2493
|
.2,
|
|
2494
2494
|
.25,
|
|
2495
2495
|
.3
|
|
2496
|
-
],
|
|
2497
|
-
className:
|
|
2496
|
+
], er = ({ colors: e, style: t }) => /* @__PURE__ */ p("div", {
|
|
2497
|
+
className: Qn.container,
|
|
2498
2498
|
style: t,
|
|
2499
2499
|
children: e.map((e) => /* @__PURE__ */ m("div", {
|
|
2500
|
-
className:
|
|
2500
|
+
className: Qn["row-container"],
|
|
2501
2501
|
children: [/* @__PURE__ */ p("div", {
|
|
2502
|
-
className:
|
|
2502
|
+
className: Qn["color-name"],
|
|
2503
2503
|
style: { "--color": e.code },
|
|
2504
2504
|
children: e.name
|
|
2505
|
-
}),
|
|
2505
|
+
}), $n.map((t) => /* @__PURE__ */ p(Zn, { color: h(t, e.code) }, t))]
|
|
2506
2506
|
}, e.name))
|
|
2507
|
-
}),
|
|
2507
|
+
}), Z = {
|
|
2508
2508
|
palette: "_palette_1u43p_1",
|
|
2509
2509
|
header: "_header_1u43p_11",
|
|
2510
2510
|
input: "_input_1u43p_31",
|
|
@@ -2515,7 +2515,7 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2515
2515
|
"command-icon": "_command-icon_1u43p_104",
|
|
2516
2516
|
tag: "_tag_1u43p_108",
|
|
2517
2517
|
footer: "_footer_1u43p_119"
|
|
2518
|
-
},
|
|
2518
|
+
}, tr = {
|
|
2519
2519
|
brown: "#a17c5b",
|
|
2520
2520
|
crimson: "#c56565",
|
|
2521
2521
|
amber: "#d48b70",
|
|
@@ -2526,12 +2526,12 @@ var Kn = ({ code: e, language: t = "txt", onRendered: n, style: r }) => {
|
|
|
2526
2526
|
purple: "#9771bd",
|
|
2527
2527
|
pink: "#c9699e"
|
|
2528
2528
|
};
|
|
2529
|
-
function
|
|
2529
|
+
function nr(e, t) {
|
|
2530
2530
|
if (!t.trim()) return [];
|
|
2531
2531
|
let n = t.toLowerCase();
|
|
2532
2532
|
return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
|
|
2533
2533
|
}
|
|
2534
|
-
var
|
|
2534
|
+
var rr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
2535
2535
|
let [r, i] = d(""), [o, c] = d([]), [l, f] = d(null), h = u(null);
|
|
2536
2536
|
s(() => {
|
|
2537
2537
|
h.current?.focus();
|
|
@@ -2539,7 +2539,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2539
2539
|
let g = a((t) => {
|
|
2540
2540
|
let n = t.target.value;
|
|
2541
2541
|
i(n);
|
|
2542
|
-
let r =
|
|
2542
|
+
let r = nr(e, n);
|
|
2543
2543
|
c(r), f(r.length > 0 ? 0 : null);
|
|
2544
2544
|
}, [e]), v = a((e) => {
|
|
2545
2545
|
if (e === null) return;
|
|
@@ -2556,7 +2556,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2556
2556
|
l,
|
|
2557
2557
|
o.length
|
|
2558
2558
|
]), /* @__PURE__ */ m("div", {
|
|
2559
|
-
className:
|
|
2559
|
+
className: Z.palette,
|
|
2560
2560
|
style: {
|
|
2561
2561
|
"--height": "500px",
|
|
2562
2562
|
"--width": "800px",
|
|
@@ -2564,10 +2564,10 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2564
2564
|
},
|
|
2565
2565
|
children: [
|
|
2566
2566
|
/* @__PURE__ */ m("header", {
|
|
2567
|
-
className:
|
|
2568
|
-
children: [/* @__PURE__ */ p(
|
|
2567
|
+
className: Z.header,
|
|
2568
|
+
children: [/* @__PURE__ */ p(x, { d: be }), /* @__PURE__ */ p("input", {
|
|
2569
2569
|
ref: h,
|
|
2570
|
-
className:
|
|
2570
|
+
className: Z.input,
|
|
2571
2571
|
value: r,
|
|
2572
2572
|
onChange: g,
|
|
2573
2573
|
type: "text",
|
|
@@ -2575,30 +2575,30 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2575
2575
|
})]
|
|
2576
2576
|
}),
|
|
2577
2577
|
/* @__PURE__ */ p("div", {
|
|
2578
|
-
className:
|
|
2578
|
+
className: Z.body,
|
|
2579
2579
|
children: o.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2580
|
-
className:
|
|
2581
|
-
children: /* @__PURE__ */ p(
|
|
2580
|
+
className: Z["empty-result"],
|
|
2581
|
+
children: /* @__PURE__ */ p(w, { children: "search anything..." })
|
|
2582
2582
|
}) : o.map((e, t) => /* @__PURE__ */ m("button", {
|
|
2583
|
-
className: `${
|
|
2583
|
+
className: `${Z.command} ${t === l ? Z["command-selected"] : ""}`,
|
|
2584
2584
|
onClick: () => {
|
|
2585
2585
|
f(t), v(t);
|
|
2586
2586
|
},
|
|
2587
2587
|
children: [
|
|
2588
2588
|
e.icon ? /* @__PURE__ */ p("img", {
|
|
2589
|
-
className:
|
|
2589
|
+
className: Z["command-icon"],
|
|
2590
2590
|
src: e.icon,
|
|
2591
2591
|
alt: e.label
|
|
2592
|
-
}) : /* @__PURE__ */ p(
|
|
2593
|
-
d:
|
|
2592
|
+
}) : /* @__PURE__ */ p(x, {
|
|
2593
|
+
d: be,
|
|
2594
2594
|
size: "1rem"
|
|
2595
2595
|
}),
|
|
2596
2596
|
e.tag ? /* @__PURE__ */ p("div", {
|
|
2597
|
-
className:
|
|
2598
|
-
style: { "--tag-color": _(-.3,
|
|
2597
|
+
className: Z.tag,
|
|
2598
|
+
style: { "--tag-color": _(-.3, tr[e.tag.color]) },
|
|
2599
2599
|
children: e.tag.name
|
|
2600
|
-
}) : /* @__PURE__ */ p("div", { className:
|
|
2601
|
-
/* @__PURE__ */ p(
|
|
2600
|
+
}) : /* @__PURE__ */ p("div", { className: Z.tag }),
|
|
2601
|
+
/* @__PURE__ */ p(w, {
|
|
2602
2602
|
style: {
|
|
2603
2603
|
whiteSpace: "nowrap",
|
|
2604
2604
|
overflow: "hidden",
|
|
@@ -2607,7 +2607,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2607
2607
|
},
|
|
2608
2608
|
children: e.label
|
|
2609
2609
|
}),
|
|
2610
|
-
/* @__PURE__ */ p(
|
|
2610
|
+
/* @__PURE__ */ p(w, {
|
|
2611
2611
|
style: {
|
|
2612
2612
|
opacity: .4,
|
|
2613
2613
|
whiteSpace: "nowrap",
|
|
@@ -2616,40 +2616,40 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2616
2616
|
},
|
|
2617
2617
|
children: e.description ?? "-"
|
|
2618
2618
|
}),
|
|
2619
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
2619
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(x, { d: Ne }) })
|
|
2620
2620
|
]
|
|
2621
2621
|
}, e.id))
|
|
2622
2622
|
}),
|
|
2623
2623
|
/* @__PURE__ */ m("footer", {
|
|
2624
|
-
className:
|
|
2625
|
-
children: [/* @__PURE__ */ p(
|
|
2624
|
+
className: Z.footer,
|
|
2625
|
+
children: [/* @__PURE__ */ p(w, {
|
|
2626
2626
|
kbd: !0,
|
|
2627
2627
|
children: "Esc"
|
|
2628
|
-
}), /* @__PURE__ */ p(
|
|
2628
|
+
}), /* @__PURE__ */ p(w, { children: "Close" })]
|
|
2629
2629
|
})
|
|
2630
2630
|
]
|
|
2631
2631
|
});
|
|
2632
|
-
},
|
|
2632
|
+
}, ir = {
|
|
2633
2633
|
"jarkup-body": "_jarkup-body_jsvhx_1",
|
|
2634
2634
|
"unsupported-block": "_unsupported-block_jsvhx_5"
|
|
2635
|
-
},
|
|
2636
|
-
className:
|
|
2635
|
+
}, ar = ({ jsonComponents: e, style: t }) => /* @__PURE__ */ p("div", {
|
|
2636
|
+
className: ir["jarkup-body"],
|
|
2637
2637
|
style: t,
|
|
2638
2638
|
children: e.map((e, t) => /* @__PURE__ */ p("div", {
|
|
2639
|
-
className:
|
|
2639
|
+
className: ir["unsupported-block"],
|
|
2640
2640
|
children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
|
|
2641
2641
|
}, t))
|
|
2642
|
-
}),
|
|
2642
|
+
}), or = {
|
|
2643
2643
|
"jarkup-body": "_jarkup-body_1rlbi_1",
|
|
2644
2644
|
"column-list": "_column-list_1rlbi_9",
|
|
2645
2645
|
column: "_column_1rlbi_9"
|
|
2646
|
-
},
|
|
2646
|
+
}, sr = i(() => import("./ElmMermaid-BFqvHKdQ.js").then((e) => e.n).then((e) => ({ default: e.ElmMermaid }))), cr = (e) => e.map((e) => e.type === "Text" ? e.props.text : "").join(""), lr = {
|
|
2647
2647
|
Text: (e, t, n, r) => {
|
|
2648
2648
|
let i = e.id ?? n, a = e.props;
|
|
2649
|
-
return a.katex ? /* @__PURE__ */ p(
|
|
2649
|
+
return a.katex ? /* @__PURE__ */ p(Xn, {
|
|
2650
2650
|
expression: a.text,
|
|
2651
2651
|
block: !1
|
|
2652
|
-
}, i) : /* @__PURE__ */ p(
|
|
2652
|
+
}, i) : /* @__PURE__ */ p(w, {
|
|
2653
2653
|
color: a.color,
|
|
2654
2654
|
backgroundColor: a.backgroundColor,
|
|
2655
2655
|
bold: a.bold,
|
|
@@ -2665,7 +2665,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2665
2665
|
},
|
|
2666
2666
|
Icon: (e, t, n, r) => {
|
|
2667
2667
|
let i = e.id ?? n;
|
|
2668
|
-
return /* @__PURE__ */ p(
|
|
2668
|
+
return /* @__PURE__ */ p(b, {
|
|
2669
2669
|
src: e.props.src,
|
|
2670
2670
|
alt: e.props.alt
|
|
2671
2671
|
}, i);
|
|
@@ -2676,16 +2676,16 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2676
2676
|
},
|
|
2677
2677
|
Heading: (e, t, n, r) => {
|
|
2678
2678
|
let i = e.id ?? n;
|
|
2679
|
-
return /* @__PURE__ */ p(
|
|
2679
|
+
return /* @__PURE__ */ p(D, {
|
|
2680
2680
|
level: e.props.level,
|
|
2681
|
-
id:
|
|
2681
|
+
id: Ze(cr(e.slots.default)),
|
|
2682
2682
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2683
2683
|
children: t(e.slots.default)
|
|
2684
2684
|
}, i);
|
|
2685
2685
|
},
|
|
2686
2686
|
Paragraph: (e, t, n, r) => {
|
|
2687
2687
|
let i = e.id ?? n;
|
|
2688
|
-
return /* @__PURE__ */ p(
|
|
2688
|
+
return /* @__PURE__ */ p(wt, {
|
|
2689
2689
|
backgroundColor: e.props?.backgroundColor,
|
|
2690
2690
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2691
2691
|
children: t(e.slots.default)
|
|
@@ -2697,7 +2697,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2697
2697
|
},
|
|
2698
2698
|
List: (e, t, n, r) => {
|
|
2699
2699
|
let i = e.id ?? n;
|
|
2700
|
-
return /* @__PURE__ */ p(
|
|
2700
|
+
return /* @__PURE__ */ p(It, {
|
|
2701
2701
|
listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
|
|
2702
2702
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2703
2703
|
children: t(e.slots.default)
|
|
@@ -2705,7 +2705,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2705
2705
|
},
|
|
2706
2706
|
BlockQuote: (e, t, n, r) => {
|
|
2707
2707
|
let i = e.id ?? n;
|
|
2708
|
-
return /* @__PURE__ */ p(
|
|
2708
|
+
return /* @__PURE__ */ p(Tt, {
|
|
2709
2709
|
cite: e.props?.cite,
|
|
2710
2710
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2711
2711
|
children: t(e.slots.default)
|
|
@@ -2713,7 +2713,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2713
2713
|
},
|
|
2714
2714
|
Callout: (e, t, n, r) => {
|
|
2715
2715
|
let i = e.id ?? n;
|
|
2716
|
-
return /* @__PURE__ */ p(
|
|
2716
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2717
2717
|
type: e.props?.type,
|
|
2718
2718
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2719
2719
|
children: t(e.slots.default)
|
|
@@ -2721,11 +2721,11 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2721
2721
|
},
|
|
2722
2722
|
Divider: (e, t, n, r) => {
|
|
2723
2723
|
let i = e.id ?? n;
|
|
2724
|
-
return /* @__PURE__ */ p(
|
|
2724
|
+
return /* @__PURE__ */ p(At, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
|
|
2725
2725
|
},
|
|
2726
2726
|
Toggle: (e, t, n, r) => {
|
|
2727
2727
|
let i = e.id ?? n;
|
|
2728
|
-
return /* @__PURE__ */ p(
|
|
2728
|
+
return /* @__PURE__ */ p(Fn, {
|
|
2729
2729
|
summaryContent: t(e.slots.summary),
|
|
2730
2730
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2731
2731
|
children: t(e.slots.default)
|
|
@@ -2733,7 +2733,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2733
2733
|
},
|
|
2734
2734
|
Bookmark: (e, t, n, r) => {
|
|
2735
2735
|
let i = e.id ?? n;
|
|
2736
|
-
return /* @__PURE__ */ p(
|
|
2736
|
+
return /* @__PURE__ */ p(Yt, {
|
|
2737
2737
|
url: e.props.url,
|
|
2738
2738
|
title: e.props.title,
|
|
2739
2739
|
description: e.props.description,
|
|
@@ -2743,7 +2743,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2743
2743
|
},
|
|
2744
2744
|
File: (e, t, n, r) => {
|
|
2745
2745
|
let i = e.id ?? n;
|
|
2746
|
-
return /* @__PURE__ */ p(
|
|
2746
|
+
return /* @__PURE__ */ p(Jt, {
|
|
2747
2747
|
src: e.props.src,
|
|
2748
2748
|
name: e.props.name,
|
|
2749
2749
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2751,7 +2751,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2751
2751
|
},
|
|
2752
2752
|
Image: (e, t, n, r) => {
|
|
2753
2753
|
let i = e.id ?? n;
|
|
2754
|
-
return /* @__PURE__ */ p(
|
|
2754
|
+
return /* @__PURE__ */ p(j, {
|
|
2755
2755
|
src: e.props.src,
|
|
2756
2756
|
alt: e.props.alt,
|
|
2757
2757
|
width: e.props.width,
|
|
@@ -2763,7 +2763,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2763
2763
|
},
|
|
2764
2764
|
CodeBlock: (e, t, n, r) => {
|
|
2765
2765
|
let i = e.id ?? n;
|
|
2766
|
-
return /* @__PURE__ */ p(
|
|
2766
|
+
return /* @__PURE__ */ p(Jn, {
|
|
2767
2767
|
code: e.props.code,
|
|
2768
2768
|
language: e.props.language,
|
|
2769
2769
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2771,7 +2771,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2771
2771
|
},
|
|
2772
2772
|
Katex: (e, t, n, r) => {
|
|
2773
2773
|
let i = e.id ?? n;
|
|
2774
|
-
return /* @__PURE__ */ p(
|
|
2774
|
+
return /* @__PURE__ */ p(Xn, {
|
|
2775
2775
|
expression: e.props.expression,
|
|
2776
2776
|
block: !0,
|
|
2777
2777
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2780,8 +2780,8 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2780
2780
|
Mermaid: (e, t, r, i) => {
|
|
2781
2781
|
let a = e.id ?? r;
|
|
2782
2782
|
return /* @__PURE__ */ p(n, {
|
|
2783
|
-
fallback: /* @__PURE__ */ p(
|
|
2784
|
-
children: /* @__PURE__ */ p(
|
|
2783
|
+
fallback: /* @__PURE__ */ p(rn, {}),
|
|
2784
|
+
children: /* @__PURE__ */ p(sr, {
|
|
2785
2785
|
code: e.props.code,
|
|
2786
2786
|
style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2787
2787
|
})
|
|
@@ -2791,33 +2791,33 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2791
2791
|
Tabs: (e, t, n, r) => {
|
|
2792
2792
|
let i = e.id ?? n, a = [], o = [];
|
|
2793
2793
|
for (let n of e.slots.default) a.push(/* @__PURE__ */ p("span", { children: t(n.slots.labels) })), o.push(/* @__PURE__ */ p("div", { children: t(n.slots.contents) }));
|
|
2794
|
-
return /* @__PURE__ */ p(
|
|
2794
|
+
return /* @__PURE__ */ p(Pn, {
|
|
2795
2795
|
tabLabels: a,
|
|
2796
2796
|
tabContents: o
|
|
2797
2797
|
}, i);
|
|
2798
2798
|
},
|
|
2799
2799
|
Table: (e, t, n, r) => {
|
|
2800
2800
|
let i = e.id ?? n;
|
|
2801
|
-
return /* @__PURE__ */ p(
|
|
2801
|
+
return /* @__PURE__ */ p(q, {
|
|
2802
2802
|
caption: e.props?.caption,
|
|
2803
2803
|
hasRowHeader: e.props?.hasRowHeader,
|
|
2804
|
-
header: e.slots.header ? /* @__PURE__ */ p(
|
|
2805
|
-
body: /* @__PURE__ */ p(
|
|
2804
|
+
header: e.slots.header ? /* @__PURE__ */ p(Hn, { children: t(e.slots.header) }) : void 0,
|
|
2805
|
+
body: /* @__PURE__ */ p(Rn, { children: t(e.slots.body) }),
|
|
2806
2806
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2807
2807
|
}, i);
|
|
2808
2808
|
},
|
|
2809
2809
|
TableRow: (e, t, n, r) => {
|
|
2810
2810
|
let i = e.id ?? n;
|
|
2811
|
-
return /* @__PURE__ */ p(
|
|
2811
|
+
return /* @__PURE__ */ p(J, { children: t(e.slots.default) }, i);
|
|
2812
2812
|
},
|
|
2813
2813
|
TableCell: (e, t, n, r) => {
|
|
2814
2814
|
let i = e.id ?? n;
|
|
2815
|
-
return /* @__PURE__ */ p(
|
|
2815
|
+
return /* @__PURE__ */ p(Bn, { children: t(e.slots.default) }, i);
|
|
2816
2816
|
},
|
|
2817
2817
|
ColumnList: (e, t, n, r) => {
|
|
2818
2818
|
let i = e.id ?? n;
|
|
2819
2819
|
return /* @__PURE__ */ p("div", {
|
|
2820
|
-
className:
|
|
2820
|
+
className: or["column-list"],
|
|
2821
2821
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2822
2822
|
children: t(e.slots.default)
|
|
2823
2823
|
}, i);
|
|
@@ -2825,7 +2825,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2825
2825
|
Column: (e, t, n, r) => {
|
|
2826
2826
|
let i = e.id ?? n;
|
|
2827
2827
|
return /* @__PURE__ */ p("div", {
|
|
2828
|
-
className:
|
|
2828
|
+
className: or.column,
|
|
2829
2829
|
style: {
|
|
2830
2830
|
"--width-ratio": e.props?.widthRatio ?? 1,
|
|
2831
2831
|
width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
|
|
@@ -2836,121 +2836,138 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2836
2836
|
},
|
|
2837
2837
|
Unsupported: (e, t, n, r) => {
|
|
2838
2838
|
let i = e.id ?? n;
|
|
2839
|
-
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(
|
|
2839
|
+
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(sn, {
|
|
2840
2840
|
details: e.props?.details ?? `Unsupported component type: ${e.type}`,
|
|
2841
2841
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2842
2842
|
}, i);
|
|
2843
2843
|
}
|
|
2844
|
-
},
|
|
2844
|
+
}, ur = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r }) => {
|
|
2845
2845
|
let i = {
|
|
2846
|
-
...
|
|
2846
|
+
...lr,
|
|
2847
2847
|
...n
|
|
2848
2848
|
}, a = (e) => e.map((e, n) => {
|
|
2849
2849
|
let o = e.id ?? n, s = i[e.type];
|
|
2850
2850
|
return s ? s(e, a, n, {
|
|
2851
2851
|
skipUnsupportedComponentWarning: t,
|
|
2852
2852
|
style: r
|
|
2853
|
-
}) : t ? null : /* @__PURE__ */ p(
|
|
2853
|
+
}) : t ? null : /* @__PURE__ */ p(sn, { details: `Unsupported component type: ${e.type}` }, o);
|
|
2854
2854
|
});
|
|
2855
2855
|
return /* @__PURE__ */ p("div", {
|
|
2856
|
-
className:
|
|
2856
|
+
className: or["jarkup-body"],
|
|
2857
2857
|
style: {
|
|
2858
2858
|
"--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
|
|
2859
2859
|
...r
|
|
2860
2860
|
},
|
|
2861
2861
|
children: a(e)
|
|
2862
2862
|
});
|
|
2863
|
-
},
|
|
2864
|
-
blockquote: (e, t, n) =>
|
|
2863
|
+
}, dr = { "markdown-body": "_markdown-body_130yx_1" }, Q = (e) => e === 0 ? { "--elmethis-margin-block-start": "0" } : void 0, fr = {
|
|
2864
|
+
blockquote: (e, t, n) => {
|
|
2865
|
+
if (!e.tokens || e.tokens.length === 0) return null;
|
|
2866
|
+
let r = e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e]);
|
|
2867
|
+
return /* @__PURE__ */ p(Tt, {
|
|
2868
|
+
style: Q(n),
|
|
2869
|
+
children: t(r)
|
|
2870
|
+
}, n);
|
|
2871
|
+
},
|
|
2865
2872
|
br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
|
|
2866
|
-
checkbox: (e, t, n) => /* @__PURE__ */ p(
|
|
2873
|
+
checkbox: (e, t, n) => /* @__PURE__ */ p(ln, {
|
|
2867
2874
|
label: e.raw,
|
|
2868
|
-
checked: e.checked
|
|
2875
|
+
checked: e.checked,
|
|
2876
|
+
style: Q(n)
|
|
2869
2877
|
}, n),
|
|
2870
|
-
code: (e, t, n) => /* @__PURE__ */ p(
|
|
2878
|
+
code: (e, t, n) => /* @__PURE__ */ p(Jn, {
|
|
2871
2879
|
code: e.text.trim(),
|
|
2872
|
-
language: e.lang
|
|
2880
|
+
language: e.lang,
|
|
2881
|
+
style: Q(n)
|
|
2873
2882
|
}, n),
|
|
2874
|
-
codespan: (e, t, n) => /* @__PURE__ */ p(
|
|
2883
|
+
codespan: (e, t, n) => /* @__PURE__ */ p(w, {
|
|
2875
2884
|
code: !0,
|
|
2876
2885
|
children: e.text
|
|
2877
2886
|
}, n),
|
|
2878
2887
|
def: () => null,
|
|
2879
|
-
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2888
|
+
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2880
2889
|
strikethrough: !0,
|
|
2881
2890
|
children: t(e.tokens)
|
|
2882
|
-
}, n) : /* @__PURE__ */ p(
|
|
2891
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2883
2892
|
strikethrough: !0,
|
|
2884
2893
|
children: e.text
|
|
2885
2894
|
}, n),
|
|
2886
|
-
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2895
|
+
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2887
2896
|
italic: !0,
|
|
2888
2897
|
children: t(e.tokens)
|
|
2889
|
-
}, n) : /* @__PURE__ */ p(
|
|
2898
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2890
2899
|
italic: !0,
|
|
2891
2900
|
children: e.text
|
|
2892
2901
|
}, n),
|
|
2893
2902
|
escape: () => null,
|
|
2894
2903
|
heading: (e, t, n) => {
|
|
2895
2904
|
let r = e.depth;
|
|
2896
|
-
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2905
|
+
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(D, {
|
|
2897
2906
|
level: r,
|
|
2907
|
+
style: Q(n),
|
|
2898
2908
|
children: t(e.tokens)
|
|
2899
|
-
}, n) : /* @__PURE__ */ p(
|
|
2909
|
+
}, n) : /* @__PURE__ */ p(D, {
|
|
2900
2910
|
level: r,
|
|
2901
|
-
text: e.text
|
|
2911
|
+
text: e.text,
|
|
2912
|
+
style: Q(n)
|
|
2902
2913
|
}, n);
|
|
2903
2914
|
},
|
|
2904
|
-
hr: (e, t, n) => /* @__PURE__ */ p(
|
|
2915
|
+
hr: (e, t, n) => /* @__PURE__ */ p(At, { style: Q(n) }, n),
|
|
2905
2916
|
html: () => null,
|
|
2906
|
-
image: (e, t, n) => /* @__PURE__ */ p(
|
|
2917
|
+
image: (e, t, n) => /* @__PURE__ */ p(j, {
|
|
2907
2918
|
block: !0,
|
|
2908
2919
|
enableModal: !0,
|
|
2909
2920
|
src: e.href,
|
|
2910
|
-
alt: e.text
|
|
2921
|
+
alt: e.text,
|
|
2922
|
+
style: Q(n)
|
|
2911
2923
|
}, n),
|
|
2912
|
-
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2924
|
+
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2913
2925
|
href: e.href,
|
|
2914
2926
|
children: t(e.tokens)
|
|
2915
|
-
}, n) : /* @__PURE__ */ p(
|
|
2927
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2916
2928
|
href: e.href,
|
|
2917
2929
|
children: e.text
|
|
2918
2930
|
}, n),
|
|
2919
2931
|
list: (e, t, n) => {
|
|
2920
2932
|
let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
|
|
2921
|
-
return /* @__PURE__ */ p(
|
|
2933
|
+
return /* @__PURE__ */ p(It, {
|
|
2922
2934
|
listStyle: e.ordered ? "ordered" : "unordered",
|
|
2935
|
+
style: Q(n),
|
|
2923
2936
|
children: r
|
|
2924
2937
|
}, n);
|
|
2925
2938
|
},
|
|
2926
2939
|
list_item: (e, t, n) => /* @__PURE__ */ p("li", { children: e.tokens && e.tokens.length !== 0 ? t(e.tokens) : e.text }, n),
|
|
2927
|
-
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2940
|
+
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(wt, {
|
|
2941
|
+
style: Q(n),
|
|
2942
|
+
children: t(e.tokens)
|
|
2943
|
+
}, n) : null,
|
|
2928
2944
|
space: () => null,
|
|
2929
|
-
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2945
|
+
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, {
|
|
2930
2946
|
bold: !0,
|
|
2931
2947
|
children: t(e.tokens)
|
|
2932
|
-
}, n) : /* @__PURE__ */ p(
|
|
2948
|
+
}, n) : /* @__PURE__ */ p(w, {
|
|
2933
2949
|
bold: !0,
|
|
2934
2950
|
children: e.text
|
|
2935
2951
|
}, n),
|
|
2936
2952
|
table: (e, t, n) => {
|
|
2937
|
-
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(
|
|
2938
|
-
return /* @__PURE__ */ p(
|
|
2939
|
-
header: /* @__PURE__ */ p(
|
|
2940
|
-
body: /* @__PURE__ */ p(
|
|
2953
|
+
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(Bn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(J, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(J, { children: r(e) }, t));
|
|
2954
|
+
return /* @__PURE__ */ p(q, {
|
|
2955
|
+
header: /* @__PURE__ */ p(Hn, { children: i }),
|
|
2956
|
+
body: /* @__PURE__ */ p(Rn, { children: a }),
|
|
2957
|
+
style: Q(n)
|
|
2941
2958
|
}, n);
|
|
2942
2959
|
},
|
|
2943
|
-
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2944
|
-
},
|
|
2960
|
+
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(w, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(w, { children: e.text }, n)
|
|
2961
|
+
}, pr = ({ markdown: e, style: t, renderFunctionMap: n }) => {
|
|
2945
2962
|
let r = {
|
|
2946
|
-
...
|
|
2963
|
+
...fr,
|
|
2947
2964
|
...n
|
|
2948
2965
|
}, i = (e) => e.map((e, t) => {
|
|
2949
2966
|
let n = r[e.type];
|
|
2950
2967
|
return n ? n(e, i, t) : null;
|
|
2951
|
-
}), a =
|
|
2968
|
+
}), a = Qe.setOptions({ gfm: !0 }).lexer(e);
|
|
2952
2969
|
return /* @__PURE__ */ p("div", {
|
|
2953
|
-
className:
|
|
2970
|
+
className: dr["markdown-body"],
|
|
2954
2971
|
style: {
|
|
2955
2972
|
"--elmethis-margin-block-start": "2.5rem",
|
|
2956
2973
|
...t
|
|
@@ -2962,7 +2979,7 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
2962
2979
|
typed: "_typed_sojtj_20",
|
|
2963
2980
|
current: "_current_sojtj_24",
|
|
2964
2981
|
incorrect: "_incorrect_sojtj_29"
|
|
2965
|
-
},
|
|
2982
|
+
}, mr = ({ target: e = "Typing game", style: t }) => {
|
|
2966
2983
|
let [n, r] = d(() => {
|
|
2967
2984
|
let t = e.split("").map((e) => ({
|
|
2968
2985
|
char: e,
|
|
@@ -3014,9 +3031,9 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
3014
3031
|
o > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", o] })
|
|
3015
3032
|
]
|
|
3016
3033
|
});
|
|
3017
|
-
},
|
|
3034
|
+
}, hr = ({ oEmbed: e, style: t }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
|
|
3018
3035
|
style: t,
|
|
3019
|
-
children: /* @__PURE__ */ p(
|
|
3036
|
+
children: /* @__PURE__ */ p(j, {
|
|
3020
3037
|
src: e.url,
|
|
3021
3038
|
alt: e.title,
|
|
3022
3039
|
width: e.width,
|
|
@@ -3032,10 +3049,10 @@ var nr = ({ commands: e, onCommandInvoked: t, style: n }) => {
|
|
|
3032
3049
|
dangerouslySetInnerHTML: { __html: e.html }
|
|
3033
3050
|
}) : /* @__PURE__ */ p("div", {
|
|
3034
3051
|
style: t,
|
|
3035
|
-
children: /* @__PURE__ */ p(
|
|
3052
|
+
children: /* @__PURE__ */ p(w, {
|
|
3036
3053
|
href: e.author_url ?? e.provider_url ?? "#",
|
|
3037
3054
|
children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
|
|
3038
3055
|
})
|
|
3039
3056
|
});
|
|
3040
3057
|
//#endregion
|
|
3041
|
-
export {
|
|
3058
|
+
export { mt as ElmArrowIcon, rn as ElmBlockFallback, Tt as ElmBlockQuote, Yt as ElmBookmark, _t as ElmBookmarkIcon, Xt as ElmBreadcrumb, cn as ElmButton, Ot as ElmCallout, ln as ElmCheckbox, Jn as ElmCodeBlock, Zn as ElmColorSample, er as ElmColorTable, _n as ElmColumn, yn as ElmColumnList, rr as ElmCommandPalette, Sn as ElmConfirmModal, bt as ElmCubeIcon, Cn as ElmDesktopWindow, At as ElmDivider, S as ElmDotLoadingIcon, Jt as ElmFile, Mt as ElmFragmentIdentifier, D as ElmHeading, j as ElmImage, b as ElmInlineIcon, w as ElmInlineText, ur as ElmJarkup, ar as ElmJsonComponentRenderer, Xn as ElmKatex, nt as ElmLanguageIcon, It as ElmList, St as ElmLoginIcon, pr as ElmMarkdown, x as ElmMdiIcon, e as ElmMermaid, xn as ElmModal, Ut as ElmMultiProgress, hr as ElmOEmbed, Zt as ElmPageTop, wt as ElmParagraph, Tn as ElmParallax, Vt as ElmProgress, nn as ElmRectangleWave, un as ElmSelect, qn as ElmShikiHighlighter, kn as ElmSimpleTooltip, jn as ElmSnackbar, Nn as ElmSnackbarContainer, on as ElmSpinner, ct as ElmSquareLoadingIcon, Kt as ElmStatusMessage, dn as ElmSwitch, q as ElmTable, Rn as ElmTableBody, Bn as ElmTableCell, Hn as ElmTableHeader, $t as ElmTableOfContents, J as ElmTableRow, Pn as ElmTabs, Bt as ElmTemplate, pn as ElmTextField, Fn as ElmToggle, pt as ElmToggleTheme, On as ElmTooltip, mr as ElmTyping, Rt as ElmTypingAnimation, sn as ElmUnsupportedBlock, hn as ElmValidation, rt as LANGUAGES };
|