@tencent-ai/agent-sdk 0.3.75 → 0.3.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/CHANGELOG.md +30 -0
- package/cli/bin/codebuddy +1 -1
- package/cli/dist/codebuddy-headless.js +120 -124
- package/cli/dist/web-ui/assets/index-B-P3YDZU.js +347 -0
- package/cli/dist/web-ui/assets/index-Cl8FlS79.css +32 -0
- package/cli/dist/web-ui/assets/markdown-Ce2Umeb2.js +45 -0
- package/cli/dist/web-ui/assets/small-icon-COgkmynj.svg +37 -0
- package/cli/dist/web-ui/assets/vendor-DpYitQz5.js +24 -0
- package/cli/dist/web-ui/index.html +16 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +8 -4
- package/cli/product.internal.json +8 -4
- package/cli/product.ioa.json +8 -4
- package/cli/product.json +37 -5
- package/cli/product.selfhosted.json +8 -4
- package/lib/query.d.ts.map +1 -1
- package/lib/query.js +4 -1
- package/lib/query.js.map +1 -1
- package/lib/session.d.ts.map +1 -1
- package/lib/session.js +4 -0
- package/lib/session.js.map +1 -1
- package/lib/types.d.ts +15 -1
- package/lib/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-3{left:.75rem}.right-0{right:0}.right-3{right:.75rem}.top-0{top:0}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2\.5{margin-left:.625rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-1\.5{margin-right:.375rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[100dvh\]{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-52{max-height:13rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-\[280px\]{max-height:280px}.max-h-\[320px\]{max-height:320px}.min-h-\[60vh\]{min-height:60vh}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[280px\]{width:280px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-0{min-width:0px}.min-w-\[140px\]{min-width:140px}.min-w-\[360px\]{min-width:360px}.max-w-3xl{max-width:48rem}.max-w-\[120px\]{max-width:120px}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[400px\]{max-width:400px}.max-w-\[70\%\]{max-width:70%}.max-w-\[85\%\]{max-width:85%}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes borderGlow{0%,to{border-color:color-mix(in srgb,var(--color-accent-brand) 40%,transparent);box-shadow:0 0 0 0 transparent}50%{border-color:color-mix(in srgb,var(--color-accent-brand) 70%,transparent);box-shadow:0 0 8px color-mix(in srgb,var(--color-accent-brand) 15%,transparent)}}.animate-\[borderGlow_2s_ease-in-out_infinite\]{animation:borderGlow 2s ease-in-out infinite}.animate-\[dotPulse_1\.4s_ease-in-out_0\.2s_infinite\]{animation:dotPulse 1.4s ease-in-out .2s infinite}.animate-\[dotPulse_1\.4s_ease-in-out_0\.4s_infinite\]{animation:dotPulse 1.4s ease-in-out .4s infinite}@keyframes dotPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1.2)}}.animate-\[dotPulse_1\.4s_ease-in-out_0s_infinite\]{animation:dotPulse 1.4s ease-in-out 0s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-y-1{row-gap:.25rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-none{overscroll-behavior:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[24px\]{border-radius:24px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-tr-sm{border-top-right-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-accent-brand{border-color:var(--color-accent-brand)}.border-border-default{border-color:var(--color-border-default)}.border-border-input{border-color:var(--color-border-input)}.border-border-muted{border-color:var(--color-border-muted)}.border-current{border-color:currentColor}.border-transparent{border-color:transparent}.bg-accent-brand{background-color:var(--color-accent-brand)}.bg-accent-green{background-color:var(--color-accent-green)}.bg-accent-purple{background-color:var(--color-accent-purple)}.bg-accent-red{background-color:var(--color-accent-red)}.bg-accent-yellow{background-color:var(--color-accent-yellow)}.bg-bg-card{background-color:var(--color-bg-card)}.bg-bg-code{background-color:var(--color-bg-code)}.bg-bg-diff-add{background-color:var(--color-bg-diff-add)}.bg-bg-diff-del{background-color:var(--color-bg-diff-del)}.bg-bg-input{background-color:var(--color-bg-input)}.bg-bg-primary{background-color:var(--color-bg-primary)}.bg-bg-secondary{background-color:var(--color-bg-secondary)}.bg-bg-tertiary{background-color:var(--color-bg-tertiary)}.bg-bg-user{background-color:var(--color-bg-user)}.bg-black\/40{background-color:#0006}.bg-border-muted{background-color:var(--color-border-muted)}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-text-primary{background-color:var(--color-text-primary)}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-transparent{background-color:transparent}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\[6px\]{padding-top:6px;padding-bottom:6px}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-3{padding-left:.75rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:Menlo,Monaco,Consolas,Courier New,monospace}.font-sans{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Arial,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-chat{font-size:14px;line-height:24px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-\[18px\]{line-height:18px}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-accent-blue{color:var(--color-accent-blue)}.text-accent-brand{color:var(--color-accent-brand)}.text-accent-green{color:var(--color-accent-green)}.text-accent-purple{color:var(--color-accent-purple)}.text-accent-red{color:var(--color-accent-red)}.text-accent-yellow{color:var(--color-accent-yellow)}.text-bg-primary{color:var(--color-bg-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.placeholder-text-tertiary::-moz-placeholder{color:var(--color-text-tertiary)}.placeholder-text-tertiary::placeholder{color:var(--color-text-tertiary)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{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)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}[data-theme=light]{--color-bg-primary: #ffffff;--color-bg-secondary: #f5f5f7;--color-bg-tertiary: #f3f3f3;--color-bg-input: #ffffff;--color-bg-card: #ffffff;--color-bg-user: #eef2ff;--color-bg-hover: #f5f5f5;--color-bg-code: #f8f9fa;--color-border-default: #eef0f2;--color-border-muted: #f4f5f7;--color-border-input: #e5e7eb;--color-text-primary: #1a1a1a;--color-text-secondary: #5c5c5c;--color-text-tertiary: #8e8e93;--color-text-user: #1e3a8a;--color-text-link: #1677ff;--color-accent-green: #52c41a;--color-accent-red: #ff4d4f;--color-accent-yellow: #faad14;--color-accent-brand: #28B894;--color-accent-blue: #1677ff;--color-accent-purple: #6c4dff;--color-inline-code: #d63384;--color-scrollbar: rgba(0, 0, 0, .12);--color-scrollbar-hover: rgba(0, 0, 0, .2);--color-bg-diff-add: rgba(52, 211, 153, .08);--color-bg-diff-del: rgba(248, 113, 113, .08)}[data-theme=dark]{--color-bg-primary: #121212;--color-bg-secondary: #1c1c1e;--color-bg-tertiary: #242424;--color-bg-input: #1a1a1a;--color-bg-card: #1a1a1a;--color-bg-user: #1e293b;--color-bg-hover: #2a2a2a;--color-bg-code: #161616;--color-border-default: #333333;--color-border-muted: #262626;--color-border-input: #3a3a3a;--color-text-primary: #e5e5e5;--color-text-secondary: #a3a3a3;--color-text-tertiary: #7c7c82;--color-text-user: #bfdbfe;--color-text-link: #4dabf7;--color-accent-green: #4ade80;--color-accent-red: #f87171;--color-accent-yellow: #fbbf24;--color-accent-brand: #34d399;--color-accent-blue: #60a5fa;--color-accent-purple: #8b7dff;--color-inline-code: #e879a5;--color-scrollbar: rgba(255, 255, 255, .12);--color-scrollbar-hover: rgba(255, 255, 255, .2);--color-bg-diff-add: rgba(74, 222, 128, .1);--color-bg-diff-del: rgba(248, 113, 113, .1)}body,html{margin:0;padding:0;height:100%;width:100%;overflow:hidden}body{background:var(--color-bg-primary);color:var(--color-text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.6;transition:background-color .2s,color .2s}*{scrollbar-width:thin;scrollbar-color:var(--color-scrollbar) transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--color-scrollbar);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--color-scrollbar-hover)}pre{background:var(--color-bg-code)!important;border:none;border-radius:12px;padding:12px;overflow-x:auto;font-size:13.5px;line-height:1.6;margin:16px 0}code{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em}:not(pre)>code{background:var(--color-bg-tertiary);padding:3px 6px;border-radius:6px;font-size:13.5px;color:var(--color-inline-code);margin:0 2px}.markdown-body a{color:var(--color-text-link);text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body ul,.markdown-body ol{padding-left:1.5rem;margin:12px 0}.markdown-body li{margin:6px 0}.markdown-body ol{list-style-type:decimal}.markdown-body ul{list-style-type:disc}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{margin:24px 0 12px;font-weight:600;color:var(--color-text-primary);line-height:1.4}.markdown-body h1{font-size:1.6rem}.markdown-body h2{font-size:1.4rem}.markdown-body h3{font-size:1.2rem}.markdown-body h4{font-size:1.1rem}.markdown-body p{margin:12px 0}.markdown-body p:last-child{margin-bottom:0}.markdown-body p:first-child{margin-top:0}.markdown-body table{border-collapse:collapse;width:100%;margin:16px 0;font-size:14px}.markdown-body th,.markdown-body td{border:1px solid var(--color-border-default);padding:10px 16px;text-align:left}.markdown-body th{background:var(--color-bg-secondary);font-weight:600}.markdown-body blockquote{border-left:4px solid var(--color-border-default);padding-left:16px;margin:16px 0;color:var(--color-text-secondary);background:var(--color-bg-secondary);padding-top:8px;padding-bottom:8px;border-radius:0 8px 8px 0}.markdown-body strong{font-weight:600;color:var(--color-text-primary)}.markdown-body hr{border:none;border-top:1px solid var(--color-border-default);margin:24px 0}.thinking-block{margin-bottom:12px;overflow:hidden}.thinking-block-header{display:flex;align-items:center;gap:4px;padding:4px 0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:var(--color-text-tertiary);transition:color .15s}.thinking-block-header:hover{color:var(--color-text-secondary)}.thinking-block-header-text{font-size:14px}.thinking-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--color-accent-purple);animation:thinking-pulse 1.2s ease-in-out infinite;margin-left:2px}@keyframes thinking-pulse{0%,to{opacity:.3}50%{opacity:1}}.thinking-block-content{padding:8px 0 4px 16px;font-size:14px;line-height:1.7;color:var(--color-text-tertiary);white-space:pre-wrap;word-break:break-word;max-height:400px;overflow-y:auto;position:relative;border-left:2px solid var(--color-border-muted)}.thinking-block-streaming .thinking-block-content:after{content:"";position:sticky;bottom:0;left:0;right:0;display:block;height:40px;margin-top:-40px;background:linear-gradient(transparent,var(--color-bg-primary));pointer-events:none}.thinking-block-toggle{transition:transform .2s ease;flex-shrink:0;transform:rotate(-90deg)}.thinking-block-toggle.expanded{transform:rotate(0)}@keyframes thinking-dots{0%,20%{content:"."}40%{content:".."}60%,to{content:"..."}}.thinking-text:after{content:"...";animation:thinking-dots 1.5s infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-shimmer{background:linear-gradient(90deg,var(--color-border-muted) 0%,var(--color-bg-hover) 40%,var(--color-border-muted) 80%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate-fadeIn{animation:fadeIn .3s ease-out}.xterm{height:100%;width:100%;overflow:hidden}.xterm-helper-textarea{caret-color:transparent!important;ime-mode:disabled!important;-webkit-ime-mode:disabled!important}textarea:not(:focus){ime-mode:inactive}.split-sash{flex-shrink:0;background:var(--color-border-muted);transition:background-color .15s;z-index:5}.split-sash:hover,.split-sash.dragging{background:var(--color-accent-blue)}.split-sash-horizontal{width:4px;cursor:col-resize}.split-sash-vertical{height:4px;cursor:row-resize}.terminal-pane{position:relative;overflow:hidden;border:1px solid transparent;transition:border-color .15s}.terminal-pane.active{border-color:var(--color-accent-blue)}.terminal-pane-toolbar{position:absolute;top:4px;right:4px;z-index:10;display:flex;gap:2px;opacity:0;transition:opacity .15s}.terminal-pane:hover .terminal-pane-toolbar{opacity:1}.empty-result-container:empty:after{content:"(empty)";display:block;font-size:12px;color:var(--color-text-tertiary);padding:6px 10px;background:color-mix(in srgb,var(--color-bg-secondary) 40%,transparent);border-radius:6px}.placeholder\:text-text-tertiary::-moz-placeholder{color:var(--color-text-tertiary)}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.focus-within\:shadow-md:focus-within{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-accent-red:hover{border-color:var(--color-accent-red)}.hover\:bg-accent-red:hover{background-color:var(--color-accent-red)}.hover\:bg-bg-hover:hover{background-color:var(--color-bg-hover)}.hover\:bg-bg-primary:hover{background-color:var(--color-bg-primary)}.hover\:bg-bg-secondary:hover{background-color:var(--color-bg-secondary)}.hover\:bg-bg-tertiary:hover{background-color:var(--color-bg-tertiary)}.hover\:text-accent-red:hover{color:var(--color-accent-red)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}.focus\:border-accent-brand:focus{border-color:var(--color-accent-brand)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--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 #0000)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[0\.98\]:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}@media(min-width:640px){.sm\:max-w-\[75\%\]{max-width:75%}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function Vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mn={exports:{}},Be={},gn={exports:{}},j={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gt;function Si(){if(gt)return j;gt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),c=Symbol.iterator;function h(y){return y===null||typeof y!="object"?null:(y=c&&y[c]||y["@@iterator"],typeof y=="function"?y:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,S={};function C(y,v,m){this.props=y,this.context=v,this.refs=S,this.updater=m||p}C.prototype.isReactComponent={},C.prototype.setState=function(y,v){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,v,"setState")},C.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function k(){}k.prototype=C.prototype;function A(y,v,m){this.props=y,this.context=v,this.refs=S,this.updater=m||p}var E=A.prototype=new k;E.constructor=A,d(E,C.prototype),E.isPureReactComponent=!0;var R=Array.isArray,F=Object.prototype.hasOwnProperty,b={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function V(y,v,m){var $,Y={},B=null,te=null;if(v!=null)for($ in v.ref!==void 0&&(te=v.ref),v.key!==void 0&&(B=""+v.key),v)F.call(v,$)&&!N.hasOwnProperty($)&&(Y[$]=v[$]);var J=arguments.length-2;if(J===1)Y.children=m;else if(1<J){for(var K=Array(J),ie=0;ie<J;ie++)K[ie]=arguments[ie+2];Y.children=K}if(y&&y.defaultProps)for($ in J=y.defaultProps,J)Y[$]===void 0&&(Y[$]=J[$]);return{$$typeof:e,type:y,key:B,ref:te,props:Y,_owner:b.current}}function W(y,v){return{$$typeof:e,type:y.type,key:v,ref:y.ref,props:y.props,_owner:y._owner}}function x(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function _(y){var v={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(m){return v[m]})}var D=/\/+/g;function Q(y,v){return typeof y=="object"&&y!==null&&y.key!=null?_(""+y.key):v.toString(36)}function L(y,v,m,$,Y){var B=typeof y;(B==="undefined"||B==="boolean")&&(y=null);var te=!1;if(y===null)te=!0;else switch(B){case"string":case"number":te=!0;break;case"object":switch(y.$$typeof){case e:case t:te=!0}}if(te)return te=y,Y=Y(te),y=$===""?"."+Q(te,0):$,R(Y)?(m="",y!=null&&(m=y.replace(D,"$&/")+"/"),L(Y,v,m,"",function(ie){return ie})):Y!=null&&(x(Y)&&(Y=W(Y,m+(!Y.key||te&&te.key===Y.key?"":(""+Y.key).replace(D,"$&/")+"/")+y)),v.push(Y)),1;if(te=0,$=$===""?".":$+":",R(y))for(var J=0;J<y.length;J++){B=y[J];var K=$+Q(B,J);te+=L(B,v,m,K,Y)}else if(K=h(y),typeof K=="function")for(y=K.call(y),J=0;!(B=y.next()).done;)B=B.value,K=$+Q(B,J++),te+=L(B,v,m,K,Y);else if(B==="object")throw v=String(y),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.");return te}function P(y,v,m){if(y==null)return y;var $=[],Y=0;return L(y,$,"","",function(B){return v.call(m,B,Y++)}),$}function G(y){if(y._status===-1){var v=y._result;v=v(),v.then(function(m){(y._status===0||y._status===-1)&&(y._status=1,y._result=m)},function(m){(y._status===0||y._status===-1)&&(y._status=2,y._result=m)}),y._status===-1&&(y._status=0,y._result=v)}if(y._status===1)return y._result.default;throw y._result}var q={current:null},le={transition:null},ge={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:le,ReactCurrentOwner:b};function g(){throw Error("act(...) is not supported in production builds of React.")}return j.Children={map:P,forEach:function(y,v,m){P(y,function(){v.apply(this,arguments)},m)},count:function(y){var v=0;return P(y,function(){v++}),v},toArray:function(y){return P(y,function(v){return v})||[]},only:function(y){if(!x(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},j.Component=C,j.Fragment=n,j.Profiler=i,j.PureComponent=A,j.StrictMode=r,j.Suspense=a,j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ge,j.act=g,j.cloneElement=function(y,v,m){if(y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+y+".");var $=d({},y.props),Y=y.key,B=y.ref,te=y._owner;if(v!=null){if(v.ref!==void 0&&(B=v.ref,te=b.current),v.key!==void 0&&(Y=""+v.key),y.type&&y.type.defaultProps)var J=y.type.defaultProps;for(K in v)F.call(v,K)&&!N.hasOwnProperty(K)&&($[K]=v[K]===void 0&&J!==void 0?J[K]:v[K])}var K=arguments.length-2;if(K===1)$.children=m;else if(1<K){J=Array(K);for(var ie=0;ie<K;ie++)J[ie]=arguments[ie+2];$.children=J}return{$$typeof:e,type:y.type,key:Y,ref:B,props:$,_owner:te}},j.createContext=function(y){return y={$$typeof:l,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},y.Provider={$$typeof:o,_context:y},y.Consumer=y},j.createElement=V,j.createFactory=function(y){var v=V.bind(null,y);return v.type=y,v},j.createRef=function(){return{current:null}},j.forwardRef=function(y){return{$$typeof:u,render:y}},j.isValidElement=x,j.lazy=function(y){return{$$typeof:f,_payload:{_status:-1,_result:y},_init:G}},j.memo=function(y,v){return{$$typeof:s,type:y,compare:v===void 0?null:v}},j.startTransition=function(y){var v=le.transition;le.transition={};try{y()}finally{le.transition=v}},j.unstable_act=g,j.useCallback=function(y,v){return q.current.useCallback(y,v)},j.useContext=function(y){return q.current.useContext(y)},j.useDebugValue=function(){},j.useDeferredValue=function(y){return q.current.useDeferredValue(y)},j.useEffect=function(y,v){return q.current.useEffect(y,v)},j.useId=function(){return q.current.useId()},j.useImperativeHandle=function(y,v,m){return q.current.useImperativeHandle(y,v,m)},j.useInsertionEffect=function(y,v){return q.current.useInsertionEffect(y,v)},j.useLayoutEffect=function(y,v){return q.current.useLayoutEffect(y,v)},j.useMemo=function(y,v){return q.current.useMemo(y,v)},j.useReducer=function(y,v,m){return q.current.useReducer(y,v,m)},j.useRef=function(y){return q.current.useRef(y)},j.useState=function(y){return q.current.useState(y)},j.useSyncExternalStore=function(y,v,m){return q.current.useSyncExternalStore(y,v,m)},j.useTransition=function(){return q.current.useTransition()},j.version="18.3.1",j}var dt;function ar(){return dt||(dt=1,gn.exports=Si()),gn.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var yt;function Ci(){if(yt)return Be;yt=1;var e=ar(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(u,a,s){var f,c={},h=null,p=null;s!==void 0&&(h=""+s),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(p=a.ref);for(f in a)r.call(a,f)&&!o.hasOwnProperty(f)&&(c[f]=a[f]);if(u&&u.defaultProps)for(f in a=u.defaultProps,a)c[f]===void 0&&(c[f]=a[f]);return{$$typeof:t,type:u,key:h,ref:p,props:c,_owner:i.current}}return Be.Fragment=n,Be.jsx=l,Be.jsxs=l,Be}var kt;function Ei(){return kt||(kt=1,mn.exports=Ci()),mn.exports}var dn=Ei(),Ii=ar();const Qc=Vn(Ii);function Gc(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function vi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ai=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ti=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pi={};function xt(e,t){return(Pi.jsx?Ti:Ai).test(e)}const _i=/[ \t\n\f\r]/g;function Di(e){return typeof e=="object"?e.type==="text"?bt(e.value):!1:bt(e)}function bt(e){return e.replace(_i,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function sr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function Rn(e){return e.toLowerCase()}class ce{constructor(t,n){this.attribute=n,this.property=t}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Li=0;const M=Te(),re=Te(),Fn=Te(),I=Te(),ne=Te(),ze=Te(),pe=Te();function Te(){return 2**++Li}const On=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:re,commaOrSpaceSeparated:pe,commaSeparated:ze,number:I,overloadedBoolean:Fn,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),yn=Object.keys(On);class Wn extends ce{constructor(t,n,r,i){let o=-1;if(super(t,n),wt(this,"space",i),typeof r=="number")for(;++o<yn.length;){const l=yn[o];wt(this,yn[o],(r&On[l])===On[l])}}}Wn.prototype.defined=!0;function wt(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Wn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Rn(r)]=r,n[Rn(o.attribute)]=r}return new Qe(t,n,e.space)}const cr=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:re,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:ne,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:I,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:ne,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:re,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fr(e,t){return t in e?e[t]:t}function pr(e,t){return fr(e,t.toLowerCase())}const zi=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ze,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:ne,autoFocus:M,autoPlay:M,blocking:ne,capture:null,charSet:null,checked:M,cite:null,className:ne,cols:I,colSpan:null,content:null,contentEditable:re,controls:M,controlsList:ne,coords:I|ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Fn,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:ne,height:I,hidden:Fn,high:I,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:ne,itemRef:ne,itemScope:M,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:M,optimum:I,pattern:null,ping:ne,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:ne,required:M,reversed:M,rows:I,rowSpan:I,sandbox:ne,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:re,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:pr}),Ri=Fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pe,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ze,g2:ze,glyphName:ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:pe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pe,rev:pe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pe,requiredFeatures:pe,requiredFonts:pe,requiredFormats:pe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:pe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pe,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fr}),hr=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mr=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pr}),gr=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Fi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Oi=/[A-Z]/g,St=/-[a-z]/g,Mi=/^data[-\w.:]+$/i;function Ni(e,t){const n=Rn(t);let r=t,i=ce;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Mi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(St,ji);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!St.test(o)){let l=o.replace(Oi,Bi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Wn}return new i(r,t)}function Bi(e){return"-"+e.toLowerCase()}function ji(e){return e.charAt(1).toUpperCase()}const $i=sr([cr,zi,hr,mr,gr],"html"),Yn=sr([cr,Ri,hr,mr,gr],"svg");function Jc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Hi(e){return e.join(" ").trim()}var _e={},kn,Ct;function qi(){if(Ct)return kn;Ct=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
|
|
18
|
+
`,s="/",f="*",c="",h="comment",p="declaration";function d(C,k){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];k=k||{};var A=1,E=1;function R(L){var P=L.match(t);P&&(A+=P.length);var G=L.lastIndexOf(a);E=~G?L.length-G:E+L.length}function F(){var L={line:A,column:E};return function(P){return P.position=new b(L),W(),P}}function b(L){this.start=L,this.end={line:A,column:E},this.source=k.source}b.prototype.content=C;function N(L){var P=new Error(k.source+":"+A+":"+E+": "+L);if(P.reason=L,P.filename=k.source,P.line=A,P.column=E,P.source=C,!k.silent)throw P}function V(L){var P=L.exec(C);if(P){var G=P[0];return R(G),C=C.slice(G.length),P}}function W(){V(n)}function x(L){var P;for(L=L||[];P=_();)P!==!1&&L.push(P);return L}function _(){var L=F();if(!(s!=C.charAt(0)||f!=C.charAt(1))){for(var P=2;c!=C.charAt(P)&&(f!=C.charAt(P)||s!=C.charAt(P+1));)++P;if(P+=2,c===C.charAt(P-1))return N("End of comment missing");var G=C.slice(2,P-2);return E+=2,R(G),C=C.slice(P),E+=2,L({type:h,comment:G})}}function D(){var L=F(),P=V(r);if(P){if(_(),!V(i))return N("property missing ':'");var G=V(o),q=L({type:p,property:S(P[0].replace(e,c)),value:G?S(G[0].replace(e,c)):c});return V(l),q}}function Q(){var L=[];x(L);for(var P;P=D();)P!==!1&&(L.push(P),x(L));return L}return W(),Q()}function S(C){return C?C.replace(u,c):c}return kn=d,kn}var Et;function Ui(){if(Et)return _e;Et=1;var e=_e&&_e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=n;const t=e(qi());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),u=typeof i=="function";return l.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:f}=a;u?i(s,f,a):f&&(o=o||{},o[s]=f)}),o}return _e}var je={},It;function Vi(){if(It)return je;It=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},u=function(s,f){return"".concat(f,"-")},a=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,u):s=s.replace(r,u),s.replace(t,l))};return je.camelCase=a,je}var $e,vt;function Wi(){if(vt)return $e;vt=1;var e=$e&&$e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Ui()),n=Vi();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(u,a){u&&a&&(l[(0,n.camelCase)(u,o)]=a)}),l}return r.default=r,$e=r,$e}var Yi=Wi();const Xi=Vn(Yi),dr=yr("end"),Xn=yr("start");function yr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Qi(e){const t=Xn(e),n=dr(e);if(t&&n)return{start:t,end:n}}function Ue(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?At(e.position):"start"in e||"end"in e?At(e):"line"in e||"column"in e?Mn(e):""}function Mn(e){return Tt(e&&e.line)+":"+Tt(e&&e.column)}function At(e){return Mn(e&&e.start)+"-"+Mn(e&&e.end)}function Tt(e){return e&&typeof e=="number"?e:1}class ue extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Ue(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ue.prototype.file="";ue.prototype.name="";ue.prototype.reason="";ue.prototype.message="";ue.prototype.stack="";ue.prototype.column=void 0;ue.prototype.line=void 0;ue.prototype.ancestors=void 0;ue.prototype.cause=void 0;ue.prototype.fatal=void 0;ue.prototype.place=void 0;ue.prototype.ruleId=void 0;ue.prototype.source=void 0;const Qn={}.hasOwnProperty,Gi=new Map,Ji=/[A-Z]/g,Ki=new Set(["table","tbody","thead","tfoot","tr"]),Zi=new Set(["td","th"]),kr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function el(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=al(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ul(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Yn:$i,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=xr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function xr(e,t,n){if(t.type==="element")return nl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return il(e,t,n);if(t.type==="mdxjsEsm")return rl(e,t);if(t.type==="root")return ll(e,t,n);if(t.type==="text")return ol(e,t)}function nl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const o=wr(e,t.tagName,!1),l=sl(e,t);let u=Jn(e,t);return Ki.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!Di(a):!0})),br(e,l,o,t),Gn(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function tl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,t.position)}function rl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function il(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Yn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:wr(e,t.name,!0),l=cl(e,t),u=Jn(e,t);return br(e,l,o,t),Gn(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function ll(e,t,n){const r={};return Gn(r,Jn(e,t)),e.create(t,e.Fragment,r,n)}function ol(e,t){return t.value}function br(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ul(e,t,n){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?n:t;return u?s(o,l,u):s(o,l)}}function al(e,t){return n;function n(r,i,o,l){const u=Array.isArray(o.children),a=Xn(r);return t(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function sl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Qn.call(t.properties,i)){const o=fl(e,i,t.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&Zi.has(t.tagName)?r=u:n[l]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function cl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Ye(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Ye(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Jn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Gi;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=xr(e,o,l);u!==void 0&&n.push(u)}return n}function fl(e,t,n){const r=Ni(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vi(n):Hi(n)),r.property==="style"){let i=typeof n=="object"?n:pl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=hl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Fi[r.property]||r.property:r.attribute,n]}}function pl(e,t){try{return Xi(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ue("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=kr+"#cannot-parse-style-attribute",i}}function wr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const u=xt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=xt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Qn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,t){const n=new ue("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=kr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function hl(e){const t={};let n;for(n in e)Qn.call(e,n)&&(t[ml(n)]=e[n]);return t}function ml(e){let t=e.replace(Ji,gl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function gl(e){return"-"+e.toLowerCase()}const xn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},dl={};function Kn(e,t){const n=dl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Sr(e,r,i)}function Sr(e,t,n){if(yl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pt(e.children,t,n)}return Array.isArray(e)?Pt(e,t,n):""}function Pt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Sr(e[i],t,n);return r.join("")}function yl(e){return!!(e&&typeof e=="object")}const _t=document.createElement("i");function Zn(e){const t="&"+e+";";_t.innerHTML=t;const n=_t.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function he(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function me(e,t){return e.length>0?(he(e,e.length,0,t),e):t}const Dt={}.hasOwnProperty;function Cr(e){const t={};let n=-1;for(;++n<e.length;)kl(t,e[n]);return t}function kl(e,t){let n;for(n in t){const i=(Dt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Dt.call(i,l)||(i[l]=[]);const u=o[l];xl(i[l],Array.isArray(u)?u:u?[u]:[])}}}function xl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);he(e,0,0,r)}function Er(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ae=Ee(/[A-Za-z]/),oe=Ee(/[\dA-Za-z]/),bl=Ee(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const Nn=Ee(/\d/),wl=Ee(/[\dA-Fa-f]/),Sl=Ee(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function H(e){return e===-2||e===-1||e===32}const sn=Ee(new RegExp("\\p{P}|\\p{S}","u")),Ae=Ee(/\s/);function Ee(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&oe(e.charCodeAt(n+1))&&oe(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return H(a)?(e.enter(n),u(a)):t(a)}function u(a){return H(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const Cl={tokenize:El};function El(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),X(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return z(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const Il={tokenize:vl},Lt={tokenize:Al};function vl(e){const t=this,n=[];let r=0,i,o,l;return u;function u(E){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,a,s)(E)}return s(E)}function a(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const R=t.events.length;let F=R,b;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){b=t.events[F][1].end;break}k(r);let N=R;for(;N<t.events.length;)t.events[N][1].end={...b},N++;return he(t.events,F+1,0,t.events.slice(R)),t.events.length=N,s(E)}return u(E)}function s(E){if(r===n.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lt,f,c)(E)}function f(E){return i&&A(),k(r),h(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(E)}function h(E){return t.containerState={},e.attempt(Lt,p,d)(E)}function p(E){return r++,n.push([t.currentConstruct,t.containerState]),h(E)}function d(E){if(E===null){i&&A(),k(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(E)}function S(E){if(E===null){C(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return z(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),S)}function C(E,R){const F=t.sliceStream(E);if(R&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),t.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const N=t.events.length;let V=N,W,x;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(W){x=t.events[V][1].end;break}W=!0}for(k(r),b=N;b<t.events.length;)t.events[b][1].end={...x},b++;he(t.events,V+1,0,t.events.slice(N)),t.events.length=b}}function k(E){let R=n.length;for(;R-- >E;){const F=n[R];t.containerState=F[1],F[0].exit.call(t,e)}n.length=E}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Al(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Re(e){if(e===null||ee(e)||Ae(e))return 1;if(sn(e))return 2}function cn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Bn={name:"attention",resolveAll:Tl,tokenize:Pl};function Tl(e,t){let n=-1,r,i,o,l,u,a,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};zt(c,-a),zt(h,a),l={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=me(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=me(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=me(s,cn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=me(s,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=me(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,he(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Pl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Re(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),f=Re(a),c=!f||f===2&&i||n.includes(a),h=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!h)),s._close=!!(o===42?h:h&&(f||!c)),t(a)}}function zt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _l={name:"autolink",tokenize:Dl};function Dl(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ae(p)?(e.consume(p),l):p===64?n(p):s(p)}function l(p){return p===43||p===45||p===46||oe(p)?(r=1,u(p)):s(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||oe(p))&&r++<32?(e.consume(p),u):(r=0,s(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ln(p)?n(p):(e.consume(p),a)}function s(p){return p===64?(e.consume(p),f):bl(p)?(e.consume(p),s):n(p)}function f(p){return oe(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||oe(p))&&r++<63){const d=p===45?h:c;return e.consume(p),d}return n(p)}}const Ge={partial:!0,tokenize:Ll};function Ll(e,t,n){return r;function r(o){return H(o)?X(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?t(o):n(o)}}const Ir={continuation:{tokenize:Rl},exit:Fl,name:"blockQuote",tokenize:zl};function zl(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return H(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Rl(e,t,n){const r=this;return i;function i(l){return H(l)?X(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Ir,t,n)(l)}}function Fl(e){e.exit("blockQuote")}const vr={name:"characterEscape",tokenize:Ol};function Ol(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Sl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Ar={name:"characterReference",tokenize:Ml};function Ml(e,t,n){const r=this;let i=0,o,l;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=oe,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=wl,f):(e.enter("characterReferenceValue"),o=7,l=Nn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===oe&&!Zn(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Rt={partial:!0,tokenize:Bl},Ft={concrete:!0,name:"codeFenced",tokenize:Nl};function Nl(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,u;return a;function a(b){return s(b)}function s(b){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,u=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===u?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),H(b)?X(e,c,"whitespace")(b):c(b))}function c(b){return b===null||z(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Rt,S,R)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):H(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,p,"whitespace")(b)):b===96&&b===u?n(b):(e.consume(b),h)}function p(b){return b===null||z(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===u?n(b):(e.consume(b),d)}function S(b){return e.attempt(i,R,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),k}function k(b){return o>0&&H(b)?X(e,A,"linePrefix",o+1)(b):A(b)}function A(b){return b===null||z(b)?e.check(Rt,S,R)(b):(e.enter("codeFlowValue"),E(b))}function E(b){return b===null||z(b)?(e.exit("codeFlowValue"),A(b)):(e.consume(b),E)}function R(b){return e.exit("codeFenced"),t(b)}function F(b,N,V){let W=0;return x;function x(P){return b.enter("lineEnding"),b.consume(P),b.exit("lineEnding"),_}function _(P){return b.enter("codeFencedFence"),H(P)?X(b,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):D(P)}function D(P){return P===u?(b.enter("codeFencedFenceSequence"),Q(P)):V(P)}function Q(P){return P===u?(W++,b.consume(P),Q):W>=l?(b.exit("codeFencedFenceSequence"),H(P)?X(b,L,"whitespace")(P):L(P)):V(P)}function L(P){return P===null||z(P)?(b.exit("codeFencedFence"),N(P)):V(P)}}}function Bl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const bn={name:"codeIndented",tokenize:$l},jl={partial:!0,tokenize:Hl};function $l(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),X(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?a(s):z(s)?e.attempt(jl,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function Hl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):X(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):z(l)?i(l):n(l)}}const ql={name:"codeText",previous:Vl,resolve:Ul,tokenize:Wl};function Ul(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Vl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Wl(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class Yl{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Tr(e){const t={};let n=-1,r,i,o,l,u,a,s;const f=new Yl(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Xl(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return he(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Xl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,a=[],s={};let f,c,h=-1,p=n,d=0,S=0;const C=[S];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(S=h+1,C.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),h=C.length;h--;){const k=u.slice(C[h],C[h+1]),A=o.pop();a.push([A,A+k.length-1]),e.splice(A,2,k)}for(a.reverse(),h=-1;++h<a.length;)s[d+a[h][0]]=d+a[h][1],d+=a[h][1]-a[h][0]-1;return s}const Ql={resolve:Jl,tokenize:Kl},Gl={partial:!0,tokenize:Zl};function Jl(e){return Tr(e),e}function Kl(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):z(u)?e.check(Gl,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Zl(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),X(e,o,"linePrefix")}function o(l){if(l===null||z(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Pr(e,t,n,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),h):k===null||k===32||k===41||ln(k)?n(k):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),S(k))}function h(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(u),h(k)):k===null||k===60||z(k)?n(k):(e.consume(k),k===92?d:p)}function d(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function S(k){return!f&&(k===null||k===41||ee(k))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(k)):f<s&&k===40?(e.consume(k),f++,S):k===41?(e.consume(k),f--,S):k===null||k===32||k===40||ln(k)?n(k):(e.consume(k),k===92?C:S)}function C(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function _r(e,t,n,r,i,o){const l=this;let u=0,a;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||z(p)||u++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!H(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),u++,c):c(p)}}function Dr(e,t,n,r,i,o){let l;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,a):n(h)}function a(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),s(h))}function s(h){return h===l?(e.exit(o),a(l)):h===null?n(h):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),X(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===l||h===null||z(h)?(e.exit("chunkString"),s(h)):(e.consume(h),h===92?c:f)}function c(h){return h===l||h===92?(e.consume(h),f):f(h)}}function Ve(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):H(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eo={name:"definition",tokenize:to},no={partial:!0,tokenize:ro};function to(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return _r.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return ee(p)?Ve(e,s)(p):s(p)}function s(p){return Pr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(no,c,c)(p)}function c(p){return H(p)?X(e,h,"whitespace")(p):h(p)}function h(p){return p===null||z(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function ro(e,t,n){return r;function r(u){return ee(u)?Ve(e,i)(u):n(u)}function i(u){return Dr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return H(u)?X(e,l,"whitespace")(u):l(u)}function l(u){return u===null||z(u)?t(u):n(u)}}const io={name:"hardBreakEscape",tokenize:lo};function lo(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const oo={name:"headingAtx",resolve:uo,tokenize:ao};function uo(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},he(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function ao(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||ee(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):H(f)?X(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||ee(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const so=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ot=["pre","script","style","textarea"],co={concrete:!0,name:"htmlFlow",resolveTo:ho,tokenize:mo},fo={partial:!0,tokenize:yo},po={partial:!0,tokenize:go};function ho(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mo(e,t,n){const r=this;let i,o,l,u,a;return s;function s(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,S):m===63?(e.consume(m),i=3,r.interrupt?t:g):ae(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,d):ae(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function d(m){const $="CDATA[";return m===$.charCodeAt(u++)?(e.consume(m),u===$.length?r.interrupt?t:D:d):n(m)}function S(m){return ae(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function C(m){if(m===null||m===47||m===62||ee(m)){const $=m===47,Y=l.toLowerCase();return!$&&!o&&Ot.includes(Y)?(i=1,r.interrupt?t(m):D(m)):so.includes(l.toLowerCase())?(i=6,$?(e.consume(m),k):r.interrupt?t(m):D(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?A(m):E(m))}return m===45||oe(m)?(e.consume(m),l+=String.fromCharCode(m),C):n(m)}function k(m){return m===62?(e.consume(m),r.interrupt?t:D):n(m)}function A(m){return H(m)?(e.consume(m),A):x(m)}function E(m){return m===47?(e.consume(m),x):m===58||m===95||ae(m)?(e.consume(m),R):H(m)?(e.consume(m),E):x(m)}function R(m){return m===45||m===46||m===58||m===95||oe(m)?(e.consume(m),R):F(m)}function F(m){return m===61?(e.consume(m),b):H(m)?(e.consume(m),F):E(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),a=m,N):H(m)?(e.consume(m),b):V(m)}function N(m){return m===a?(e.consume(m),a=null,W):m===null||z(m)?n(m):(e.consume(m),N)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ee(m)?F(m):(e.consume(m),V)}function W(m){return m===47||m===62||H(m)?E(m):n(m)}function x(m){return m===62?(e.consume(m),_):n(m)}function _(m){return m===null||z(m)?D(m):H(m)?(e.consume(m),_):n(m)}function D(m){return m===45&&i===2?(e.consume(m),G):m===60&&i===1?(e.consume(m),q):m===62&&i===4?(e.consume(m),y):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),ge):z(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(fo,v,Q)(m)):m===null||z(m)?(e.exit("htmlFlowData"),Q(m)):(e.consume(m),D)}function Q(m){return e.check(po,L,v)(m)}function L(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),P}function P(m){return m===null||z(m)?Q(m):(e.enter("htmlFlowData"),D(m))}function G(m){return m===45?(e.consume(m),g):D(m)}function q(m){return m===47?(e.consume(m),l="",le):D(m)}function le(m){if(m===62){const $=l.toLowerCase();return Ot.includes($)?(e.consume(m),y):D(m)}return ae(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),le):D(m)}function ge(m){return m===93?(e.consume(m),g):D(m)}function g(m){return m===62?(e.consume(m),y):m===45&&i===2?(e.consume(m),g):D(m)}function y(m){return m===null||z(m)?(e.exit("htmlFlowData"),v(m)):(e.consume(m),y)}function v(m){return e.exit("htmlFlow"),t(m)}}function go(e,t,n){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function yo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,t,n)}}const ko={name:"htmlText",tokenize:xo};function xo(e,t,n){const r=this;let i,o,l;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),a}function a(g){return g===33?(e.consume(g),s):g===47?(e.consume(g),F):g===63?(e.consume(g),E):ae(g)?(e.consume(g),V):n(g)}function s(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),o=0,d):ae(g)?(e.consume(g),A):n(g)}function f(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),h):z(g)?(l=c,q(g)):(e.consume(g),c)}function h(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?G(g):g===45?h(g):c(g)}function d(g){const y="CDATA[";return g===y.charCodeAt(o++)?(e.consume(g),o===y.length?S:d):n(g)}function S(g){return g===null?n(g):g===93?(e.consume(g),C):z(g)?(l=S,q(g)):(e.consume(g),S)}function C(g){return g===93?(e.consume(g),k):S(g)}function k(g){return g===62?G(g):g===93?(e.consume(g),k):S(g)}function A(g){return g===null||g===62?G(g):z(g)?(l=A,q(g)):(e.consume(g),A)}function E(g){return g===null?n(g):g===63?(e.consume(g),R):z(g)?(l=E,q(g)):(e.consume(g),E)}function R(g){return g===62?G(g):E(g)}function F(g){return ae(g)?(e.consume(g),b):n(g)}function b(g){return g===45||oe(g)?(e.consume(g),b):N(g)}function N(g){return z(g)?(l=N,q(g)):H(g)?(e.consume(g),N):G(g)}function V(g){return g===45||oe(g)?(e.consume(g),V):g===47||g===62||ee(g)?W(g):n(g)}function W(g){return g===47?(e.consume(g),G):g===58||g===95||ae(g)?(e.consume(g),x):z(g)?(l=W,q(g)):H(g)?(e.consume(g),W):G(g)}function x(g){return g===45||g===46||g===58||g===95||oe(g)?(e.consume(g),x):_(g)}function _(g){return g===61?(e.consume(g),D):z(g)?(l=_,q(g)):H(g)?(e.consume(g),_):W(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,Q):z(g)?(l=D,q(g)):H(g)?(e.consume(g),D):(e.consume(g),L)}function Q(g){return g===i?(e.consume(g),i=void 0,P):g===null?n(g):z(g)?(l=Q,q(g)):(e.consume(g),Q)}function L(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||ee(g)?W(g):(e.consume(g),L)}function P(g){return g===47||g===62||ee(g)?W(g):n(g)}function G(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function q(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),le}function le(g){return H(g)?X(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):ge(g)}function ge(g){return e.enter("htmlTextData"),l(g)}}const et={name:"labelEnd",resolveAll:Co,resolveTo:Eo,tokenize:Io},bo={tokenize:vo},wo={tokenize:Ao},So={tokenize:To};function Co(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&he(e,0,e.length,n),e}function Eo(e,t){let n=e.length,r=0,i,o,l,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,t],["enter",s,t]],u=me(u,e.slice(o+1,o+r+3)),u=me(u,[["enter",f,t]]),u=me(u,cn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),u=me(u,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),u=me(u,e.slice(l+1)),u=me(u,[["exit",a,t]]),he(e,o,e.length,u),e}function Io(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)}function a(h){return h===40?e.attempt(bo,f,l?f:c)(h):h===91?e.attempt(wo,f,l?s:c)(h):l?f(h):c(h)}function s(h){return e.attempt(So,f,c)(h)}function f(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function vo(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ee(c)?Ve(e,o)(c):o(c)}function o(c){return c===41?f(c):Pr(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return ee(c)?Ve(e,a)(c):f(c)}function u(c){return n(c)}function a(c){return c===34||c===39||c===40?Dr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return ee(c)?Ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Ao(e,t,n){const r=this;return i;function i(u){return _r.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function To(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Po={name:"labelStartImage",resolveAll:et.resolveAll,tokenize:_o};function _o(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Do={name:"labelStartLink",resolveAll:et.resolveAll,tokenize:Lo};function Lo(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const wn={name:"lineEnding",tokenize:zo};function zo(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,t,"linePrefix")}}const rn={name:"thematicBreak",tokenize:Ro};function Ro(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),H(s)?X(e,u,"whitespace")(s):u(s))}}const se={continuation:{tokenize:No},exit:jo,name:"list",tokenize:Mo},Fo={partial:!0,tokenize:$o},Oo={partial:!0,tokenize:Bo};function Mo(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(p){const d=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Nn(p)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(rn,n,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Nn(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):n(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ge,r.interrupt?n:f,e.attempt(Fo,h,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return H(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function No(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!H(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Oo,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Bo(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function jo(e){e.exit(this.containerState.type)}function $o(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!H(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Mt={name:"setextUnderline",resolveTo:Ho,tokenize:qo};function Ho(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function qo(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),H(s)?X(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||z(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const Uo={tokenize:Vo};function Vo(e){const t=this,n=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ql,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Wo={resolveAll:zr()},Yo=Lr("string"),Xo=Lr("text");function Lr(e){return{resolveAll:zr(e==="text"?Qo:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,u);return l;function l(f){return s(f)?o(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function zr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Qo(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,u=0,a;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const s={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const Go={42:se,43:se,45:se,48:se,49:se,50:se,51:se,52:se,53:se,54:se,55:se,56:se,57:se,62:Ir},Jo={91:eo},Ko={[-2]:bn,[-1]:bn,32:bn},Zo={35:oo,42:rn,45:[Mt,rn],60:co,61:Mt,95:rn,96:Ft,126:Ft},eu={38:Ar,92:vr},nu={[-5]:wn,[-4]:wn,[-3]:wn,33:Po,38:Ar,42:Bn,60:[_l,ko],91:Do,92:[io,vr],93:et,95:Bn,96:ql},tu={null:[Bn,Wo]},ru={null:[42,95]},iu={null:[]},lu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ru,contentInitial:Jo,disable:iu,document:Go,flow:Zo,flowInitial:Ko,insideSpan:tu,string:eu,text:nu},Symbol.toStringTag,{value:"Module"}));function ou(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],u=[];const a={attempt:N(F),check:N(b),consume:A,enter:E,exit:R,interrupt:N(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:S,events:[],now:d,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=t.tokenize.call(s,a);return t.resolveAll&&o.push(t),s;function c(_){return l=me(l,_),C(),l[l.length-1]!==null?[]:(V(t,0),s.events=cn(o,s.events,s),s.events)}function h(_,D){return au(p(_),D)}function p(_){return uu(l,_)}function d(){const{_bufferIndex:_,_index:D,line:Q,column:L,offset:P}=r;return{_bufferIndex:_,_index:D,line:Q,column:L,offset:P}}function S(_){i[_.line]=_.column,x()}function C(){let _;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<D.length;)k(D.charCodeAt(r._bufferIndex));else k(D)}}function k(_){f=f(_)}function A(_){z(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,x()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=_}function E(_,D){const Q=D||{};return Q.type=_,Q.start=d(),s.events.push(["enter",Q,s]),u.push(Q),Q}function R(_){const D=u.pop();return D.end=d(),s.events.push(["exit",D,s]),D}function F(_,D){V(_,D.from)}function b(_,D){D.restore()}function N(_,D){return Q;function Q(L,P,G){let q,le,ge,g;return Array.isArray(L)?v(L):"tokenize"in L?v([L]):y(L);function y(B){return te;function te(J){const K=J!==null&&B[J],ie=J!==null&&B.null,Ke=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return v(Ke)(J)}}function v(B){return q=B,le=0,B.length===0?G:m(B[le])}function m(B){return te;function te(J){return g=W(),ge=B,B.partial||(s.currentConstruct=B),B.name&&s.parser.constructs.disable.null.includes(B.name)?Y():B.tokenize.call(D?Object.assign(Object.create(s),D):s,a,$,Y)(J)}}function $(B){return _(ge,g),P}function Y(B){return g.restore(),++le<q.length?m(q[le]):G}}}function V(_,D){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&he(s.events,D,s.events.length-D,_.resolve(s.events.slice(D),s)),_.resolveTo&&(s.events=_.resolveTo(s.events,s))}function W(){const _=d(),D=s.previous,Q=s.currentConstruct,L=s.events.length,P=Array.from(u);return{from:L,restore:G};function G(){r=_,s.previous=D,s.currentConstruct=Q,s.events.length=L,u=P,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function uu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function au(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
19
|
+
`;break}case-3:{l=`\r
|
|
20
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function su(e){const r={constructs:Cr([lu,...(e||{}).extensions||[]]),content:i(Cl),defined:[],document:i(Il),flow:i(Uo),lazy:{},string:i(Yo),text:i(Xo)};return r;function i(o){return l;function l(u){return ou(r,o,u)}}}function cu(e){for(;!Tr(e););return e}const Nt=/[\0\t\n\r]/g;function fu(){let e=1,t="",n=!0,r;return i;function i(o,l,u){const a=[];let s,f,c,h,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Nt.lastIndex=c,s=Nt.exec(o),h=s&&s.index!==void 0?s.index:o.length,p=o.charCodeAt(h),!s){t=o.slice(c);break}if(p===10&&c===h&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<h&&(a.push(o.slice(c,h)),e+=h-c),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const pu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hu(e){return e.replace(pu,mu)}function mu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Er(n.slice(o?2:1),o?16:10)}return Zn(n)||e}const Rr={}.hasOwnProperty;function gu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),du(n)(cu(su(n).document().write(fu()(e,t,!0))))}function du(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ht),autolinkProtocol:W,autolinkEmail:W,atxHeading:o(ct),blockQuote:o(ie),characterEscape:W,characterReference:W,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o(hi,l),codeTextData:W,data:W,codeFlowValue:W,definition:o(mi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(gi),hardBreakEscape:o(ft),hardBreakTrailing:o(ft),htmlFlow:o(pt,l),htmlFlowData:W,htmlText:o(pt,l),htmlTextData:W,image:o(di),label:l,link:o(ht),listItem:o(yi),listItemValue:h,listOrdered:o(mt,c),listUnordered:o(mt),paragraph:o(ki),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ct),strong:o(xi),thematicBreak:o(wi)},exit:{atxHeading:a(),atxHeadingSequence:F,autolink:a(),autolinkEmail:K,autolinkProtocol:J,blockQuote:a(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Y,characterReferenceMarkerNumeric:Y,characterReferenceValue:B,characterReference:te,codeFenced:a(C),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:a(k),codeText:a(P),codeTextData:x,data:x,definition:a(),definitionDestinationString:R,definitionLabelString:A,definitionTitleString:E,emphasis:a(),hardBreakEscape:a(D),hardBreakTrailing:a(D),htmlFlow:a(Q),htmlFlowData:x,htmlText:a(L),htmlTextData:x,image:a(q),label:ge,labelText:le,lineEnding:_,link:a(G),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:$,resourceDestinationString:g,resourceTitleString:y,resource:v,setextHeading:a(V),setextHeadingLineSequence:N,setextHeadingText:b,strong:a(),thematicBreak:a()}};Fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let T={type:"root",children:[]};const O={stack:[T],tokenStack:[],config:t,enter:u,exit:s,buffer:l,resume:f,data:n},U=[];let Z=-1;for(;++Z<w.length;)if(w[Z][1].type==="listOrdered"||w[Z][1].type==="listUnordered")if(w[Z][0]==="enter")U.push(Z);else{const de=U.pop();Z=i(w,de,Z)}for(Z=-1;++Z<w.length;){const de=t[w[Z][0]];Rr.call(de,w[Z][1].type)&&de[w[Z][1].type].call(Object.assign({sliceSerialize:w[Z][2].sliceSerialize},O),w[Z][1])}if(O.tokenStack.length>0){const de=O.tokenStack[O.tokenStack.length-1];(de[1]||Bt).call(O,void 0,de[0])}for(T.position={start:Ce(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:Ce(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)T=t.transforms[Z](T)||T;return T}function i(w,T,O){let U=T-1,Z=-1,de=!1,Ie,be,Me,Ne;for(;++U<=O;){const fe=w[U];switch(fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{fe[0]==="enter"?Z++:Z--,Ne=void 0;break}case"lineEndingBlank":{fe[0]==="enter"&&(Ie&&!Ne&&!Z&&!Me&&(Me=U),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!Z&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||Z===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if(Ie){let Pe=U;for(be=void 0;Pe--;){const we=w[Pe];if(we[1].type==="lineEnding"||we[1].type==="lineEndingBlank"){if(we[0]==="exit")continue;be&&(w[be][1].type="lineEndingBlank",de=!0),we[1].type="lineEnding",be=Pe}else if(!(we[1].type==="linePrefix"||we[1].type==="blockQuotePrefix"||we[1].type==="blockQuotePrefixWhitespace"||we[1].type==="blockQuoteMarker"||we[1].type==="listItemIndent"))break}Me&&(!be||Me<be)&&(Ie._spread=!0),Ie.end=Object.assign({},be?w[be][1].start:fe[1].end),w.splice(be||U,0,["exit",Ie,fe[2]]),U++,O++}if(fe[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0};Ie=Pe,w.splice(U,0,["enter",Pe,fe[2]]),U++,O++,Me=void 0,Ne=!0}}}return w[T][1]._spread=de,O}function o(w,T){return O;function O(U){u.call(this,w(U),U),T&&T.call(this,U)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(w,T,O){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([T,O||void 0]),w.position={start:Ce(T.start),end:void 0}}function a(w){return T;function T(O){w&&w.call(this,O),s.call(this,O)}}function s(w,T){const O=this.stack.pop(),U=this.tokenStack.pop();if(U)U[0].type!==w.type&&(T?T.call(this,w,U[0]):(U[1]||Bt).call(this,w,U[0]));else throw new Error("Cannot close `"+w.type+"` ("+Ue({start:w.start,end:w.end})+"): it’s not open");O.position.end=Ce(w.end)}function f(){return Kn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),T=this.stack[this.stack.length-1];T.lang=w}function d(){const w=this.resume(),T=this.stack[this.stack.length-1];T.meta=w}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w.replace(/(\r?\n|\r)$/g,"")}function A(w){const T=this.resume(),O=this.stack[this.stack.length-1];O.label=T,O.identifier=ye(this.sliceSerialize(w)).toLowerCase()}function E(){const w=this.resume(),T=this.stack[this.stack.length-1];T.title=w}function R(){const w=this.resume(),T=this.stack[this.stack.length-1];T.url=w}function F(w){const T=this.stack[this.stack.length-1];if(!T.depth){const O=this.sliceSerialize(w).length;T.depth=O}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function N(w){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function W(w){const O=this.stack[this.stack.length-1].children;let U=O[O.length-1];(!U||U.type!=="text")&&(U=bi(),U.position={start:Ce(w.start),end:void 0},O.push(U)),this.stack.push(U)}function x(w){const T=this.stack.pop();T.value+=this.sliceSerialize(w),T.position.end=Ce(w.end)}function _(w){const T=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=T.children[T.children.length-1];O.position.end=Ce(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(T.type)&&(W.call(this,w),x.call(this,w))}function D(){this.data.atHardBreak=!0}function Q(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function L(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function P(){const w=this.resume(),T=this.stack[this.stack.length-1];T.value=w}function G(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=T,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function q(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=T,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function le(w){const T=this.sliceSerialize(w),O=this.stack[this.stack.length-2];O.label=hu(T),O.identifier=ye(T).toLowerCase()}function ge(){const w=this.stack[this.stack.length-1],T=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const U=w.children;O.children=U}else O.alt=T}function g(){const w=this.resume(),T=this.stack[this.stack.length-1];T.url=w}function y(){const w=this.resume(),T=this.stack[this.stack.length-1];T.title=w}function v(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function $(w){const T=this.resume(),O=this.stack[this.stack.length-1];O.label=T,O.identifier=ye(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function Y(w){this.data.characterReferenceType=w.type}function B(w){const T=this.sliceSerialize(w),O=this.data.characterReferenceType;let U;O?(U=Er(T,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):U=Zn(T);const Z=this.stack[this.stack.length-1];Z.value+=U}function te(w){const T=this.stack.pop();T.position.end=Ce(w.end)}function J(w){x.call(this,w);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(w)}function K(w){x.call(this,w);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(w)}function ie(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function hi(){return{type:"inlineCode",value:""}}function mi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function gi(){return{type:"emphasis",children:[]}}function ct(){return{type:"heading",depth:0,children:[]}}function ft(){return{type:"break"}}function pt(){return{type:"html",value:""}}function di(){return{type:"image",title:null,url:"",alt:null}}function ht(){return{type:"link",title:null,url:"",children:[]}}function mt(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function yi(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function ki(){return{type:"paragraph",children:[]}}function xi(){return{type:"strong",children:[]}}function bi(){return{type:"text",value:""}}function wi(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function Fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fr(e,r):yu(e,r)}}function yu(e,t){let n;for(n in t)if(Rr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Bt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ue({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ue({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ue({start:t.start,end:t.end})+") is still open")}function ku(e){const t=this;t.parser=n;function n(r){return gu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
21
|
+
`}]}function wu(e,t){const n=t.value?t.value+`
|
|
22
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Su(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Oe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function Iu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Or(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Au(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Or(e,t);const i={src:Oe(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Tu(e,t){const n={src:Oe(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _u(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Or(e,t);const i={href:Oe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Du(e,t){const n={href:Oe(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lu(e,t,n){const r=e.all(t),i=n?zu(n):Mr(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
23
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
|
|
24
|
+
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function zu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Mr(n[r])}return t}function Mr(e){const t=e.spread;return t??e.children.length>1}function Ru(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Fu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ou(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Mu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Xn(t.children[1]),a=dr(t.children[t.children.length-1]);u&&a&&(l.position={start:u,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Bu(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let a=-1;const s=[];for(;++a<u;){const c=t.children[a],h={},p=l?l[a]:void 0;p&&(h.align=p);let d={type:"element",tagName:o,properties:h,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function ju(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const jt=9,$t=32;function $u(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ht(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ht(t.slice(i),i>0,!1)),o.join("")}function Ht(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===jt||o===$t;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===jt||o===$t;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Hu(e,t){const n={type:"text",value:$u(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Uu={blockquote:xu,break:bu,code:wu,delete:Su,emphasis:Cu,footnoteReference:Eu,heading:Iu,html:vu,imageReference:Au,image:Tu,inlineCode:Pu,linkReference:_u,link:Du,listItem:Lu,list:Ru,paragraph:Fu,root:Ou,strong:Mu,table:Nu,tableCell:ju,tableRow:Bu,text:Hu,thematicBreak:qu,toml:Ze,yaml:Ze,definition:Ze,footnoteDefinition:Ze};function Ze(){}const Nr=-1,fn=0,We=1,on=2,nt=3,tt=4,rt=5,it=6,Br=7,jr=8,qt=typeof self=="object"?self:globalThis,Vu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case fn:case Nr:return n(l,i);case We:{const u=n([],i);for(const a of l)u.push(r(a));return u}case on:{const u=n({},i);for(const[a,s]of l)u[r(a)]=r(s);return u}case nt:return n(new Date(l),i);case tt:{const{source:u,flags:a}=l;return n(new RegExp(u,a),i)}case rt:{const u=n(new Map,i);for(const[a,s]of l)u.set(r(a),r(s));return u}case it:{const u=n(new Set,i);for(const a of l)u.add(r(a));return u}case Br:{const{name:u,message:a}=l;return n(new qt[u](a),i)}case jr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(new qt[o](l),i)};return r},Ut=e=>Vu(new Map,e)(0),De="",{toString:Wu}={},{keys:Yu}=Object,qe=e=>{const t=typeof e;if(t!=="object"||!e)return[fn,t];const n=Wu.call(e).slice(8,-1);switch(n){case"Array":return[We,De];case"Object":return[on,De];case"Date":return[nt,De];case"RegExp":return[tt,De];case"Map":return[rt,De];case"Set":return[it,De];case"DataView":return[We,n]}return n.includes("Array")?[We,n]:n.includes("Error")?[Br,n]:[on,n]},en=([e,t])=>e===fn&&(t==="function"||t==="symbol"),Xu=(e,t,n,r)=>{const i=(l,u)=>{const a=r.push(l)-1;return n.set(u,a),a},o=l=>{if(n.has(l))return n.get(l);let[u,a]=qe(l);switch(u){case fn:{let f=l;switch(a){case"bigint":u=jr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Nr],l)}return i([u,f],l)}case We:{if(a){let h=l;return a==="DataView"?h=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(h=new Uint8Array(l)),i([a,[...h]],l)}const f=[],c=i([u,f],l);for(const h of l)f.push(o(h));return c}case on:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([u,f],l);for(const h of Yu(l))(e||!en(qe(l[h])))&&f.push([o(h),o(l[h])]);return c}case nt:return i([u,l.toISOString()],l);case tt:{const{source:f,flags:c}=l;return i([u,{source:f,flags:c}],l)}case rt:{const f=[],c=i([u,f],l);for(const[h,p]of l)(e||!(en(qe(h))||en(qe(p))))&&f.push([o(h),o(p)]);return c}case it:{const f=[],c=i([u,f],l);for(const h of l)(e||!en(qe(h)))&&f.push(o(h));return c}}const{message:s}=l;return i([u,{name:a,message:s}],l)};return o},Vt=(e,{json:t,lossy:n}={})=>{const r=[];return Xu(!(t||n),!!t,new Map,r)(e),r},un=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ut(Vt(e,t)):structuredClone(e):(e,t)=>Ut(Vt(e,t));function Qu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Gu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ju(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Qu,r=e.options.footnoteBackLabel||Gu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),h=Oe(c.toLowerCase());let p=0;const d=[],S=e.footnoteCounts.get(c);for(;S!==void 0&&++p<=S;){d.length>0&&d.push({type:"text",value:" "});let A=typeof n=="string"?n:n(a,p);typeof A=="string"&&(A={type:"text",value:A}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...d)}else f.push(...d);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(s,k),u.push(k)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...un(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
25
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
26
|
+
`}]}}const pn=(function(e){if(e==null)return na;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?Ku(e):Zu(e);if(typeof e=="string")return ea(e);throw new Error("Expected function, string, or object as test")});function Ku(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=pn(e[n]);return hn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Zu(e){const t=e;return hn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function ea(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,r,i){return!!(ta(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function na(){return!0}function ta(e){return e!==null&&typeof e=="object"&&"type"in e}const $r=[],ra=!0,jn=!1,ia="skip";function Hr(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=pn(i),l=r?-1:1;u(e,void 0,[])();function u(a,s,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=$r,d,S,C;if((!t||o(a,s,f[f.length-1]||void 0))&&(p=la(n(a,f)),p[0]===jn))return p;if("children"in a&&a.children){const k=a;if(k.children&&p[0]!==ia)for(S=(r?k.children.length:-1)+l,C=f.concat(k);S>-1&&S<k.children.length;){const A=k.children[S];if(d=u(A,S,C)(),d[0]===jn)return d;S=typeof d[1]=="number"?d[1]:S+l}}return p}}}function la(e){return Array.isArray(e)?e:typeof e=="number"?[ra,e]:e==null?$r:[e]}function lt(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Hr(e,o,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return l(a,c,f)}}const $n={}.hasOwnProperty,oa={};function ua(e,t){const n=t||oa,r=new Map,i=new Map,o=new Map,l={...Uu,...n.handlers},u={all:s,applyData:sa,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:aa,wrap:fa};return lt(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),u;function a(f,c){const h=f.type,p=u.handlers[h];if($n.call(u.handlers,h)&&p)return p(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(h)){if("children"in f){const{children:S,...C}=f,k=un(C);return k.children=u.all(f),k}return un(f)}return(u.options.unknownHandler||ca)(u,f,c)}function s(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const d=u.one(h[p],f);if(d){if(p&&h[p-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=Wt(d.value)),!Array.isArray(d)&&d.type==="element")){const S=d.children[0];S&&S.type==="text"&&(S.value=Wt(S.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function aa(e,t){e.position&&(t.position=Qi(e))}function sa(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,un(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ca(e,t){const n=t.data||{},r="value"in t&&!($n.call(n,"hProperties")||$n.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fa(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
27
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
28
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
29
|
+
`}),n}function Wt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Yt(e,t){const n=ua(e,t),r=n.one(e,void 0),i=Ju(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
30
|
+
`},i),o}function pa(e,t){return e&&"run"in e?async function(n,r){const i=Yt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Yt(n,{file:r,...e||t})}}function Xt(e){if(e)throw e}var Sn,Qt;function ha(){if(Qt)return Sn;Qt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},o=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var h;for(h in s);return typeof h>"u"||e.call(s,h)},l=function(s,f){n&&f.name==="__proto__"?n(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},u=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return Sn=function a(){var s,f,c,h,p,d,S=arguments[0],C=1,k=arguments.length,A=!1;for(typeof S=="boolean"&&(A=S,S=arguments[1]||{},C=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});C<k;++C)if(s=arguments[C],s!=null)for(f in s)c=u(S,f),h=u(s,f),S!==h&&(A&&h&&(o(h)||(p=i(h)))?(p?(p=!1,d=c&&i(c)?c:[]):d=c&&o(c)?c:{},l(S,{name:f,newValue:a(A,d,h)})):typeof h<"u"&&l(S,{name:f,newValue:h}));return S},Sn}var ma=ha();const Cn=Vn(ma);function Hn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ga(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(a,...s){const f=e[++o];let c=-1;if(a){l(a);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?da(f,u)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function da(e,t){let n;return r;function r(...l){const u=e.length>l.length;let a;u&&l.push(i);try{a=e.apply(this,l)}catch(s){const f=s;if(u&&n)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...u){n||(n=!0,t(l,...u))}function o(l){i(null,l)}}const ke={basename:ya,dirname:ka,extname:xa,join:ba,sep:"/"};function ya(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Je(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ka(e){if(Je(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xa(e){Je(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ba(...e){let t=-1,n;for(;++t<e.length;)Je(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wa(n)}function wa(e){Je(e);const t=e.codePointAt(0)===47;let n=Sa(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Sa(e,t){let n="",r=0,i=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return n}function Je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ca={cwd:Ea};function Ea(){return"/"}function qn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ia(e){if(typeof e=="string")e=new URL(e);else if(!qn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return va(e)}function va(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const En=["history","path","basename","stem","extname","dirname"];class qr{constructor(t){let n;t?qn(t)?n={path:t}:typeof t=="string"||Aa(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ca.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<En.length;){const o=En[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)En.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ke.basename(this.path):void 0}set basename(t){vn(t,"basename"),In(t,"basename"),this.path=ke.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ke.dirname(this.path):void 0}set dirname(t){Gt(this.basename,"dirname"),this.path=ke.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ke.extname(this.path):void 0}set extname(t){if(In(t,"extname"),Gt(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ke.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){qn(t)&&(t=Ia(t)),vn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ke.basename(this.path,this.extname):void 0}set stem(t){vn(t,"stem"),In(t,"stem"),this.path=ke.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ue(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function In(e,t){if(e&&e.includes(ke.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ke.sep+"`")}function vn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Gt(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Aa(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ta=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Pa={}.hasOwnProperty;class ot extends Ta{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ga()}copy(){const t=new ot;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Cn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Pn("data",this.frozen),this.namespace[t]=n,this):Pa.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Pn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=nn(t),r=this.parser||this.Parser;return An("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),An("process",this.parser||this.Parser),Tn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const u=nn(t),a=r.parse(u);r.run(a,u,function(f,c,h){if(f||!c||!h)return s(f);const p=c,d=r.stringify(p,h);La(d)?h.value=d:h.result=d,s(f,h)});function s(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),An("processSync",this.parser||this.Parser),Tn("processSync",this.compiler||this.Compiler),this.process(t,i),Kt("processSync","process",n),r;function i(o,l){n=!0,Xt(o),r=l}}run(t,n,r){Jt(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const a=nn(n);i.run(t,a,s);function s(f,c,h){const p=c||t;f?u(f):l?l(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Kt("runSync","run",r),i;function o(l,u){Xt(l),i=u,r=!0}}stringify(t,n){this.freeze();const r=nn(n),i=this.compiler||this.Compiler;return Tn("stringify",i),Jt(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Pn("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;a(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(s.plugins),s.settings&&(i.settings=Cn(!0,i.settings,s.settings))}function u(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===s){h=c;break}if(h===-1)r.push([s,...f]);else if(f.length>0){let[p,...d]=f;const S=r[h][1];Hn(S)&&Hn(p)&&(p=Cn(!0,S,p)),r[h]=[s,p,...d]}}}}const _a=new ot().freeze();function An(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Tn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jt(e){if(!Hn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kt(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nn(e){return Da(e)?e:new qr(e)}function Da(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function La(e){return typeof e=="string"||za(e)}function za(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ra="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Zt=[],er={allowDangerousHtml:!0},Fa=/^(https?|ircs?|mailto|xmpp)$/i,Oa=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Kc(e){const t=Ma(e),n=Na(e);return Ba(t.runSync(t.parse(n),n),e)}function Ma(e){const t=e.rehypePlugins||Zt,n=e.remarkPlugins||Zt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...er}:er;return _a().use(ku).use(n).use(pa,r).use(t)}function Na(e){const t=e.children||"",n=new qr;return typeof t=="string"&&(n.value=t),n}function Ba(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,a=t.urlTransform||ja;for(const f of Oa)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Ra+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),lt(e,s),el(e,{Fragment:dn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:dn.jsx,jsxs:dn.jsxs,passKeys:!0,passNode:!0});function s(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return l?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in xn)if(Object.hasOwn(xn,p)&&Object.hasOwn(f.properties,p)){const d=f.properties[p],S=xn[p];(S===null||S.includes(f.tagName))&&(f.properties[p]=a(String(d||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return u&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function ja(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Fa.test(e.slice(0,t))?e:""}function nr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function $a(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ha(e,t,n){const i=pn((n||{}).ignore||[]),o=qa(t);let l=-1;for(;++l<o.length;)Hr(e,"text",u);function u(s,f){let c=-1,h;for(;++c<f.length;){const p=f[c],d=h?h.children:void 0;if(i(p,d?d.indexOf(p):void 0,h))return;h=p}if(h)return a(s,f)}function a(s,f){const c=f[f.length-1],h=o[l][0],p=o[l][1];let d=0;const C=c.children.indexOf(s);let k=!1,A=[];h.lastIndex=0;let E=h.exec(s.value);for(;E;){const R=E.index,F={index:E.index,input:E.input,stack:[...f,s]};let b=p(...E,F);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?h.lastIndex=R+1:(d!==R&&A.push({type:"text",value:s.value.slice(d,R)}),Array.isArray(b)?A.push(...b):b&&A.push(b),d=R+E[0].length,k=!0),!h.global)break;E=h.exec(s.value)}return k?(d<s.value.length&&A.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...A)):A=[s],C+A.length}}function qa(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Ua(i[0]),Va(i[1])])}return t}function Ua(e){return typeof e=="string"?new RegExp($a(e),"g"):e}function Va(e){return typeof e=="function"?e:function(){return e}}const _n="phrasing",Dn=["autolink","link","image","label"];function Wa(){return{transforms:[Za],enter:{literalAutolink:Xa,literalAutolinkEmail:Ln,literalAutolinkHttp:Ln,literalAutolinkWww:Ln},exit:{literalAutolink:Ka,literalAutolinkEmail:Ja,literalAutolinkHttp:Qa,literalAutolinkWww:Ga}}}function Ya(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:_n,notInConstruct:Dn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:_n,notInConstruct:Dn},{character:":",before:"[ps]",after:"\\/",inConstruct:_n,notInConstruct:Dn}]}}function Xa(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ln(e){this.config.enter.autolinkProtocol.call(this,e)}function Qa(e){this.config.exit.autolinkProtocol.call(this,e)}function Ga(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Ja(e){this.config.exit.autolinkEmail.call(this,e)}function Ka(e){this.exit(e)}function Za(e){Ha(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,es],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ns]],{ignore:["link","linkReference"]})}function es(e,t,n,r,i){let o="";if(!Ur(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!ts(n)))return!1;const l=rs(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function ns(e,t,n,r){return!Ur(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ts(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function rs(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=nr(e,"(");let o=nr(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Ur(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ae(n)||sn(n))&&(!t||n!==47)}Vr.peek=ps;function is(){this.buffer()}function ls(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function os(){this.buffer()}function us(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function as(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ye(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ss(e){this.exit(e)}function cs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ye(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fs(e){this.exit(e)}function ps(){return"["}function Vr(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function hs(){return{enter:{gfmFootnoteCallString:is,gfmFootnoteCall:ls,gfmFootnoteDefinitionLabelString:os,gfmFootnoteDefinition:us},exit:{gfmFootnoteCallString:as,gfmFootnoteCall:ss,gfmFootnoteDefinitionLabelString:cs,gfmFootnoteDefinition:fs}}}function ms(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Vr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const u=o.createTracker(l);let a=u.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return a+=u.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((t?`
|
|
31
|
+
`:" ")+o.indentLines(o.containerFlow(r,u.current()),t?Wr:gs))),s(),a}}function gs(e,t,n){return t===0?e:Wr(e,t,n)}function Wr(e,t,n){return(n?"":" ")+e}const ds=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yr.peek=ws;function ys(){return{canContainEols:["delete"],enter:{strikethrough:xs},exit:{strikethrough:bs}}}function ks(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ds}],handlers:{delete:Yr}}}function xs(e){this.enter({type:"delete",children:[]},e)}function bs(e){this.exit(e)}function Yr(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function ws(){return"~"}function Ss(e){return e.length}function Cs(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ss,o=[],l=[],u=[],a=[];let s=0,f=-1;for(;++f<e.length;){const S=[],C=[];let k=-1;for(e[f].length>s&&(s=e[f].length);++k<e[f].length;){const A=Es(e[f][k]);if(n.alignDelimiters!==!1){const E=i(A);C[k]=E,(a[k]===void 0||E>a[k])&&(a[k]=E)}S.push(A)}l[f]=S,u[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=tr(r[c]);else{const S=tr(r);for(;++c<s;)o[c]=S}c=-1;const h=[],p=[];for(;++c<s;){const S=o[c];let C="",k="";S===99?(C=":",k=":"):S===108?C=":":S===114&&(k=":");let A=n.alignDelimiters===!1?1:Math.max(1,a[c]-C.length-k.length);const E=C+"-".repeat(A)+k;n.alignDelimiters!==!1&&(A=C.length+A+k.length,A>a[c]&&(a[c]=A),p[c]=A),h[c]=E}l.splice(1,0,h),u.splice(1,0,p),f=-1;const d=[];for(;++f<l.length;){const S=l[f],C=u[f];c=-1;const k=[];for(;++c<s;){const A=S[c]||"";let E="",R="";if(n.alignDelimiters!==!1){const F=a[c]-(C[c]||0),b=o[c];b===114?E=" ".repeat(F):b===99?F%2?(E=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(E=" ".repeat(F/2),R=E):R=" ".repeat(F)}n.delimiterStart!==!1&&!c&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||c)&&k.push(" "),n.alignDelimiters!==!1&&k.push(E),k.push(A),n.alignDelimiters!==!1&&k.push(R),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&k.push("|")}d.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return d.join(`
|
|
32
|
+
`)}function Es(e){return e==null?"":String(e)}function tr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Is(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),vs);return i(),l}function vs(e,t,n){return">"+(n?"":" ")+e}function As(e,t){return rr(e,t.inConstruct,!0)&&!rr(e,t.notInConstruct,!1)}function rr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ir(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
33
|
+
`&&As(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
34
|
+
`}function Ts(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Ps(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function _s(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ds(e,t,n,r){const i=_s(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Ps(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(o,Ls);return c(),h}const u=n.createTracker(r),a=i.repeat(Math.max(Ts(o,i)+1,3)),s=n.enter("codeFenced");let f=u.move(a);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
|
|
35
|
+
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
|
|
36
|
+
`),o&&(f+=u.move(o+`
|
|
37
|
+
`)),f+=u.move(a),s(),f}function Ls(e,t,n){return(n?"":" ")+e}function ut(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zs(e,t,n,r){const i=ut(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("[");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":`
|
|
38
|
+
`,...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),l(),s}function Rs(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Xe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function an(e,t,n){const r=Re(e),i=Re(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Xr.peek=Fs;function Xr(e,t,n,r){const i=Rs(n),o=n.enter("emphasis"),l=n.createTracker(r),u=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=an(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Xe(s)+a.slice(1));const c=a.charCodeAt(a.length-1),h=an(r.after.charCodeAt(0),c,i);h.inside&&(a=a.slice(0,-1)+Xe(c));const p=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},u+a+p}function Fs(e,t,n){return n.options.emphasis||"*"}function Os(e,t){let n=!1;return lt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,jn}),!!((!e.depth||e.depth<3)&&Kn(e)&&(t.options.setext||n))}function Ms(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Os(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
|
|
39
|
+
`,after:`
|
|
40
|
+
`});return c(),f(),h+`
|
|
41
|
+
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
42
|
+
`))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
|
|
43
|
+
`,...o.current()});return/^[\t ]/.test(s)&&(s=Xe(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),a(),u(),s}Qr.peek=Ns;function Qr(e){return e.value||""}function Ns(){return"<"}Gr.peek=Bs;function Gr(e,t,n,r){const i=ut(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("![");return s+=a.move(n.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function Bs(){return"!"}Jr.peek=js;function Jr(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("![");const s=n.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function js(){return"!"}Kr.peek=$s;function Kr(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],u=n.compilePattern(l);let a;if(l.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function $s(){return"`"}function Zr(e,t){const n=Kn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ei.peek=Hs;function ei(e,t,n,r){const i=ut(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,a;if(Zr(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),u(),n.stack=f,c}u=n.enter("link"),a=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function Hs(e,t,n){return Zr(e,n)?"<":"["}ni.peek=qs;function ni(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("[");const s=n.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function qs(){return"["}function at(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Us(e){const t=at(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Vs(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ti(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ws(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Vs(n):at(n);const u=e.ordered?l==="."?")":".":Us(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),ti(n)===l&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function Ys(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Xs(e,t,n,r){const i=Ys(n);let o=n.bulletCurrent||at(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,u.current()),f);return a(),s;function f(c,h,p){return h?(p?"":" ".repeat(l))+c:(p?o:o+" ".repeat(l-o.length))+c}}function Qs(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Gs=pn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Js(e,t,n,r){return(e.children.some(function(l){return Gs(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ks(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ri.peek=Zs;function ri(e,t,n,r){const i=Ks(n),o=n.enter("strong"),l=n.createTracker(r),u=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=an(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Xe(s)+a.slice(1));const c=a.charCodeAt(a.length-1),h=an(r.after.charCodeAt(0),c,i);h.inside&&(a=a.slice(0,-1)+Xe(c));const p=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},u+a+p}function Zs(e,t,n){return n.options.strong||"*"}function ec(e,t,n,r){return n.safe(e.value,r)}function nc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function tc(e,t,n){const r=(ti(n)+(n.options.ruleSpaces?" ":"")).repeat(nc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ii={blockquote:Is,break:ir,code:Ds,definition:zs,emphasis:Xr,hardBreak:ir,heading:Ms,html:Qr,image:Gr,imageReference:Jr,inlineCode:Kr,link:ei,linkReference:ni,list:Ws,listItem:Xs,paragraph:Qs,root:Js,strong:ri,text:ec,thematicBreak:tc};function rc(){return{enter:{table:ic,tableData:lr,tableHeader:lr,tableRow:oc},exit:{codeText:uc,table:lc,tableData:zn,tableHeader:zn,tableRow:zn}}}function ic(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function lc(e){this.exit(e),this.data.inTable=void 0}function oc(e){this.enter({type:"tableRow",children:[]},e)}function zn(e){this.exit(e)}function lr(e){this.enter({type:"tableCell",children:[]},e)}function uc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ac(e,t){return t==="|"?t:e}function sc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
44
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:l,tableCell:a,tableRow:u}};function l(p,d,S,C){return s(f(p,S,C),p.align)}function u(p,d,S,C){const k=c(p,S,C),A=s([k]);return A.slice(0,A.indexOf(`
|
|
45
|
+
`))}function a(p,d,S,C){const k=S.enter("tableCell"),A=S.enter("phrasing"),E=S.containerPhrasing(p,{...C,before:o,after:o});return A(),k(),E}function s(p,d){return Cs(p,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("table");for(;++k<C.length;)A[k]=c(C[k],d,S);return E(),A}function c(p,d,S){const C=p.children;let k=-1;const A=[],E=d.enter("tableRow");for(;++k<C.length;)A[k]=a(C[k],p,d,S);return E(),A}function h(p,d,S){let C=ii.inlineCode(p,d,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function cc(){return{exit:{taskListCheckValueChecked:or,taskListCheckValueUnchecked:or,paragraph:pc}}}function fc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hc}}}function or(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function pc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function hc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let a=ii.listItem(e,t,n,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+l}}function mc(){return[Wa(),hs(),ys(),rc(),cc()]}function gc(e){return{extensions:[Ya(),ms(e),ks(),sc(e),fc()]}}const dc={tokenize:Sc,partial:!0},li={tokenize:Cc,partial:!0},oi={tokenize:Ec,partial:!0},ui={tokenize:Ic,partial:!0},yc={tokenize:vc,partial:!0},ai={name:"wwwAutolink",tokenize:bc,previous:ci},si={name:"protocolAutolink",tokenize:wc,previous:fi},Se={name:"emailAutolink",tokenize:xc,previous:pi},xe={};function kc(){return{text:xe}}let ve=48;for(;ve<123;)xe[ve]=Se,ve++,ve===58?ve=65:ve===91&&(ve=97);xe[43]=Se;xe[45]=Se;xe[46]=Se;xe[95]=Se;xe[72]=[Se,si];xe[104]=[Se,si];xe[87]=[Se,ai];xe[119]=[Se,ai];function xc(e,t,n){const r=this;let i,o;return l;function l(c){return!Un(c)||!pi.call(r,r.previous)||st(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Un(c)?(e.consume(c),u):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(yc,f,s)(c):c===45||c===95||oe(c)?(o=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return o&&i&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function bc(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!ci.call(r,r.previous)||st(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dc,e.attempt(li,e.attempt(oi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function wc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&fi.call(r,r.previous)&&!st(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(ae(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),o?s:(o=!0,a)):n(c)}function s(c){return c===null||ln(c)||ee(c)||Ae(c)||sn(c)?n(c):e.attempt(li,e.attempt(oi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Sc(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Cc(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(ui,a,u)(s):s===null||ee(s)||Ae(s)||s!==45&&sn(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?n(s):t(s)}}function Ec(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(ui,t,o)(l):l===null||ee(l)||Ae(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Ic(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||ee(u)||Ae(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ee(u)||Ae(u)?t(u):r(u)}function o(u){return ae(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):ae(u)?(e.consume(u),l):n(u)}}function vc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return oe(o)?n(o):t(o)}}function ci(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function fi(e){return!ae(e)}function pi(e){return!(e===47||Un(e))}function Un(e){return e===43||e===45||e===46||e===95||oe(e)}function st(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ac={tokenize:Fc,partial:!0};function Tc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:zc},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:_c}}}}function Pc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return n(a);const s=ye(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function _c(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function Dc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||ee(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ee(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Lc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||ee(d))return n(d);if(d===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ee(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function h(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(d)}function p(d){return t(d)}}function zc(e,t,n){return e.check(Ge,t,e.attempt(Ac,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function Fc(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Oc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},h=[["enter",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",c,u]],p=u.parser.constructs.insideSpan.null;p&&he(h,h.length,0,cn(p,l.slice(s+1,a),u)),he(h,h.length,0,[["exit",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",f,u]]),he(l,s-1,a-s+3,h),a=s+h.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,f=this.events;let c=0;return h;function h(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),p(d))}function p(d){const S=Re(s);if(d===126)return c>1?a(d):(l.consume(d),c++,p);if(c<2&&!n)return a(d);const C=l.exit("strikethroughSequenceTemporary"),k=Re(d);return C._open=!k||k===2&&!!S,C._close=!S||S===2&&!!k,u(d)}}}class Mc{constructor(){this.map=[]}add(t,n,r){Nc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Nc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Bc(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function jc(){return{flow:{null:{name:"table",tokenize:$c,resolveAll:Hc}}}}function $c(e,t,n){const r=this;let i=0,o=0,l;return u;function u(x){let _=r.events.length-1;for(;_>-1;){const L=r.events[_][1].type;if(L==="lineEnding"||L==="linePrefix")_--;else break}const D=_>-1?r.events[_][1].type:null,Q=D==="tableHead"||D==="tableRow"?b:a;return Q===b&&r.parser.lazy[r.now().line]?n(x):Q(x)}function a(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?n(x):z(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):H(x)?X(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||ee(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?h:c)}function h(x){return x===92||x===124?(e.consume(x),c):c(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,H(x)?X(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):F(x)}function S(x){return H(x)?X(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),k):x===45?(o+=1,k(x)):x===null||z(x)?R(x):F(x)}function k(x){return x===45?(e.enter("tableDelimiterFiller"),A(x)):F(x)}function A(x){return x===45?(e.consume(x),A):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return H(x)?X(e,R,"whitespace")(x):R(x)}function R(x){return x===124?d(x):x===null||z(x)?!l||i!==o?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):F(x)}function F(x){return n(x)}function b(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||z(x)?(e.exit("tableRow"),t(x)):H(x)?X(e,N,"whitespace")(x):(e.enter("data"),V(x))}function V(x){return x===null||x===124||ee(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?W:V)}function W(x){return x===92||x===124?(e.consume(x),V):V(x)}}function Hc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,f,c;const h=new Mc;for(;++n<e.length;){const p=e[n],d=p[1];p[0]==="enter"?d.type==="tableHead"?(u=!1,a!==0&&(ur(h,t,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",s,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=tn(h,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):d.type==="tableHead"?(u=!0,a=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],c=tn(h,t,o,i,n,c)):l[1]!==0&&(c=tn(h,t,l,i,n,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&ur(h,t,a,s,f),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Bc(t.events,n))}return e}function tn(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},Le(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Le(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Le(t.events,n[2]),f=Le(t.events,n[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,S=n[3]-n[2]-1;e.add(d,S,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Le(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ur(e,t,n,r,i){const o=[],l=Le(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Le(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qc={name:"tasklistCheck",tokenize:Vc};function Uc(){return{text:{91:qc}}}function Vc(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return ee(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return z(a)?t(a):H(a)?e.check({tokenize:Wc},t,n)(a):n(a)}}function Wc(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Yc(e){return Cr([kc(),Tc(),Oc(e),jc(),Uc()])}const Xc={};function Zc(e){const t=this,n=e||Xc,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Yc(n)),o.push(mc()),l.push(gc(n))}export{Kc as M,Qc as R,Ii as a,Gc as b,Zc as c,Zn as d,Ni as f,$i as h,dn as j,Rn as n,Jc as p,ar as r,Yn as s};
|