diff --git a/docs/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff b/docs/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff new file mode 100644 index 00000000..df8f3b06 Binary files /dev/null and b/docs/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff differ diff --git a/docs/_app/assets/fira-mono-cyrillic-400-normal.046b609f.woff2 b/docs/_app/assets/fira-mono-cyrillic-400-normal.046b609f.woff2 new file mode 100644 index 00000000..6fe7e145 Binary files /dev/null and b/docs/_app/assets/fira-mono-cyrillic-400-normal.046b609f.woff2 differ diff --git a/docs/_app/assets/fira-mono-cyrillic-ext-400-normal.b3140dd3.woff2 b/docs/_app/assets/fira-mono-cyrillic-ext-400-normal.b3140dd3.woff2 new file mode 100644 index 00000000..c02724ca Binary files /dev/null and b/docs/_app/assets/fira-mono-cyrillic-ext-400-normal.b3140dd3.woff2 differ diff --git a/docs/_app/assets/fira-mono-greek-400-normal.1f8b3a07.woff2 b/docs/_app/assets/fira-mono-greek-400-normal.1f8b3a07.woff2 new file mode 100644 index 00000000..22e58d9a Binary files /dev/null and b/docs/_app/assets/fira-mono-greek-400-normal.1f8b3a07.woff2 differ diff --git a/docs/_app/assets/fira-mono-greek-ext-400-normal.8659ae46.woff2 b/docs/_app/assets/fira-mono-greek-ext-400-normal.8659ae46.woff2 new file mode 100644 index 00000000..d474c456 Binary files /dev/null and b/docs/_app/assets/fira-mono-greek-ext-400-normal.8659ae46.woff2 differ diff --git a/docs/_app/assets/fira-mono-latin-400-normal.a2f9dbe8.woff2 b/docs/_app/assets/fira-mono-latin-400-normal.a2f9dbe8.woff2 new file mode 100644 index 00000000..93eeae93 Binary files /dev/null and b/docs/_app/assets/fira-mono-latin-400-normal.a2f9dbe8.woff2 differ diff --git a/docs/_app/assets/fira-mono-latin-ext-400-normal.b6331a25.woff2 b/docs/_app/assets/fira-mono-latin-ext-400-normal.b6331a25.woff2 new file mode 100644 index 00000000..3093902e Binary files /dev/null and b/docs/_app/assets/fira-mono-latin-ext-400-normal.b6331a25.woff2 differ diff --git a/docs/_app/assets/pages/__layout.svelte-b1bb5b9c.css b/docs/_app/assets/pages/__layout.svelte-b1bb5b9c.css new file mode 100644 index 00000000..9944fae1 --- /dev/null +++ b/docs/_app/assets/pages/__layout.svelte-b1bb5b9c.css @@ -0,0 +1 @@ +@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-cyrillic-ext-400-normal.b3140dd3.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-cyrillic-400-normal.046b609f.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-greek-ext-400-normal.8659ae46.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+1f??}@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-greek-400-normal.1f8b3a07.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+0370-03ff}@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-latin-ext-400-normal.b6331a25.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(/_app/assets/fira-mono-latin-400-normal.a2f9dbe8.woff2) format("woff2"),url(/_app/assets/fira-mono-all-400-normal.0d19eb5d.woff) format("woff");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}/*! tailwindcss v2.1.2 | MIT License | https://tailwindcss.com*//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */html{line-height:1.15;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:100%}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;margin:0}hr{color:inherit;height:0}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{font-family:inherit;line-height:inherit}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{color:inherit;line-height:inherit;padding:0}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[type=date],[type=number],[type=text],[type=time],select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[type=date]:focus,[type=number]:focus,[type=text]:focus,[type=time]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[type=checkbox],[type=radio],select{-webkit-print-color-adjust:exact;color-adjust:exact}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgba(254,202,202,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgba(167,243,208,var(--tw-bg-opacity))}.bg-indigo-400{--tw-bg-opacity:1;background-color:rgba(129,140,248,var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgba(99,102,241,var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity:1;background-color:rgba(252,165,165,var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity:1;background-color:rgba(110,231,183,var(--tw-bg-opacity))}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgba(99,102,241,var(--tw-bg-opacity))}.hover\:bg-indigo-600:hover{--tw-bg-opacity:1;background-color:rgba(79,70,229,var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgba(67,56,202,var(--tw-bg-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgba(156,163,175,var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgba(99,102,241,var(--tw-border-opacity))}.hover\:border-white:hover{--tw-border-opacity:1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.rounded{border-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.content-center{align-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-grow{flex-grow:1}.font-thin{font-weight:100}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-56{height:14rem}.h-full{height:100%}.h-screen{height:100vh}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.leading-normal{line-height:1.5}.m-2{margin:.5rem}.mx-2{margin-left:.5rem}.mr-2,.mx-2{margin-right:.5rem}.-mb-4{margin-bottom:-1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.p-2{padding:.5rem}.px-0{padding-left:0;padding-right:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.pt-4{padding-top:1rem}*{--tw-shadow:0 0 transparent}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}*{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.fill-current{fill:currentColor}.text-center{text-align:center}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgba(17,24,39,var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgba(248,113,113,var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity:1;color:rgba(99,102,241,var(--tw-text-opacity))}.w-24{width:6rem}.w-28{width:7rem}.w-auto{width:auto}.w-2\/5{width:40%}.w-full{width:100%}.gap-2{gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}.filter{--tw-blur:var(--tw-empty, );/*!*//*!*/--tw-brightness:var(--tw-empty, );/*!*//*!*/--tw-contrast:var(--tw-empty, );/*!*//*!*/--tw-grayscale:var(--tw-empty, );/*!*//*!*/--tw-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-invert:var(--tw-empty, );/*!*//*!*/--tw-saturate:var(--tw-empty, );/*!*//*!*/--tw-sepia:var(--tw-empty, );/*!*//*!*/--tw-drop-shadow:var(--tw-empty, );/*!*//*!*/filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:items-center{align-items:center}.lg\:p-2{padding:.5rem}.lg\:pt-0{padding-top:0}.lg\:w-auto{width:auto}} \ No newline at end of file diff --git a/docs/_app/assets/pages/edit.svelte-a37f5076.css b/docs/_app/assets/pages/edit.svelte-a37f5076.css new file mode 100644 index 00000000..5bcc059c --- /dev/null +++ b/docs/_app/assets/pages/edit.svelte-a37f5076.css @@ -0,0 +1 @@ +#menu-toggle.svelte-1q1rl80:checked+#menu.svelte-1q1rl80{display:block}.nav-btn.svelte-1q1rl80.svelte-1q1rl80{border-color:transparent}.nav-btn.svelte-1q1rl80.svelte-1q1rl80:hover{--tw-border-opacity:1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.nav-btn.svelte-1q1rl80.svelte-1q1rl80{border-bottom-width:2px;display:block;padding:.75rem 0}@media(min-width:1024px){.nav-btn.svelte-1q1rl80.svelte-1q1rl80{padding:.5rem}}.isOpen.svelte-1j9xzww{transform:rotate(-90deg);transition-duration:.5s}.btn.svelte-1ygdo6x{background-color:rgba(129,140,248,var(--tw-bg-opacity))}.btn.svelte-1ygdo6x,.btn.svelte-1ygdo6x:hover{--tw-bg-opacity:1}.btn.svelte-1ygdo6x:hover{background-color:rgba(99,102,241,var(--tw-bg-opacity))}.btn.svelte-1ygdo6x{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);--tw-text-opacity:1;border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);color:rgba(255,255,255,var(--tw-text-opacity));flex:1 1 auto;padding:.5rem}.btn.svelte-15pcoti{background-color:rgba(99,102,241,var(--tw-bg-opacity))}.btn.svelte-15pcoti,.btn.svelte-15pcoti:hover{--tw-bg-opacity:1}.btn.svelte-15pcoti:hover{background-color:rgba(67,56,202,var(--tw-bg-opacity))}.btn.svelte-15pcoti{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);padding-left:1rem;padding-right:1rem} \ No newline at end of file diff --git a/docs/_app/assets/start-0826e215.css b/docs/_app/assets/start-0826e215.css new file mode 100644 index 00000000..6e6920e5 --- /dev/null +++ b/docs/_app/assets/start-0826e215.css @@ -0,0 +1 @@ +#svelte-announcer.svelte-1pdgbjn{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:1px} \ No newline at end of file diff --git a/docs/_app/assets/util-53f38408.css b/docs/_app/assets/util-53f38408.css new file mode 100644 index 00000000..1e9a7362 --- /dev/null +++ b/docs/_app/assets/util-53f38408.css @@ -0,0 +1 @@ +#view.svelte-7vvt6c{border:1px #8b0000;flex:1}.error.svelte-7vvt6c,.outOfSync.svelte-7vvt6c{opacity:.5} \ No newline at end of file diff --git a/docs/_app/chunks/navigation-20968cc5.js b/docs/_app/chunks/navigation-20968cc5.js new file mode 100644 index 00000000..6fe96802 --- /dev/null +++ b/docs/_app/chunks/navigation-20968cc5.js @@ -0,0 +1 @@ +import{r as o}from"./singletons-bb9012b7.js";const n=async function(n,s){return o.goto(n,s,[])};export{n as g}; diff --git a/docs/_app/chunks/singletons-bb9012b7.js b/docs/_app/chunks/singletons-bb9012b7.js new file mode 100644 index 00000000..d09d8e86 --- /dev/null +++ b/docs/_app/chunks/singletons-bb9012b7.js @@ -0,0 +1 @@ +let t;function a(a){t=a}export{a as i,t as r}; diff --git a/docs/_app/chunks/util-fb52efd4.js b/docs/_app/chunks/util-fb52efd4.js new file mode 100644 index 00000000..023f244e --- /dev/null +++ b/docs/_app/chunks/util-fb52efd4.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.prototype.hasOwnProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.propertyIsEnumerable,o=(a,t,n)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,r=(e,r)=>{for(var s in r||(r={}))a.call(r,s)&&o(e,s,r[s]);if(t)for(var s of t(r))n.call(r,s)&&o(e,s,r[s]);return e};import{a2 as s,a3 as i,C as c,a4 as l,a0 as d,a6 as u,a9 as p,S as f,i as h,s as m,e as y,c as v,a as g,d as b,b as w,O,f as S,F as E,G as x,a7 as D,z as C,a8 as T,J as j}from"./vendor-a9bf48e1.js";const J=s(c({code:"graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n ",mermaid:JSON.stringify({theme:"default"}),updateEditor:!1,autoSync:!0,updateDiagram:!0}),i(),"codeStore"),N=l([J],(([e],a)=>{a(d(JSON.stringify(e),!0))})),P=e=>{J.update((a=>r(r({},a),e)))};let I=!1;const L=(e,a,t=!1)=>{if((e.match(/\n/g)||"").length+1>50&&!I&&u(J).autoSync){const e=confirm("Long diagram deteced. Turn off Auto Sync? Click the sync logo to manually sync.");I=!0,e&&P({autoSync:!1})}J.update((n=>r(r({},n),{code:e,updateEditor:a,updateDiagram:t})))},G=(e,a)=>{J.update((t=>r(r({},t),{mermaid:e,updateEditor:a})))},V=()=>JSON.stringify(u(J)),k=c(void 0);function z(e){let a,t;return{c(){a=y("div"),t=y("div"),this.h()},l(e){a=v(e,"DIV",{id:!0,class:!0});var n=g(a);t=v(n,"DIV",{id:!0,class:!0}),g(t).forEach(b),n.forEach(b),this.h()},h(){w(t,"id","container"),w(t,"class","flex-1 overflow-auto"),w(a,"id","view"),w(a,"class","p-2 svelte-7vvt6c"),O(a,"error",e[1]),O(a,"outOfSync",e[2])},m(n,o){S(n,a,o),E(a,t),e[3](t)},p(e,[t]){2&t&&O(a,"error",e[1]),4&t&&O(a,"outOfSync",e[2])},i:x,o:x,d(t){t&&b(a),e[3](null)}}}function A(e,a,t){let n;D(e,J,(e=>t(6,n=e)));var o=this&&this.__awaiter||function(e,a,t,n){return new(t||(t=Promise))((function(o,r){function s(e){try{c(n.next(e))}catch(a){r(a)}}function i(e){try{c(n.throw(e))}catch(a){r(a)}}function c(e){var a;e.done?o(e.value):(a=e.value,a instanceof t?a:new t((function(e){e(a)}))).then(s,i)}c((n=n.apply(e,a||[])).next())}))};const r=window.mermaid;let s,i="",c=!1,l=!1,d=!0;C((()=>o(void 0,void 0,void 0,(function*(){J.subscribe((e=>{try{if(s&&e&&(e.updateDiagram||e.autoSync)){e.autoSync||T(J,n.updateDiagram=!1,n),t(2,l=!1),d=!0,i=e.code;const a=s.parentElement.parentElement.parentElement.scrollTop;t(0,s.innerHTML=i,s),delete s.dataset.processed,r.initialize(Object.assign({},JSON.parse(e.mermaid))),r.init(s),r.render("graph-div",i,u),t(0,s.parentElement.parentElement.parentElement.scrollTop=a,s)}else d?d=!1:t(2,l=!0)}catch(a){console.log("view fail",a),t(1,c=!0)}})),k.subscribe((e=>{void 0===e?t(1,c=!1):(t(1,c=!0),console.log("Error: ",e))}))}))));const u=(e,a)=>{};return[s,c,l,function(e){j[e?"unshift":"push"]((()=>{s=e,t(0,s)}))}]}class B extends f{constructor(e){super(),h(this,e,A,z,m,{})}}const F=()=>{(e=>{let a;try{const t=p(e);a=JSON.parse(t)}catch(t){console.error("Init error",t),a=u(J)}P(r(r({},a),{updateEditor:!0}))})(window.location.hash.slice(1))},_=()=>{P({updateDiagram:!0})},H=()=>{F(),_(),N.subscribe((e=>{window.location.hash=e}))};export{B as V,G as a,N as b,J as c,k as e,V as g,H as i,_ as s,L as u}; diff --git a/docs/_app/chunks/vendor-a9bf48e1.js b/docs/_app/chunks/vendor-a9bf48e1.js new file mode 100644 index 00000000..64e63208 --- /dev/null +++ b/docs/_app/chunks/vendor-a9bf48e1.js @@ -0,0 +1,9 @@ +function e(){}const t=e=>e;function r(e,t){for(const r in t)e[r]=t[r];return e}function o(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(o)}function a(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(t,...r){if(null==t)return e;const o=t.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function d(e){let t;return c(e,(e=>t=e))(),t}function l(e,t,r){e.$$.on_destroy.push(c(t,r))}function u(e,t,r,o){if(e){const n=h(e,t,r,o);return e[0](n)}}function h(e,t,o,n){return e[1]&&n?r(o.ctx.slice(),e[1](n(t))):o.ctx}function f(e,t,r,o,n,i,a){const s=function(e,t,r,o){if(e[2]&&o){const n=e[2](o(r));if(void 0===t.dirty)return n;if("object"==typeof n){const e=[],r=Math.max(t.dirty.length,n.length);for(let o=0;owindow.performance.now():()=>Date.now(),y=m?e=>requestAnimationFrame(e):e;const _=new Set;function v(e){_.forEach((t=>{t.c(e)||(_.delete(t),t.f())})),0!==_.size&&y(v)}function b(e,t){e.appendChild(t)}function k(e,t,r){e.insertBefore(t,r||null)}function S(e){e.parentNode.removeChild(e)}function M(e,t){for(let r=0;re.removeEventListener(t,r,o)}function C(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function P(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function W(e){return""===e?null:+e}function R(e){return Array.from(e.childNodes)}function A(e,t,r,o){for(let n=0;n>>0}(l)}_${s}`,h=e.ownerDocument;V.add(h);const f=h.__svelte_stylesheet||(h.__svelte_stylesheet=h.head.appendChild(D("style")).sheet),g=h.__svelte_rules||(h.__svelte_rules={});g[u]||(g[u]=!0,f.insertRule(`@keyframes ${u} ${l}`,f.cssRules.length));const w=e.style.animation||"";return e.style.animation=`${w?`${w}, `:""}${u} ${o}ms linear ${n}ms 1 both`,G+=1,u}function q(e,t){const r=(e.style.animation||"").split(", "),o=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),n=r.length-o.length;n&&(e.style.animation=o.join(", "),G-=n,G||y((()=>{G||(V.forEach((e=>{const t=e.__svelte_stylesheet;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.__svelte_rules={}})),V.clear())})))}function Z(e){z=e}function B(){if(!z)throw new Error("Function called outside component initialization");return z}function J(e){B().$$.on_mount.push(e)}function Q(e){B().$$.after_update.push(e)}function X(){const e=B();return(t,r)=>{const o=e.$$.callbacks[t];if(o){const n=j(t,r);o.slice().forEach((t=>{t.call(e,n)}))}}}function K(e,t){B().$$.context.set(e,t)}function ee(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach((e=>e(t)))}const te=[],re=[],oe=[],ne=[],ie=Promise.resolve();let ae=!1;function se(e){oe.push(e)}function ce(e){ne.push(e)}let de=!1;const le=new Set;function ue(){if(!de){de=!0;do{for(let e=0;e{we.delete(e),o&&(r&&e.d(1),o())})),e.o(t)}}const be={duration:0};function ke(r,o,n,s){let c=o(r,n),d=s?0:1,l=null,u=null,h=null;function f(){h&&q(r,h)}function g(e,t){const r=e.b-d;return t*=Math.abs(r),{a:d,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function w(o){const{delay:n=0,duration:a=300,easing:s=t,tick:w=e,css:m}=c||be,b={start:p()+n,b:o};o||(b.group=me,me.r+=1),l||u?u=b:(m&&(f(),h=I(r,d,o,a,n,s,m)),o&&w(0,1),l=g(b,a),se((()=>ge(r,o,"start"))),function(e){let t;0===_.size&&y(v),new Promise((r=>{_.add(t={c:e,f:r})}))}((e=>{if(u&&e>u.start&&(l=g(u,a),u=null,ge(r,l.b,"start"),m&&(f(),h=I(r,d,l.b,l.duration,0,s,c.css))),l)if(e>=l.end)w(d=l.b,1-d),ge(r,l.b,"end"),u||(l.b?f():--l.group.r||i(l.group.c)),l=null;else if(e>=l.start){const t=e-l.start;d=l.a+l.d*s(t/l.duration),w(d,1-d)}return!(!l&&!u)})))}return{run(e){a(c)?(fe||(fe=Promise.resolve(),fe.then((()=>{fe=null}))),fe).then((()=>{c=c(),w(e)})):w(e)},end(){f(),l=u=null}}}function Se(e,t){const r={},o={},n={$$scope:1};let i=e.length;for(;i--;){const a=e[i],s=t[i];if(s){for(const e in a)e in s||(o[e]=1);for(const e in s)n[e]||(r[e]=s[e],n[e]=1);e[i]=s}else for(const e in a)n[e]=1}for(const a in o)a in r||(r[a]=void 0);return r}function Me(e){return"object"==typeof e&&null!==e?e:{}}function De(e,t,r){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=r,r(e.$$.ctx[o]))}function Ye(e){e&&e.c()}function xe(e,t){e&&e.l(t)}function Oe(e,t,r,n){const{fragment:s,on_mount:c,on_destroy:d,after_update:l}=e.$$;s&&s.m(t,r),n||se((()=>{const t=c.map(o).filter(a);d?d.push(...t):i(t),e.$$.on_mount=[]})),l.forEach(se)}function Te(e,t){const r=e.$$;null!==r.fragment&&(i(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ne(e,t){-1===e.$$.dirty[0]&&(te.push(e),ae||(ae=!0,ie.then(ue)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const n=o.length?o[0]:r;return u.ctx&&s(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),h&&Ne(t,e)),r})):[],u.update(),h=!0,i(u.before_update),u.fragment=!!a&&a(u.ctx),r.target){if(r.hydrate){const e=R(r.target);u.fragment&&u.fragment.l(e),e.forEach(S)}else u.fragment&&u.fragment.c();r.intro&&_e(t.$$.fragment),Oe(t,r.target,r.anchor,r.customElement),ue()}Z(l)}class Pe{$destroy(){Te(this,1),this.$destroy=e}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const We=[];function Re(t,r=e){let o;const n=[];function i(e){if(s(t,e)&&(t=e,o)){const e=!We.length;for(let r=0;r{const e=n.indexOf(c);-1!==e&&n.splice(e,1),0===n.length&&(o(),o=null)}}}}function Ae(t,r,o){const n=!Array.isArray(t),s=n?[t]:t,d=r.length<2;return{subscribe:Re(o,(t=>{let o=!1;const l=[];let u=0,h=e;const f=()=>{if(u)return;h();const o=r(n?l[0]:l,t);d?t(o):h=a(o)?o:e},g=s.map(((e,t)=>c(e,(e=>{l[t]=e,u&=~(1<{u|=1<{let t={};return He.forEach(((e,r)=>t[e]=r)),t})(),ze=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ge=String.fromCharCode.bind(String),Ie="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),qe=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Ze=Le?e=>btoa(e):Ue?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,r,o,n,i="";const a=e.length%3;for(let s=0;s255||(o=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|o<<8|n,i+=He[t>>18&63]+He[t>>12&63]+He[t>>6&63]+He[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},Be=Ue?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,o=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Ge(192|t>>>6)+Ge(128|63&t):Ge(224|t>>>12&15)+Ge(128|t>>>6&63)+Ge(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ge(240|t>>>18&7)+Ge(128|t>>>12&63)+Ge(128|t>>>6&63)+Ge(128|63&t)},Qe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Xe=Ue?e=>Buffer.from(e,"utf8").toString("base64"):je?e=>Be(je.encode(e)):e=>Ze(e.replace(Qe,Je)),Ke=(e,t=!1)=>t?(e=>e.replace(/[+\/]/g,(e=>"+"==e?"-":"_")).replace(/=+$/m,""))(Xe(e)):Xe(e),et=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,tt=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Ge(55296+(t>>>10))+Ge(56320+(1023&t));case 3:return Ge((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ge((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},rt=Ee?e=>atob(qe(e)):Ue?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!ze.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,o,n="";for(let i=0;i>16&255):64===o?Ge(t>>16&255,t>>8&255):Ge(t>>16&255,t>>8&255,255&t);return n},ot=Ue?e=>Ie(Buffer.from(e,"base64")):e=>Ie(rt(e),(e=>e.charCodeAt(0))),nt=Ue?e=>Buffer.from(e,"base64").toString("utf8"):$e?e=>$e.decode(ot(e)):e=>rt(e).replace(et,tt),it=e=>nt(qe(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))));function at(e,t,r){const o=t.getValue(r);return null!==o&&e.set(o),t.addListener&&t.addListener(r,(t=>{e.set(t)})),e.subscribe((e=>{t.setValue(r,e)})),Object.assign(Object.assign({},e),{delete(){t.deleteValue(r)}})}function st(e,t=!1){const r=[],o=t=>{const o=t.key;t.storageArea===e&&r.filter((({key:e})=>e===o)).forEach((({listener:e})=>e(JSON.parse(t.newValue))))};return{addListener(e,n){r.push({key:e,listener:n}),1===r.length&&t&&"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.addEventListener)&&window.addEventListener("storage",o)},removeListener(e,n){const i=r.indexOf({key:e,listener:n});-1!==i&&r.splice(i,1),0===r.length&&t&&"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.removeEventListener)&&window.removeEventListener("storage",o)},getValue(t){let r=e.getItem(t);return null!==r&&(r=JSON.parse(r)),r},deleteValue(t){e.removeItem(t)},setValue(t,r){e.setItem(t,JSON.stringify(r))}}}function ct(e=!1){return"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.localStorage)?st(window.localStorage,e):(console.warn("Unable to find the localStorage. No data will be persisted."),{getValue:()=>null,deleteValue(){},setValue(){}})}function dt(e){const t=e-1;return t*t*t+1}function lt(e,{delay:r=0,duration:o=400,easing:n=t}={}){const i=+getComputedStyle(e).opacity;return{delay:r,duration:o,easing:n,css:e=>"opacity: "+e*i}}function ut(e,{delay:t=0,duration:r=400,easing:o=dt}={}){const n=getComputedStyle(e),i=+n.opacity,a=parseFloat(n.height),s=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),d=parseFloat(n.marginTop),l=parseFloat(n.marginBottom),u=parseFloat(n.borderTopWidth),h=parseFloat(n.borderBottomWidth);return{delay:t,duration:r,easing:o,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*i};height: ${e*a}px;padding-top: ${e*s}px;padding-bottom: ${e*c}px;margin-top: ${e*d}px;margin-bottom: ${e*l}px;border-top-width: ${e*u}px;border-bottom-width: ${e*h}px;`}} +//! moment.js +//! version : 2.29.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var ht,ft;function gt(){return ht.apply(null,arguments)}function wt(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function mt(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function pt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yt(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(pt(e,t))return!1;return!0}function _t(e){return void 0===e}function vt(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function bt(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function kt(e,t){var r,o=[];for(r=0;r>>0;for(t=0;t0)for(r=0;r=0?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+o}var Ht=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},Gt={};function It(e,t,r,o){var n=o;"string"==typeof o&&(n=function(){return this[o]()}),e&&(Gt[e]=n),t&&(Gt[t[0]]=function(){return jt(n.apply(this,arguments),t[1],t[2])}),r&&(Gt[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function qt(e,t){return e.isValid()?(t=Zt(t,e.localeData()),zt[t]=zt[t]||function(e){var t,r,o,n=e.match(Ht);for(t=0,r=n.length;t=0&&Vt.test(e);)e=e.replace(Vt,o),Vt.lastIndex=0,r-=1;return e}var Bt={};function Jt(e,t){var r=e.toLowerCase();Bt[r]=Bt[r+"s"]=Bt[t]=e}function Qt(e){return"string"==typeof e?Bt[e]||Bt[e.toLowerCase()]:void 0}function Xt(e){var t,r,o={};for(r in e)pt(e,r)&&(t=Qt(r))&&(o[t]=e[r]);return o}var Kt={};function er(e,t){Kt[e]=t}function tr(e){return e%4==0&&e%100!=0||e%400==0}function rr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function or(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=rr(t)),r}function nr(e,t){return function(r){return null!=r?(ar(this,e,r),gt.updateOffset(this,t),this):ir(this,e)}}function ir(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ar(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&tr(e.year())&&1===e.month()&&29===e.date()?(r=or(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Pr(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var sr,cr=/\d/,dr=/\d\d/,lr=/\d{3}/,ur=/\d{4}/,hr=/[+-]?\d{6}/,fr=/\d\d?/,gr=/\d\d\d\d?/,wr=/\d\d\d\d\d\d?/,mr=/\d{1,3}/,pr=/\d{1,4}/,yr=/[+-]?\d{1,6}/,_r=/\d+/,vr=/[+-]?\d+/,br=/Z|[+-]\d\d:?\d\d/gi,kr=/Z|[+-]\d\d(?::?\d\d)?/gi,Sr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Mr(e,t,r){sr[e]=Lt(t)?t:function(e,o){return e&&r?r:t}}function Dr(e,t){return pt(sr,e)?sr[e](t._strict,t._locale):new RegExp(Yr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,o,n){return t||r||o||n}))))}function Yr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}sr={};var xr={};function Or(e,t){var r,o=t;for("string"==typeof e&&(e=[e]),vt(t)&&(o=function(e,r){r[t]=or(e)}),r=0;r68?1900:2e3)};var Vr=nr("FullYear",!0);function zr(e,t,r,o,n,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,o,n,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,o,n,i,a),s}function Gr(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ir(e,t,r){var o=7+t-r;return-((7+Gr(e,0,o).getUTCDay()-t)%7)+o-1}function qr(e,t,r,o,n){var i,a,s=1+7*(t-1)+(7+r-o)%7+Ir(e,o,n);return s<=0?a=Hr(i=e-1)+s:s>Hr(e)?(i=e+1,a=s-Hr(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Zr(e,t,r){var o,n,i=Ir(e.year(),t,r),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Br(n=e.year()-1,t,r):a>Br(e.year(),t,r)?(o=a-Br(e.year(),t,r),n=e.year()+1):(n=e.year(),o=a),{week:o,year:n}}function Br(e,t,r){var o=Ir(e,t,r),n=Ir(e+1,t,r);return(Hr(e)-o+n)/7}It("w",["ww",2],"wo","week"),It("W",["WW",2],"Wo","isoWeek"),Jt("week","w"),Jt("isoWeek","W"),er("week",5),er("isoWeek",5),Mr("w",fr),Mr("ww",fr,dr),Mr("W",fr),Mr("WW",fr,dr),Tr(["w","ww","W","WW"],(function(e,t,r,o){t[o.substr(0,1)]=or(e)}));function Jr(e,t){return e.slice(t,7).concat(e.slice(0,t))}It("d",0,"do","day"),It("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),It("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),It("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),It("e",0,0,"weekday"),It("E",0,0,"isoWeekday"),Jt("day","d"),Jt("weekday","e"),Jt("isoWeekday","E"),er("day",11),er("weekday",11),er("isoWeekday",11),Mr("d",fr),Mr("e",fr),Mr("E",fr),Mr("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Mr("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Mr("dddd",(function(e,t){return t.weekdaysRegex(e)})),Tr(["dd","ddd","dddd"],(function(e,t,r,o){var n=r._locale.weekdaysParse(e,o,r._strict);null!=n?t.d=n:Dt(r).invalidWeekday=e})),Tr(["d","e","E"],(function(e,t,r,o){t[o]=or(e)}));var Qr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),eo=Sr,to=Sr,ro=Sr;function oo(e,t,r){var o,n,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=Mt([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(n=Cr.call(this._weekdaysParse,a))?n:null:"ddd"===t?-1!==(n=Cr.call(this._shortWeekdaysParse,a))?n:null:-1!==(n=Cr.call(this._minWeekdaysParse,a))?n:null:"dddd"===t?-1!==(n=Cr.call(this._weekdaysParse,a))||-1!==(n=Cr.call(this._shortWeekdaysParse,a))||-1!==(n=Cr.call(this._minWeekdaysParse,a))?n:null:"ddd"===t?-1!==(n=Cr.call(this._shortWeekdaysParse,a))||-1!==(n=Cr.call(this._weekdaysParse,a))||-1!==(n=Cr.call(this._minWeekdaysParse,a))?n:null:-1!==(n=Cr.call(this._minWeekdaysParse,a))||-1!==(n=Cr.call(this._weekdaysParse,a))||-1!==(n=Cr.call(this._shortWeekdaysParse,a))?n:null}function no(){function e(e,t){return t.length-e.length}var t,r,o,n,i,a=[],s=[],c=[],d=[];for(t=0;t<7;t++)r=Mt([2e3,1]).day(t),o=Yr(this.weekdaysMin(r,"")),n=Yr(this.weekdaysShort(r,"")),i=Yr(this.weekdays(r,"")),a.push(o),s.push(n),c.push(i),d.push(o),d.push(n),d.push(i);a.sort(e),s.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function io(){return this.hours()%12||12}function ao(e,t){It(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function so(e,t){return t._meridiemParse}It("H",["HH",2],0,"hour"),It("h",["hh",2],0,io),It("k",["kk",2],0,(function(){return this.hours()||24})),It("hmm",0,0,(function(){return""+io.apply(this)+jt(this.minutes(),2)})),It("hmmss",0,0,(function(){return""+io.apply(this)+jt(this.minutes(),2)+jt(this.seconds(),2)})),It("Hmm",0,0,(function(){return""+this.hours()+jt(this.minutes(),2)})),It("Hmmss",0,0,(function(){return""+this.hours()+jt(this.minutes(),2)+jt(this.seconds(),2)})),ao("a",!0),ao("A",!1),Jt("hour","h"),er("hour",13),Mr("a",so),Mr("A",so),Mr("H",fr),Mr("h",fr),Mr("k",fr),Mr("HH",fr,dr),Mr("hh",fr,dr),Mr("kk",fr,dr),Mr("hmm",gr),Mr("hmmss",wr),Mr("Hmm",gr),Mr("Hmmss",wr),Or(["H","HH"],3),Or(["k","kk"],(function(e,t,r){var o=or(e);t[3]=24===o?0:o})),Or(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),Or(["h","hh"],(function(e,t,r){t[3]=or(e),Dt(r).bigHour=!0})),Or("hmm",(function(e,t,r){var o=e.length-2;t[3]=or(e.substr(0,o)),t[4]=or(e.substr(o)),Dt(r).bigHour=!0})),Or("hmmss",(function(e,t,r){var o=e.length-4,n=e.length-2;t[3]=or(e.substr(0,o)),t[4]=or(e.substr(o,2)),t[5]=or(e.substr(n)),Dt(r).bigHour=!0})),Or("Hmm",(function(e,t,r){var o=e.length-2;t[3]=or(e.substr(0,o)),t[4]=or(e.substr(o))})),Or("Hmmss",(function(e,t,r){var o=e.length-4,n=e.length-2;t[3]=or(e.substr(0,o)),t[4]=or(e.substr(o,2)),t[5]=or(e.substr(n))}));var co=nr("Hours",!0);var lo,uo={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Wr,monthsShort:Rr,week:{dow:0,doy:6},weekdays:Qr,weekdaysMin:Kr,weekdaysShort:Xr,meridiemParse:/[ap]\.?m?\.?/i},ho={},fo={};function go(e,t){var r,o=Math.min(e.length,t.length);for(r=0;r0;){if(o=mo(n.slice(0,t).join("-")))return o;if(r&&r.length>=t&&go(n,r)>=t-1)break;t--}i++}return lo}(e)}function vo(e){var t,r=e._a;return r&&-2===Dt(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>Pr(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,Dt(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),Dt(e)._overflowWeeks&&-1===t&&(t=7),Dt(e)._overflowWeekday&&-1===t&&(t=8),Dt(e).overflow=t),e}var bo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ko=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,So=/Z|[+-]\d\d(?::?\d\d)?/,Mo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Do=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yo=/^\/?Date\((-?\d+)/i,xo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function To(e){var t,r,o,n,i,a,s=e._i,c=bo.exec(s)||ko.exec(s);if(c){for(Dt(e).iso=!0,t=0,r=Mo.length;t7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,d=Zr(Eo(),i,a),r=Po(t.gg,e._a[0],d.year),o=Po(t.w,d.week),null!=t.d?((n=t.d)<0||n>6)&&(c=!0):null!=t.e?(n=t.e+i,(t.e<0||t.e>6)&&(c=!0)):n=i);o<1||o>Br(r,i,a)?Dt(e)._overflowWeeks=!0:null!=c?Dt(e)._overflowWeekday=!0:(s=qr(r,o,n,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=Po(e._a[0],o[0]),(e._dayOfYear>Hr(i)||0===e._dayOfYear)&&(Dt(e)._overflowDayOfYear=!0),r=Gr(i,0,e._dayOfYear),e._a[1]=r.getUTCMonth(),e._a[2]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Gr:zr).apply(null,a),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(Dt(e).weekdayMismatch=!0)}}function Ro(e){if(e._f!==gt.ISO_8601)if(e._f!==gt.RFC_2822){e._a=[],Dt(e).empty=!0;var t,r,o,n,i,a,s=""+e._i,c=s.length,d=0;for(o=Zt(e._f,e._locale).match(Ht)||[],t=0;t0&&Dt(e).unusedInput.push(i),s=s.slice(s.indexOf(r)+r.length),d+=r.length),Gt[n]?(r?Dt(e).empty=!1:Dt(e).unusedTokens.push(n),Nr(n,r,e)):e._strict&&!r&&Dt(e).unusedTokens.push(n);Dt(e).charsLeftOver=c-d,s.length>0&&Dt(e).unusedInput.push(s),e._a[3]<=12&&!0===Dt(e).bigHour&&e._a[3]>0&&(Dt(e).bigHour=void 0),Dt(e).parsedDateParts=e._a.slice(0),Dt(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var o;if(null==r)return t;return null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((o=e.isPM(r))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(a=Dt(e).era)&&(e._a[0]=e._locale.erasConvertYear(a,e._a[0])),Wo(e),vo(e)}else Co(e);else To(e)}function Ao(e){var t=e._i,r=e._f;return e._locale=e._locale||_o(e._l),null===t||void 0===r&&""===t?xt({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Pt(t)?new Ct(vo(t)):(bt(t)?e._d=t:wt(r)?function(e){var t,r,o,n,i,a,s=!1;if(0===e._f.length)return Dt(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;nthis?this:e:xt()}));function $o(e,t){var r,o;if(1===t.length&&wt(t[0])&&(t=t[0]),!t.length)return Eo();for(r=t[0],o=1;o=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function mn(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function pn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,r=[],o=[],n=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Br(e,o,n))&&(t=i),bn.call(this,e,t,r,o,n))}function bn(e,t,r,o,n){var i=qr(e,t,r,o,n),a=Gr(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}It("N",0,0,"eraAbbr"),It("NN",0,0,"eraAbbr"),It("NNN",0,0,"eraAbbr"),It("NNNN",0,0,"eraName"),It("NNNNN",0,0,"eraNarrow"),It("y",["y",1],"yo","eraYear"),It("y",["yy",2],0,"eraYear"),It("y",["yyy",3],0,"eraYear"),It("y",["yyyy",4],0,"eraYear"),Mr("N",pn),Mr("NN",pn),Mr("NNN",pn),Mr("NNNN",(function(e,t){return t.erasNameRegex(e)})),Mr("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Or(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,o){var n=r._locale.erasParse(e,o,r._strict);n?Dt(r).era=n:Dt(r).invalidEra=e})),Mr("y",_r),Mr("yy",_r),Mr("yyy",_r),Mr("yyyy",_r),Mr("yo",(function(e,t){return t._eraYearOrdinalRegex||_r})),Or(["y","yy","yyy","yyyy"],0),Or(["yo"],(function(e,t,r,o){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,n):t[0]=parseInt(e,10)})),It(0,["gg",2],0,(function(){return this.weekYear()%100})),It(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),Jt("weekYear","gg"),Jt("isoWeekYear","GG"),er("weekYear",1),er("isoWeekYear",1),Mr("G",vr),Mr("g",vr),Mr("GG",fr,dr),Mr("gg",fr,dr),Mr("GGGG",pr,ur),Mr("gggg",pr,ur),Mr("GGGGG",yr,hr),Mr("ggggg",yr,hr),Tr(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,o){t[o.substr(0,2)]=or(e)})),Tr(["gg","GG"],(function(e,t,r,o){t[o]=gt.parseTwoDigitYear(e)})),It("Q",0,"Qo","quarter"),Jt("quarter","Q"),er("quarter",7),Mr("Q",cr),Or("Q",(function(e,t){t[1]=3*(or(e)-1)})),It("D",["DD",2],"Do","date"),Jt("date","D"),er("date",9),Mr("D",fr),Mr("DD",fr,dr),Mr("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Or(["D","DD"],2),Or("Do",(function(e,t){t[2]=or(e.match(fr)[0])}));var kn=nr("Date",!0);It("DDD",["DDDD",3],"DDDo","dayOfYear"),Jt("dayOfYear","DDD"),er("dayOfYear",4),Mr("DDD",mr),Mr("DDDD",lr),Or(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=or(e)})),It("m",["mm",2],0,"minute"),Jt("minute","m"),er("minute",14),Mr("m",fr),Mr("mm",fr,dr),Or(["m","mm"],4);var Sn=nr("Minutes",!1);It("s",["ss",2],0,"second"),Jt("second","s"),er("second",15),Mr("s",fr),Mr("ss",fr,dr),Or(["s","ss"],5);var Mn,Dn,Yn=nr("Seconds",!1);for(It("S",0,0,(function(){return~~(this.millisecond()/100)})),It(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),It(0,["SSS",3],0,"millisecond"),It(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),It(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),It(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),It(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),It(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),It(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Jt("millisecond","ms"),er("millisecond",16),Mr("S",mr,cr),Mr("SS",mr,dr),Mr("SSS",mr,lr),Mn="SSSS";Mn.length<=9;Mn+="S")Mr(Mn,_r);function xn(e,t){t[6]=or(1e3*("0."+e))}for(Mn="S";Mn.length<=9;Mn+="S")Or(Mn,xn);Dn=nr("Milliseconds",!1),It("z",0,0,"zoneAbbr"),It("zz",0,0,"zoneName");var On=Ct.prototype;function Tn(e){return e}On.add=nn,On.calendar=function(e,t){1===arguments.length&&(arguments[0]?cn(arguments[0])?(e=arguments[0],t=void 0):dn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Eo(),o=Zo(r,this).startOf("day"),n=gt.calendarFormat(this,o)||"sameElse",i=t&&(Lt(t[n])?t[n].call(this,r):t[n]);return this.format(i||this.localeData().calendar(n,this,Eo(r)))},On.clone=function(){return new Ct(this)},On.diff=function(e,t,r){var o,n,i;if(!this.isValid())return NaN;if(!(o=Zo(e,this)).isValid())return NaN;switch(n=6e4*(o.utcOffset()-this.utcOffset()),t=Qt(t)){case"year":i=ln(this,o)/12;break;case"month":i=ln(this,o);break;case"quarter":i=ln(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-n)/864e5;break;case"week":i=(this-o-n)/6048e5;break;default:i=this-o}return r?i:rr(i)},On.endOf=function(e){var t,r;if(void 0===(e=Qt(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?mn:wn,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-gn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-gn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-gn(t,1e3)-1}return this._d.setTime(t),gt.updateOffset(this,!0),this},On.format=function(e){e||(e=this.isUtc()?gt.defaultFormatUtc:gt.defaultFormat);var t=qt(this,e);return this.localeData().postformat(t)},On.from=function(e,t){return this.isValid()&&(Pt(e)&&e.isValid()||Eo(e).isValid())?Ko({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},On.fromNow=function(e){return this.from(Eo(),e)},On.to=function(e,t){return this.isValid()&&(Pt(e)&&e.isValid()||Eo(e).isValid())?Ko({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},On.toNow=function(e){return this.to(Eo(),e)},On.get=function(e){return Lt(this[e=Qt(e)])?this[e]():this},On.invalidAt=function(){return Dt(this).overflow},On.isAfter=function(e,t){var r=Pt(e)?e:Eo(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=Qt(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()9999?qt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",qt(r,"Z")):qt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},On.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,o="moment",n="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",r=n+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(On[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),On.toJSON=function(){return this.isValid()?this.toISOString():null},On.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},On.unix=function(){return Math.floor(this.valueOf()/1e3)},On.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},On.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},On.eraName=function(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},On.isLocal=function(){return!!this.isValid()&&!this._isUTC},On.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},On.isUtc=Jo,On.isUTC=Jo,On.zoneAbbr=function(){return this._isUTC?"UTC":""},On.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},On.dates=Rt("dates accessor is deprecated. Use date instead.",kn),On.months=Rt("months accessor is deprecated. Use month instead",$r),On.years=Rt("years accessor is deprecated. Use year instead",Vr),On.zone=Rt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),On.isDSTShifted=Rt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!_t(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Nt(t,this),(t=Ao(t))._a?(e=t._isUTC?Mt(t._a):Eo(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var o,n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(o=0;o0):this._isDSTShifted=!1,this._isDSTShifted}));var Nn=$t.prototype;function Cn(e,t,r,o){var n=_o(),i=Mt().set(o,t);return n[r](i,e)}function Pn(e,t,r){if(vt(e)&&(t=e,e=void 0),e=e||"",null!=t)return Cn(e,t,r,"month");var o,n=[];for(o=0;o<12;o++)n[o]=Cn(e,o,r,"month");return n}function Wn(e,t,r,o){"boolean"==typeof e?(vt(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,vt(t)&&(r=t,t=void 0),t=t||"");var n,i=_o(),a=e?i._week.dow:0,s=[];if(null!=r)return Cn(t,(r+a)%7,o,"day");for(n=0;n<7;n++)s[n]=Cn(t,(n+a)%7,o,"day");return s}Nn.calendar=function(e,t,r){var o=this._calendar[e]||this._calendar.sameElse;return Lt(o)?o.call(t,r):o},Nn.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Ht).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Nn.invalidDate=function(){return this._invalidDate},Nn.ordinal=function(e){return this._ordinal.replace("%d",e)},Nn.preparse=Tn,Nn.postformat=Tn,Nn.relativeTime=function(e,t,r,o){var n=this._relativeTime[r];return Lt(n)?n(e,t,r,o):n.replace(/%d/i,e)},Nn.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return Lt(r)?r(t):r.replace(/%s/i,t)},Nn.set=function(e){var t,r;for(r in e)pt(e,r)&&(Lt(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Nn.eras=function(e,t){var r,o,n,i=this._eras||_o("en")._eras;for(r=0,o=i.length;r=0)return c[o]},Nn.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?gt(e.since).year():gt(e.since).year()+(t-e.offset)*r},Nn.erasAbbrRegex=function(e){return pt(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Nn.erasNameRegex=function(e){return pt(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Nn.erasNarrowRegex=function(e){return pt(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Nn.months=function(e,t){return e?wt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ar).test(t)?"format":"standalone"][e.month()]:wt(this._months)?this._months:this._months.standalone},Nn.monthsShort=function(e,t){return e?wt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ar.test(t)?"format":"standalone"][e.month()]:wt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Nn.monthsParse=function(e,t,r){var o,n,i;if(this._monthsParseExact)return Lr.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(n=Mt([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[o]||(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(r&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!r&&this._monthsParse[o].test(e))return o}},Nn.monthsRegex=function(e){return this._monthsParseExact?(pt(this,"_monthsRegex")||jr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(pt(this,"_monthsRegex")||(this._monthsRegex=Er),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Nn.monthsShortRegex=function(e){return this._monthsParseExact?(pt(this,"_monthsRegex")||jr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(pt(this,"_monthsShortRegex")||(this._monthsShortRegex=Fr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Nn.week=function(e){return Zr(e,this._week.dow,this._week.doy).week},Nn.firstDayOfYear=function(){return this._week.doy},Nn.firstDayOfWeek=function(){return this._week.dow},Nn.weekdays=function(e,t){var r=wt(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Jr(r,this._week.dow):e?r[e.day()]:r},Nn.weekdaysMin=function(e){return!0===e?Jr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Nn.weekdaysShort=function(e){return!0===e?Jr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Nn.weekdaysParse=function(e,t,r){var o,n,i;if(this._weekdaysParseExact)return oo.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(n=Mt([2e3,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(r&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(r&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!r&&this._weekdaysParse[o].test(e))return o}},Nn.weekdaysRegex=function(e){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||no.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(pt(this,"_weekdaysRegex")||(this._weekdaysRegex=eo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Nn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||no.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=to),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Nn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||no.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Nn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Nn.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},po("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===or(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),gt.lang=Rt("moment.lang is deprecated. Use moment.locale instead.",po),gt.langData=Rt("moment.langData is deprecated. Use moment.localeData instead.",_o);var Rn=Math.abs;function An(e,t,r,o){var n=Ko(t,r);return e._milliseconds+=o*n._milliseconds,e._days+=o*n._days,e._months+=o*n._months,e._bubble()}function Fn(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function Ln(e){return 146097*e/4800}function Un(e){return function(){return this.as(e)}}var $n=Un("ms"),jn=Un("s"),Hn=Un("m"),Vn=Un("h"),zn=Un("d"),Gn=Un("w"),In=Un("M"),qn=Un("Q"),Zn=Un("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Jn=Bn("milliseconds"),Qn=Bn("seconds"),Xn=Bn("minutes"),Kn=Bn("hours"),ei=Bn("days"),ti=Bn("months"),ri=Bn("years");var oi=Math.round,ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ii(e,t,r,o,n){return n.relativeTime(t||1,!!r,e,o)}var ai=Math.abs;function si(e){return(e>0)-(e<0)||+e}function ci(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,o,n,i,a,s,c=ai(this._milliseconds)/1e3,d=ai(this._days),l=ai(this._months),u=this.asSeconds();return u?(e=rr(c/60),t=rr(e/60),c%=60,e%=60,r=rr(l/12),l%=12,o=c?c.toFixed(3).replace(/\.?0+$/,""):"",n=u<0?"-":"",i=si(this._months)!==si(u)?"-":"",a=si(this._days)!==si(u)?"-":"",s=si(this._milliseconds)!==si(u)?"-":"",n+"P"+(r?i+r+"Y":"")+(l?i+l+"M":"")+(d?a+d+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+o+"S":"")):"P0D"}var di=Ho.prototype;di.isValid=function(){return this._isValid},di.abs=function(){var e=this._data;return this._milliseconds=Rn(this._milliseconds),this._days=Rn(this._days),this._months=Rn(this._months),e.milliseconds=Rn(e.milliseconds),e.seconds=Rn(e.seconds),e.minutes=Rn(e.minutes),e.hours=Rn(e.hours),e.months=Rn(e.months),e.years=Rn(e.years),this},di.add=function(e,t){return An(this,e,t,1)},di.subtract=function(e,t){return An(this,e,t,-1)},di.as=function(e){if(!this.isValid())return NaN;var t,r,o=this._milliseconds;if("month"===(e=Qt(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,r=this._months+En(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Ln(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},di.asMilliseconds=$n,di.asSeconds=jn,di.asMinutes=Hn,di.asHours=Vn,di.asDays=zn,di.asWeeks=Gn,di.asMonths=In,di.asQuarters=qn,di.asYears=Zn,di.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*or(this._months/12):NaN},di._bubble=function(){var e,t,r,o,n,i=this._milliseconds,a=this._days,s=this._months,c=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Fn(Ln(s)+a),a=0,s=0),c.milliseconds=i%1e3,e=rr(i/1e3),c.seconds=e%60,t=rr(e/60),c.minutes=t%60,r=rr(t/60),c.hours=r%24,a+=rr(r/24),s+=n=rr(En(a)),a-=Fn(Ln(n)),o=rr(s/12),s%=12,c.days=a,c.months=s,c.years=o,this},di.clone=function(){return Ko(this)},di.get=function(e){return e=Qt(e),this.isValid()?this[e+"s"]():NaN},di.milliseconds=Jn,di.seconds=Qn,di.minutes=Xn,di.hours=Kn,di.days=ei,di.weeks=function(){return rr(this.days()/7)},di.months=ti,di.years=ri,di.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,o,n=!1,i=ni;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},ni,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),o=function(e,t,r,o){var n=Ko(e).abs(),i=oi(n.as("s")),a=oi(n.as("m")),s=oi(n.as("h")),c=oi(n.as("d")),d=oi(n.as("M")),l=oi(n.as("w")),u=oi(n.as("y")),h=i<=r.ss&&["s",i]||i0,h[4]=o,ii.apply(null,h)}(this,!n,i,r=this.localeData()),n&&(o=r.pastFuture(+this,o)),r.postformat(o)},di.toISOString=ci,di.toString=ci,di.toJSON=ci,di.locale=un,di.localeData=fn,di.toIsoString=Rt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),di.lang=hn,It("X",0,0,"unix"),It("x",0,0,"valueOf"),Mr("x",vr),Mr("X",/[+-]?\d+(\.\d{1,3})?/),Or("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),Or("x",(function(e,t,r){r._d=new Date(or(e))})), +//! moment.js +gt.version="2.29.1",ht=Eo,gt.fn=On,gt.min=function(){var e=[].slice.call(arguments,0);return $o("isBefore",e)},gt.max=function(){var e=[].slice.call(arguments,0);return $o("isAfter",e)},gt.now=function(){return Date.now?Date.now():+new Date},gt.utc=Mt,gt.unix=function(e){return Eo(1e3*e)},gt.months=function(e,t){return Pn(e,t,"months")},gt.isDate=bt,gt.locale=po,gt.invalid=xt,gt.duration=Ko,gt.isMoment=Pt,gt.weekdays=function(e,t,r){return Wn(e,t,r,"weekdays")},gt.parseZone=function(){return Eo.apply(null,arguments).parseZone()},gt.localeData=_o,gt.isDuration=Vo,gt.monthsShort=function(e,t){return Pn(e,t,"monthsShort")},gt.weekdaysMin=function(e,t,r){return Wn(e,t,r,"weekdaysMin")},gt.defineLocale=yo,gt.updateLocale=function(e,t){if(null!=t){var r,o,n=uo;null!=ho[e]&&null!=ho[e].parentLocale?ho[e].set(Ut(ho[e]._config,t)):(null!=(o=mo(e))&&(n=o._config),t=Ut(n,t),null==o&&(t.abbr=e),(r=new $t(t)).parentLocale=ho[e],ho[e]=r),po(e)}else null!=ho[e]&&(null!=ho[e].parentLocale?(ho[e]=ho[e].parentLocale,e===po()&&po(e)):null!=ho[e]&&delete ho[e]);return ho[e]},gt.locales=function(){return At(ho)},gt.weekdaysShort=function(e,t,r){return Wn(e,t,r,"weekdaysShort")},gt.normalizeUnits=Qt,gt.relativeTimeRounding=function(e){return void 0===e?oi:"function"==typeof e&&(oi=e,!0)},gt.relativeTimeThreshold=function(e,t){return void 0!==ni[e]&&(void 0===t?ni[e]:(ni[e]=t,"s"===e&&(ni.ss=t-1),!0))},gt.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},gt.prototype=On,gt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var li="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ui(e){var t={exports:{}};return e(t,t.exports),t.exports}var hi=ui((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getWordsByCategory=t.wordList=void 0,t.wordList={noun:[{word:"mother",categories:["people","family"]},{word:"father",categories:["people","family"]},{word:"baby",categories:["people","family"]},{word:"child",categories:["people","family"]},{word:"toddler",categories:["people","family"]},{word:"teenager",categories:["people","family"]},{word:"grandmother",categories:["people","family"]},{word:"student",categories:["people","education"]},{word:"teacher",categories:["people","education"]},{word:"minister",categories:["people","religion"]},{word:"businessperson",categories:["people","business"]},{word:"salesclerk",categories:["people","business"]},{word:"woman",categories:["people"]},{word:"man",categories:["people"]},{word:"lion",categories:["animals"]},{word:"tiger",categories:["animals"]},{word:"bear",categories:["animals"]},{word:"dog",categories:["animals"]},{word:"cat",categories:["animals"]},{word:"alligator",categories:["animals"]},{word:"cricket",categories:["animals"]},{word:"bird",categories:["animals"]},{word:"wolf",categories:["animals"]},{word:"table",categories:["thing"]},{word:"truck",categories:["thing","transportation"]},{word:"book",categories:["thing","education"]},{word:"pencil",categories:["thing","education"]},{word:"computer",categories:["thing","technology"]},{word:"coat",categories:["thing"]},{word:"boots",categories:["thing"]},{word:"city",categories:["place"]},{word:"state",categories:["place"]},{word:"country",categories:["place"]},{word:"continent",categories:["place"]},{word:"coffeeshop",categories:["place"]},{word:"restaurant",categories:["place"]},{word:"park",categories:["place"]},{word:"actor",categories:["profession"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"airport",categories:["transportation"]},{word:"ambulance",categories:["health"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apple",categories:["food"]},{word:"army",categories:["thing"]},{word:"australia",categories:["place"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"crayon",categories:["thing"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"england",categories:["place"]},{word:"evening",categories:["thing"]},{word:"eye",categories:["thing"]},{word:"family",categories:["family"]},{word:"finland",categories:["place"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"gold",categories:["thing"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"library",categories:["place"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"microphone",categories:["thing"]},{word:"monkey",categories:["animals"]},{word:"morning",categories:["thing"]},{word:"motorcycle",categories:["transportation"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["thing"]},{word:"notebook",categories:["thing"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"ghost",categories:["thing"]},{word:"painting",categories:["media"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"portugal",categories:["place"]},{word:"potato",categories:["food"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scooter",categories:["transportation"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"soccer",categories:["sports"]},{word:"spoon",categories:["thing"]},{word:"stone",categories:["thing"]},{word:"sugar",categories:["food"]},{word:"sweden",categories:["place"]},{word:"teacher",categories:["education"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"thailand",categories:["place"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"truck",categories:["transportation"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vulture",categories:["animals"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"wire",categories:["thing"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"zebra",categories:["animals"]},{word:"zoo",categories:["animals"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]}],adjective:[{word:"attractive",categories:["appearance"]},{word:"bald",categories:["appearance"]},{word:"beautiful",categories:["appearance"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"dazzling",categories:["appearance"]},{word:"drab",categories:["appearance"]},{word:"elegant",categories:["appearance"]},{word:"fancy",categories:["appearance"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"handsome",categories:["appearance"]},{word:"long",categories:["appearance"]},{word:"magnificent",categories:["appearance"]},{word:"muscular",categories:["appearance"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"quaint",categories:["appearance"]},{word:"scruffy",categories:["appearance"]},{word:"shapely",categories:["appearance"]},{word:"short",categories:["appearance"]},{word:"skinny",categories:["appearance"]},{word:"stocky",categories:["appearance"]},{word:"ugly",categories:["appearance"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"black",categories:["color"]},{word:"blue",categories:["color"]},{word:"gray",categories:["color"]},{word:"green",categories:["color"]},{word:"icy",categories:["color"]},{word:"lemon",categories:["color"]},{word:"mango",categories:["color"]},{word:"orange",categories:["color"]},{word:"purple",categories:["color"]},{word:"red",categories:["color"]},{word:"salmon",categories:["color"]},{word:"white",categories:["color"]},{word:"yellow",categories:["color"]},{word:"alive",categories:["condition"]},{word:"better",categories:["condition"]},{word:"careful",categories:["condition"]},{word:"clever",categories:["condition"]},{word:"dead",categories:["condition"]},{word:"easy",categories:["condition"]},{word:"famous",categories:["condition"]},{word:"gifted",categories:["condition"]},{word:"hallowed",categories:["condition"]},{word:"helpful",categories:["condition"]},{word:"important",categories:["condition"]},{word:"inexpensive",categories:["condition"]},{word:"mealy",categories:["condition"]},{word:"mushy",categories:["condition"]},{word:"odd",categories:["condition"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"rich",categories:["condition"]},{word:"shy",categories:["condition"]},{word:"tender",categories:["condition"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"vast",categories:["condition"]},{word:"wrong",categories:["condition"]},{word:"aggressive",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"delightful",categories:["personality"]},{word:"eager",categories:["personality"]},{word:"faithful",categories:["personality"]},{word:"gentle",categories:["personality"]},{word:"happy",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"kind",categories:["personality"]},{word:"lively",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"obedient",categories:["personality"]},{word:"polite",categories:["personality"]},{word:"proud",categories:["personality"]},{word:"silly",categories:["personality"]},{word:"thankful",categories:["personality"]},{word:"victorious",categories:["personality"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"zealous",categories:["personality"]},{word:"angry",categories:["personality"]},{word:"bewildered",categories:["personality"]},{word:"clumsy",categories:["personality"]},{word:"defeated",categories:["personality"]},{word:"embarrassed",categories:["personality"]},{word:"fierce",categories:["personality"]},{word:"grumpy",categories:["personality"]},{word:"helpless",categories:["personality"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"lazy",categories:["personality"]},{word:"mysterious",categories:["personality"]},{word:"nervous",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"panicky",categories:["personality"]},{word:"pitiful",categories:["personality"]},{word:"repulsive",categories:["personality"]},{word:"scary",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"uptight",categories:["personality"]},{word:"worried",categories:["personality"]},{word:"broad",categories:["shapes"]},{word:"chubby",categories:["shapes"]},{word:"crooked",categories:["shapes"]},{word:"curved",categories:["shapes"]},{word:"deep",categories:["shapes"]},{word:"flat",categories:["shapes"]},{word:"high",categories:["shapes"]},{word:"hollow",categories:["shapes"]},{word:"low",categories:["shapes"]},{word:"narrow",categories:["shapes"]},{word:"refined",categories:["shapes"]},{word:"round",categories:["shapes"]},{word:"shallow",categories:["shapes"]},{word:"skinny",categories:["shapes"]},{word:"square",categories:["shapes"]},{word:"steep",categories:["shapes"]},{word:"straight",categories:["shapes"]},{word:"wide",categories:["shapes"]},{word:"big",categories:["size"]},{word:"colossal",categories:["size"]},{word:"fat",categories:["size"]},{word:"gigantic",categories:["size"]},{word:"great",categories:["size"]},{word:"huge",categories:["size"]},{word:"immense",categories:["size"]},{word:"large",categories:["size"]},{word:"little",categories:["size"]},{word:"mammoth",categories:["size"]},{word:"massive",categories:["size"]},{word:"microscopic",categories:["size"]},{word:"miniature",categories:["size"]},{word:"petite",categories:["size"]},{word:"puny",categories:["size"]},{word:"scrawny",categories:["size"]},{word:"short",categories:["size"]},{word:"small",categories:["size"]},{word:"tall",categories:["size"]},{word:"teeny",categories:["size"]},{word:"tiny",categories:["size"]},{word:"crashing",categories:["sounds"]},{word:"deafening",categories:["sounds"]},{word:"echoing",categories:["sounds"]},{word:"faint",categories:["sounds"]},{word:"harsh",categories:["sounds"]},{word:"hissing",categories:["sounds"]},{word:"howling",categories:["sounds"]},{word:"loud",categories:["sounds"]},{word:"melodic",categories:["sounds"]},{word:"noisy",categories:["sounds"]},{word:"purring",categories:["sounds"]},{word:"quiet",categories:["sounds"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"rhythmic",categories:["sounds"]},{word:"screeching",categories:["sounds"]},{word:"shrilling",categories:["sounds"]},{word:"squeaking",categories:["sounds"]},{word:"thundering",categories:["sounds"]},{word:"tinkling",categories:["sounds"]},{word:"wailing",categories:["sounds"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"ancient",categories:["time"]},{word:"brief",categories:["time"]},{word:"early",categories:["time"]},{word:"fast",categories:["time"]},{word:"future",categories:["time"]},{word:"late",categories:["time"]},{word:"long",categories:["time"]},{word:"modern",categories:["time"]},{word:"old",categories:["time"]},{word:"prehistoric",categories:["time"]},{word:"quick",categories:["time"]},{word:"rapid",categories:["time"]},{word:"short",categories:["time"]},{word:"slow",categories:["time"]},{word:"swift",categories:["time"]},{word:"young",categories:["time"]},{word:"acidic",categories:["taste"]},{word:"bitter",categories:["taste"]},{word:"cool",categories:["taste"]},{word:"creamy",categories:["taste"]},{word:"delicious",categories:["taste"]},{word:"disgusting",categories:["taste"]},{word:"fresh",categories:["taste"]},{word:"greasy",categories:["taste"]},{word:"juicy",categories:["taste"]},{word:"hot",categories:["taste"]},{word:"moldy",categories:["taste"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"putrid",categories:["taste"]},{word:"rancid",categories:["taste"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"sour",categories:["taste"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"stale",categories:["taste"]},{word:"sweet",categories:["taste"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"yummy",categories:["taste"]},{word:"breezy",categories:["touch"]},{word:"bumpy",categories:["touch"]},{word:"chilly",categories:["touch"]},{word:"cold",categories:["touch"]},{word:"cool",categories:["touch"]},{word:"cuddly",categories:["touch"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dirty",categories:["touch"]},{word:"dry",categories:["touch"]},{word:"flaky",categories:["touch"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"greasy",categories:["touch"]},{word:"hot",categories:["touch"]},{word:"icy",categories:["touch"]},{word:"loose",categories:["touch"]},{word:"melted",categories:["touch"]},{word:"prickly",categories:["touch"]},{word:"rough",categories:["touch"]},{word:"shaggy",categories:["touch"]},{word:"sharp",categories:["touch"]},{word:"slimy",categories:["touch"]},{word:"sticky",categories:["touch"]},{word:"strong",categories:["touch"]},{word:"tight",categories:["touch"]},{word:"uneven",categories:["touch"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"wooden",categories:["touch"]},{word:"abundant",categories:["quantity"]},{word:"billions",categories:["quantity"]},{word:"enough",categories:["quantity"]},{word:"few",categories:["quantity"]},{word:"full",categories:["quantity"]},{word:"hundreds",categories:["quantity"]},{word:"incalculable",categories:["quantity"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["quantity"]},{word:"many",categories:["quantity"]},{word:"most",categories:["quantity"]},{word:"millions",categories:["quantity"]},{word:"numerous",categories:["quantity"]},{word:"scarce",categories:["quantity"]},{word:"some",categories:["quantity"]},{word:"sparse",categories:["quantity"]},{word:"substantial",categories:["quantity"]},{word:"thousands",categories:["quantity"]}]},t.getWordsByCategory=function(e,r){void 0===r&&(r=[]);for(var o=new Set(r),n=[],i=0,a=t.wordList[e];i{"status"in s&&a(0,t=s.status),"error"in s&&a(1,e=s.error)},[t,e]}export default class extends s{constructor(s){super(),r(this,s,g,v,a,{status:0,error:1})}}export{E as load}; diff --git a/docs/_app/pages/__layout.svelte-df679902.js b/docs/_app/pages/__layout.svelte-df679902.js new file mode 100644 index 00000000..8c770064 --- /dev/null +++ b/docs/_app/pages/__layout.svelte-df679902.js @@ -0,0 +1 @@ +import{S as s,i as a,s as e,D as t,e as l,c as n,a as c,d as o,b as r,f as u,E as i,v as $,r as h}from"../chunks/vendor-a9bf48e1.js";function f(s){let a,e;const f=s[1].default,p=t(f,s,s[0],null);return{c(){a=l("main"),p&&p.c(),this.h()},l(s){a=n(s,"MAIN",{class:!0});var e=c(a);p&&p.l(e),e.forEach(o),this.h()},h(){r(a,"class","h-screen")},m(s,t){u(s,a,t),p&&p.m(a,null),e=!0},p(s,[a]){p&&p.p&&(!e||1&a)&&i(p,f,s,s[0],a,null,null)},i(s){e||($(p,s),e=!0)},o(s){h(p,s),e=!1},d(s){s&&o(a),p&&p.d(s)}}}function p(s,a,e){let{$$slots:t={},$$scope:l}=a;return s.$$set=s=>{"$$scope"in s&&e(0,l=s.$$scope)},[l,t]}export default class extends s{constructor(s){super(),a(this,s,p,f,e,{})}} diff --git a/docs/_app/pages/edit.svelte-4648ecb2.js b/docs/_app/pages/edit.svelte-4648ecb2.js new file mode 100644 index 00000000..1da13aeb --- /dev/null +++ b/docs/_app/pages/edit.svelte-4648ecb2.js @@ -0,0 +1 @@ +import{S as e,i as t,s as a,e as n,c as s,a as l,d as i,b as o,f as r,G as c,I as h,z as d,J as f,k as u,t as m,n as g,g as p,F as v,K as $,L as w,M as x,N as b,O as E,P as y,Q as k,h as I,R as D,T as C,U as O,v as T,B as S,r as A,u as M,V,D as _,E as R,j as N,m as L,o as P,W as U,w as B,X as j,Y as G,Z as H,_ as Y,$ as z,a0 as J,a1 as q,a2 as F,a3 as K,C as Z,a4 as W,a5 as Q,a6 as X,a7 as ee,H as te,a8 as ae}from"../chunks/vendor-a9bf48e1.js";import{u as ne,b as se,c as le,g as ie,V as oe,e as re,i as ce,s as he,a as de}from"../chunks/util-fb52efd4.js";import{g as fe}from"../chunks/navigation-20968cc5.js";import"../chunks/singletons-bb9012b7.js";function ue(e){let t;return{c(){t=n("div"),this.h()},l(e){t=s(e,"DIV",{class:!0}),l(t).forEach(i),this.h()},h(){o(t,"class","overflow-hidden")},m(a,n){r(a,t,n),e[7](t)},p:c,i:c,o:c,d(a){a&&i(t),e[7](null)}}}function me(e,t,a){var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,l){function i(e){try{r(n.next(e))}catch(t){l(t)}}function o(e){try{r(n.throw(e))}catch(t){l(t)}}function r(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}r((n=n.apply(e,t||[])).next())}))};let s,l,i=null,{text:o}=t,{language:r}=t,{editorOptions:c={value:o,language:r,scrollBeyondLastLine:!1,minimap:{enabled:!1},overviewRulerLanes:0}}=t,{errorMarkers:u=[]}=t;const m=h();return d((()=>n(void 0,void 0,void 0,(function*(){var e;a(6,l=monaco),(e=l).languages.register({id:"mermaid"}),e.languages.setMonarchTokensProvider("mermaid",{typeKeywords:["graph","stateDiagram","sequenceDiagram","classDiagram","pie","flowchart","gantt"],keywords:["patricipant","as"],arrows:["---","===","--\x3e","==>"],tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword"}}],[/[-=>ox]+/,{cases:{"@arrows":"transition"}}],[/[\[\{\(}]+.+?[\)\]\}]+/,"string"],[/\".*\"/,"string"]]},whitespace:[[/[ \t\r\n]+/,"white"],[/\%\%.*$/,"comment"]]}),e.editor.defineTheme("myCoolTheme",{base:"vs",inherit:!1,rules:[{token:"keyword",foreground:"880000",fontStyle:"bold"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"string",foreground:"AA8500"},{token:"transition",foreground:"008800",fontStyle:"bold"},{token:"delimiter.bracket",foreground:"000000",fontStyle:"bold"}]}),e.languages.registerCompletionItemProvider("mermaid",{provideCompletionItems:()=>({suggestions:[{label:"simpleText",kind:e.languages.CompletionItemKind.Text,insertText:"simpleText"},{label:"testing",kind:e.languages.CompletionItemKind.Keyword,insertText:"testing(${1:condition})",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"ifelse",kind:e.languages.CompletionItemKind.Snippet,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"If-Else Statement"}]})}),a(5,s=l.editor.create(i,c)),s.onDidChangeModelContent((()=>n(void 0,void 0,void 0,(function*(){m("update",{text:s.getValue()})}))));return new ResizeObserver((e=>{s.layout({height:e[0].contentRect.height,width:e[0].contentRect.width})})).observe(i.parentElement),()=>{s.dispose()}})))),e.$$set=e=>{"text"in e&&a(1,o=e.text),"language"in e&&a(2,r=e.language),"editorOptions"in e&&a(3,c=e.editorOptions),"errorMarkers"in e&&a(4,u=e.errorMarkers)},e.$$.update=()=>{100&e.$$.dirty&&(null==l||l.editor.setModelLanguage(s.getModel(),r)),34&e.$$.dirty&&(null==s||s.setValue(o)),112&e.$$.dirty&&(null==l||l.editor.setModelMarkers(s.getModel(),"test",u))},[i,o,r,c,u,s,l,function(e){f[e?"unshift":"push"]((()=>{i=e,a(0,i)}))}]}class ge extends e{constructor(e){super(),t(this,e,me,ue,a,{text:1,language:2,editorOptions:3,errorMarkers:4})}}function pe(e,t,a){const n=e.slice();return n[1]=t[a].title,n[2]=t[a].href,n[3]=t[a].icon,n}function ve(e){let t,a,h,d,f,$=e[1]+"",w=e[3]&&function(e){let t;return{c(){t=n("i"),this.h()},l(e){t=s(e,"I",{class:!0}),l(t).forEach(i),this.h()},h(){o(t,"class",b(e[3])+" svelte-1q1rl80")},m(e,a){r(e,t,a)},p:c,d(e){e&&i(t)}}}(e);return{c(){t=n("li"),a=n("a"),w&&w.c(),h=u(),d=m($),f=u(),this.h()},l(e){t=s(e,"LI",{});var n=l(t);a=s(n,"A",{class:!0,target:!0,href:!0});var o=l(a);w&&w.l(o),h=g(o),d=p(o,$),o.forEach(i),f=g(n),n.forEach(i),this.h()},h(){o(a,"class","nav-btn svelte-1q1rl80"),o(a,"target","_blank"),o(a,"href",e[2])},m(e,n){r(e,t,n),v(t,a),w&&w.m(a,null),v(a,h),v(a,d),v(t,f)},p(e,t){e[3]&&w.p(e,t)},d(e){e&&i(t),w&&w.d()}}}function $e(e){let t,a,h,d,f,b,E,y,k,I,D,C,O,T,S,A,M,V,_,R,N=e[0],L=[];for(let n=0;n{a||(a=C(t,O,{},!0)),a.run(1)})),c=!0)},o(e){a||(a=C(t,O,{},!1)),a.run(0),c=!1},d(e){e&&i(t),x(d,e),e&&a&&a.end()}}}function ke(e){let t,a,c,h,d,f,$,w,x,E=e[10].title+"";function D(){return e[7](e[10])}return{c(){t=n("li"),a=n("div"),c=n("i"),d=m(E),$=u(),this.h()},l(e){t=s(e,"LI",{class:!0});var n=l(t);a=s(n,"DIV",{class:!0});var o=l(a);c=s(o,"I",{class:!0}),l(c).forEach(i),d=p(o,E),o.forEach(i),$=g(n),n.forEach(i),this.h()},h(){o(c,"class",h=b(e[10].icon)+" svelte-1j9xzww"),o(a,"class",f="text cursor-pointer font-semibold min-w-16 w-auto px-2 py-1 -mb-4 rounded-t block leading-normal "+(e[4]===e[10].id?"text-indigo-500 bg-white border-white":"text-white bg-indigo-500 border-indigo-500 hover:bg-indigo-600")),o(t,"class","mr-2 last:mr-0 w-28 flex-auto text-center")},m(e,n){r(e,t,n),v(t,a),v(a,c),v(a,d),v(t,$),w||(x=y(a,"click",k(D)),w=!0)},p(t,n){e=t,4&n&&h!==(h=b(e[10].icon)+" svelte-1j9xzww")&&o(c,"class",h),4&n&&E!==(E=e[10].title+"")&&I(d,E),20&n&&f!==(f="text cursor-pointer font-semibold min-w-16 w-auto px-2 py-1 -mb-4 rounded-t block leading-normal "+(e[4]===e[10].id?"text-indigo-500 bg-white border-white":"text-white bg-indigo-500 border-indigo-500 hover:bg-indigo-600"))&&o(a,"class",f)},d(e){e&&i(t),w=!1,x()}}}function Ie(e){let t,a,c,h,d,f,$,w,x=e[1]&&Ee(e),b=e[0]&&e[2]&&ye(e);return{c(){t=n("div"),a=n("span"),x&&x.c(),c=u(),h=m(e[3]),d=u(),b&&b.c(),this.h()},l(n){t=s(n,"DIV",{class:!0});var o=l(t);a=s(o,"SPAN",{class:!0});var r=l(a);x&&x.l(r),c=g(r),h=p(r,e[3]),r.forEach(i),d=g(o),b&&b.l(o),o.forEach(i),this.h()},h(){o(a,"class","text-white mr-2 font-semibold"),o(t,"class","flex cursor-default")},m(n,s){r(n,t,s),v(t,a),x&&x.m(a,null),v(a,c),v(a,h),v(t,d),b&&b.m(t,null),f=!0,$||(w=y(a,"click",k(e[6])),$=!0)},p(e,[n]){e[1]?x?x.p(e,n):(x=Ee(e),x.c(),x.m(a,c)):x&&(x.d(1),x=null),(!f||8&n)&&I(h,e[3]),e[0]&&e[2]?b?(b.p(e,n),5&n&&T(b,1)):(b=ye(e),b.c(),T(b,1),b.m(t,null)):b&&(S(),A(b,1,1,(()=>{b=null})),M())},i(e){f||(T(b),f=!0)},o(e){A(b),f=!1},d(e){e&&i(t),x&&x.d(),b&&b.d(),$=!1,w()}}}function De(e,t,a){var n;let{isCloseable:s=!0}=t,{tabs:l=[]}=t,{title:i}=t,{isOpen:o=!1}=t,r=null===(n=l[0])||void 0===n?void 0:n.id;const c=h(),d=e=>{a(4,r=e.id),c("select",e)};return e.$$set=e=>{"isCloseable"in e&&a(1,s=e.isCloseable),"tabs"in e&&a(2,l=e.tabs),"title"in e&&a(3,i=e.title),"isOpen"in e&&a(0,o=e.isOpen)},[o,s,l,i,r,d,()=>a(0,o=!o),e=>d(e)]}class Ce extends e{constructor(e){super(),t(this,e,De,Ie,a,{isCloseable:1,tabs:2,title:3,isOpen:0})}}const Oe=e=>({}),Te=e=>({});function Se(e){let t,a,c;const h=e[5].default,d=_(h,e,e[4],null);return{c(){t=n("div"),d&&d.c(),this.h()},l(e){t=s(e,"DIV",{class:!0});var a=l(t);d&&d.l(a),a.forEach(i),this.h()},h(){o(t,"class","flex-grow overflow-auto")},m(e,a){r(e,t,a),d&&d.m(t,null),c=!0},p(e,t){d&&d.p&&(!c||16&t)&&R(d,h,e,e[4],t,null,null)},i(e){c||(T(d,e),D((()=>{a||(a=C(t,j,{},!0)),a.run(1)})),c=!0)},o(e){A(d,e),a||(a=C(t,j,{},!1)),a.run(0),c=!1},d(e){e&&i(t),d&&d.d(e),e&&a&&a.end()}}}function Ae(e){let t,a,c,h,d,m,p,$,w,x,b;function E(t){e[6](t)}let k={tabs:e[2],title:e[3],isCloseable:e[1]};void 0!==e[0]&&(k.isOpen=e[0]),h=new Ce({props:k}),f.push((()=>V(h,"isOpen",E))),h.$on("select",e[7]);const I=e[5].actions,D=_(I,e,e[4],Te);let C=e[0]&&Se(e);return{c(){t=n("div"),a=n("div"),c=n("div"),N(h.$$.fragment),m=u(),p=n("div"),D&&D.c(),$=u(),C&&C.c(),this.h()},l(e){t=s(e,"DIV",{class:!0});var n=l(t);a=s(n,"DIV",{class:!0});var o=l(a);c=s(o,"DIV",{class:!0});var r=l(c);L(h.$$.fragment,r),m=g(r),p=s(r,"DIV",{class:!0});var d=l(p);D&&D.l(d),d.forEach(i),r.forEach(i),o.forEach(i),$=g(n),C&&C.l(n),n.forEach(i),this.h()},h(){o(p,"class","flex gap-x-4 items-center text-white"),o(c,"class","flex justify-between"),o(a,"class","bg-indigo-400 border-gray-400 p-2 flex-none"),o(t,"class","bg-white rounded overflow-hidden shadow m-2 flex-grow flex flex-col ")},m(n,s){r(n,t,s),v(t,a),v(a,c),P(h,c,null),v(c,m),v(c,p),D&&D.m(p,null),v(t,$),C&&C.m(t,null),w=!0,x||(b=y(a,"click",e[8]),x=!0)},p(e,[a]){const n={};4&a&&(n.tabs=e[2]),8&a&&(n.title=e[3]),2&a&&(n.isCloseable=e[1]),!d&&1&a&&(d=!0,n.isOpen=e[0],U((()=>d=!1))),h.$set(n),D&&D.p&&(!w||16&a)&&R(D,I,e,e[4],a,Oe,Te),e[0]?C?(C.p(e,a),1&a&&T(C,1)):(C=Se(e),C.c(),T(C,1),C.m(t,null)):C&&(S(),A(C,1,1,(()=>{C=null})),M())},i(e){w||(T(h.$$.fragment,e),T(D,e),T(C),w=!0)},o(e){A(h.$$.fragment,e),A(D,e),A(C),w=!1},d(e){e&&i(t),B(h),D&&D.d(e),C&&C.d(),x=!1,b()}}}function Me(e,t,a){let{$$slots:n={},$$scope:s}=t,{isCloseable:l=!0}=t,{isOpen:i=!0}=t,{tabs:o=[]}=t,{title:r}=t;return e.$$set=e=>{"isCloseable"in e&&a(1,l=e.isCloseable),"isOpen"in e&&a(0,i=e.isOpen),"tabs"in e&&a(2,o=e.tabs),"title"in e&&a(3,r=e.title),"$$scope"in e&&a(4,s=e.$$scope)},e.$$.update=()=>{3&e.$$.dirty&&a(0,i=!l||i)},[i,l,o,r,s,n,function(e){i=e,a(0,i),a(1,l)},function(t){G(e,t)},()=>a(0,i=!i)]}class Ve extends e{constructor(e){super(),t(this,e,Me,Ae,a,{isCloseable:1,isOpen:0,tabs:2,title:3})}}function _e(e,t,a){const n=e.slice();return n[3]=t[a],n}function Re(e){let t,a,c,h,d=e[3]+"";function f(){return e[2](e[3])}return{c(){t=n("button"),a=m(d),this.h()},l(e){t=s(e,"BUTTON",{class:!0});var n=l(t);a=p(n,d),n.forEach(i),this.h()},h(){o(t,"class","rounded p-2 bg-indigo-400 shadow flex-auto text-white hover:bg-indigo-500")},m(e,n){r(e,t,n),v(t,a),c||(h=y(t,"click",f),c=!0)},p(t,a){e=t},d(e){e&&i(t),c=!1,h()}}}function Ne(e){let t,a=Object.keys(e[0]),c=[];for(let n=0;n>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John--\x3e>-Alice: Hi Alice, I can hear you!\n John--\x3e>-Alice: I feel great!\n ","Class Diagram":"classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n ","State Diagram":"stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n ","Gantt Chart":"gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n ","Pie Chart":'pie title Pets adopted by volunteers\n "Dogs" : 386\n "Cats" : 85\n "Rats" : 15\n ',"ER Diagram":'erDiagram\n CUSTOMER }|..|{ DELIVERY-ADDRESS : has\n CUSTOMER ||--o{ ORDER : places\n CUSTOMER ||--o{ INVOICE : "liable for"\n DELIVERY-ADDRESS ||--o{ ORDER : receives\n INVOICE ||--|{ ORDER : covers\n ORDER ||--|{ ORDER-ITEM : includes\n PRODUCT-CATEGORY ||--|{ PRODUCT : contains\n PRODUCT ||--o{ ORDER-ITEM : "ordered in"\n ',"Git Graph":'gitGraph:\noptions\n{\n "nodeSpacing": 150,\n "nodeRadius": 10\n}\nend\ncommit\nbranch newbranch\ncheckout newbranch\ncommit\ncommit\ncheckout master\ncommit\ncommit\nmerge newbranch\n\n ',"User Journey":" journey\n title My working day\n section Go to work\n Make tea: 5: Me\n Go upstairs: 3: Me\n Do work: 1: Me, Cat\n section Go home\n Go downstairs: 5: Me\n Sit down: 3: Me\n "},a=e=>{ne(t[e],!0,!0)};return[t,a,e=>a(e)]}class Ue extends e{constructor(e){super(),t(this,e,Pe,Le,a,{})}}function Be(e){let t,a,l;return{c(){t=n("input"),this.h()},l(e){t=s(e,"INPUT",{id:!0,type:!0,min:!0,max:!0}),this.h()},h(){o(t,"id","height"),o(t,"type","number"),o(t,"min","3"),o(t,"max","10000")},m(n,s){r(n,t,s),H(t,e[4]),a||(l=y(t,"input",e[14]),a=!0)},p(e,a){16&a&&Y(t.value)!==e[4]&&H(t,e[4])},d(e){e&&i(t),a=!1,l()}}}function je(e){let t,a,h,d,f,$,w,x,b,E,k,I,D,C,O,T,S,A,M,V,_,R,N,L,P,U,B,j,G,H,Y,J,q,F,K,Z,W,Q,X,ee,te,ae,ne,se,le,ie=e[5](),oe=ie&&function(e){let t,a,h,d,f;return{c(){t=n("button"),a=n("i"),h=m(" Copy Image"),this.h()},l(e){t=s(e,"BUTTON",{class:!0});var n=l(t);a=s(n,"I",{class:!0}),l(a).forEach(i),h=p(n," Copy Image"),n.forEach(i),this.h()},h(){o(a,"class","fas fa-clipboard"),o(t,"class","btn w-full svelte-1ygdo6x")},m(n,s){r(n,t,s),v(t,a),v(t,h),d||(f=y(t,"click",e[6]),d=!0)},p:c,d(e){e&&i(t),d=!1,f()}}}(e),re="auto"!==e[3]&&Be(e);return{c(){t=n("div"),oe&&oe.c(),a=u(),h=n("button"),d=n("i"),f=m(" PNG"),$=u(),w=n("button"),x=n("i"),b=m(" SVG"),E=u(),k=n("button"),I=n("a"),D=n("i"),C=m(" PNG"),O=u(),T=n("button"),S=n("a"),A=n("i"),M=m(" SVG"),V=u(),_=n("div"),R=m("PNG size\n\t\t\t"),N=n("input"),L=u(),P=n("label"),U=m("Auto"),B=u(),j=n("input"),G=u(),H=n("label"),Y=m("Width"),J=u(),q=n("input"),F=u(),K=n("label"),Z=m("Height"),W=u(),re&&re.c(),Q=u(),X=n("div"),ee=n("label"),te=m("Copy Markdown"),ae=u(),ne=n("input"),this.h()},l(e){t=s(e,"DIV",{class:!0});var n=l(t);oe&&oe.l(n),a=g(n),h=s(n,"BUTTON",{class:!0});var o=l(h);d=s(o,"I",{class:!0}),l(d).forEach(i),f=p(o," PNG"),o.forEach(i),$=g(n),w=s(n,"BUTTON",{class:!0});var r=l(w);x=s(r,"I",{class:!0}),l(x).forEach(i),b=p(r," SVG"),r.forEach(i),E=g(n),k=s(n,"BUTTON",{class:!0});var c=l(k);I=s(c,"A",{class:!0,target:!0,href:!0});var u=l(I);D=s(u,"I",{class:!0}),l(D).forEach(i),C=p(u," PNG"),u.forEach(i),c.forEach(i),O=g(n),T=s(n,"BUTTON",{class:!0});var m=l(T);S=s(m,"A",{class:!0,target:!0,href:!0});var v=l(S);A=s(v,"I",{class:!0}),l(A).forEach(i),M=p(v," SVG"),v.forEach(i),m.forEach(i),V=g(n),_=s(n,"DIV",{class:!0});var y=l(_);R=p(y,"PNG size\n\t\t\t"),N=s(y,"INPUT",{type:!0,value:!0,id:!0}),L=g(y),P=s(y,"LABEL",{for:!0});var z=l(P);U=p(z,"Auto"),z.forEach(i),B=g(y),j=s(y,"INPUT",{type:!0,value:!0,id:!0}),G=g(y),H=s(y,"LABEL",{for:!0});var se=l(H);Y=p(se,"Width"),se.forEach(i),J=g(y),q=s(y,"INPUT",{type:!0,value:!0,id:!0}),F=g(y),K=s(y,"LABEL",{for:!0});var le=l(K);Z=p(le,"Height"),le.forEach(i),W=g(y),re&&re.l(y),y.forEach(i),Q=g(n),X=s(n,"DIV",{class:!0});var ie=l(X);ee=s(ie,"LABEL",{for:!0});var ce=l(ee);te=p(ce,"Copy Markdown"),ce.forEach(i),ae=g(ie),ne=s(ie,"INPUT",{class:!0,id:!0,type:!0,value:!0}),ie.forEach(i),n.forEach(i),this.h()},h(){o(d,"class","fas fa-download"),o(h,"class","btn flex-auto svelte-1ygdo6x"),o(x,"class","fas fa-download"),o(w,"class","btn flex-auto svelte-1ygdo6x"),o(D,"class","fas fa-external-link-alt"),o(I,"class","link-style"),o(I,"target","_blank"),o(I,"href",e[0]),o(k,"class","btn flex-auto svelte-1ygdo6x"),o(A,"class","fas fa-external-link-alt"),o(S,"class","link-style"),o(S,"target","_blank"),o(S,"href",e[1]),o(T,"class","btn flex-auto svelte-1ygdo6x"),o(N,"type","radio"),N.__value="auto",N.value=N.__value,o(N,"id","autosize"),e[11][0].push(N),o(P,"for","autosize"),o(j,"type","radio"),j.__value="width",j.value=j.__value,o(j,"id","width-active"),e[11][0].push(j),o(H,"for","width"),o(q,"type","radio"),q.__value="height",q.value=q.__value,o(q,"id","height-active"),e[11][0].push(q),o(K,"for","height"),o(_,"class","flex gap-2 items-center"),o(ee,"for","markdown"),o(ne,"class","flex-1"),o(ne,"id","markdown"),o(ne,"type","text"),ne.value=e[2],o(X,"class","w-full flex gap-2 items-center"),o(t,"class","flex flex-wrap gap-2 m-2")},m(n,s){r(n,t,s),oe&&oe.m(t,null),v(t,a),v(t,h),v(h,d),v(h,f),v(t,$),v(t,w),v(w,x),v(w,b),v(t,E),v(t,k),v(k,I),v(I,D),v(I,C),v(t,O),v(t,T),v(T,S),v(S,A),v(S,M),v(t,V),v(t,_),v(_,R),v(_,N),N.checked=N.__value===e[3],v(_,L),v(_,P),v(P,U),v(_,B),v(_,j),j.checked=j.__value===e[3],v(_,G),v(_,H),v(H,Y),v(_,J),v(_,q),q.checked=q.__value===e[3],v(_,F),v(_,K),v(K,Z),v(_,W),re&&re.m(_,null),v(t,Q),v(t,X),v(X,ee),v(ee,te),v(X,ae),v(X,ne),se||(le=[y(h,"click",e[7]),y(w,"click",e[8]),y(N,"change",e[10]),y(j,"change",e[12]),y(q,"change",e[13]),y(ne,"click",e[9])],se=!0)},p(e,t){ie&&oe.p(e,t),1&t&&o(I,"href",e[0]),2&t&&o(S,"href",e[1]),8&t&&(N.checked=N.__value===e[3]),8&t&&(j.checked=j.__value===e[3]),8&t&&(q.checked=q.__value===e[3]),"auto"!==e[3]?re?re.p(e,t):(re=Be(e),re.c(),re.m(_,null)):re&&(re.d(1),re=null),4&t&&ne.value!==e[2]&&(ne.value=e[2])},d(a){a&&i(t),oe&&oe.d(),e[11][0].splice(e[11][0].indexOf(N),1),e[11][0].splice(e[11][0].indexOf(j),1),e[11][0].splice(e[11][0].indexOf(q),1),re&&re.d(),se=!1,z(le)}}}function Ge(e){let t,a;return t=new Ve({props:{title:"Actions",isOpen:!1,$$slots:{default:[je]},$$scope:{ctx:e}}}),{c(){N(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,n){P(t,e,n),a=!0},p(e,[a]){const n={};2097183&a&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){a||(T(t.$$.fragment,e),a=!0)},o(e){A(t.$$.fragment,e),a=!1},d(e){B(t,e)}}}function He(e,t,a){const n=()=>{const e=document.getElementById("container").innerHTML.replaceAll("
","
");return J(e)},s=(e,t)=>{const a=document.createElement("canvas"),s=document.querySelector("#container svg").getBoundingClientRect();if(a.width=s.width,a.height=s.height,"width"===d){const e=s.height/s.width;a.width=f,a.height=f*e}else if("height"===d){const e=s.width/s.height;a.width=f*e,a.height=f}const l=a.getContext("2d");l.fillStyle="white",l.fillRect(0,0,a.width,a.height);const i=new Image;i.onload=t(a,l,i),i.src=`data:image/svg+xml;base64,${n()}`,e.stopPropagation(),e.preventDefault()},l=(e,t)=>{const a=document.createElement("a");a.download=e,a.href=t,a.click(),a.remove()},i=(e,t,a)=>()=>{t.drawImage(a,0,0,e.width,e.height),l(`mermaid-diagram-${q().format("YYYYMMDDHHmmss")}.png`,e.toDataURL("image/png").replace("image/png","image/octet-stream"))},o=(e,t,a)=>()=>{t.drawImage(a,0,0,e.width,e.height),e.toBlob((e=>{try{navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(t){console.error(t)}}))};let r,c,h,d="auto",f=1080;se.subscribe((e=>{a(0,r=`https://mermaid.ink/img/${e}`),a(1,c=`https://mermaid.ink/svg/${e}`),a(2,h=`[![](${r})](${window.location.protocol}//${window.location.host}${window.location.pathname}/edit#${e})`)}));return[r,c,h,d,f,()=>null===window||void 0===window?void 0:window.hasOwnProperty("ClipboardItem"),e=>{s(e,o)},e=>{s(e,i)},e=>{l(`mermaid-diagram-${q().format("YYYYMMDDHHmmss")}.svg`,`data:image/svg+xml;base64,${n()}`)},e=>{e.target.select(),document.execCommand("Copy")},function(){d=this.__value,a(3,d)},[[]],function(){d=this.__value,a(3,d)},function(){d=this.__value,a(3,d)},function(){f=Y(this.value),a(4,f)}]}class Ye extends e{constructor(e){super(),t(this,e,He,Ge,a,{})}}const ze=F(Z(!0),K(),"autoHistoryMode"),Je=F(Z([]),K(),"autoHistoryStore"),qe=F(Z([]),K(),"manualHistoryStore"),Fe=W([ze,Je,qe],(([e,t,a],n)=>{n(e?t:a)}));function Ke(e,t,a){const n=e.slice();return n[14]=t[a].state,n[15]=t[a].time,n[16]=t[a].name,n}function Ze(e){let t,a,c,h,d,f,$,w,x,b,E,k,D,C,O,T,S,A,M,V,_,R=e[16]+"",N=e[7](e[15])+"";function L(){return e[10](e[14])}function P(){return e[11](e[15])}return{c(){t=n("li"),a=n("div"),c=n("div"),h=n("div"),d=n("span"),f=m(R),$=u(),w=n("span"),x=m(N),b=u(),E=n("div"),k=n("button"),D=n("i"),C=m(" Restore"),O=u(),T=n("button"),S=n("i"),A=m(" Delete"),M=u(),this.h()},l(e){t=s(e,"LI",{class:!0});var n=l(t);a=s(n,"DIV",{class:!0});var o=l(a);c=s(o,"DIV",{class:!0});var r=l(c);h=s(r,"DIV",{class:!0});var u=l(h);d=s(u,"SPAN",{});var m=l(d);f=p(m,R),m.forEach(i),$=g(u),w=s(u,"SPAN",{class:!0});var v=l(w);x=p(v,N),v.forEach(i),u.forEach(i),r.forEach(i),b=g(o),E=s(o,"DIV",{class:!0});var y=l(E);k=s(y,"BUTTON",{class:!0});var I=l(k);D=s(I,"I",{class:!0}),l(D).forEach(i),C=p(I," Restore"),I.forEach(i),O=g(y),T=s(y,"BUTTON",{class:!0});var V=l(T);S=s(V,"I",{class:!0}),l(S).forEach(i),A=p(V," Delete"),V.forEach(i),y.forEach(i),o.forEach(i),M=g(n),n.forEach(i),this.h()},h(){o(w,"class","text-gray-400 text-sm"),o(h,"class","flex flex-col"),o(c,"class","flex-1"),o(D,"class","fas fa-undo"),o(k,"class","rounded px-2 w-24 bg-green-200 hover:bg-green-300"),o(S,"class","fas fa-trash-alt"),o(T,"class","rounded px-2 w-24 bg-red-200 hover:bg-red-300"),o(E,"class","flex gap-2 content-center"),o(a,"class","flex"),o(t,"class","rounded p-2 shadow flex-col")},m(e,n){r(e,t,n),v(t,a),v(a,c),v(c,h),v(h,d),v(d,f),v(h,$),v(h,w),v(w,x),v(a,b),v(a,E),v(E,k),v(k,D),v(k,C),v(E,O),v(E,T),v(T,S),v(T,A),v(t,M),V||(_=[y(k,"click",L),y(T,"click",P)],V=!0)},p(t,a){e=t,2&a&&R!==(R=e[16]+"")&&I(f,R),2&a&&N!==(N=e[7](e[15])+"")&&I(x,N)},d(e){e&&i(t),V=!1,z(_)}}}function We(e){let t,a=e[1],c=[];for(let n=0;nV(t,"isOpen",s))),t.$on("select",e[2]),{c(){N(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,a){P(t,e,a),n=!0},p(e,[n]){const s={};524290&n&&(s.$$scope={dirty:n,ctx:e}),!a&&1&n&&(a=!0,s.isOpen=e[0],U((()=>a=!1))),t.$set(s)},i(e){n||(T(t.$$.fragment,e),n=!0)},o(e){A(t.$$.fragment,e),n=!1},d(e){B(t,e)}}}function et(e,t,a){let n,s;ee(e,le,(e=>a(13,n=e))),ee(e,Fe,(e=>a(1,s=e)));const l=(e=!1)=>{const t=ie();var a;(e=>{const t=X(e?Je:qe);return t.length>0?JSON.stringify(t[0].state):""})(e)!==t?((a={state:n,time:Date.now(),auto:e}).name=Q.generateSlug(2),a.auto?Je.update((e=>(30===e.length&&e.pop(),[a,...e]))):qe.update((e=>[a,...e]))):e||alert("State already saved.")},i=e=>{var t;(e||confirm("Clear all saved items?"))&&(t=e,(X(ze)?Je:qe).update((e=>e.filter((e=>t&&e.time!=t)))))},o=e=>{le.set(Object.assign(Object.assign({},e),{updateEditor:!0,updateDiagram:!0}))};d((()=>{ze.set(!1),setInterval((()=>{l(!0)}),6e4)}));let r=!0;return[r,s,e=>{ze.set("timeline"===e.detail.id)},[{id:"saved",title:"Saved",icon:"far fa-bookmark"},{id:"timeline",title:"Timeline",icon:"fas fa-history"}],l,i,o,e=>{const t=new Date(e);return`${new Date(t).toLocaleString()} (${q(t).fromNow()})`},()=>l(),()=>i(),e=>o(e),e=>i(e),function(e){r=e,a(0,r)}]}class tt extends e{constructor(e){super(),t(this,e,et,Xe,a,{})}}function at(e){let t,a;return t=new ge({props:{language:e[2],text:e[1],errorMarkers:e[3]}}),t.$on("update",e[6]),{c(){N(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,n){P(t,e,n),a=!0},p(e,a){const n={};4&a&&(n.language=e[2]),2&a&&(n.text=e[1]),8&a&&(n.errorMarkers=e[3]),t.$set(n)},i(e){a||(T(t.$$.fragment,e),a=!0)},o(e){A(t.$$.fragment,e),a=!1},d(e){B(t,e)}}}function nt(e){let t,a,h,d;return{c(){t=n("button"),a=n("i"),this.h()},l(e){t=s(e,"BUTTON",{class:!0,title:!0});var n=l(t);a=s(n,"I",{class:!0}),l(a).forEach(i),n.forEach(i),this.h()},h(){o(a,"class","fas fa-sync"),o(t,"class","bg-indigo-500 hover:bg-indigo-700 rounded px-4 mx-2"),o(t,"title","Sync Diagram")},m(e,n){r(e,t,n),v(t,a),h||(d=y(t,"click",he),h=!0)},p:c,d(e){e&&i(t),h=!1,d()}}}function st(e){let t,a,c,h,d,f,$,w=!e[0].autoSync&&nt();return{c(){t=n("div"),w&&w.c(),a=u(),c=n("label"),h=n("input"),d=m("\n\t\t\t\t\t\tAuto sync"),this.h()},l(e){t=s(e,"DIV",{slot:!0});var n=l(t);w&&w.l(n),a=g(n),c=s(n,"LABEL",{for:!0});var o=l(c);h=s(o,"INPUT",{type:!0,name:!0}),d=p(o,"\n\t\t\t\t\t\tAuto sync"),o.forEach(i),n.forEach(i),this.h()},h(){o(h,"type","checkbox"),o(h,"name","autoSync"),o(c,"for","autoSync"),o(t,"slot","actions")},m(n,s){r(n,t,s),w&&w.m(t,null),v(t,a),v(t,c),v(c,h),h.checked=e[0].autoSync,v(c,d),f||($=y(h,"change",e[9]),f=!0)},p(e,n){e[0].autoSync?w&&(w.d(1),w=null):w?w.p(e,n):(w=nt(),w.c(),w.m(t,a)),1&n&&(h.checked=e[0].autoSync)},d(e){e&&i(t),w&&w.d(),f=!1,$()}}}function lt(e){let t,a,c;return a=new oe({}),{c(){t=n("div"),N(a.$$.fragment),this.h()},l(e){t=s(e,"DIV",{class:!0});var n=l(t);L(a.$$.fragment,n),n.forEach(i),this.h()},h(){o(t,"class","flex-1 overflow-auto")},m(e,n){r(e,t,n),P(a,t,null),c=!0},i(e){c||(T(a.$$.fragment,e),c=!0)},o(e){A(a.$$.fragment,e),c=!1},d(e){e&&i(t),B(a)}}}function it(e){let t,a,h,d,f;return{c(){t=n("button"),a=n("i"),h=m(" View"),this.h()},l(e){t=s(e,"BUTTON",{slot:!0,class:!0,title:!0});var n=l(t);a=s(n,"I",{class:!0}),l(a).forEach(i),h=p(n," View"),n.forEach(i),this.h()},h(){o(a,"class","far fa-eye"),o(t,"slot","actions"),o(t,"class","rounded shadow px-2 bg-indigo-500 hover:bg-indigo-700"),o(t,"title","View diagram in new page")},m(n,s){r(n,t,s),v(t,a),v(t,h),d||(f=y(t,"click",k(e[10])),d=!0)},p:c,d(e){e&&i(t),d=!1,f()}}}function ot(e){let t,a,c,h,d,f,m,p,$,w,x,b,E,y,k,I,D,C;return c=new xe({}),m=new Ve({props:{tabs:e[5],isCloseable:!1,title:"Mermaid",$$slots:{actions:[st],default:[at]},$$scope:{ctx:e}}}),m.$on("select",e[4]),w=new Ue({}),b=new tt({}),y=new Ye({}),D=new Ve({props:{title:"Diagram",isCloseable:!1,$$slots:{actions:[it],default:[lt]},$$scope:{ctx:e}}}),{c(){t=u(),a=n("div"),N(c.$$.fragment),h=u(),d=n("div"),f=n("div"),N(m.$$.fragment),p=u(),$=n("div"),N(w.$$.fragment),x=u(),N(b.$$.fragment),E=u(),N(y.$$.fragment),k=u(),I=n("div"),N(D.$$.fragment),this.h()},l(e){te('[data-svelte="svelte-1ry7oa8"]',document.head).forEach(i),t=g(e),a=s(e,"DIV",{class:!0});var n=l(a);L(c.$$.fragment,n),h=g(n),d=s(n,"DIV",{class:!0});var o=l(d);f=s(o,"DIV",{class:!0});var r=l(f);L(m.$$.fragment,r),p=g(r),$=s(r,"DIV",{class:!0});var u=l($);L(w.$$.fragment,u),x=g(u),L(b.$$.fragment,u),E=g(u),L(y.$$.fragment,u),u.forEach(i),r.forEach(i),k=g(o),I=s(o,"DIV",{class:!0});var v=l(I);L(D.$$.fragment,v),v.forEach(i),o.forEach(i),n.forEach(i),this.h()},h(){document.title="Edit",o($,"class","flex-1"),o(f,"class","w-2/5 flex flex-col"),o(I,"class","flex-1 flex flex-col overflow-hidden"),o(d,"class","flex-1 flex overflow-hidden"),o(a,"class","h-full flex flex-col overflow-hidden bg-gray-100")},m(e,n){r(e,t,n),r(e,a,n),P(c,a,null),v(a,h),v(a,d),v(d,f),P(m,f,null),v(f,p),v(f,$),P(w,$,null),v($,x),P(b,$,null),v($,E),P(y,$,null),v(d,k),v(d,I),P(D,I,null),C=!0},p(e,[t]){const a={};131087&t&&(a.$$scope={dirty:t,ctx:e}),m.$set(a);const n={};131072&t&&(n.$$scope={dirty:t,ctx:e}),D.$set(n)},i(e){C||(T(c.$$.fragment,e),T(m.$$.fragment,e),T(w.$$.fragment,e),T(b.$$.fragment,e),T(y.$$.fragment,e),T(D.$$.fragment,e),C=!0)},o(e){A(c.$$.fragment,e),A(m.$$.fragment,e),A(w.$$.fragment,e),A(b.$$.fragment,e),A(y.$$.fragment,e),A(D.$$.fragment,e),C=!1},d(e){e&&i(t),e&&i(a),B(c),B(m),B(w),B(b),B(y),B(D)}}}function rt(e,t,a){let n,s;ee(e,le,(e=>a(0,n=e))),ee(e,se,(e=>a(11,s=e)));var l=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,l){function i(e){try{r(n.next(e))}catch(t){l(t)}}function o(e){try{r(n.throw(e))}catch(t){l(t)}}function r(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}r((n=n.apply(e,t||[])).next())}))};const i=window.mermaid;let o="code";const r={code:"mermaid",config:"json"};let c="",h="mermaid",f=[];const u=()=>l(void 0,void 0,void 0,(function*(){yield fe(`/view#${s}`,{replaceState:!0})}));d(ce);return e.$$.update=()=>{256&e.$$.dirty&&a(2,h=r[o]),257&e.$$.dirty&&n.updateEditor&&a(1,c="code"===o?n.code:n.mermaid)},[n,c,h,f,e=>{ae(le,n.updateEditor=!0,n),a(8,o=e.detail.id)},[{id:"code",title:"Code",icon:"fas fa-code"},{id:"config",title:"Config",icon:"fas fa-cogs"}],e=>l(void 0,void 0,void 0,(function*(){try{"code"===o?yield(n=e.detail.text,l(void 0,void 0,void 0,(function*(){i.parse(n),ne(n,!1)}))):(t=e.detail.text,JSON.parse(t),de(t,!1)),re.set(void 0),a(3,f=[])}catch(s){if(re.set(s),s.hash){const e={severity:8,startLineNumber:s.hash.loc.first_line,startColumn:s.hash.loc.first_column,endLineNumber:s.hash.loc.last_line,endColumn:s.hash.loc.last_column+1,message:s.str};f.push(e),a(3,f=f.filter((t=>t.startLineNumber>=e.startLineNumber&&t.startColumn>=e.startColumn)))}console.error(s)}var t,n})),u,o,function(){n.autoSync=this.checked,le.set(n)},()=>u()]}export default class extends e{constructor(e){super(),t(this,e,rt,ot,a,{})}} diff --git a/docs/_app/pages/index.svelte-624ca91f.js b/docs/_app/pages/index.svelte-624ca91f.js new file mode 100644 index 00000000..0e3dd841 --- /dev/null +++ b/docs/_app/pages/index.svelte-624ca91f.js @@ -0,0 +1 @@ +import{S as t,i as n,s as e,H as i,d as o,G as s,z as a}from"../chunks/vendor-a9bf48e1.js";import{g as c}from"../chunks/navigation-20968cc5.js";import"../chunks/singletons-bb9012b7.js";function r(t){return{c(){this.h()},l(t){i('[data-svelte="svelte-wtz6kg"]',document.head).forEach(o),this.h()},h(){document.title="Mermaid Live Editor"},m:s,p:s,i:s,o:s,d:s}}function u(t){var n=this&&this.__awaiter||function(t,n,e,i){return new(e||(e=Promise))((function(o,s){function a(t){try{r(i.next(t))}catch(n){s(n)}}function c(t){try{r(i.throw(t))}catch(n){s(n)}}function r(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}r((i=i.apply(t,n||[])).next())}))};return a((()=>n(void 0,void 0,void 0,(function*(){const t=window.location.hash.split("/");let n="/edit";t.length>2&&(n=`/${t[1]}#${t[2]}`),yield c(n,{replaceState:!0})})))),[]}export default class extends t{constructor(t){super(),n(this,t,u,r,e,{})}} diff --git a/docs/_app/pages/view.svelte-fdf88aee.js b/docs/_app/pages/view.svelte-fdf88aee.js new file mode 100644 index 00000000..d8a5d6bb --- /dev/null +++ b/docs/_app/pages/view.svelte-fdf88aee.js @@ -0,0 +1 @@ +import{S as s,i as a,s as r,j as t,m as e,o as n,G as f,v as o,r as m,w as u,z as i}from"../chunks/vendor-a9bf48e1.js";import{V as c,i as $}from"../chunks/util-fb52efd4.js";function d(s){let a,r;return a=new c({}),{c(){t(a.$$.fragment)},l(s){e(a.$$.fragment,s)},m(s,t){n(a,s,t),r=!0},p:f,i(s){r||(o(a.$$.fragment,s),r=!0)},o(s){m(a.$$.fragment,s),r=!1},d(s){u(a,s)}}}function l(s){return i($),[]}export default class extends s{constructor(s){super(),a(this,s,l,d,r,{})}} diff --git a/docs/_app/start-b18ba274.js b/docs/_app/start-b18ba274.js new file mode 100644 index 00000000..a5963b0f --- /dev/null +++ b/docs/_app/start-b18ba274.js @@ -0,0 +1 @@ +var t=Object.defineProperty,e=Object.prototype.hasOwnProperty,r=Object.getOwnPropertySymbols,s=Object.prototype.propertyIsEnumerable,n=(e,r,s)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s,a=(t,a)=>{for(var o in a||(a={}))e.call(a,o)&&n(t,o,a[o]);if(r)for(var o of r(a))s.call(a,o)&&n(t,o,a[o]);return t};import{S as o,i,s as l,e as c,c as u,a as h,d,b as p,f,t as g,g as m,h as _,j as y,k as v,l as b,m as $,n as w,o as E,p as x,q,r as R,u as L,v as S,w as k,x as O,y as j,z as P,A as U,B as T,C as A}from"./chunks/vendor-a9bf48e1.js";import{i as I}from"./chunks/singletons-bb9012b7.js";function N(t){let e,r,s;const n=[t[2]||{}];var a=t[0][1];function o(t){let e={$$slots:{default:[V]},$$scope:{ctx:t}};for(let r=0;r{k(t,1)})),L()}a?(e=new a(o(t)),y(e.$$.fragment),S(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else a&&e.$set(i)},i(t){s||(e&&S(e.$$.fragment,t),s=!0)},o(t){e&&R(e.$$.fragment,t),s=!1},d(t){t&&d(r),e&&k(e,t)}}}function C(t){let e,r,s;const n=[t[3]||{}];var a=t[0][2];function o(t){let e={};for(let r=0;r{k(t,1)})),L()}a?(e=new a(o()),y(e.$$.fragment),S(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else a&&e.$set(i)},i(t){s||(e&&S(e.$$.fragment,t),s=!0)},o(t){e&&R(e.$$.fragment,t),s=!1},d(t){t&&d(r),e&&k(e,t)}}}function V(t){let e,r,s=t[0][2]&&C(t);return{c(){s&&s.c(),e=b()},l(t){s&&s.l(t),e=b()},m(t,n){s&&s.m(t,n),f(t,e,n),r=!0},p(t,r){t[0][2]?s?(s.p(t,r),1&r&&S(s,1)):(s=C(t),s.c(),S(s,1),s.m(e.parentNode,e)):s&&(T(),R(s,1,1,(()=>{s=null})),L())},i(t){r||(S(s),r=!0)},o(t){R(s),r=!1},d(t){s&&s.d(t),t&&d(e)}}}function D(t){let e,r,s=t[0][1]&&N(t);return{c(){s&&s.c(),e=b()},l(t){s&&s.l(t),e=b()},m(t,n){s&&s.m(t,n),f(t,e,n),r=!0},p(t,r){t[0][1]?s?(s.p(t,r),1&r&&S(s,1)):(s=N(t),s.c(),S(s,1),s.m(e.parentNode,e)):s&&(T(),R(s,1,1,(()=>{s=null})),L())},i(t){r||(S(s),r=!0)},o(t){R(s),r=!1},d(t){s&&s.d(t),t&&d(e)}}}function B(t){let e,r=t[5]&&K(t);return{c(){e=c("div"),r&&r.c(),this.h()},l(t){e=u(t,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,class:!0});var s=h(e);r&&r.l(s),s.forEach(d),this.h()},h(){p(e,"id","svelte-announcer"),p(e,"aria-live","assertive"),p(e,"aria-atomic","true"),p(e,"class","svelte-1pdgbjn")},m(t,s){f(t,e,s),r&&r.m(e,null)},p(t,s){t[5]?r?r.p(t,s):(r=K(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&d(e),r&&r.d()}}}function K(t){let e;return{c(){e=g(t[6])},l(r){e=m(r,t[6])},m(t,r){f(t,e,r)},p(t,r){64&r&&_(e,t[6])},d(t){t&&d(e)}}}function W(t){let e,r,s,n;const a=[t[1]||{}];var o=t[0][0];function i(t){let e={$$slots:{default:[D]},$$scope:{ctx:t}};for(let r=0;r{k(t,1)})),L()}o?(e=new o(i(t)),y(e.$$.fragment),S(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else o&&e.$set(c);t[4]?l?l.p(t,n):(l=B(t),l.c(),l.m(s.parentNode,s)):l&&(l.d(1),l=null)},i(t){n||(e&&S(e.$$.fragment,t),n=!0)},o(t){e&&R(e.$$.fragment,t),n=!1},d(t){e&&k(e,t),t&&d(r),l&&l.d(t),t&&d(s)}}}function M(t,e,r){let{stores:s}=e,{page:n}=e,{components:a}=e,{props_0:o=null}=e,{props_1:i=null}=e,{props_2:l=null}=e;O("__svelte__",s),j(s.page.notify);let c=!1,u=!1,h=null;return P((()=>{const t=s.page.subscribe((()=>{c&&(r(5,u=!0),r(6,h=document.title||"untitled page"))}));return r(4,c=!0),t})),t.$$set=t=>{"stores"in t&&r(7,s=t.stores),"page"in t&&r(8,n=t.page),"components"in t&&r(0,a=t.components),"props_0"in t&&r(1,o=t.props_0),"props_1"in t&&r(2,i=t.props_1),"props_2"in t&&r(3,l=t.props_2)},t.$$.update=()=>{384&t.$$.dirty&&s.page.set(n)},[a,o,i,l,c,u,h,s,n]}class Y extends o{constructor(t){super(),i(this,t,M,W,l,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}let z;const G={},J=function(t,e){if(!e)return t();if(void 0===z){const t=document.createElement("link").relList;z=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in G)return;G[t]=!0;const e=t.endsWith(".css"),r=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${r}`))return;const s=document.createElement("link");return s.rel=e?"stylesheet":z,e||(s.as="script",s.crossOrigin=""),s.href=t,document.head.appendChild(s),e?new Promise(((t,e)=>{s.addEventListener("load",t),s.addEventListener("error",e)})):void 0}))).then((()=>t()))},X=[()=>J((()=>import("./pages/__layout.svelte-df679902.js")),["/_app/pages/__layout.svelte-df679902.js","/_app/assets/pages/__layout.svelte-b1bb5b9c.css","/_app/chunks/vendor-a9bf48e1.js"]),()=>J((()=>import("./error.svelte-77232d5a.js")),["/_app/error.svelte-77232d5a.js","/_app/chunks/vendor-a9bf48e1.js"]),()=>J((()=>import("./pages/index.svelte-624ca91f.js")),["/_app/pages/index.svelte-624ca91f.js","/_app/chunks/vendor-a9bf48e1.js","/_app/chunks/navigation-20968cc5.js","/_app/chunks/singletons-bb9012b7.js"]),()=>J((()=>import("./pages/edit.svelte-4648ecb2.js")),["/_app/pages/edit.svelte-4648ecb2.js","/_app/assets/pages/edit.svelte-a37f5076.css","/_app/chunks/vendor-a9bf48e1.js","/_app/chunks/util-fb52efd4.js","/_app/assets/util-53f38408.css","/_app/chunks/navigation-20968cc5.js","/_app/chunks/singletons-bb9012b7.js"]),()=>J((()=>import("./pages/view.svelte-fdf88aee.js")),["/_app/pages/view.svelte-fdf88aee.js","/_app/chunks/vendor-a9bf48e1.js","/_app/chunks/util-fb52efd4.js","/_app/assets/util-53f38408.css"])],F=[[/^\/$/,[X[0],X[2]],[X[1]]],[/^\/edit\/?$/,[X[0],X[3]],[X[1]]],[/^\/view\/?$/,[X[0],X[4]],[X[1]]]],H=[X[0](),X[1]()];function Q(){return{x:pageXOffset,y:pageYOffset}}function Z(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}class tt{constructor({base:t,routes:e}){this.base=t,this.routes=e}init(t){let e;this.renderer=t,t.router=this,this.enabled=!0,"scrollRestoration"in history&&(history.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{history.scrollRestoration="auto"})),addEventListener("load",(()=>{history.scrollRestoration="manual"})),addEventListener("scroll",(()=>{clearTimeout(e),e=setTimeout((()=>{const t=a(a({},history.state||{}),{"sveltekit:scroll":Q()});history.replaceState(t,document.title,window.location.href)}),50)}));const r=t=>{const e=Z(t.target);e&&e.href&&e.hasAttribute("sveltekit:prefetch")&&this.prefetch(new URL(e.href))};let s;addEventListener("touchstart",r),addEventListener("mousemove",(t=>{clearTimeout(s),s=setTimeout((()=>{r(t)}),20)})),addEventListener("click",(t=>{var e;if(!this.enabled)return;if(t.button||1!==t.which)return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const r=Z(t.target);if(!r)return;if(!r.href)return;const s="object"==typeof r.href&&"SVGAnimatedString"===r.href.constructor.name,n=String(s?r.href.baseVal:r.href);if(n===location.href)return void(location.hash||t.preventDefault());const a=null==(e=r.getAttribute("rel"))?void 0:e.split(/\s+/);if(r.hasAttribute("download")||a&&a.includes("external"))return;if(s?r.target.baseVal:r.target)return;const o=new URL(n);if(o.pathname===location.pathname&&o.search===location.search)return;const i=r.hasAttribute("sveltekit:noscroll");history.pushState({},"",o.href),this._navigate(o,i?Q():null,[],o.hash),t.preventDefault()})),addEventListener("popstate",(t=>{if(t.state&&this.enabled){const e=new URL(location.href);this._navigate(e,t.state["sveltekit:scroll"],[])}})),document.body.setAttribute("tabindex","-1"),history.replaceState(history.state||{},"",location.href)}parse(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(this.base))return null;const e=decodeURIComponent(t.pathname.slice(this.base.length)||"/"),r=this.routes.filter((([t])=>t.test(e))),s=new URLSearchParams(t.search);return{id:`${e}?${s}`,routes:r,path:e,query:s}}async goto(t,{noscroll:e=!1,replaceState:r=!1}={},s){if(this.enabled){const n=new URL(t,function(t){let e=t.baseURI;if(!e){const r=t.getElementsByTagName("base");e=r.length?r[0].href:t.URL}return e}(document));return history[r?"replaceState":"pushState"]({},"",t),this._navigate(n,e?Q():null,s,n.hash)}return location.href=t,new Promise((()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(t){return this.renderer.load(this.parse(t))}async _navigate(t,e,r,s){const n=this.parse(t);this.renderer.notify({path:n.path,query:n.query}),location.pathname.endsWith("/")&&"/"!==location.pathname&&history.replaceState({},"",`${location.pathname.slice(0,-1)}${location.search}`),await this.renderer.update(n,r,!1),document.body.focus();const a=s&&document.getElementById(s.slice(1));e?scrollTo(e.x,e.y):a?scrollTo(0,a.getBoundingClientRect().top+scrollY):scrollTo(0,0)}}function et(t){const e=A(t);let r=!0;return{notify:function(){r=!0,e.update((t=>t))},set:function(t){r=!1,e.set(t)},subscribe:function(t){let s;return e.subscribe((e=>{(void 0===s||r&&e!==s)&&t(s=e)}))}}}function rt(t,n){const a="string"==typeof t?t:t.url,o=document.querySelector(`script[type="svelte-data"][url="${a}"]`);if(o){const t=JSON.parse(o.textContent),{body:n}=t,a=((t,n)=>{var a={};for(var o in t)e.call(t,o)&&n.indexOf(o)<0&&(a[o]=t[o]);if(null!=t&&r)for(var o of r(t))n.indexOf(o)<0&&s.call(t,o)&&(a[o]=t[o]);return a})(t,["body"]);return Promise.resolve(new Response(n,a))}return fetch(t,n)}class st{constructor({Root:t,fallback:e,target:r,session:s,host:n}){this.Root=t,this.fallback=e,this.host=n,this.router=null,this.target=r,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.current={page:null,session_id:null,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={page:et({}),navigating:A(null),session:A(s)},this.$session=null,this.root=null;let a=!1;this.stores.session.subscribe((async t=>{if(this.$session=t,!a)return;this.session_id+=1;const e=this.router.parse(new URL(location.href));this.update(e,[],!0)})),a=!0}async start({status:t,error:e,nodes:r,page:s}){const n=[];let o,i,l,c={};try{for(let o=0;o10||e.includes(t.path)))return void(this.router?this.router.goto(n.redirect,{replaceState:!0},[...e,t.path]):location.href=new URL(n.redirect,location.href).href);n=await this._load_error({status:500,error:new Error("Redirect loop"),path:t.path,query:t.query})}n.reload?location.reload():this.started?(this.current=n.state,this.root.$set(n.props),this.stores.navigating.set(null),await 0):this._init(n),dispatchEvent(new CustomEvent("sveltekit:navigation-end")),this.loading.promise=null,this.loading.id=null;const a=n.state.branch[n.state.branch.length-1];a&&!1===a.module.router?this.router.disable():this.router.enable()}load(t){return this.loading.promise=this._get_navigation_result(t,!1),this.loading.id=t.id,this.loading.promise}invalidate(t){return this.invalid.add(t),this.invalidating||(this.invalidating=Promise.resolve().then((async()=>{const t=this.router.parse(new URL(location.href));await this.update(t,[],!0),this.invalidating=null}))),this.invalidating}_init(t){this.current=t.state;const e=document.querySelector("style[data-svelte]");e&&e.remove(),this.root=new this.Root({target:this.target,props:a({stores:this.stores},t.props),hydrate:!0}),this.started=!0}async _get_navigation_result(t,e){if(this.loading.id===t.id)return this.loading.promise;for(let r=0;rt())),n+=1}const a=await this._load({route:s,path:t.path,query:t.query},e);if(a)return a}return await this._load_error({status:404,error:new Error(`Not found: ${t.path}`),path:t.path,query:t.query})}async _get_navigation_result_from_branch({page:t,branch:e}){const r=e.filter(Boolean),s={state:{page:t,branch:e,session_id:this.session_id},props:{components:r.map((t=>t.module.default))}};for(let o=0;o{this.cache.get(e)===s&&this.cache.delete(e),i(),clearTimeout(o)},o=setTimeout(n,1e3*a),i=this.stores.session.subscribe((()=>{r&&n()}));r=!0,this.cache.set(e,s)}return s}async _load_node({status:t,error:e,module:r,page:s,context:n}){const o={module:r,uses:{params:new Set,path:!1,query:!1,session:!1,context:!1,dependencies:[]},loaded:null,context:n},i={};for(const a in s.params)Object.defineProperty(i,a,{get:()=>(o.uses.params.add(a),s.params[a]),enumerable:!0});const l=this.$session;if(r.load){const{started:c}=this,u={page:{host:s.host,params:i,get path(){return o.uses.path=!0,s.path},get query(){return o.uses.query=!0,s.query}},get session(){return o.uses.session=!0,l},get context(){return o.uses.context=!0,a({},n)},fetch(t,e){const r="string"==typeof t?t:t.url,{href:n}=new URL(r,new URL(s.path,document.baseURI));return o.uses.dependencies.push(n),c?fetch(t,e):rt(t,e)}};e&&(u.status=t,u.error=e);const h=await r.load.call(null,u);if(!h)return;o.loaded=function(t){if(t.error){const e="string"==typeof t.error?new Error(t.error):t.error,r=t.status;return e instanceof Error?!r||r<400||r>599?(console.warn('"error" returned from load() without a valid status code — defaulting to 500'),{status:500,error:e}):{status:r,error:e}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof e}"`)}}if(t.redirect){if(!t.status||3!==Math.floor(t.status/100))return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if("string"!=typeof t.redirect)return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}return t}(h),o.loaded.context&&(o.context=o.loaded.context)}return o}async _load({route:t,path:e,query:r},s){const n=`${e}?${r}`;if(!s&&this.cache.has(n))return this.cache.get(n);const[o,i,l,c]=t,u=c?c(o.exec(e)):{},h=this.current.page&&{path:e!==this.current.page.path,params:Object.keys(u).filter((t=>this.current.page.params[t]!==u[t])),query:r.toString()!==this.current.page.query.toString(),session:this.session_id!==this.current.session_id},d={host:this.host,path:e,query:r,params:u},p=[];let f={},g=!1,m=200,_=null;i.forEach((t=>t()));t:for(let v=0;vr.uses.params.has(t)))||h.query&&r.uses.query||h.session&&r.uses.session||r.uses.dependencies.some((t=>this.invalid.has(t)))||g&&r.uses.context){t=await this._load_node({module:e,page:d,context:f});const r=v===i.length-1;if(t&&t.loaded){if(t.loaded.error&&(m=t.loaded.status,_=t.loaded.error),t.loaded.redirect)return{redirect:t.loaded.redirect};t.loaded.context&&(g=!0)}else if(r&&e.load)return}else t=r}catch(y){m=500,_=y}if(_){for(;v--;)if(l[v]){let t,e,r=v;for(;!(e=p[r]);)r-=1;try{if(t=await this._load_node({status:m,error:_,module:await l[v](),page:d,context:e.context}),t.loaded.error)continue;p.push(t);break t}catch(y){continue}}return await this._load_error({status:m,error:_,path:e,query:r})}t&&t.loaded&&t.loaded.context&&(f=a(a({},f),t.loaded.context)),p.push(t)}return await this._get_navigation_result_from_branch({page:d,branch:p})}async _load_error({status:t,error:e,path:r,query:s}){const n={host:this.host,path:r,query:s,params:{}},a=await this._load_node({module:await this.fallback[0],page:n,context:{}}),o=[a,await this._load_node({status:t,error:e,module:await this.fallback[1],page:n,context:a&&a.loaded&&a.loaded.context})];return await this._get_navigation_result_from_branch({page:n,branch:o})}}async function nt({paths:t,target:e,session:r,host:s,route:n,spa:a,hydrate:o}){const i=n&&new tt({base:t.base,routes:F}),l=new st({Root:Y,fallback:H,target:e,session:r,host:s});I(i),o&&await l.start(o),n&&i.init(l),a&&i.goto(location.href,{replaceState:!0},[]),dispatchEvent(new CustomEvent("sveltekit:start"))}export{nt as start}; diff --git a/docs/edit/index.html b/docs/edit/index.html new file mode 100644 index 00000000..b87ecf06 --- /dev/null +++ b/docs/edit/index.html @@ -0,0 +1,84 @@ + + + + + + Online FlowChart & Diagrams Editor - Mermaid Live Editor + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + diff --git a/docs/favicon.png b/docs/favicon.png new file mode 100644 index 00000000..5a015fd6 Binary files /dev/null and b/docs/favicon.png differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..b87ecf06 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,84 @@ + + + + + + Online FlowChart & Diagrams Editor - Mermaid Live Editor + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 00000000..e9e57dc4 --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/docs/view/index.html b/docs/view/index.html new file mode 100644 index 00000000..b87ecf06 --- /dev/null +++ b/docs/view/index.html @@ -0,0 +1,84 @@ + + + + + + Online FlowChart & Diagrams Editor - Mermaid Live Editor + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + diff --git a/package.json b/package.json index 648a1365..216a7d05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "~TODO~", - "version": "0.0.1", + "version": "0.0.2", "scripts": { "dev": "svelte-kit dev", "build": "svelte-kit build",